vue-2024-ui 0.2.22 → 0.2.23
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 +544 -540
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import tl, { ElForm as gt, ElButtonGroup as bt, ElButton as Ae, ElPopover as Ct, ElMessage as et, ElMessageBox as Ut, ElDialog as ll, ElDrawer as al } from "element-plus";
|
|
2
|
-
import { h as we, mergeModels as tt, useModel as lt, ref as re, nextTick as dt, onMounted as ft, computed as nt, resolveComponent as P, openBlock as p, createElementBlock as U, Fragment as te, createElementVNode as
|
|
2
|
+
import { h as we, mergeModels as tt, useModel as lt, ref as re, nextTick as dt, onMounted as ft, computed as nt, resolveComponent as P, openBlock as p, createElementBlock as U, Fragment as te, createElementVNode as X, createBlock as A, createCommentVNode as $e, unref as N, mergeProps as B, withCtx as _, renderSlot as k, renderList as G, createTextVNode as Re, toDisplayString as _e, createSlots as be, createVNode as ae, normalizeStyle as Ve, normalizeProps as St, useSlots as Yt, inject as qt, useAttrs as At, onUnmounted as rl, withModifiers as wt, resolveDynamicComponent as Ke, guardReactiveProps as ol, Transition as nl, withDirectives as ul, vShow as sl, onBeforeUnmount as il, normalizeClass as Rt, watchEffect as dl, onBeforeMount as cl, watch as fl, createApp as vl } from "vue";
|
|
3
3
|
import { CircleCheck as Lt, CircleCheckFilled as pl, Refresh as Ht, Plus as ml, ZoomIn as hl, Delete as zt, More as yl, Search as gl, Download as Pt, DocumentCopy as bl, View as $l, Edit as wl, CirclePlus as El, Setting as _l, FullScreen as kl, CopyDocument as Cl } from "@element-plus/icons-vue";
|
|
4
4
|
import jt from "sortablejs";
|
|
5
5
|
import { Dexie as Dl } from "dexie";
|
|
@@ -180,7 +180,7 @@ var Sl = {
|
|
|
180
180
|
indicator: "幻灯片切换至索引 {index}"
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
},
|
|
183
|
+
}, xl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
184
184
|
function Nt(n) {
|
|
185
185
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
186
186
|
}
|
|
@@ -188,49 +188,49 @@ var Wt = { exports: {} };
|
|
|
188
188
|
(function(n, s) {
|
|
189
189
|
(function(a, t) {
|
|
190
190
|
n.exports = t();
|
|
191
|
-
})(
|
|
192
|
-
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", h = "second", c = "minute", D = "hour", f = "day", v = "week", u = "month", d = "quarter", $ = "year",
|
|
191
|
+
})(xl, function() {
|
|
192
|
+
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", h = "second", c = "minute", D = "hour", f = "day", v = "week", u = "month", d = "quarter", $ = "year", Q = "date", Y = "Invalid Date", L = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|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, se = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
193
193
|
var g = ["th", "st", "nd", "rd"], i = w % 100;
|
|
194
194
|
return "[" + w + (g[(i - 20) % 10] || g[i] || g[0]) + "]";
|
|
195
195
|
} }, ce = function(w, g, i) {
|
|
196
|
-
var
|
|
197
|
-
return !
|
|
196
|
+
var F = String(w);
|
|
197
|
+
return !F || F.length >= g ? w : "" + Array(g + 1 - F.length).join(i) + w;
|
|
198
198
|
}, pe = { s: ce, z: function(w) {
|
|
199
|
-
var g = -w.utcOffset(), i = Math.abs(g),
|
|
200
|
-
return (g <= 0 ? "+" : "-") + ce(
|
|
199
|
+
var g = -w.utcOffset(), i = Math.abs(g), F = Math.floor(i / 60), E = i % 60;
|
|
200
|
+
return (g <= 0 ? "+" : "-") + ce(F, 2, "0") + ":" + ce(E, 2, "0");
|
|
201
201
|
}, m: function w(g, i) {
|
|
202
202
|
if (g.date() < i.date()) return -w(i, g);
|
|
203
|
-
var
|
|
204
|
-
return +(-(
|
|
203
|
+
var F = 12 * (i.year() - g.year()) + (i.month() - g.month()), E = g.clone().add(F, u), q = i - E < 0, M = g.clone().add(F + (q ? -1 : 1), u);
|
|
204
|
+
return +(-(F + (i - E) / (q ? E - M : M - E)) || 0);
|
|
205
205
|
}, a: function(w) {
|
|
206
206
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
207
207
|
}, p: function(w) {
|
|
208
|
-
return { M: u, y: $, w: v, d: f, D:
|
|
208
|
+
return { M: u, y: $, w: v, d: f, D: Q, h: D, m: c, s: h, ms: e, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(w) {
|
|
210
210
|
return w === void 0;
|
|
211
211
|
} }, fe = "en", ie = {};
|
|
212
212
|
ie[fe] = se;
|
|
213
|
-
var ge = "$isDayjsObject",
|
|
213
|
+
var ge = "$isDayjsObject", Me = function(w) {
|
|
214
214
|
return w instanceof Le || !(!w || !w[ge]);
|
|
215
|
-
}, De = function w(g, i,
|
|
215
|
+
}, De = function w(g, i, F) {
|
|
216
216
|
var E;
|
|
217
217
|
if (!g) return fe;
|
|
218
218
|
if (typeof g == "string") {
|
|
219
219
|
var q = g.toLowerCase();
|
|
220
220
|
ie[q] && (E = q), i && (ie[q] = i, E = q);
|
|
221
|
-
var
|
|
222
|
-
if (!E &&
|
|
221
|
+
var M = g.split("-");
|
|
222
|
+
if (!E && M.length > 1) return w(M[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var
|
|
225
|
-
ie[
|
|
224
|
+
var Z = g.name;
|
|
225
|
+
ie[Z] = g, E = Z;
|
|
226
226
|
}
|
|
227
|
-
return !
|
|
227
|
+
return !F && E && (fe = E), E || !F && fe;
|
|
228
228
|
}, K = function(w, g) {
|
|
229
|
-
if (
|
|
229
|
+
if (Me(w)) return w.clone();
|
|
230
230
|
var i = typeof g == "object" ? g : {};
|
|
231
231
|
return i.date = w, i.args = arguments, new Le(i);
|
|
232
232
|
}, ee = pe;
|
|
233
|
-
ee.l = De, ee.i =
|
|
233
|
+
ee.l = De, ee.i = Me, ee.w = function(w, g) {
|
|
234
234
|
return K(w, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
235
235
|
};
|
|
236
236
|
var Le = function() {
|
|
@@ -239,16 +239,16 @@ var Wt = { exports: {} };
|
|
|
239
239
|
}
|
|
240
240
|
var g = w.prototype;
|
|
241
241
|
return g.parse = function(i) {
|
|
242
|
-
this.$d = function(
|
|
243
|
-
var E =
|
|
242
|
+
this.$d = function(F) {
|
|
243
|
+
var E = F.date, q = F.utc;
|
|
244
244
|
if (E === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
245
|
if (ee.u(E)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (E instanceof Date) return new Date(E);
|
|
247
247
|
if (typeof E == "string" && !/Z$/i.test(E)) {
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var
|
|
251
|
-
return q ? new Date(Date.UTC(
|
|
248
|
+
var M = E.match(L);
|
|
249
|
+
if (M) {
|
|
250
|
+
var Z = M[2] - 1 || 0, oe = (M[7] || "0").substring(0, 3);
|
|
251
|
+
return q ? new Date(Date.UTC(M[1], Z, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, oe)) : new Date(M[1], Z, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, oe);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(E);
|
|
@@ -260,36 +260,36 @@ var Wt = { exports: {} };
|
|
|
260
260
|
return ee;
|
|
261
261
|
}, g.isValid = function() {
|
|
262
262
|
return this.$d.toString() !== Y;
|
|
263
|
-
}, g.isSame = function(i,
|
|
263
|
+
}, g.isSame = function(i, F) {
|
|
264
264
|
var E = K(i);
|
|
265
|
-
return this.startOf(
|
|
266
|
-
}, g.isAfter = function(i,
|
|
267
|
-
return K(i) < this.startOf(
|
|
268
|
-
}, g.isBefore = function(i,
|
|
269
|
-
return this.endOf(
|
|
270
|
-
}, g.$g = function(i,
|
|
271
|
-
return ee.u(i) ? this[
|
|
265
|
+
return this.startOf(F) <= E && E <= this.endOf(F);
|
|
266
|
+
}, g.isAfter = function(i, F) {
|
|
267
|
+
return K(i) < this.startOf(F);
|
|
268
|
+
}, g.isBefore = function(i, F) {
|
|
269
|
+
return this.endOf(F) < K(i);
|
|
270
|
+
}, g.$g = function(i, F, E) {
|
|
271
|
+
return ee.u(i) ? this[F] : this.set(E, i);
|
|
272
272
|
}, g.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
274
|
}, g.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
}, g.startOf = function(i,
|
|
277
|
-
var E = this, q = !!ee.u(
|
|
276
|
+
}, g.startOf = function(i, F) {
|
|
277
|
+
var E = this, q = !!ee.u(F) || F, M = ee.p(i), Z = function(O, C) {
|
|
278
278
|
var he = ee.w(E.$u ? Date.UTC(E.$y, C, O) : new Date(E.$y, C, O), E);
|
|
279
279
|
return q ? he : he.endOf(f);
|
|
280
280
|
}, oe = function(O, C) {
|
|
281
281
|
return ee.w(E.toDate()[O].apply(E.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(C)), E);
|
|
282
282
|
}, le = this.$W, H = this.$M, z = this.$D, Se = "set" + (this.$u ? "UTC" : "");
|
|
283
|
-
switch (
|
|
283
|
+
switch (M) {
|
|
284
284
|
case $:
|
|
285
|
-
return q ?
|
|
285
|
+
return q ? Z(1, 0) : Z(31, 11);
|
|
286
286
|
case u:
|
|
287
|
-
return q ?
|
|
287
|
+
return q ? Z(1, H) : Z(0, H + 1);
|
|
288
288
|
case v:
|
|
289
|
-
var me = this.$locale().weekStart || 0,
|
|
290
|
-
return
|
|
289
|
+
var me = this.$locale().weekStart || 0, Te = (le < me ? le + 7 : le) - me;
|
|
290
|
+
return Z(q ? z - Te : z + (6 - Te), H);
|
|
291
291
|
case f:
|
|
292
|
-
case
|
|
292
|
+
case Q:
|
|
293
293
|
return oe(Se + "Hours", 0);
|
|
294
294
|
case D:
|
|
295
295
|
return oe(Se + "Minutes", 1);
|
|
@@ -302,50 +302,50 @@ var Wt = { exports: {} };
|
|
|
302
302
|
}
|
|
303
303
|
}, g.endOf = function(i) {
|
|
304
304
|
return this.startOf(i, !1);
|
|
305
|
-
}, g.$set = function(i,
|
|
306
|
-
var E, q = ee.p(i),
|
|
305
|
+
}, g.$set = function(i, F) {
|
|
306
|
+
var E, q = ee.p(i), M = "set" + (this.$u ? "UTC" : ""), Z = (E = {}, E[f] = M + "Date", E[Q] = M + "Date", E[u] = M + "Month", E[$] = M + "FullYear", E[D] = M + "Hours", E[c] = M + "Minutes", E[h] = M + "Seconds", E[e] = M + "Milliseconds", E)[q], oe = q === f ? this.$D + (F - this.$W) : F;
|
|
307
307
|
if (q === u || q === $) {
|
|
308
|
-
var le = this.clone().set(
|
|
309
|
-
le.$d[
|
|
310
|
-
} else
|
|
308
|
+
var le = this.clone().set(Q, 1);
|
|
309
|
+
le.$d[Z](oe), le.init(), this.$d = le.set(Q, Math.min(this.$D, le.daysInMonth())).$d;
|
|
310
|
+
} else Z && this.$d[Z](oe);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
}, g.set = function(i,
|
|
313
|
-
return this.clone().$set(i,
|
|
312
|
+
}, g.set = function(i, F) {
|
|
313
|
+
return this.clone().$set(i, F);
|
|
314
314
|
}, g.get = function(i) {
|
|
315
315
|
return this[ee.p(i)]();
|
|
316
|
-
}, g.add = function(i,
|
|
316
|
+
}, g.add = function(i, F) {
|
|
317
317
|
var E, q = this;
|
|
318
318
|
i = Number(i);
|
|
319
|
-
var
|
|
319
|
+
var M = ee.p(F), Z = function(H) {
|
|
320
320
|
var z = K(q);
|
|
321
321
|
return ee.w(z.date(z.date() + Math.round(H * i)), q);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var oe = (E = {}, E[c] = t, E[D] = r, E[h] = a, E)[
|
|
323
|
+
if (M === u) return this.set(u, this.$M + i);
|
|
324
|
+
if (M === $) return this.set($, this.$y + i);
|
|
325
|
+
if (M === f) return Z(1);
|
|
326
|
+
if (M === v) return Z(7);
|
|
327
|
+
var oe = (E = {}, E[c] = t, E[D] = r, E[h] = a, E)[M] || 1, le = this.$d.getTime() + i * oe;
|
|
328
328
|
return ee.w(le, this);
|
|
329
|
-
}, g.subtract = function(i,
|
|
330
|
-
return this.add(-1 * i,
|
|
329
|
+
}, g.subtract = function(i, F) {
|
|
330
|
+
return this.add(-1 * i, F);
|
|
331
331
|
}, g.format = function(i) {
|
|
332
|
-
var
|
|
332
|
+
var F = this, E = this.$locale();
|
|
333
333
|
if (!this.isValid()) return E.invalidDate || Y;
|
|
334
|
-
var q = i || "YYYY-MM-DDTHH:mm:ssZ",
|
|
335
|
-
return C && (C[he] || C(
|
|
336
|
-
},
|
|
337
|
-
return ee.s(
|
|
334
|
+
var q = i || "YYYY-MM-DDTHH:mm:ssZ", M = ee.z(this), Z = this.$H, oe = this.$m, le = this.$M, H = E.weekdays, z = E.months, Se = E.meridiem, me = function(C, he, Be, xe) {
|
|
335
|
+
return C && (C[he] || C(F, q)) || Be[he].slice(0, xe);
|
|
336
|
+
}, Te = function(C) {
|
|
337
|
+
return ee.s(Z % 12 || 12, C, "0");
|
|
338
338
|
}, O = Se || function(C, he, Be) {
|
|
339
|
-
var
|
|
340
|
-
return Be ?
|
|
339
|
+
var xe = C < 12 ? "AM" : "PM";
|
|
340
|
+
return Be ? xe.toLowerCase() : xe;
|
|
341
341
|
};
|
|
342
342
|
return q.replace(V, function(C, he) {
|
|
343
343
|
return he || function(Be) {
|
|
344
344
|
switch (Be) {
|
|
345
345
|
case "YY":
|
|
346
|
-
return String(
|
|
346
|
+
return String(F.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return ee.s(
|
|
348
|
+
return ee.s(F.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
350
|
return le + 1;
|
|
351
351
|
case "MM":
|
|
@@ -355,52 +355,52 @@ var Wt = { exports: {} };
|
|
|
355
355
|
case "MMMM":
|
|
356
356
|
return me(z, le);
|
|
357
357
|
case "D":
|
|
358
|
-
return
|
|
358
|
+
return F.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return ee.s(
|
|
360
|
+
return ee.s(F.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
|
-
return String(
|
|
362
|
+
return String(F.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return me(E.weekdaysMin,
|
|
364
|
+
return me(E.weekdaysMin, F.$W, H, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return me(E.weekdaysShort,
|
|
366
|
+
return me(E.weekdaysShort, F.$W, H, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return H[
|
|
368
|
+
return H[F.$W];
|
|
369
369
|
case "H":
|
|
370
|
-
return String(
|
|
370
|
+
return String(Z);
|
|
371
371
|
case "HH":
|
|
372
|
-
return ee.s(
|
|
372
|
+
return ee.s(Z, 2, "0");
|
|
373
373
|
case "h":
|
|
374
|
-
return
|
|
374
|
+
return Te(1);
|
|
375
375
|
case "hh":
|
|
376
|
-
return
|
|
376
|
+
return Te(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return O(
|
|
378
|
+
return O(Z, oe, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return O(
|
|
380
|
+
return O(Z, oe, !1);
|
|
381
381
|
case "m":
|
|
382
382
|
return String(oe);
|
|
383
383
|
case "mm":
|
|
384
384
|
return ee.s(oe, 2, "0");
|
|
385
385
|
case "s":
|
|
386
|
-
return String(
|
|
386
|
+
return String(F.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return ee.s(
|
|
388
|
+
return ee.s(F.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return ee.s(
|
|
390
|
+
return ee.s(F.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return M;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(C) ||
|
|
395
|
+
}(C) || M.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, g.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
}, g.diff = function(i,
|
|
400
|
-
var q,
|
|
401
|
-
return ee.m(
|
|
399
|
+
}, g.diff = function(i, F, E) {
|
|
400
|
+
var q, M = this, Z = ee.p(F), oe = K(i), le = (oe.utcOffset() - this.utcOffset()) * t, H = this - oe, z = function() {
|
|
401
|
+
return ee.m(M, oe);
|
|
402
402
|
};
|
|
403
|
-
switch (
|
|
403
|
+
switch (Z) {
|
|
404
404
|
case $:
|
|
405
405
|
q = z() / 12;
|
|
406
406
|
break;
|
|
@@ -433,9 +433,9 @@ var Wt = { exports: {} };
|
|
|
433
433
|
return this.endOf(u).$D;
|
|
434
434
|
}, g.$locale = function() {
|
|
435
435
|
return ie[this.$L];
|
|
436
|
-
}, g.locale = function(i,
|
|
436
|
+
}, g.locale = function(i, F) {
|
|
437
437
|
if (!i) return this.$L;
|
|
438
|
-
var E = this.clone(), q = De(i,
|
|
438
|
+
var E = this.clone(), q = De(i, F, !0);
|
|
439
439
|
return q && (E.$L = q), E;
|
|
440
440
|
}, g.clone = function() {
|
|
441
441
|
return ee.w(this.$d, this);
|
|
@@ -449,19 +449,19 @@ var Wt = { exports: {} };
|
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, w;
|
|
451
451
|
}(), S = Le.prototype;
|
|
452
|
-
return K.prototype = S, [["$ms", e], ["$s", h], ["$m", c], ["$H", D], ["$W", f], ["$M", u], ["$y", $], ["$D",
|
|
452
|
+
return K.prototype = S, [["$ms", e], ["$s", h], ["$m", c], ["$H", D], ["$W", f], ["$M", u], ["$y", $], ["$D", Q]].forEach(function(w) {
|
|
453
453
|
S[w[1]] = function(g) {
|
|
454
454
|
return this.$g(g, w[0], w[1]);
|
|
455
455
|
};
|
|
456
456
|
}), K.extend = function(w, g) {
|
|
457
457
|
return w.$i || (w(g, Le, K), w.$i = !0), K;
|
|
458
|
-
}, K.locale = De, K.isDayjs =
|
|
458
|
+
}, K.locale = De, K.isDayjs = Me, K.unix = function(w) {
|
|
459
459
|
return K(1e3 * w);
|
|
460
460
|
}, K.en = ie[fe], K.Ls = ie, K.p = {}, K;
|
|
461
461
|
});
|
|
462
462
|
})(Wt);
|
|
463
|
-
var
|
|
464
|
-
const Dt = /* @__PURE__ */ Nt(
|
|
463
|
+
var Ml = Wt.exports;
|
|
464
|
+
const Dt = /* @__PURE__ */ Nt(Ml), Gt = {
|
|
465
465
|
inline: !0,
|
|
466
466
|
type: "hidden",
|
|
467
467
|
"scroll-to-error": !0,
|
|
@@ -520,10 +520,10 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
520
520
|
for (const [t, r] of s)
|
|
521
521
|
a[t] = r;
|
|
522
522
|
return a;
|
|
523
|
-
},
|
|
523
|
+
}, Tl = {
|
|
524
524
|
style: { display: "flex", width: "100%" },
|
|
525
525
|
class: "g-ctrl-container"
|
|
526
|
-
},
|
|
526
|
+
}, Fl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Vl = ["title"], ql = ["innerHTML"], Al = ["innerHTML"], Bl = ["innerHTML"], Ol = ["innerHTML"], Il = ["innerHTML"], Ul = ["innerHTML"], Yl = ["innerHTML"], Rl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
527
527
|
__name: "g-ctrl",
|
|
528
528
|
props: /* @__PURE__ */ tt(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
529
529
|
modelValue: { required: !0 },
|
|
@@ -531,11 +531,11 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
531
531
|
}),
|
|
532
532
|
emits: ["update:modelValue"],
|
|
533
533
|
setup(n) {
|
|
534
|
-
var S, w, g, i,
|
|
534
|
+
var S, w, g, i, F, E, q, M, Z, oe, le, H, z, Se, me, Te;
|
|
535
535
|
const s = lt(n, "modelValue"), a = n, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), h = re(a.model), c = re([]), D = re([]), f = re(!1), v = re(!1), u = re((w = (S = h == null ? void 0 : h.value) == null ? void 0 : S.form) != null && w["default-placeholder"] ? (i = (g = h == null ? void 0 : h.value) == null ? void 0 : g[r == null ? void 0 : r.value]) == null ? void 0 : i.label : "");
|
|
536
|
-
!((
|
|
537
|
-
const d = re({ display: "flex", flex: 1 }), $ = a.t === "t" ? "center" : "flex-start",
|
|
538
|
-
d.value = { ...d.value, justifyContent: $, ...
|
|
536
|
+
!((F = e.value) != null && F.startsWith("text")) && !((E = e.value) != null && E.startsWith("link")) && !((q = e.value) != null && q.startsWith("tag")) && !((M = e.value) != null && M.startsWith("div")) && !((Z = e.value) != null && Z.startsWith("span")) && !((oe = e.value) != null && oe.startsWith("avatar")) && ((le = t.value) != null && le.style || (t.value.style = { width: ((z = (H = t.value) == null ? void 0 : H.style) == null ? void 0 : z.width) || "100%" }));
|
|
537
|
+
const d = re({ display: "flex", flex: 1 }), $ = a.t === "t" ? "center" : "flex-start", Q = ((Se = t.value) == null ? void 0 : Se.style) || {};
|
|
538
|
+
d.value = { ...d.value, justifyContent: $, ...Q };
|
|
539
539
|
const Y = () => {
|
|
540
540
|
const O = Yt(), C = Object.keys(O), he = `${a.t}-${r.value}-`;
|
|
541
541
|
return C.filter((Ne) => Ne.startsWith(he)).map((Ne) => Ne.replace(he, ""));
|
|
@@ -543,7 +543,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
543
543
|
multiple: !1,
|
|
544
544
|
"show-file-list": !1,
|
|
545
545
|
"file-list": [],
|
|
546
|
-
showDel: (me = t.value) != null && me.showDel ? (
|
|
546
|
+
showDel: (me = t.value) != null && me.showDel ? (Te = t.value) == null ? void 0 : Te.showDel : a.t !== "t"
|
|
547
547
|
}), V = re(t.value.innerHtml), se = (O) => [
|
|
548
548
|
"year",
|
|
549
549
|
"years",
|
|
@@ -588,10 +588,10 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
588
588
|
if (typeof he == "string")
|
|
589
589
|
D.value = [{ label: he, value: s.value }];
|
|
590
590
|
else {
|
|
591
|
-
const Be = he == null ? void 0 : he.map((
|
|
592
|
-
...
|
|
593
|
-
value:
|
|
594
|
-
label:
|
|
591
|
+
const Be = he == null ? void 0 : he.map((xe, Ne) => ({
|
|
592
|
+
...xe,
|
|
593
|
+
value: xe.value ?? xe.label ?? Ne,
|
|
594
|
+
label: xe.label || "未知选项"
|
|
595
595
|
}));
|
|
596
596
|
D.value = Be || [];
|
|
597
597
|
}
|
|
@@ -601,7 +601,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
601
601
|
}, ge = () => {
|
|
602
602
|
var O, C;
|
|
603
603
|
t.value.noSearch !== !0 && a.t === "q" && ((C = (O = h.value) == null ? void 0 : O.table) == null || C.load());
|
|
604
|
-
},
|
|
604
|
+
}, Me = (O) => {
|
|
605
605
|
O.preventDefault(), O.stopPropagation(), s.value = "";
|
|
606
606
|
}, De = (O) => {
|
|
607
607
|
f.value = !0;
|
|
@@ -609,7 +609,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
609
609
|
O.preventDefault(), O.stopPropagation(), f.value = !0;
|
|
610
610
|
}, ee = re(null);
|
|
611
611
|
ft(async () => {
|
|
612
|
-
var he, Be,
|
|
612
|
+
var he, Be, xe, Ne, rt;
|
|
613
613
|
t.value && t.value["remote-method"] && (pe.value["remote-method"] = fe), (Be = (he = h.value[r.value]) == null ? void 0 : he.options) != null && Be.length && (D.value = h.value[r.value].options);
|
|
614
614
|
const O = (Oe, He = "options", ze = h.value[r.value]) => {
|
|
615
615
|
typeof t.value.getDicts == "function" && ie(He).catch((Pe) => {
|
|
@@ -648,17 +648,17 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
648
648
|
(Pe = (ze = h.value) == null ? void 0 : ze.table) == null || Pe.load();
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
|
-
e.value == "image" && (t.value.width && ((
|
|
651
|
+
e.value == "image" && (t.value.width && ((xe = ee.value) != null && xe.$el) && ee.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((Ne = ee.value) != null && Ne.$el) && ee.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((rt = ee.value) != null && rt.$el) && ee.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
652
652
|
});
|
|
653
653
|
const Le = nt(() => {
|
|
654
654
|
var O;
|
|
655
655
|
return t.value["file-list"] && t.value["file-list"].length ? (O = t.value["file-list"]) == null ? void 0 : O.map((C) => C == null ? void 0 : C.url) : [s.value];
|
|
656
656
|
});
|
|
657
657
|
return (O, C) => {
|
|
658
|
-
var
|
|
659
|
-
const he = P("el-image-viewer"), Be = P("el-radio"),
|
|
658
|
+
var J, ue, Qe, Ze, Ge, Xe, ot, R, Ye, Je;
|
|
659
|
+
const he = P("el-image-viewer"), Be = P("el-radio"), xe = P("el-radio-group"), Ne = P("el-radio-button"), rt = P("el-checkbox"), Oe = P("el-checkbox-group"), He = P("el-checkbox-button"), ze = P("g-select-option"), Pe = P("el-option"), vt = P("el-select"), pt = P("el-tree-select"), l = P("el-time-picker"), o = P("el-time-select"), m = P("el-date-picker"), b = P("el-color-picker"), T = P("el-rate"), I = P("el-slider"), W = P("el-switch"), ye = P("el-transfer"), Ee = P("el-cascader"), qe = P("el-icon"), Ie = P("el-image"), Ue = P("el-tooltip"), We = P("el-upload"), st = P("el-autocomplete"), mt = P("el-input-number"), ct = P("el-input"), ht = P("el-link"), j = P("el-text"), de = P("el-avatar"), x = P("el-tag");
|
|
660
660
|
return p(), U(te, null, [
|
|
661
|
-
|
|
661
|
+
X("div", null, [
|
|
662
662
|
f.value ? (p(), A(he, {
|
|
663
663
|
key: 0,
|
|
664
664
|
teleported: !0,
|
|
@@ -666,8 +666,8 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
666
666
|
onClose: C[0] || (C[0] = (y) => f.value = !1)
|
|
667
667
|
}, null, 8, ["url-list"])) : $e("", !0)
|
|
668
668
|
]),
|
|
669
|
-
|
|
670
|
-
e.value == N(Ce).RADIO ? (p(), A(
|
|
669
|
+
X("div", Tl, [
|
|
670
|
+
e.value == N(Ce).RADIO ? (p(), A(xe, B({
|
|
671
671
|
key: 0,
|
|
672
672
|
modelValue: s.value,
|
|
673
673
|
"onUpdate:modelValue": C[1] || (C[1] = (y) => s.value = y),
|
|
@@ -684,7 +684,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
684
684
|
], !0)
|
|
685
685
|
]),
|
|
686
686
|
_: 3
|
|
687
|
-
}, 16, ["modelValue", "disabled"])) : e.value == N(Ce).RADIOBUTTON ? (p(), A(
|
|
687
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(Ce).RADIOBUTTON ? (p(), A(xe, B({
|
|
688
688
|
key: 1,
|
|
689
689
|
modelValue: s.value,
|
|
690
690
|
"onUpdate:modelValue": C[2] || (C[2] = (y) => s.value = y),
|
|
@@ -846,7 +846,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
846
846
|
]),
|
|
847
847
|
_: 2
|
|
848
848
|
}, [
|
|
849
|
-
(
|
|
849
|
+
(J = t.value) != null && J.columns ? {
|
|
850
850
|
name: "header",
|
|
851
851
|
fn: _(() => {
|
|
852
852
|
var y;
|
|
@@ -920,7 +920,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
920
920
|
key: 10,
|
|
921
921
|
modelValue: s.value,
|
|
922
922
|
"onUpdate:modelValue": C[12] || (C[12] = (y) => s.value = y)
|
|
923
|
-
}, t.value), null, 16, ["modelValue"])) : e.value == N(Ce).RATE ? (p(), A(
|
|
923
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == N(Ce).RATE ? (p(), A(T, B({
|
|
924
924
|
key: 11,
|
|
925
925
|
modelValue: s.value,
|
|
926
926
|
"onUpdate:modelValue": C[13] || (C[13] = (y) => s.value = y),
|
|
@@ -984,7 +984,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
984
984
|
onClick: C[20] || (C[20] = (ne) => ne.stopPropagation()),
|
|
985
985
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
986
986
|
}, [
|
|
987
|
-
|
|
987
|
+
X("div", Fl, [
|
|
988
988
|
ae(Ie, B({
|
|
989
989
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
990
990
|
src: s.value
|
|
@@ -997,7 +997,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
997
997
|
}))
|
|
998
998
|
]), 1040, ["src"])
|
|
999
999
|
]),
|
|
1000
|
-
|
|
1000
|
+
X("div", {
|
|
1001
1001
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
1002
1002
|
onMouseenter: C[18] || (C[18] = (ne) => v.value = !0),
|
|
1003
1003
|
onMouseleave: C[19] || (C[19] = (ne) => v.value = !1),
|
|
@@ -1026,7 +1026,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1026
1026
|
ae(N(zt), {
|
|
1027
1027
|
style: { width: "1.5em", height: "1.5em" },
|
|
1028
1028
|
color: "white",
|
|
1029
|
-
onClick:
|
|
1029
|
+
onClick: Me
|
|
1030
1030
|
})
|
|
1031
1031
|
]),
|
|
1032
1032
|
_: 1
|
|
@@ -1086,7 +1086,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1086
1086
|
maxlength: ((ue = t.value) == null ? void 0 : ue.max) || 25
|
|
1087
1087
|
}, { ...t.value, type: e.value }), be({
|
|
1088
1088
|
suffix: _(() => [
|
|
1089
|
-
|
|
1089
|
+
X("div", {
|
|
1090
1090
|
title: N(Vt)(s.value),
|
|
1091
1091
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1092
1092
|
}, _e(N(Vt)(s.value)), 9, Vl)
|
|
@@ -1122,7 +1122,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1122
1122
|
}, [
|
|
1123
1123
|
V.value ? (p(), A(de, St(B({ key: 0 }, t.value)), {
|
|
1124
1124
|
default: _(() => [
|
|
1125
|
-
|
|
1125
|
+
X("div", { innerHTML: V.value }, null, 8, ql)
|
|
1126
1126
|
]),
|
|
1127
1127
|
_: 1
|
|
1128
1128
|
}, 16)) : (p(), A(de, St(B({ key: 1 }, t.value)), null, 16))
|
|
@@ -1131,13 +1131,13 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1131
1131
|
style: Ve(d.value)
|
|
1132
1132
|
}, [
|
|
1133
1133
|
Array.isArray(V.value) && V.value.length > 0 ? (p(!0), U(te, { key: 0 }, G(V.value, (y, ne) => (p(), U(te, { key: ne }, [
|
|
1134
|
-
typeof y == "object" ? (p(), A(
|
|
1134
|
+
typeof y == "object" ? (p(), A(x, B({
|
|
1135
1135
|
key: 0,
|
|
1136
1136
|
ref_for: !0
|
|
1137
1137
|
}, y, {
|
|
1138
1138
|
innerHTML: y == null ? void 0 : y.value,
|
|
1139
1139
|
style: { "margin-right": "3px" }
|
|
1140
|
-
}), null, 16, ["innerHTML"])) : (p(), A(
|
|
1140
|
+
}), null, 16, ["innerHTML"])) : (p(), A(x, B({
|
|
1141
1141
|
key: 1,
|
|
1142
1142
|
ref_for: !0
|
|
1143
1143
|
}, t.value, {
|
|
@@ -1145,7 +1145,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1145
1145
|
innerHTML: y,
|
|
1146
1146
|
style: { "margin-right": "3px" }
|
|
1147
1147
|
}), null, 16, ["type", "innerHTML"]))
|
|
1148
|
-
], 64))), 128)) : (p(), A(
|
|
1148
|
+
], 64))), 128)) : (p(), A(x, B({ key: 1 }, t.value, {
|
|
1149
1149
|
type: e.value.replace("tag-", ""),
|
|
1150
1150
|
innerHTML: V.value || s.value
|
|
1151
1151
|
}), null, 16, ["type", "innerHTML"]))
|
|
@@ -1172,7 +1172,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1172
1172
|
fn: _(() => {
|
|
1173
1173
|
var y;
|
|
1174
1174
|
return [
|
|
1175
|
-
|
|
1175
|
+
X("div", {
|
|
1176
1176
|
innerHTML: ((y = t.value) == null ? void 0 : y.suffix) || ""
|
|
1177
1177
|
}, null, 8, Ol)
|
|
1178
1178
|
];
|
|
@@ -1184,7 +1184,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1184
1184
|
fn: _(() => {
|
|
1185
1185
|
var y;
|
|
1186
1186
|
return [
|
|
1187
|
-
|
|
1187
|
+
X("div", {
|
|
1188
1188
|
innerHTML: ((y = t.value) == null ? void 0 : y.prefix) || ""
|
|
1189
1189
|
}, null, 8, Il)
|
|
1190
1190
|
];
|
|
@@ -1196,7 +1196,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1196
1196
|
fn: _(() => {
|
|
1197
1197
|
var y;
|
|
1198
1198
|
return [
|
|
1199
|
-
|
|
1199
|
+
X("div", {
|
|
1200
1200
|
innerHTML: ((y = t.value) == null ? void 0 : y.append) || ""
|
|
1201
1201
|
}, null, 8, Ul)
|
|
1202
1202
|
];
|
|
@@ -1208,7 +1208,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1208
1208
|
fn: _(() => {
|
|
1209
1209
|
var y;
|
|
1210
1210
|
return [
|
|
1211
|
-
|
|
1211
|
+
X("div", {
|
|
1212
1212
|
innerHTML: ((y = t.value) == null ? void 0 : y.prepend) || ""
|
|
1213
1213
|
}, null, 8, Yl)
|
|
1214
1214
|
];
|
|
@@ -1240,26 +1240,26 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1240
1240
|
}),
|
|
1241
1241
|
emits: /* @__PURE__ */ tt(["submit", "reset"], ["update:modelValue"]),
|
|
1242
1242
|
setup(n, { expose: s, emit: a }) {
|
|
1243
|
-
var ge,
|
|
1243
|
+
var ge, Me, De, K, ee, Le;
|
|
1244
1244
|
const t = lt(n, "modelValue"), r = a, e = re(null), h = qt("options"), c = re({}), D = re(""), f = n;
|
|
1245
|
-
t.value.form =
|
|
1245
|
+
t.value.form = Fe(
|
|
1246
1246
|
Gt,
|
|
1247
1247
|
h == null ? void 0 : h.form,
|
|
1248
1248
|
(ge = t.value) == null ? void 0 : ge.form
|
|
1249
|
-
), t.value.form.style =
|
|
1250
|
-
(De = (
|
|
1249
|
+
), t.value.form.style = Fe(
|
|
1250
|
+
(De = (Me = t.value) == null ? void 0 : Me.form) == null ? void 0 : De.style,
|
|
1251
1251
|
{ ...(K = At()) == null ? void 0 : K.style }
|
|
1252
1252
|
);
|
|
1253
1253
|
const v = async (S, w, g) => {
|
|
1254
1254
|
let i = 5;
|
|
1255
1255
|
for (; i > 0; ) {
|
|
1256
1256
|
if (await dt(), e.value) {
|
|
1257
|
-
e.value.validate((
|
|
1258
|
-
|
|
1257
|
+
e.value.validate((F, E) => {
|
|
1258
|
+
F ? r("submit", S, w, g) : console.error("表单验证不通过!", E);
|
|
1259
1259
|
});
|
|
1260
1260
|
return;
|
|
1261
1261
|
}
|
|
1262
|
-
i--, await new Promise((
|
|
1262
|
+
i--, await new Promise((F) => setTimeout(F, 50));
|
|
1263
1263
|
}
|
|
1264
1264
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1265
1265
|
}, u = async (S, w) => {
|
|
@@ -1285,7 +1285,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1285
1285
|
width: "100%"
|
|
1286
1286
|
}
|
|
1287
1287
|
};
|
|
1288
|
-
t.value.formItems =
|
|
1288
|
+
t.value.formItems = Fe(
|
|
1289
1289
|
d,
|
|
1290
1290
|
h == null ? void 0 : h.formItems,
|
|
1291
1291
|
(ee = t == null ? void 0 : t.value) == null ? void 0 : ee.formItems
|
|
@@ -1294,12 +1294,12 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1294
1294
|
span: 12,
|
|
1295
1295
|
offset: 0
|
|
1296
1296
|
};
|
|
1297
|
-
t.value.form.cols =
|
|
1297
|
+
t.value.form.cols = Fe(
|
|
1298
1298
|
$,
|
|
1299
1299
|
(Le = h == null ? void 0 : h.form) == null ? void 0 : Le.cols,
|
|
1300
1300
|
t.value.form.cols
|
|
1301
1301
|
);
|
|
1302
|
-
const
|
|
1302
|
+
const Q = (S) => {
|
|
1303
1303
|
let w = [];
|
|
1304
1304
|
if (S.rules)
|
|
1305
1305
|
w = S.rules;
|
|
@@ -1318,14 +1318,14 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1318
1318
|
message: `${i.label}不能为空!`,
|
|
1319
1319
|
trigger: "blur"
|
|
1320
1320
|
}), i.max !== void 0 && i.max !== null && i.max !== "" && (i.min === void 0 || i.min === null || i.min === "") && w.push({
|
|
1321
|
-
validator: (
|
|
1321
|
+
validator: (F, E, q) => {
|
|
1322
1322
|
if (E == null || E === "") return q();
|
|
1323
1323
|
i.type !== "number" && i.type !== "input-number" ? ((E == null ? void 0 : E.toString()) || "").length > Number(i.max) ? q(
|
|
1324
1324
|
new Error(`${i.label}长度不能超过${i.max}个字符!`)
|
|
1325
1325
|
) : q() : Number(E) > Number(i.max) ? q(new Error(`${i.label}不能大于${i.max}!`)) : q();
|
|
1326
1326
|
}
|
|
1327
1327
|
}), i.min !== void 0 && i.min !== null && i.min !== "" && (i.max === void 0 || i.max === null || i.max === "") && w.push({
|
|
1328
|
-
validator: (
|
|
1328
|
+
validator: (F, E, q) => {
|
|
1329
1329
|
if (E == null || E === "") return q();
|
|
1330
1330
|
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? q(
|
|
1331
1331
|
new Error(
|
|
@@ -1338,43 +1338,43 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1338
1338
|
) : q() : Number(E) < Number(i.min) ? q(new Error(`${i.label}不能小于${i.min}!`)) : q();
|
|
1339
1339
|
}
|
|
1340
1340
|
}), i.min !== void 0 && i.min !== null && i.min !== "" && i.max !== void 0 && i.max !== null && i.max !== "" && w.push({
|
|
1341
|
-
validator: (
|
|
1341
|
+
validator: (F, E, q) => {
|
|
1342
1342
|
if (E == null || E === "") return q();
|
|
1343
|
-
const
|
|
1343
|
+
const M = Number(i.min), Z = Number(i.max);
|
|
1344
1344
|
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? q(
|
|
1345
1345
|
new Error(
|
|
1346
1346
|
`${i.label}长度最小值${i.min}设置错误!`
|
|
1347
1347
|
)
|
|
1348
|
-
) : E.toString().length <
|
|
1348
|
+
) : E.toString().length < M || E.toString().length > Z ? q(
|
|
1349
1349
|
new Error(
|
|
1350
|
-
`${i.label}长度必须在${
|
|
1350
|
+
`${i.label}长度必须在${M}-${Z}个字符之间!`
|
|
1351
1351
|
)
|
|
1352
|
-
) : q() : Number(E) <
|
|
1352
|
+
) : q() : Number(E) < M || E > Z ? q(new Error(`${i.label}必须在${M}-${Z}之间!`)) : q();
|
|
1353
1353
|
}
|
|
1354
1354
|
}), i.type == "email" && w.push({ type: "email", message: "不是一个正确的邮箱地址!" }), i.type == "url" && w.push({ type: "url", message: "不是一个合正确的URL!" }), i.pattern && w.push({
|
|
1355
1355
|
pattern: i == null ? void 0 : i.pattern,
|
|
1356
1356
|
message: (i == null ? void 0 : i.message) || "格式不正确!"
|
|
1357
1357
|
}), i.validate && w.push({
|
|
1358
|
-
validator: (
|
|
1358
|
+
validator: (F, E, q) => i.validate(F, E, q)
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
1361
|
return w;
|
|
1362
1362
|
}, Y = (S, w = !1) => {
|
|
1363
|
-
var
|
|
1364
|
-
const g = w ? S : S == null ? void 0 : S.item, i = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(c.value, (
|
|
1363
|
+
var F, E, q, M, Z;
|
|
1364
|
+
const g = w ? S : S == null ? void 0 : S.item, i = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(c.value, (F = t.value.form) == null ? void 0 : F.modalState) : (g == null ? void 0 : g.editor) || {};
|
|
1365
1365
|
if (((E = t.value.form) == null ? void 0 : E.modalState) === "edit") {
|
|
1366
1366
|
const oe = typeof (g == null ? void 0 : g.editor) == "object" ? (q = g.editor) == null ? void 0 : q.ep : typeof (g == null ? void 0 : g.editor) == "function" ? i == null ? void 0 : i.ep : {};
|
|
1367
1367
|
return { ...i, ...oe };
|
|
1368
1368
|
}
|
|
1369
|
-
if (((
|
|
1370
|
-
const oe = typeof (g == null ? void 0 : g.editor) == "object" ? (
|
|
1369
|
+
if (((M = t.value.form) == null ? void 0 : M.modalState) === "add") {
|
|
1370
|
+
const oe = typeof (g == null ? void 0 : g.editor) == "object" ? (Z = g.editor) == null ? void 0 : Z.ap : typeof (g == null ? void 0 : g.editor) == "function" ? i == null ? void 0 : i.ap : {};
|
|
1371
1371
|
return { ...i, ...oe };
|
|
1372
1372
|
}
|
|
1373
1373
|
return i;
|
|
1374
1374
|
}, L = (S) => {
|
|
1375
|
-
var g, i,
|
|
1375
|
+
var g, i, F, E, q;
|
|
1376
1376
|
const w = typeof S.editor == "function" ? S.editor(c.value, (g = t.value.form) == null ? void 0 : g.modalState) : S.editor;
|
|
1377
|
-
return ((i = t.value.form) == null ? void 0 : i.modalState) === "edit" ? ((
|
|
1377
|
+
return ((i = t.value.form) == null ? void 0 : i.modalState) === "edit" ? ((F = w == null ? void 0 : w.ep) == null ? void 0 : F.type) ?? (w == null ? void 0 : w.type) ?? S.type : ((E = t.value.form) == null ? void 0 : E.modalState) === "add" ? ((q = w == null ? void 0 : w.ap) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? S.type : (w == null ? void 0 : w.type) ?? S.type;
|
|
1378
1378
|
};
|
|
1379
1379
|
ft(() => {
|
|
1380
1380
|
V(), f != null && f.editForm ? c.value = f.editForm : c.value = ce.value;
|
|
@@ -1394,9 +1394,9 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1394
1394
|
}, se = nt(
|
|
1395
1395
|
() => Object.fromEntries(
|
|
1396
1396
|
Object.entries(t.value).filter((S) => S[1].type != "hidden").filter((S) => S[1].hidden !== !0).filter((S) => S[1].edit !== !1).filter((S) => S[1].editor !== !1).filter((S) => S[1].type !== "control").filter((S) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(S[0])).filter((S) => {
|
|
1397
|
-
var g, i,
|
|
1397
|
+
var g, i, F;
|
|
1398
1398
|
const w = typeof S[1].editor == "function" ? S[1].editor(c.value, (g = t.value.form) == null ? void 0 : g.modalState) : S[1].editor;
|
|
1399
|
-
return t.value.form.modalState === "edit" ? ((i = w == null ? void 0 : w.ep) == null ? void 0 : i.editor) !== !1 : t.value.form.modalState === "add" ? ((
|
|
1399
|
+
return t.value.form.modalState === "edit" ? ((i = w == null ? void 0 : w.ep) == null ? void 0 : i.editor) !== !1 : t.value.form.modalState === "add" ? ((F = w == null ? void 0 : w.ap) == null ? void 0 : F.editor) !== !1 : !0;
|
|
1400
1400
|
}).map((S) => [S[0], S[1]])
|
|
1401
1401
|
)
|
|
1402
1402
|
), ce = nt(
|
|
@@ -1414,7 +1414,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1414
1414
|
}), S.get(i).items.push({ key: w, item: g });
|
|
1415
1415
|
}
|
|
1416
1416
|
}), S.forEach((w) => {
|
|
1417
|
-
w.tabPane =
|
|
1417
|
+
w.tabPane = Fe(
|
|
1418
1418
|
...w.items.map(({ item: g }) => g.tabPane || {})
|
|
1419
1419
|
);
|
|
1420
1420
|
}), Array.from(S.values());
|
|
@@ -1464,8 +1464,8 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1464
1464
|
reset: u,
|
|
1465
1465
|
formData: c
|
|
1466
1466
|
}), (S, w) => {
|
|
1467
|
-
var
|
|
1468
|
-
const g = P("el-form-item"), i = P("el-col"),
|
|
1467
|
+
var Z, oe, le;
|
|
1468
|
+
const g = P("el-form-item"), i = P("el-col"), F = P("el-tab-pane"), E = P("el-tabs"), q = P("el-form"), M = P("el-button");
|
|
1469
1469
|
return p(), U("div", Ll, [
|
|
1470
1470
|
ae(q, B(
|
|
1471
1471
|
{
|
|
@@ -1493,7 +1493,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1493
1493
|
style: { width: "100%" }
|
|
1494
1494
|
}, t.value.form.tabs), {
|
|
1495
1495
|
default: _(() => [
|
|
1496
|
-
(p(!0), U(te, null, G(pe.value, (H) => (p(), A(
|
|
1496
|
+
(p(!0), U(te, null, G(pe.value, (H) => (p(), A(F, B({
|
|
1497
1497
|
key: H.groupName,
|
|
1498
1498
|
label: H.groupName,
|
|
1499
1499
|
name: H.groupName,
|
|
@@ -1506,14 +1506,14 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1506
1506
|
style: { width: "100%" }
|
|
1507
1507
|
}), {
|
|
1508
1508
|
default: _(() => {
|
|
1509
|
-
var me,
|
|
1509
|
+
var me, Te;
|
|
1510
1510
|
return [
|
|
1511
1511
|
ae(g, B({
|
|
1512
1512
|
label: z == null ? void 0 : z.item.label,
|
|
1513
1513
|
prop: z.key,
|
|
1514
|
-
rules:
|
|
1514
|
+
rules: Q(z == null ? void 0 : z.item),
|
|
1515
1515
|
ref_for: !0
|
|
1516
|
-
}, { ...(me = t.value) == null ? void 0 : me.formItems, ...(
|
|
1516
|
+
}, { ...(me = t.value) == null ? void 0 : me.formItems, ...(Te = z == null ? void 0 : z.item) == null ? void 0 : Te.formItem }, { style: { width: "100%" } }), {
|
|
1517
1517
|
default: _(() => [
|
|
1518
1518
|
k(S.$slots, "f-" + z.key, {
|
|
1519
1519
|
item: z == null ? void 0 : z.item,
|
|
@@ -1569,7 +1569,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1569
1569
|
ae(g, B({
|
|
1570
1570
|
label: H.label,
|
|
1571
1571
|
prop: z,
|
|
1572
|
-
rules:
|
|
1572
|
+
rules: Q(H),
|
|
1573
1573
|
ref_for: !0
|
|
1574
1574
|
}, { ...(Se = t.value) == null ? void 0 : Se.formItems, ...H == null ? void 0 : H.formItem }, { style: { width: "100%" } }), {
|
|
1575
1575
|
label: _((me) => [
|
|
@@ -1600,10 +1600,10 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1600
1600
|
t: "f",
|
|
1601
1601
|
formInfo: c.value
|
|
1602
1602
|
}, be({ _: 2 }, [
|
|
1603
|
-
G(S.$slots, (me,
|
|
1604
|
-
name:
|
|
1603
|
+
G(S.$slots, (me, Te) => ({
|
|
1604
|
+
name: Te,
|
|
1605
1605
|
fn: _((O) => [
|
|
1606
|
-
k(S.$slots,
|
|
1606
|
+
k(S.$slots, Te, {
|
|
1607
1607
|
data: O,
|
|
1608
1608
|
item: H,
|
|
1609
1609
|
model: t.value
|
|
@@ -1623,8 +1623,8 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1623
1623
|
]),
|
|
1624
1624
|
_: 3
|
|
1625
1625
|
}, 16, ["model"]),
|
|
1626
|
-
(le = (oe = (
|
|
1627
|
-
|
|
1626
|
+
(le = (oe = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : oe.footer) != null && le.hidden ? $e("", !0) : k(S.$slots, "f-footer", { key: 0 }, () => [
|
|
1627
|
+
X("div", {
|
|
1628
1628
|
style: Ve(t.value.form.footer.style)
|
|
1629
1629
|
}, [
|
|
1630
1630
|
k(S.$slots, "f-footer-left", {}, void 0, !0),
|
|
@@ -1633,7 +1633,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1633
1633
|
k(S.$slots, H.name, {}, () => {
|
|
1634
1634
|
var z;
|
|
1635
1635
|
return [
|
|
1636
|
-
(z = H == null ? void 0 : H.info) != null && z.hidden ? $e("", !0) : (p(), A(
|
|
1636
|
+
(z = H == null ? void 0 : H.info) != null && z.hidden ? $e("", !0) : (p(), A(M, B({
|
|
1637
1637
|
key: 0,
|
|
1638
1638
|
ref_for: !0
|
|
1639
1639
|
}, H.info, {
|
|
@@ -1654,7 +1654,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1654
1654
|
]);
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
|
-
}),
|
|
1657
|
+
}), xt = /* @__PURE__ */ at(Hl, [["__scopeId", "data-v-a28ff0af"]]), Bt = {
|
|
1658
1658
|
__name: "g-query-item",
|
|
1659
1659
|
props: /* @__PURE__ */ tt(["more"], {
|
|
1660
1660
|
modelValue: { required: !0 },
|
|
@@ -1711,9 +1711,9 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1711
1711
|
}, be({ _: 2 }, [
|
|
1712
1712
|
G(Object.keys(D.$slots), ($) => ({
|
|
1713
1713
|
name: $,
|
|
1714
|
-
fn: _((
|
|
1714
|
+
fn: _((Q) => [
|
|
1715
1715
|
k(D.$slots, $, {
|
|
1716
|
-
data:
|
|
1716
|
+
data: Q,
|
|
1717
1717
|
item: u,
|
|
1718
1718
|
model: s.value
|
|
1719
1719
|
})
|
|
@@ -1791,7 +1791,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
1793
|
};
|
|
1794
|
-
a.value.query =
|
|
1794
|
+
a.value.query = Fe(c, r == null ? void 0 : r.query, a.value.query);
|
|
1795
1795
|
const D = {
|
|
1796
1796
|
2: {
|
|
1797
1797
|
title: "更多查询",
|
|
@@ -1809,7 +1809,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1809
1809
|
trigger: "click"
|
|
1810
1810
|
}
|
|
1811
1811
|
};
|
|
1812
|
-
a.value.query.more.dialog =
|
|
1812
|
+
a.value.query.more.dialog = Fe(
|
|
1813
1813
|
D[a.value.query.more.mode] || {},
|
|
1814
1814
|
a.value.query.more.dialog
|
|
1815
1815
|
);
|
|
@@ -1822,7 +1822,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1822
1822
|
// width: "280px"
|
|
1823
1823
|
}
|
|
1824
1824
|
};
|
|
1825
|
-
a.value.queryItems =
|
|
1825
|
+
a.value.queryItems = Fe(f, r == null ? void 0 : r.queryItems, a.value.queryItems);
|
|
1826
1826
|
const v = (Y, L) => {
|
|
1827
1827
|
const V = Object.keys(Y.slots).filter((se) => se !== "default").reduce((se, ce) => (se[ce] = (pe) => Y.slots[ce]({
|
|
1828
1828
|
model: a.value
|
|
@@ -1836,7 +1836,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1836
1836
|
more: L
|
|
1837
1837
|
}, V);
|
|
1838
1838
|
}, u = Yt(), d = () => {
|
|
1839
|
-
var V, se, ce, pe, fe, ie, ge,
|
|
1839
|
+
var V, se, ce, pe, fe, ie, ge, Me, De;
|
|
1840
1840
|
const Y = [
|
|
1841
1841
|
{
|
|
1842
1842
|
key: "query",
|
|
@@ -1862,7 +1862,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1862
1862
|
},
|
|
1863
1863
|
{
|
|
1864
1864
|
key: "more",
|
|
1865
|
-
hidden: (De = (
|
|
1865
|
+
hidden: (De = (Me = (ge = a.value) == null ? void 0 : ge.query) == null ? void 0 : Me.more) == null ? void 0 : De.hidden,
|
|
1866
1866
|
component: a.value.query.more.mode === 3 ? Ct : Ae,
|
|
1867
1867
|
props: a.value.query.more.mode === 3 ? { ...a.value.query.more.dialog } : {
|
|
1868
1868
|
...a.value.query.more,
|
|
@@ -1883,31 +1883,31 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1883
1883
|
}, $ = nt(() => ({
|
|
1884
1884
|
diplay: "flex",
|
|
1885
1885
|
flexDirection: a.value.query.container.mode === "row" ? "row" : "column"
|
|
1886
|
-
})),
|
|
1886
|
+
})), Q = () => {
|
|
1887
1887
|
alert("查询设置,正在开发中......");
|
|
1888
1888
|
};
|
|
1889
1889
|
return (Y, L) => {
|
|
1890
|
-
var ce, pe, fe, ie, ge,
|
|
1890
|
+
var ce, pe, fe, ie, ge, Me, De, K, ee, Le, S, w, g, i, F, E, q;
|
|
1891
1891
|
const V = P("el-form-item"), se = P("el-drawer");
|
|
1892
1892
|
return p(), U(te, null, [
|
|
1893
|
-
|
|
1893
|
+
X("div", {
|
|
1894
1894
|
class: "g-query-container",
|
|
1895
1895
|
style: Ve({ ...$.value, ...((pe = (ce = a.value.query) == null ? void 0 : ce.container) == null ? void 0 : pe.style) || {} }),
|
|
1896
|
-
onDblclick:
|
|
1896
|
+
onDblclick: Q
|
|
1897
1897
|
}, [
|
|
1898
1898
|
ae(N(gt), B({
|
|
1899
1899
|
onSubmit: L[0] || (L[0] = wt(() => {
|
|
1900
1900
|
}, ["prevent"]))
|
|
1901
|
-
}, N(je)(a.value.query, (
|
|
1901
|
+
}, N(je)(a.value.query, (M) => !["query", "more", "reset", "btns"].includes(M))), {
|
|
1902
1902
|
default: _(() => {
|
|
1903
|
-
var
|
|
1903
|
+
var M, Z;
|
|
1904
1904
|
return [
|
|
1905
1905
|
(p(), A(Ke(v({ slots: Y.$slots }, void 0)))),
|
|
1906
|
-
((
|
|
1906
|
+
((Z = (M = a.value.query) == null ? void 0 : M.container) == null ? void 0 : Z.inline) === !0 ? (p(), A(V, { key: 0 }, {
|
|
1907
1907
|
default: _(() => {
|
|
1908
1908
|
var oe, le, H, z, Se;
|
|
1909
1909
|
return [
|
|
1910
|
-
|
|
1910
|
+
X("div", {
|
|
1911
1911
|
style: Ve((le = (oe = a.value.query) == null ? void 0 : oe.btns) == null ? void 0 : le.style)
|
|
1912
1912
|
}, [
|
|
1913
1913
|
a.value.query.group ? (p(), A(N(bt), { key: 0 }, {
|
|
@@ -1942,12 +1942,12 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1942
1942
|
}, 16),
|
|
1943
1943
|
((ge = (ie = (fe = a.value) == null ? void 0 : fe.query) == null ? void 0 : ie.container) == null ? void 0 : ge.inline) === !1 ? (p(), U("div", {
|
|
1944
1944
|
key: 0,
|
|
1945
|
-
style: Ve((De = (
|
|
1945
|
+
style: Ve((De = (Me = a.value.query) == null ? void 0 : Me.btns) == null ? void 0 : De.style)
|
|
1946
1946
|
}, [
|
|
1947
1947
|
a.value.query.group ? (p(), A(N(bt), { key: 0 }, {
|
|
1948
1948
|
default: _(() => [
|
|
1949
|
-
(p(!0), U(te, null, G(d(), (
|
|
1950
|
-
(p(), A(Ke(
|
|
1949
|
+
(p(!0), U(te, null, G(d(), (M) => k(Y.$slots, M.props.slot, {}, () => [
|
|
1950
|
+
(p(), A(Ke(M)))
|
|
1951
1951
|
], !0)), 256)),
|
|
1952
1952
|
k(Y.$slots, "q-btns", {}, void 0, !0)
|
|
1953
1953
|
]),
|
|
@@ -1955,13 +1955,13 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1955
1955
|
})) : (p(), U(te, { key: 1 }, [
|
|
1956
1956
|
(ee = (K = a.value.query) == null ? void 0 : K.btns) != null && ee.group ? (p(), A(N(bt), { key: 0 }, {
|
|
1957
1957
|
default: _(() => [
|
|
1958
|
-
(p(!0), U(te, null, G(d(), (
|
|
1959
|
-
(p(), A(Ke(
|
|
1958
|
+
(p(!0), U(te, null, G(d(), (M) => k(Y.$slots, M.props.slot, {}, () => [
|
|
1959
|
+
(p(), A(Ke(M)))
|
|
1960
1960
|
], !0)), 256))
|
|
1961
1961
|
]),
|
|
1962
1962
|
_: 3
|
|
1963
|
-
})) : (p(!0), U(te, { key: 1 }, G(d(), (
|
|
1964
|
-
(p(), A(Ke(
|
|
1963
|
+
})) : (p(!0), U(te, { key: 1 }, G(d(), (M) => k(Y.$slots, M.props.slot, {}, () => [
|
|
1964
|
+
(p(), A(Ke(M)))
|
|
1965
1965
|
], !0)), 256)),
|
|
1966
1966
|
k(Y.$slots, "q-btns", {}, void 0, !0)
|
|
1967
1967
|
], 64))
|
|
@@ -1970,7 +1970,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1970
1970
|
e.value && !((w = (S = (Le = a.value) == null ? void 0 : Le.query) == null ? void 0 : S.more) != null && w.hidden) && a.value.query.more.mode == 2 ? (p(), A(se, B({
|
|
1971
1971
|
key: 0,
|
|
1972
1972
|
modelValue: e.value,
|
|
1973
|
-
"onUpdate:modelValue": L[6] || (L[6] = (
|
|
1973
|
+
"onUpdate:modelValue": L[6] || (L[6] = (M) => e.value = M),
|
|
1974
1974
|
title: "更多查询",
|
|
1975
1975
|
"show-close": !1
|
|
1976
1976
|
}, a.value.query.more.dialog), be({
|
|
@@ -1978,19 +1978,19 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1978
1978
|
ae(N(gt), B({
|
|
1979
1979
|
onSubmit: L[3] || (L[3] = wt(() => {
|
|
1980
1980
|
}, ["prevent"]))
|
|
1981
|
-
}, N(je)(a.value.query, (
|
|
1981
|
+
}, N(je)(a.value.query, (M) => !["query", "more", "reset"].includes(M)), { style: { width: "98%" } }), {
|
|
1982
1982
|
default: _(() => [
|
|
1983
1983
|
ae(Bt, {
|
|
1984
1984
|
modelValue: a.value,
|
|
1985
|
-
"onUpdate:modelValue": L[1] || (L[1] = (
|
|
1985
|
+
"onUpdate:modelValue": L[1] || (L[1] = (M) => a.value = M),
|
|
1986
1986
|
info: h.value,
|
|
1987
|
-
"onUpdate:info": L[2] || (L[2] = (
|
|
1987
|
+
"onUpdate:info": L[2] || (L[2] = (M) => h.value = M),
|
|
1988
1988
|
more: !0
|
|
1989
1989
|
}, be({ _: 2 }, [
|
|
1990
|
-
G(Y.$slots, (
|
|
1991
|
-
name:
|
|
1990
|
+
G(Y.$slots, (M, Z, oe) => ({
|
|
1991
|
+
name: Z,
|
|
1992
1992
|
fn: _((le) => [
|
|
1993
|
-
k(Y.$slots,
|
|
1993
|
+
k(Y.$slots, Z, { model: a.value }, void 0, !0)
|
|
1994
1994
|
])
|
|
1995
1995
|
}))
|
|
1996
1996
|
]), 1032, ["modelValue", "info"])
|
|
@@ -2000,12 +2000,12 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2000
2000
|
]),
|
|
2001
2001
|
_: 2
|
|
2002
2002
|
}, [
|
|
2003
|
-
(q = (E = (
|
|
2003
|
+
(q = (E = (F = (i = (g = a.value) == null ? void 0 : g.query) == null ? void 0 : i.more) == null ? void 0 : F.dialog) == null ? void 0 : E.footer) != null && q.hidden ? void 0 : {
|
|
2004
2004
|
name: "footer",
|
|
2005
2005
|
fn: _(() => [
|
|
2006
|
-
|
|
2006
|
+
X("div", St(ol(a.value.query.more.dialog.footer)), [
|
|
2007
2007
|
ae(N(Ae), B(a.value.query.query, {
|
|
2008
|
-
onClick: L[4] || (L[4] = (
|
|
2008
|
+
onClick: L[4] || (L[4] = (M) => a.value.query.query.click())
|
|
2009
2009
|
}), {
|
|
2010
2010
|
default: _(() => [
|
|
2011
2011
|
Re(_e(a.value.query.query.label), 1)
|
|
@@ -2013,7 +2013,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2013
2013
|
_: 1
|
|
2014
2014
|
}, 16),
|
|
2015
2015
|
ae(N(Ae), B(a.value.query.reset, {
|
|
2016
|
-
onClick: L[5] || (L[5] = (
|
|
2016
|
+
onClick: L[5] || (L[5] = (M) => a.value.query.reset.click())
|
|
2017
2017
|
}), {
|
|
2018
2018
|
default: _(() => [
|
|
2019
2019
|
Re(_e(a.value.query.reset.label), 1)
|
|
@@ -2031,10 +2031,10 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2031
2031
|
style: { padding: "10px" }
|
|
2032
2032
|
}, {
|
|
2033
2033
|
default: _(() => {
|
|
2034
|
-
var
|
|
2034
|
+
var M, Z, oe;
|
|
2035
2035
|
return [
|
|
2036
|
-
e.value && !((oe = (
|
|
2037
|
-
|
|
2036
|
+
e.value && !((oe = (Z = (M = a.value) == null ? void 0 : M.query) == null ? void 0 : Z.more) != null && oe.hidden) && a.value.query.more.mode == 1 ? (p(), U("div", zl, [
|
|
2037
|
+
X("div", Pl, [
|
|
2038
2038
|
a.value.query.more.mode == 1 ? ul((p(), A(N(gt), B({
|
|
2039
2039
|
key: 0,
|
|
2040
2040
|
onSubmit: L[7] || (L[7] = wt(() => {
|
|
@@ -2056,10 +2056,10 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2056
2056
|
], 64);
|
|
2057
2057
|
};
|
|
2058
2058
|
}
|
|
2059
|
-
}, Nl = /* @__PURE__ */ at(jl, [["__scopeId", "data-v-fbc339ad"]]), Wl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Gl = { style: { padding: "10px", "box-sizing": "border-box" } }, Xl = { style: { margin: "10px" } },
|
|
2059
|
+
}, Nl = /* @__PURE__ */ at(jl, [["__scopeId", "data-v-fbc339ad"]]), Wl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Gl = { style: { padding: "0 10px 10px 10px", "box-sizing": "border-box" } }, Xl = { style: { display: "flex", flex: "1" } }, Ql = { style: { margin: "10px", display: "flex", flex: "1" } }, Zl = {
|
|
2060
2060
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2061
2061
|
id: "excelSortEl"
|
|
2062
|
-
},
|
|
2062
|
+
}, Jl = ["textContent"], Kl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ea = {
|
|
2063
2063
|
__name: "check-excel-item",
|
|
2064
2064
|
props: {
|
|
2065
2065
|
items: Array,
|
|
@@ -2102,52 +2102,54 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2102
2102
|
}), (D, f) => {
|
|
2103
2103
|
const v = P("el-divider"), u = P("el-alert"), d = P("el-checkbox"), $ = P("el-button");
|
|
2104
2104
|
return p(), U("div", Wl, [
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2105
|
+
X("div", Gl, [
|
|
2106
|
+
X("div", Xl, [
|
|
2107
|
+
X("div", Ql, [
|
|
2108
|
+
X("a", {
|
|
2109
|
+
onClick: e,
|
|
2110
|
+
style: { cursor: "pointer" }
|
|
2111
|
+
}, "全选"),
|
|
2112
|
+
ae(v, { direction: "vertical" }),
|
|
2113
|
+
X("a", {
|
|
2114
|
+
onClick: h,
|
|
2115
|
+
style: { cursor: "pointer" }
|
|
2116
|
+
}, "全不选")
|
|
2117
|
+
]),
|
|
2118
|
+
ae(u, {
|
|
2119
|
+
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2120
|
+
type: "warning",
|
|
2121
|
+
"show-icon": "",
|
|
2122
|
+
closable: !1,
|
|
2123
|
+
style: { "margin-bottom": "10px", width: "310px" }
|
|
2124
|
+
})
|
|
2116
2125
|
]),
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
"show-icon": "",
|
|
2121
|
-
closable: !1,
|
|
2122
|
-
style: { "margin-bottom": "10px" }
|
|
2123
|
-
}),
|
|
2124
|
-
f[0] || (f[0] = J("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2125
|
-
J("div", Ql, [
|
|
2126
|
-
(p(!0), U(te, null, G(r.value, (X) => (p(), A(d, {
|
|
2126
|
+
f[0] || (f[0] = X("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2127
|
+
X("div", Zl, [
|
|
2128
|
+
(p(!0), U(te, null, G(r.value, (Q) => (p(), A(d, {
|
|
2127
2129
|
class: "check-box-hover",
|
|
2128
2130
|
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" },
|
|
2129
|
-
"data-id":
|
|
2130
|
-
modelValue:
|
|
2131
|
-
"onUpdate:modelValue": (Y) =>
|
|
2132
|
-
key:
|
|
2133
|
-
title:
|
|
2131
|
+
"data-id": Q.key,
|
|
2132
|
+
modelValue: Q.value,
|
|
2133
|
+
"onUpdate:modelValue": (Y) => Q.value = Y,
|
|
2134
|
+
key: Q.key,
|
|
2135
|
+
title: Q.label
|
|
2134
2136
|
}, {
|
|
2135
2137
|
default: _(() => [
|
|
2136
|
-
|
|
2137
|
-
textContent: _e(
|
|
2138
|
+
X("span", {
|
|
2139
|
+
textContent: _e(Q.label),
|
|
2138
2140
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2139
|
-
}, null, 8,
|
|
2141
|
+
}, null, 8, Jl)
|
|
2140
2142
|
]),
|
|
2141
2143
|
_: 2
|
|
2142
2144
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2143
2145
|
])
|
|
2144
2146
|
]),
|
|
2145
|
-
|
|
2147
|
+
X("div", Kl, [
|
|
2146
2148
|
ae($, {
|
|
2147
2149
|
type: "primary",
|
|
2148
2150
|
onClick: c,
|
|
2149
2151
|
icon: N(Pt),
|
|
2150
|
-
disabled: r.value.filter((
|
|
2152
|
+
disabled: r.value.filter((Q) => Q.value).length < 1
|
|
2151
2153
|
}, {
|
|
2152
2154
|
default: _(() => [
|
|
2153
2155
|
Re(_e(a.commitText), 1)
|
|
@@ -2158,8 +2160,8 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2158
2160
|
]);
|
|
2159
2161
|
};
|
|
2160
2162
|
}
|
|
2161
|
-
},
|
|
2162
|
-
ve.version(
|
|
2163
|
+
}, ta = /* @__PURE__ */ at(ea, [["__scopeId", "data-v-369de205"]]), la = "vue-gyc-ui", aa = 1, ve = new Dl(la);
|
|
2164
|
+
ve.version(aa).stores({
|
|
2163
2165
|
// 记录表格项设置信息
|
|
2164
2166
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2165
2167
|
// 记录表格分页条数
|
|
@@ -2181,7 +2183,7 @@ async function $t(n, s, a) {
|
|
|
2181
2183
|
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${s}, state: ${a}):`, t), t;
|
|
2182
2184
|
}
|
|
2183
2185
|
}
|
|
2184
|
-
async function
|
|
2186
|
+
async function ra(n, s, a) {
|
|
2185
2187
|
ut(n);
|
|
2186
2188
|
try {
|
|
2187
2189
|
const t = await ve.tableWidths.where({ page: n, key: s }).first();
|
|
@@ -2190,7 +2192,7 @@ async function aa(n, s, a) {
|
|
|
2190
2192
|
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${s}):`, t), t;
|
|
2191
2193
|
}
|
|
2192
2194
|
}
|
|
2193
|
-
async function
|
|
2195
|
+
async function oa(n) {
|
|
2194
2196
|
ut(n);
|
|
2195
2197
|
try {
|
|
2196
2198
|
return await ve.tableWidths.where({ page: n }).toArray();
|
|
@@ -2198,7 +2200,7 @@ async function ra(n) {
|
|
|
2198
2200
|
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, s), s;
|
|
2199
2201
|
}
|
|
2200
2202
|
}
|
|
2201
|
-
async function
|
|
2203
|
+
async function na(n) {
|
|
2202
2204
|
ut(n);
|
|
2203
2205
|
try {
|
|
2204
2206
|
const s = await ve.tableColsState.where({ page: n }).toArray();
|
|
@@ -2207,7 +2209,7 @@ async function oa(n) {
|
|
|
2207
2209
|
throw console.error(`获取表格列状态时出错 (page: ${n}):`, s), s;
|
|
2208
2210
|
}
|
|
2209
2211
|
}
|
|
2210
|
-
async function
|
|
2212
|
+
async function ua(n) {
|
|
2211
2213
|
ut(n);
|
|
2212
2214
|
try {
|
|
2213
2215
|
return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
|
|
@@ -2222,7 +2224,7 @@ async function na(n) {
|
|
|
2222
2224
|
throw console.error(`删除页面"${n}"的表格设置信息时出错:`, s), s;
|
|
2223
2225
|
}
|
|
2224
2226
|
}
|
|
2225
|
-
async function
|
|
2227
|
+
async function sa({ page: n, size: s }) {
|
|
2226
2228
|
ut(n);
|
|
2227
2229
|
try {
|
|
2228
2230
|
const a = await ve.pageInfo.where({ page: n }).first();
|
|
@@ -2231,7 +2233,7 @@ async function ua({ page: n, size: s }) {
|
|
|
2231
2233
|
throw console.error(`保存分页条数时出错 (page: ${n}):`, a), a;
|
|
2232
2234
|
}
|
|
2233
2235
|
}
|
|
2234
|
-
async function
|
|
2236
|
+
async function ia(n) {
|
|
2235
2237
|
ut(n);
|
|
2236
2238
|
try {
|
|
2237
2239
|
const s = await ve.pageInfo.where({ page: n }).first();
|
|
@@ -2240,7 +2242,7 @@ async function sa(n) {
|
|
|
2240
2242
|
throw console.error(`获取分页条数时出错 (page: ${n}):`, s), s;
|
|
2241
2243
|
}
|
|
2242
2244
|
}
|
|
2243
|
-
async function
|
|
2245
|
+
async function da(n, s) {
|
|
2244
2246
|
ut(n);
|
|
2245
2247
|
try {
|
|
2246
2248
|
const a = await ve.sorts.where({ page: n }).first();
|
|
@@ -2249,7 +2251,7 @@ async function ia(n, s) {
|
|
|
2249
2251
|
throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, a), a;
|
|
2250
2252
|
}
|
|
2251
2253
|
}
|
|
2252
|
-
async function
|
|
2254
|
+
async function ca(n) {
|
|
2253
2255
|
ut(n);
|
|
2254
2256
|
try {
|
|
2255
2257
|
const s = await ve.sorts.where({ page: n }).first();
|
|
@@ -2258,13 +2260,13 @@ async function da(n) {
|
|
|
2258
2260
|
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, s), s;
|
|
2259
2261
|
}
|
|
2260
2262
|
}
|
|
2261
|
-
const
|
|
2262
|
-
style: {
|
|
2263
|
+
const fa = { style: { display: "flex" } }, va = {
|
|
2264
|
+
style: { display: "flex", flex: "1", "align-items": "center", padding: "0 10px 10px 10px" },
|
|
2263
2265
|
class: "allcheck"
|
|
2264
|
-
},
|
|
2266
|
+
}, pa = {
|
|
2265
2267
|
id: "cols",
|
|
2266
2268
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2267
|
-
},
|
|
2269
|
+
}, ma = ["textContent"], ha = {
|
|
2268
2270
|
__name: "columns-setting",
|
|
2269
2271
|
props: /* @__PURE__ */ tt({
|
|
2270
2272
|
tuid: {
|
|
@@ -2289,11 +2291,11 @@ const ca = {
|
|
|
2289
2291
|
onEnd: async () => {
|
|
2290
2292
|
let $ = d.toArray();
|
|
2291
2293
|
try {
|
|
2292
|
-
|
|
2294
|
+
da(a.tuid, $).then((Q) => {
|
|
2293
2295
|
t("setting-drag-end");
|
|
2294
2296
|
});
|
|
2295
|
-
} catch (
|
|
2296
|
-
console.error("列排序保存信息时出错:",
|
|
2297
|
+
} catch (Q) {
|
|
2298
|
+
console.error("列排序保存信息时出错:", Q), et({
|
|
2297
2299
|
type: "error",
|
|
2298
2300
|
message: "列排序保存信息失败!"
|
|
2299
2301
|
});
|
|
@@ -2334,7 +2336,7 @@ const ca = {
|
|
|
2334
2336
|
cancelButtonText: "取消",
|
|
2335
2337
|
type: "warning"
|
|
2336
2338
|
}).then(() => {
|
|
2337
|
-
|
|
2339
|
+
ua(a.tuid).then((u) => {
|
|
2338
2340
|
window.location.reload();
|
|
2339
2341
|
}).catch((u) => {
|
|
2340
2342
|
console.error("复位操作出错:", u), et({
|
|
@@ -2354,24 +2356,26 @@ const ca = {
|
|
|
2354
2356
|
width: d == null ? void 0 : d.width
|
|
2355
2357
|
})).sort((u, d) => u.sort - d.sort), c();
|
|
2356
2358
|
}), (u, d) => {
|
|
2357
|
-
const $ = P("el-divider"),
|
|
2359
|
+
const $ = P("el-divider"), Q = P("el-alert"), Y = P("el-checkbox");
|
|
2358
2360
|
return p(), U("div", null, [
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2361
|
+
X("div", fa, [
|
|
2362
|
+
X("div", va, [
|
|
2363
|
+
X("a", { onClick: D }, "全选"),
|
|
2364
|
+
ae($, { direction: "vertical" }),
|
|
2365
|
+
X("a", { onClick: f }, "全不选"),
|
|
2366
|
+
ae($, { direction: "vertical" }),
|
|
2367
|
+
X("a", { onClick: v }, "复位")
|
|
2368
|
+
]),
|
|
2369
|
+
ae(Q, {
|
|
2370
|
+
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
2371
|
+
type: "warning",
|
|
2372
|
+
"show-icon": "",
|
|
2373
|
+
closable: !1,
|
|
2374
|
+
style: { "margin-bottom": "10px", width: "320px" }
|
|
2375
|
+
})
|
|
2365
2376
|
]),
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
type: "warning",
|
|
2369
|
-
"show-icon": "",
|
|
2370
|
-
closable: !1,
|
|
2371
|
-
style: { "margin-bottom": "10px" }
|
|
2372
|
-
}),
|
|
2373
|
-
J("div", null, [
|
|
2374
|
-
J("div", fa, [
|
|
2377
|
+
X("div", null, [
|
|
2378
|
+
X("div", pa, [
|
|
2375
2379
|
(p(!0), U(te, null, G(r.value, (L) => (p(), A(Y, {
|
|
2376
2380
|
modelValue: L.showCol,
|
|
2377
2381
|
"onUpdate:modelValue": (V) => L.showCol = V,
|
|
@@ -2385,10 +2389,10 @@ const ca = {
|
|
|
2385
2389
|
key: L.value
|
|
2386
2390
|
}, {
|
|
2387
2391
|
default: _(() => [
|
|
2388
|
-
|
|
2392
|
+
X("span", {
|
|
2389
2393
|
textContent: _e(L.label),
|
|
2390
2394
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2391
|
-
}, null, 8,
|
|
2395
|
+
}, null, 8, ma)
|
|
2392
2396
|
]),
|
|
2393
2397
|
_: 2
|
|
2394
2398
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2397,7 +2401,7 @@ const ca = {
|
|
|
2397
2401
|
]);
|
|
2398
2402
|
};
|
|
2399
2403
|
}
|
|
2400
|
-
},
|
|
2404
|
+
}, ya = /* @__PURE__ */ at(ha, [["__scopeId", "data-v-74611d30"]]), ga = { class: "title" }, ba = { class: "content" }, $a = {
|
|
2401
2405
|
__name: "g-cell-toopTip",
|
|
2402
2406
|
props: {
|
|
2403
2407
|
content: {
|
|
@@ -2417,9 +2421,9 @@ const ca = {
|
|
|
2417
2421
|
class: "g-cell-toopTip",
|
|
2418
2422
|
style: Ve({ width: s.column.width + "px" })
|
|
2419
2423
|
}, [
|
|
2420
|
-
|
|
2421
|
-
r[0] || (r[0] =
|
|
2422
|
-
|
|
2424
|
+
X("div", ga, [
|
|
2425
|
+
r[0] || (r[0] = X("span", { class: "title-text" }, "内容", -1)),
|
|
2426
|
+
X("span", {
|
|
2423
2427
|
class: "copy-btn",
|
|
2424
2428
|
onClick: a,
|
|
2425
2429
|
title: "复制内容"
|
|
@@ -2427,10 +2431,10 @@ const ca = {
|
|
|
2427
2431
|
ae(N(bl))
|
|
2428
2432
|
])
|
|
2429
2433
|
]),
|
|
2430
|
-
|
|
2434
|
+
X("div", ba, _e(s.content), 1)
|
|
2431
2435
|
], 4));
|
|
2432
2436
|
}
|
|
2433
|
-
},
|
|
2437
|
+
}, wa = /* @__PURE__ */ at($a, [["__scopeId", "data-v-f28912da"]]);
|
|
2434
2438
|
var Xt = { exports: {} }, Qt = { exports: {} };
|
|
2435
2439
|
(function() {
|
|
2436
2440
|
var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
|
|
@@ -2497,16 +2501,16 @@ var Xt = { exports: {} }, Qt = { exports: {} };
|
|
|
2497
2501
|
};
|
|
2498
2502
|
Qt.exports = s;
|
|
2499
2503
|
})();
|
|
2500
|
-
var
|
|
2504
|
+
var Ea = Qt.exports, Mt = {
|
|
2501
2505
|
// UTF-8 encoding
|
|
2502
2506
|
utf8: {
|
|
2503
2507
|
// Convert a string to a byte array
|
|
2504
2508
|
stringToBytes: function(n) {
|
|
2505
|
-
return
|
|
2509
|
+
return Mt.bin.stringToBytes(unescape(encodeURIComponent(n)));
|
|
2506
2510
|
},
|
|
2507
2511
|
// Convert a byte array to a string
|
|
2508
2512
|
bytesToString: function(n) {
|
|
2509
|
-
return decodeURIComponent(escape(
|
|
2513
|
+
return decodeURIComponent(escape(Mt.bin.bytesToString(n)));
|
|
2510
2514
|
}
|
|
2511
2515
|
},
|
|
2512
2516
|
// Binary encoding
|
|
@@ -2524,31 +2528,31 @@ var $a = Qt.exports, Tt = {
|
|
|
2524
2528
|
return s.join("");
|
|
2525
2529
|
}
|
|
2526
2530
|
}
|
|
2527
|
-
}, Ot =
|
|
2531
|
+
}, Ot = Mt;
|
|
2528
2532
|
/*!
|
|
2529
2533
|
* Determine if an object is a Buffer
|
|
2530
2534
|
*
|
|
2531
2535
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2532
2536
|
* @license MIT
|
|
2533
2537
|
*/
|
|
2534
|
-
var
|
|
2535
|
-
return n != null && (Zt(n) ||
|
|
2538
|
+
var _a = function(n) {
|
|
2539
|
+
return n != null && (Zt(n) || ka(n) || !!n._isBuffer);
|
|
2536
2540
|
};
|
|
2537
2541
|
function Zt(n) {
|
|
2538
2542
|
return !!n.constructor && typeof n.constructor.isBuffer == "function" && n.constructor.isBuffer(n);
|
|
2539
2543
|
}
|
|
2540
|
-
function
|
|
2544
|
+
function ka(n) {
|
|
2541
2545
|
return typeof n.readFloatLE == "function" && typeof n.slice == "function" && Zt(n.slice(0, 0));
|
|
2542
2546
|
}
|
|
2543
2547
|
(function() {
|
|
2544
|
-
var n =
|
|
2548
|
+
var n = Ea, s = Ot.utf8, a = _a, t = Ot.bin, r = function(e, h) {
|
|
2545
2549
|
e.constructor == String ? h && h.encoding === "binary" ? e = t.stringToBytes(e) : e = s.stringToBytes(e) : a(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
|
|
2546
2550
|
for (var c = n.bytesToWords(e), D = e.length * 8, f = 1732584193, v = -271733879, u = -1732584194, d = 271733878, $ = 0; $ < c.length; $++)
|
|
2547
2551
|
c[$] = (c[$] << 8 | c[$] >>> 24) & 16711935 | (c[$] << 24 | c[$] >>> 8) & 4278255360;
|
|
2548
2552
|
c[D >>> 5] |= 128 << D % 32, c[(D + 64 >>> 9 << 4) + 14] = D;
|
|
2549
|
-
for (var
|
|
2553
|
+
for (var Q = r._ff, Y = r._gg, L = r._hh, V = r._ii, $ = 0; $ < c.length; $ += 16) {
|
|
2550
2554
|
var se = f, ce = v, pe = u, fe = d;
|
|
2551
|
-
f =
|
|
2555
|
+
f = Q(f, v, u, d, c[$ + 0], 7, -680876936), d = Q(d, f, v, u, c[$ + 1], 12, -389564586), u = Q(u, d, f, v, c[$ + 2], 17, 606105819), v = Q(v, u, d, f, c[$ + 3], 22, -1044525330), f = Q(f, v, u, d, c[$ + 4], 7, -176418897), d = Q(d, f, v, u, c[$ + 5], 12, 1200080426), u = Q(u, d, f, v, c[$ + 6], 17, -1473231341), v = Q(v, u, d, f, c[$ + 7], 22, -45705983), f = Q(f, v, u, d, c[$ + 8], 7, 1770035416), d = Q(d, f, v, u, c[$ + 9], 12, -1958414417), u = Q(u, d, f, v, c[$ + 10], 17, -42063), v = Q(v, u, d, f, c[$ + 11], 22, -1990404162), f = Q(f, v, u, d, c[$ + 12], 7, 1804603682), d = Q(d, f, v, u, c[$ + 13], 12, -40341101), u = Q(u, d, f, v, c[$ + 14], 17, -1502002290), v = Q(v, u, d, f, c[$ + 15], 22, 1236535329), f = Y(f, v, u, d, c[$ + 1], 5, -165796510), d = Y(d, f, v, u, c[$ + 6], 9, -1069501632), u = Y(u, d, f, v, c[$ + 11], 14, 643717713), v = Y(v, u, d, f, c[$ + 0], 20, -373897302), f = Y(f, v, u, d, c[$ + 5], 5, -701558691), d = Y(d, f, v, u, c[$ + 10], 9, 38016083), u = Y(u, d, f, v, c[$ + 15], 14, -660478335), v = Y(v, u, d, f, c[$ + 4], 20, -405537848), f = Y(f, v, u, d, c[$ + 9], 5, 568446438), d = Y(d, f, v, u, c[$ + 14], 9, -1019803690), u = Y(u, d, f, v, c[$ + 3], 14, -187363961), v = Y(v, u, d, f, c[$ + 8], 20, 1163531501), f = Y(f, v, u, d, c[$ + 13], 5, -1444681467), d = Y(d, f, v, u, c[$ + 2], 9, -51403784), u = Y(u, d, f, v, c[$ + 7], 14, 1735328473), v = Y(v, u, d, f, c[$ + 12], 20, -1926607734), f = L(f, v, u, d, c[$ + 5], 4, -378558), d = L(d, f, v, u, c[$ + 8], 11, -2022574463), u = L(u, d, f, v, c[$ + 11], 16, 1839030562), v = L(v, u, d, f, c[$ + 14], 23, -35309556), f = L(f, v, u, d, c[$ + 1], 4, -1530992060), d = L(d, f, v, u, c[$ + 4], 11, 1272893353), u = L(u, d, f, v, c[$ + 7], 16, -155497632), v = L(v, u, d, f, c[$ + 10], 23, -1094730640), f = L(f, v, u, d, c[$ + 13], 4, 681279174), d = L(d, f, v, u, c[$ + 0], 11, -358537222), u = L(u, d, f, v, c[$ + 3], 16, -722521979), v = L(v, u, d, f, c[$ + 6], 23, 76029189), f = L(f, v, u, d, c[$ + 9], 4, -640364487), d = L(d, f, v, u, c[$ + 12], 11, -421815835), u = L(u, d, f, v, c[$ + 15], 16, 530742520), v = L(v, u, d, f, c[$ + 2], 23, -995338651), f = V(f, v, u, d, c[$ + 0], 6, -198630844), d = V(d, f, v, u, c[$ + 7], 10, 1126891415), u = V(u, d, f, v, c[$ + 14], 15, -1416354905), v = V(v, u, d, f, c[$ + 5], 21, -57434055), f = V(f, v, u, d, c[$ + 12], 6, 1700485571), d = V(d, f, v, u, c[$ + 3], 10, -1894986606), u = V(u, d, f, v, c[$ + 10], 15, -1051523), v = V(v, u, d, f, c[$ + 1], 21, -2054922799), f = V(f, v, u, d, c[$ + 8], 6, 1873313359), d = V(d, f, v, u, c[$ + 15], 10, -30611744), u = V(u, d, f, v, c[$ + 6], 15, -1560198380), v = V(v, u, d, f, c[$ + 13], 21, 1309151649), f = V(f, v, u, d, c[$ + 4], 6, -145523070), d = V(d, f, v, u, c[$ + 11], 10, -1120210379), u = V(u, d, f, v, c[$ + 2], 15, 718787259), v = V(v, u, d, f, c[$ + 9], 21, -343485551), f = f + se >>> 0, v = v + ce >>> 0, u = u + pe >>> 0, d = d + fe >>> 0;
|
|
2552
2556
|
}
|
|
2553
2557
|
return n.endian([f, v, u, d]);
|
|
2554
2558
|
};
|
|
@@ -2571,14 +2575,14 @@ function Ea(n) {
|
|
|
2571
2575
|
return h && h.asBytes ? c : h && h.asString ? t.bytesToString(c) : n.bytesToHex(c);
|
|
2572
2576
|
};
|
|
2573
2577
|
})();
|
|
2574
|
-
var
|
|
2575
|
-
const
|
|
2578
|
+
var Ca = Xt.exports;
|
|
2579
|
+
const Da = /* @__PURE__ */ Nt(Ca), Sa = { key: 0 }, xa = { style: { display: "flex", "margin-top": "-2px" } }, Ma = { style: { display: "flex", flex: "1" } }, Ta = { class: "el-dialog__title" }, Fa = {
|
|
2576
2580
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2577
2581
|
id: "table-form"
|
|
2578
|
-
},
|
|
2582
|
+
}, Va = { key: 1 }, qa = { style: { display: "flex" } }, Aa = { style: { display: "flex", flex: "1" } }, Ba = { class: "el-dialog__title" }, Oa = { class: "g-table-container" }, Ia = {
|
|
2579
2583
|
key: 0,
|
|
2580
2584
|
class: "table-query-container"
|
|
2581
|
-
},
|
|
2585
|
+
}, Ua = { class: "table-container" }, Ya = ["innerHTML"], Ra = /* @__PURE__ */ Object.assign({
|
|
2582
2586
|
name: "g-table",
|
|
2583
2587
|
inheritAttrs: !1
|
|
2584
2588
|
}, {
|
|
@@ -2629,7 +2633,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2629
2633
|
"filter-multiple",
|
|
2630
2634
|
"filter-method",
|
|
2631
2635
|
"filtered-value"
|
|
2632
|
-
], $ = re([]),
|
|
2636
|
+
], $ = re([]), Q = At(), Y = re({}), L = re([]), V = re(null), se = re(""), ce = re("/"), pe = re({
|
|
2633
2637
|
autoWatch: !1,
|
|
2634
2638
|
data: [],
|
|
2635
2639
|
border: !0,
|
|
@@ -2638,13 +2642,13 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2638
2642
|
fit: !1,
|
|
2639
2643
|
type: "hidden",
|
|
2640
2644
|
load: async () => {
|
|
2641
|
-
e.value.table.page.pageSize = await
|
|
2645
|
+
e.value.table.page.pageSize = await ia(ce.value);
|
|
2642
2646
|
let { currentPage: l, pageSize: o } = e.value.table.page;
|
|
2643
2647
|
try {
|
|
2644
2648
|
r(
|
|
2645
2649
|
"load",
|
|
2646
2650
|
{ currentPage: l, pageSize: o, ...c.value },
|
|
2647
|
-
(m = [], b = 0, { fields:
|
|
2651
|
+
(m = [], b = 0, { fields: T = [], sums: I = {} } = {}) => {
|
|
2648
2652
|
var W;
|
|
2649
2653
|
if (!Array.isArray(m)) {
|
|
2650
2654
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), et.error("数据加载失败,请检查数据格式。");
|
|
@@ -2654,7 +2658,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2654
2658
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), et.error("数据加载失败,请检查数据格式。");
|
|
2655
2659
|
return;
|
|
2656
2660
|
}
|
|
2657
|
-
e.value.table.data = m, ((W = e.value.control) == null ? void 0 : W.add(V.value, e).inline) === !0 && e.value.table.data.unshift(V.value), e.value.table.page.total = b, L.value =
|
|
2661
|
+
e.value.table.data = m, ((W = e.value.control) == null ? void 0 : W.add(V.value, e).inline) === !0 && e.value.table.data.unshift(V.value), e.value.table.page.total = b, L.value = T, Y.value = I, C(), se.value = Math.random().toString(36).substring(2);
|
|
2658
2662
|
},
|
|
2659
2663
|
V.value
|
|
2660
2664
|
);
|
|
@@ -2663,10 +2667,10 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2663
2667
|
}
|
|
2664
2668
|
},
|
|
2665
2669
|
onHeaderDragend: (l, o, m) => {
|
|
2666
|
-
|
|
2670
|
+
ra(ce.value, m.property, l);
|
|
2667
2671
|
},
|
|
2668
2672
|
onRowDblclick: (l, o, m) => {
|
|
2669
|
-
e.value.table.dblclickType == "edit" ? g(l, o, m, e) : e.value.table.dblclickType == "view" ?
|
|
2673
|
+
e.value.table.dblclickType == "edit" ? g(l, o, m, e) : e.value.table.dblclickType == "view" ? F(l, o, m, e) : e.value.table.dblclickType == "delete" ? i(l, o, m, e) : e.value.table.dblclickType(l, o, m, e);
|
|
2670
2674
|
},
|
|
2671
2675
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2672
2676
|
page: {
|
|
@@ -2686,7 +2690,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2686
2690
|
e.value.table.page.currentPage = l, e.value.table.load();
|
|
2687
2691
|
},
|
|
2688
2692
|
onSizeChange: (l) => {
|
|
2689
|
-
|
|
2693
|
+
sa({ page: ce.value, size: l }).then(() => {
|
|
2690
2694
|
e.value.table.page.pageSize = l, e.value.table.load();
|
|
2691
2695
|
});
|
|
2692
2696
|
}
|
|
@@ -2696,11 +2700,11 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2696
2700
|
onSortChange: ({ column: l, prop: o, order: m }, b) => {
|
|
2697
2701
|
}
|
|
2698
2702
|
});
|
|
2699
|
-
e.value.table =
|
|
2703
|
+
e.value.table = Fe(
|
|
2700
2704
|
pe.value,
|
|
2701
2705
|
h == null ? void 0 : h.table,
|
|
2702
2706
|
e.value.table,
|
|
2703
|
-
|
|
2707
|
+
Q
|
|
2704
2708
|
// 继承父组件的属性
|
|
2705
2709
|
);
|
|
2706
2710
|
const fe = {
|
|
@@ -2719,8 +2723,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2719
2723
|
mode: "dialog",
|
|
2720
2724
|
icon: () => we($l),
|
|
2721
2725
|
auth: () => {
|
|
2722
|
-
var
|
|
2723
|
-
return !(((
|
|
2726
|
+
var T;
|
|
2727
|
+
return !(((T = b == null ? void 0 : b.control) == null ? void 0 : T.add(l, b).inline) === !0 && m === 0);
|
|
2724
2728
|
}
|
|
2725
2729
|
}),
|
|
2726
2730
|
edit: (l, o, m, b) => ({
|
|
@@ -2730,8 +2734,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2730
2734
|
mode: "dialog",
|
|
2731
2735
|
icon: () => we(wl),
|
|
2732
2736
|
auth: () => {
|
|
2733
|
-
var
|
|
2734
|
-
return ((
|
|
2737
|
+
var T;
|
|
2738
|
+
return ((T = b == null ? void 0 : b.control) == null ? void 0 : T.add(l, b).inline) !== !0;
|
|
2735
2739
|
}
|
|
2736
2740
|
}),
|
|
2737
2741
|
delete: (l, o, m, b) => ({
|
|
@@ -2740,8 +2744,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2740
2744
|
type: "danger",
|
|
2741
2745
|
icon: () => we(zt),
|
|
2742
2746
|
auth: () => {
|
|
2743
|
-
var
|
|
2744
|
-
return !(((
|
|
2747
|
+
var T;
|
|
2748
|
+
return !(((T = b.control) == null ? void 0 : T.add(l, b).inline) === !0 && m === 0);
|
|
2745
2749
|
},
|
|
2746
2750
|
dialog: {
|
|
2747
2751
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2754,9 +2758,9 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2754
2758
|
}
|
|
2755
2759
|
}),
|
|
2756
2760
|
save: (l, o, m, b) => {
|
|
2757
|
-
var
|
|
2761
|
+
var T, I;
|
|
2758
2762
|
return {
|
|
2759
|
-
label: ((
|
|
2763
|
+
label: ((T = b.control) == null ? void 0 : T.add(l, b).inline) !== !0 ? "保存" : m === 0 ? "新增" : "保存",
|
|
2760
2764
|
text: !0,
|
|
2761
2765
|
icon: () => we(Lt),
|
|
2762
2766
|
type: ((I = b.control) == null ? void 0 : I.add(l, b).inline) !== !0 || m === 0 ? "primary" : "success",
|
|
@@ -2802,28 +2806,28 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2802
2806
|
auth: () => !(b.control.add(l, b).inline === !0 && m == 0),
|
|
2803
2807
|
onClick: () => {
|
|
2804
2808
|
var I;
|
|
2805
|
-
let
|
|
2806
|
-
|
|
2809
|
+
let T = (I = ge(l, o, m, b)) == null ? void 0 : I.operate;
|
|
2810
|
+
T === "edit" ? g(l, o, m, b) : T === "delete" ? i(l, o, m, b) : T === "view" && F(l, o, m, b);
|
|
2807
2811
|
},
|
|
2808
2812
|
"button-props": { round: !0, plain: !0 }
|
|
2809
2813
|
})
|
|
2810
2814
|
};
|
|
2811
|
-
e.value.control =
|
|
2815
|
+
e.value.control = Fe(
|
|
2812
2816
|
fe,
|
|
2813
2817
|
h == null ? void 0 : h.control,
|
|
2814
2818
|
(He = e.value) == null ? void 0 : He.control
|
|
2815
2819
|
);
|
|
2816
2820
|
const ie = (l, o = !0) => {
|
|
2817
|
-
const m = e.value.control[l], b = o ? (
|
|
2821
|
+
const m = e.value.control[l], b = o ? (T, I, W, ye) => {
|
|
2818
2822
|
var Ue, We, st;
|
|
2819
|
-
if (!
|
|
2823
|
+
if (!T || !I || W == null)
|
|
2820
2824
|
return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2821
|
-
const Ee = ((Ue = fe[l]) == null ? void 0 : Ue.call(fe,
|
|
2822
|
-
return
|
|
2823
|
-
} : (
|
|
2825
|
+
const Ee = ((Ue = fe[l]) == null ? void 0 : Ue.call(fe, T, I, W, ye)) || {}, qe = ((st = (We = h == null ? void 0 : h.control) == null ? void 0 : We[l]) == null ? void 0 : st.call(We, T, I, W, ye)) || {}, Ie = (m == null ? void 0 : m(T, I, W, ye)) || {};
|
|
2826
|
+
return Fe(Ee, qe, Ie) || {};
|
|
2827
|
+
} : (T, I) => {
|
|
2824
2828
|
var qe, Ie, Ue;
|
|
2825
|
-
const W = ((qe = fe[l]) == null ? void 0 : qe.call(fe,
|
|
2826
|
-
return
|
|
2829
|
+
const W = ((qe = fe[l]) == null ? void 0 : qe.call(fe, T, I)) || {}, ye = ((Ue = (Ie = h == null ? void 0 : h.control) == null ? void 0 : Ie[l]) == null ? void 0 : Ue.call(Ie, T, I)) || {}, Ee = (m == null ? void 0 : m(T, I)) || {};
|
|
2830
|
+
return Fe(W, ye, Ee) || {};
|
|
2827
2831
|
};
|
|
2828
2832
|
e.value.control[l] = b;
|
|
2829
2833
|
};
|
|
@@ -2832,20 +2836,20 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2832
2836
|
var ye, Ee, qe, Ie, Ue, We;
|
|
2833
2837
|
if (!l || !o || m == null)
|
|
2834
2838
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2835
|
-
const
|
|
2836
|
-
return
|
|
2837
|
-
},
|
|
2839
|
+
const T = ((ye = fe.dropdown) == null ? void 0 : ye.call(fe, l, o, m, b)) || {}, I = ((qe = (Ee = h == null ? void 0 : h.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : qe.call(Ee, l, o, m, b)) || {}, W = ((We = (Ue = (Ie = e.value) == null ? void 0 : Ie.control) == null ? void 0 : Ue.dropdown) == null ? void 0 : We.call(Ue, l, o, m, b)) || {};
|
|
2840
|
+
return Fe(T, I, W) || {};
|
|
2841
|
+
}, Me = {
|
|
2838
2842
|
type: "hidden",
|
|
2839
2843
|
"min-width": 100,
|
|
2840
2844
|
align: "center",
|
|
2841
2845
|
formatter: (l, o, m, b) => m,
|
|
2842
|
-
"tooltip-formatter": ({ row: l, column: o, cellValue: m }) => we(
|
|
2846
|
+
"tooltip-formatter": ({ row: l, column: o, cellValue: m }) => we(wa, { content: m, column: o })
|
|
2843
2847
|
};
|
|
2844
|
-
e.value.tableColumns =
|
|
2845
|
-
|
|
2848
|
+
e.value.tableColumns = Fe(
|
|
2849
|
+
Me,
|
|
2846
2850
|
h == null ? void 0 : h.tableColumns,
|
|
2847
2851
|
(ze = e.value) == null ? void 0 : ze.tableColumns
|
|
2848
|
-
), e.value.form =
|
|
2852
|
+
), e.value.form = Fe(
|
|
2849
2853
|
Gt,
|
|
2850
2854
|
h == null ? void 0 : h.form,
|
|
2851
2855
|
(Pe = e.value) == null ? void 0 : Pe.form
|
|
@@ -2857,7 +2861,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2857
2861
|
width: "100%"
|
|
2858
2862
|
}
|
|
2859
2863
|
};
|
|
2860
|
-
e.value.formItems =
|
|
2864
|
+
e.value.formItems = Fe(
|
|
2861
2865
|
De,
|
|
2862
2866
|
h == null ? void 0 : h.formItems,
|
|
2863
2867
|
(vt = e == null ? void 0 : e.value) == null ? void 0 : vt.formItems
|
|
@@ -2883,7 +2887,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2883
2887
|
// 最小化图标
|
|
2884
2888
|
}
|
|
2885
2889
|
};
|
|
2886
|
-
e.value.dialog =
|
|
2890
|
+
e.value.dialog = Fe(
|
|
2887
2891
|
K,
|
|
2888
2892
|
h == null ? void 0 : h.dialog,
|
|
2889
2893
|
(pt = e.value) == null ? void 0 : pt.dialog
|
|
@@ -2893,16 +2897,16 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2893
2897
|
if (l.decimals && !isNaN(parseFloat(o)) && (typeof l.decimals == "number" ? m = parseFloat(m).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? m = parseFloat(m).toFixed(l.decimals.num) : m = parseFloat(
|
|
2894
2898
|
parseFloat(m).toFixed(l.decimals.num)
|
|
2895
2899
|
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Dt(o).isValid()) {
|
|
2896
|
-
const
|
|
2900
|
+
const T = {
|
|
2897
2901
|
date: "YYYY-MM-DD",
|
|
2898
2902
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2899
2903
|
time: "HH:mm:ss"
|
|
2900
2904
|
};
|
|
2901
|
-
m = l.format ? Dt(m).format(l.format) : Dt(m).format(
|
|
2905
|
+
m = l.format ? Dt(m).format(l.format) : Dt(m).format(T[l.type]);
|
|
2902
2906
|
}
|
|
2903
2907
|
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${Vt(
|
|
2904
2908
|
parseFloat(m)
|
|
2905
|
-
)}">${
|
|
2909
|
+
)}">${tr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
|
|
2906
2910
|
}, Le = (l) => {
|
|
2907
2911
|
c.value = Object.fromEntries(v), e.value.table.load();
|
|
2908
2912
|
}, S = (l) => {
|
|
@@ -2912,18 +2916,18 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2912
2916
|
e.value.form.modalState = "add", t.value = "add";
|
|
2913
2917
|
try {
|
|
2914
2918
|
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: V.value, m: o }))) return;
|
|
2915
|
-
} catch (
|
|
2916
|
-
console.error("验证失败:",
|
|
2919
|
+
} catch (T) {
|
|
2920
|
+
console.error("验证失败:", T);
|
|
2917
2921
|
return;
|
|
2918
2922
|
}
|
|
2919
|
-
(b = e.value.control.add(l, o)) != null && b.click ? e.value.control.add(l, o).click(V.value, o) : e.value.control.add(l, o).inline === !0 ? (e.value.table.data.unshift(V.value), r("open", "row-add", { row: V.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(l, o).mode, e.value.dialog.title = e.value.control.add(l, o).title || e.value.control.add(l, o).label || "新增", Object.keys(V.value).forEach((
|
|
2920
|
-
e.value[
|
|
2923
|
+
(b = e.value.control.add(l, o)) != null && b.click ? e.value.control.add(l, o).click(V.value, o) : e.value.control.add(l, o).inline === !0 ? (e.value.table.data.unshift(V.value), r("open", "row-add", { row: V.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(l, o).mode, e.value.dialog.title = e.value.control.add(l, o).title || e.value.control.add(l, o).label || "新增", Object.keys(V.value).forEach((T) => {
|
|
2924
|
+
e.value[T] && (e.value[T].value = V.value[T]);
|
|
2921
2925
|
}), u.value = !0, r("open", "add", { row: V.value, m: o }), Et());
|
|
2922
2926
|
}, g = async (l, o, m, b) => {
|
|
2923
|
-
var
|
|
2927
|
+
var T, I;
|
|
2924
2928
|
e.value.form.modalState = "edit", t.value = "edit";
|
|
2925
2929
|
try {
|
|
2926
|
-
if (!await ((
|
|
2930
|
+
if (!await ((T = e.value.control) == null ? void 0 : T.validate("edit", { row: l, column: o, index: m, m: b }))) return;
|
|
2927
2931
|
} catch (W) {
|
|
2928
2932
|
console.error("验证失败:", W);
|
|
2929
2933
|
return;
|
|
@@ -2932,9 +2936,9 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2932
2936
|
e.value[W] && (e.value[W].value = l[W]);
|
|
2933
2937
|
}), u.value = !0, r("open", "edit", { m: b, row: l, column: o, index: m }), Et());
|
|
2934
2938
|
}, i = async (l, o, m, b) => {
|
|
2935
|
-
var
|
|
2939
|
+
var T, I;
|
|
2936
2940
|
try {
|
|
2937
|
-
if (!await ((
|
|
2941
|
+
if (!await ((T = e.value.control) == null ? void 0 : T.validate("delete", { row: l, column: o, index: m, m: b }))) return;
|
|
2938
2942
|
} catch (W) {
|
|
2939
2943
|
console.error("验证失败:", W);
|
|
2940
2944
|
return;
|
|
@@ -2954,11 +2958,11 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2954
2958
|
}).catch(() => {
|
|
2955
2959
|
});
|
|
2956
2960
|
}
|
|
2957
|
-
},
|
|
2958
|
-
var
|
|
2961
|
+
}, F = async (l, o, m, b) => {
|
|
2962
|
+
var T, I;
|
|
2959
2963
|
e.value.form.modalState = void 0, t.value = "view";
|
|
2960
2964
|
try {
|
|
2961
|
-
if (!await ((
|
|
2965
|
+
if (!await ((T = e.value.control) == null ? void 0 : T.validate("view", { row: l, column: o, index: m, m: b }))) return;
|
|
2962
2966
|
} catch (W) {
|
|
2963
2967
|
console.error("验证失败:", W);
|
|
2964
2968
|
return;
|
|
@@ -2967,8 +2971,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2967
2971
|
e.value[W] && (e.value[W].value = l[W]);
|
|
2968
2972
|
}), u.value = !0, r("open", "view", { m: b, row: l, column: o, index: m }), Et());
|
|
2969
2973
|
}, E = (l, o, m, b) => {
|
|
2970
|
-
var
|
|
2971
|
-
(
|
|
2974
|
+
var T;
|
|
2975
|
+
(T = e.value.control.save(l, o, m, b)) != null && T.click ? e.value.control.save(l, o, m, b).click(l, o, m, b) : r(
|
|
2972
2976
|
"row-save",
|
|
2973
2977
|
{ row: l, column: o, index: m, data: e.value.table.data },
|
|
2974
2978
|
(I = !0, W = !0) => {
|
|
@@ -2986,30 +2990,30 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2986
2990
|
);
|
|
2987
2991
|
}, q = (l, o, m) => {
|
|
2988
2992
|
r("submit", e.value.form.modalState, l, o, (b) => {
|
|
2989
|
-
b && (m === 1 && (u.value = !1), Object.keys(V.value).forEach((
|
|
2990
|
-
l[
|
|
2993
|
+
b && (m === 1 && (u.value = !1), Object.keys(V.value).forEach((T) => {
|
|
2994
|
+
l[T] = V.value[T];
|
|
2991
2995
|
}), o.table.load());
|
|
2992
2996
|
});
|
|
2993
|
-
},
|
|
2997
|
+
}, M = (l, o) => {
|
|
2994
2998
|
Object.keys(V.value).forEach((m) => {
|
|
2995
2999
|
l[m] = V.value[m];
|
|
2996
3000
|
}), r("reset", l, o);
|
|
2997
|
-
},
|
|
3001
|
+
}, Z = (l, o, m) => {
|
|
2998
3002
|
var b;
|
|
2999
3003
|
if ((b = o.control.download(l, o)) != null && b.click)
|
|
3000
3004
|
o.control.download(l, o).click(l, o, m);
|
|
3001
3005
|
else {
|
|
3002
|
-
let
|
|
3006
|
+
let T = Ft(
|
|
3003
3007
|
{
|
|
3004
3008
|
title: o.control.download(l, o).title || o.control.download(l, o).label || "下载",
|
|
3005
3009
|
size: o.control.download(l, o).size || 480,
|
|
3006
3010
|
width: o.control.download(l, o).width || 600,
|
|
3007
3011
|
slots: {
|
|
3008
|
-
default: () => we(
|
|
3012
|
+
default: () => we(ta, {
|
|
3009
3013
|
items: m,
|
|
3010
3014
|
commitText: o.control.download(l, o).excelLabel,
|
|
3011
3015
|
onExcel: (I, W) => {
|
|
3012
|
-
r("download", I, c.value, W),
|
|
3016
|
+
r("download", I, c.value, W), T();
|
|
3013
3017
|
}
|
|
3014
3018
|
})
|
|
3015
3019
|
}
|
|
@@ -3019,20 +3023,20 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3019
3023
|
}
|
|
3020
3024
|
}, oe = (l, o) => {
|
|
3021
3025
|
var m;
|
|
3022
|
-
(m = o.control.setting(l, o)) != null && m.click ? o.control.setting(l, o).click(l, o) :
|
|
3026
|
+
(m = o.control.setting(l, o)) != null && m.click ? o.control.setting(l, o).click(l, o) : Ft(
|
|
3023
3027
|
{
|
|
3024
3028
|
title: o.control.setting(l, o).title || o.control.setting(l, o).label || "设置",
|
|
3025
3029
|
size: o.control.setting(l, o).size || 470,
|
|
3026
3030
|
width: o.control.setting(l, o).width || 600,
|
|
3027
3031
|
slots: {
|
|
3028
|
-
default: () => we(
|
|
3032
|
+
default: () => we(ya, {
|
|
3029
3033
|
modelValue: o,
|
|
3030
3034
|
tuid: ce.value,
|
|
3031
3035
|
onSettingDragEnd: async () => {
|
|
3032
|
-
await
|
|
3036
|
+
await xe(ce.value);
|
|
3033
3037
|
},
|
|
3034
3038
|
onSelectAll: async (b) => {
|
|
3035
|
-
await
|
|
3039
|
+
await xe(ce.value);
|
|
3036
3040
|
}
|
|
3037
3041
|
})
|
|
3038
3042
|
}
|
|
@@ -3041,35 +3045,35 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3041
3045
|
);
|
|
3042
3046
|
}, le = e.value.control, H = [
|
|
3043
3047
|
{ type: "add", func: w },
|
|
3044
|
-
{ type: "download", func:
|
|
3048
|
+
{ type: "download", func: Z },
|
|
3045
3049
|
{ type: "setting", func: oe },
|
|
3046
|
-
{ type: "view", func:
|
|
3050
|
+
{ type: "view", func: F },
|
|
3047
3051
|
{ type: "edit", func: g },
|
|
3048
3052
|
{ type: "delete", func: i },
|
|
3049
3053
|
{ type: "save", func: E }
|
|
3050
|
-
], z = (l, o, m, b,
|
|
3054
|
+
], z = (l, o, m, b, T) => H.filter((I) => l.includes(I.type)).map(({ type: I, func: W }) => {
|
|
3051
3055
|
var ye, Ee, qe;
|
|
3052
3056
|
return {
|
|
3053
3057
|
name: `control-${I}`,
|
|
3054
|
-
attr: le == null ? void 0 : le[I](o, m, b,
|
|
3058
|
+
attr: le == null ? void 0 : le[I](o, m, b, T),
|
|
3055
3059
|
func: W,
|
|
3056
|
-
label: (ye = le == null ? void 0 : le[I](o, m, b,
|
|
3057
|
-
sort: ((Ee = le == null ? void 0 : le[I](o, m, b,
|
|
3058
|
-
groupName: ((qe = le == null ? void 0 : le[I](o, m, b,
|
|
3060
|
+
label: (ye = le == null ? void 0 : le[I](o, m, b, T)) == null ? void 0 : ye.label,
|
|
3061
|
+
sort: ((Ee = le == null ? void 0 : le[I](o, m, b, T)) == null ? void 0 : Ee.sort) || 0,
|
|
3062
|
+
groupName: ((qe = le == null ? void 0 : le[I](o, m, b, T)) == null ? void 0 : qe.groupName) || "default"
|
|
3059
3063
|
};
|
|
3060
|
-
}).sort((I, W) => I.sort - W.sort), Se = (l, o, m, b,
|
|
3064
|
+
}).sort((I, W) => I.sort - W.sort), Se = (l, o, m, b, T) => z(l, o, m, b, T).reduce((I, W) => {
|
|
3061
3065
|
const ye = W.groupName || "default";
|
|
3062
3066
|
return I[ye] || (I[ye] = []), I[ye].push(W), I;
|
|
3063
3067
|
}, {}), me = nt(
|
|
3064
3068
|
() => Object.fromEntries(
|
|
3065
3069
|
Object.entries(e.value).filter(([l, o]) => o.type !== "hidden").filter(([l, o]) => o.hidden !== !0).filter(([l, o]) => o.visible !== !1).filter(([l, o]) => o.showCol !== !1).map(([l, o]) => (o.sort = typeof o.sort == "number" ? o.sort : 0, [l, o])).sort((l, o) => l[1].sort - o[1].sort)
|
|
3066
3070
|
)
|
|
3067
|
-
),
|
|
3068
|
-
const m = (b,
|
|
3071
|
+
), Te = re({}), O = (l, o) => {
|
|
3072
|
+
const m = (b, T) => {
|
|
3069
3073
|
for (const I of b) {
|
|
3070
|
-
if (I.value ==
|
|
3074
|
+
if (I.value == T) return I.label;
|
|
3071
3075
|
if (I.children) {
|
|
3072
|
-
const W = m(I.children,
|
|
3076
|
+
const W = m(I.children, T);
|
|
3073
3077
|
if (W) return W;
|
|
3074
3078
|
}
|
|
3075
3079
|
}
|
|
@@ -3077,8 +3081,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3077
3081
|
};
|
|
3078
3082
|
if (l.getDicts) {
|
|
3079
3083
|
const b = o.toString();
|
|
3080
|
-
return
|
|
3081
|
-
|
|
3084
|
+
return Te.value[b] ? (l.options = Te.value[b], l.formatter || (l.formatter = (T, I, W, ye) => l.options && m(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((T) => {
|
|
3085
|
+
Te.value[b] = T, l.options = T, l.formatter || (l.formatter = (I, W, ye, Ee) => l.options && m(l.options, ye) || ye);
|
|
3082
3086
|
});
|
|
3083
3087
|
}
|
|
3084
3088
|
return Promise.resolve();
|
|
@@ -3088,8 +3092,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3088
3092
|
if (e.value[o].getDicts) {
|
|
3089
3093
|
const m = O(e.value[o], o).then(() => {
|
|
3090
3094
|
e.value.table.data.forEach((b) => {
|
|
3091
|
-
var
|
|
3092
|
-
if (e.value[o].getDicts && ((
|
|
3095
|
+
var T;
|
|
3096
|
+
if (e.value[o].getDicts && ((T = e.value[o]) == null ? void 0 : T.forceString) !== !1) {
|
|
3093
3097
|
const I = b[o];
|
|
3094
3098
|
b[o] = I != null ? I.toString() : I;
|
|
3095
3099
|
}
|
|
@@ -3103,8 +3107,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3103
3107
|
console.error("字典加载过程中发生错误:", o);
|
|
3104
3108
|
});
|
|
3105
3109
|
}, he = (l, o, m, b) => {
|
|
3106
|
-
var
|
|
3107
|
-
return l.table ? (
|
|
3110
|
+
var T, I;
|
|
3111
|
+
return l.table ? (T = l.table(o, m, b)) != null && T.auth ? (I = l.table(o, m, b)) == null ? void 0 : I.auth(o, m, b) : !0 : !1;
|
|
3108
3112
|
}, Be = () => {
|
|
3109
3113
|
if (e.value.dialog.mode == "drawer")
|
|
3110
3114
|
f.value.handleClose();
|
|
@@ -3120,29 +3124,29 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3120
3124
|
dl(() => {
|
|
3121
3125
|
e.value.table.autoWatch && e.value.table.load();
|
|
3122
3126
|
});
|
|
3123
|
-
const
|
|
3127
|
+
const xe = async () => {
|
|
3124
3128
|
try {
|
|
3125
3129
|
const [l, o, m] = await Promise.all([
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3130
|
+
oa(ce.value),
|
|
3131
|
+
ca(ce.value),
|
|
3132
|
+
na(ce.value)
|
|
3129
3133
|
]);
|
|
3130
3134
|
l && Array.isArray(l) && l.forEach((b) => {
|
|
3131
|
-
const
|
|
3132
|
-
|
|
3133
|
-
}), o && Array.isArray(o) && o.forEach((b,
|
|
3135
|
+
const T = e.value[b.key];
|
|
3136
|
+
T && (T.width = b.width);
|
|
3137
|
+
}), o && Array.isArray(o) && o.forEach((b, T) => {
|
|
3134
3138
|
const I = e.value[b];
|
|
3135
|
-
I && (I.sort =
|
|
3139
|
+
I && (I.sort = T);
|
|
3136
3140
|
}), m && Array.isArray(m) && m.length > 0 ? m.forEach((b) => {
|
|
3137
|
-
const
|
|
3138
|
-
|
|
3141
|
+
const T = e.value[b];
|
|
3142
|
+
T && (T.showCol = !1);
|
|
3139
3143
|
}) : Object.keys(e.value).filter((b) => e.value[b].type !== "control").forEach((b) => {
|
|
3140
3144
|
e.value[b].showCol = !0;
|
|
3141
3145
|
});
|
|
3142
3146
|
} catch (l) {
|
|
3143
3147
|
console.error("加载表格信息时出错:", l);
|
|
3144
3148
|
}
|
|
3145
|
-
}, Ne = () =>
|
|
3149
|
+
}, Ne = () => Da(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3146
3150
|
return cl(() => {
|
|
3147
3151
|
ce.value = Ne();
|
|
3148
3152
|
}), ft(async () => {
|
|
@@ -3160,16 +3164,16 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3160
3164
|
);
|
|
3161
3165
|
V.value = Object.fromEntries(
|
|
3162
3166
|
l.map(([o, m]) => [o, m.value])
|
|
3163
|
-
), await
|
|
3167
|
+
), await xe();
|
|
3164
3168
|
} catch (l) {
|
|
3165
3169
|
console.error("Error during component initialization:", l);
|
|
3166
3170
|
}
|
|
3167
3171
|
e.value.table.autoWatch || e.value.table.load();
|
|
3168
|
-
}), s({ addRow: w, editRow: g, deleteRow: i, readForm:
|
|
3172
|
+
}), s({ addRow: w, editRow: g, deleteRow: i, readForm: F, saveRowData: E, closeDialog: Be }), (l, o) => {
|
|
3169
3173
|
var We, st, mt, ct, ht;
|
|
3170
|
-
const m = P("el-icon"), b = P("el-dialog"),
|
|
3174
|
+
const m = P("el-icon"), b = P("el-dialog"), T = P("el-drawer"), I = P("el-button-group"), W = P("el-dropdown-item"), ye = P("el-dropdown-menu"), Ee = P("el-dropdown"), qe = P("el-table-column"), Ie = P("el-table"), Ue = P("el-pagination");
|
|
3171
3175
|
return p(), U(te, null, [
|
|
3172
|
-
e.value.dialog.mode == "dialog" && u.value ? (p(), U("div",
|
|
3176
|
+
e.value.dialog.mode == "dialog" && u.value ? (p(), U("div", Sa, [
|
|
3173
3177
|
ae(b, B(
|
|
3174
3178
|
{
|
|
3175
3179
|
ref_key: "dialogRef",
|
|
@@ -3185,17 +3189,17 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3185
3189
|
}
|
|
3186
3190
|
), {
|
|
3187
3191
|
header: _(() => {
|
|
3188
|
-
var j, de,
|
|
3192
|
+
var j, de, x, J, ue, Qe, Ze, Ge, Xe, ot;
|
|
3189
3193
|
return [
|
|
3190
|
-
|
|
3191
|
-
|
|
3194
|
+
X("div", xa, [
|
|
3195
|
+
X("div", Ma, [
|
|
3192
3196
|
k(l.$slots, "f-header", {}, () => [
|
|
3193
|
-
|
|
3197
|
+
X("div", Ta, _e(e.value.dialog.title), 1)
|
|
3194
3198
|
], !0)
|
|
3195
3199
|
]),
|
|
3196
3200
|
((de = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : de.fullScreen) === !1 ? (p(), U("div", {
|
|
3197
3201
|
key: 0,
|
|
3198
|
-
style: Ve((ue = (
|
|
3202
|
+
style: Ve((ue = (J = (x = e.value) == null ? void 0 : x.dialog) == null ? void 0 : J.max) == null ? void 0 : ue.style),
|
|
3199
3203
|
onClick: o[0] || (o[0] = (R) => e.value.dialog.fullScreen = !0),
|
|
3200
3204
|
class: "max"
|
|
3201
3205
|
}, [
|
|
@@ -3229,19 +3233,19 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3229
3233
|
];
|
|
3230
3234
|
}),
|
|
3231
3235
|
default: _(() => [
|
|
3232
|
-
|
|
3236
|
+
X("div", Fa, [
|
|
3233
3237
|
k(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3234
|
-
ae(
|
|
3238
|
+
ae(xt, {
|
|
3235
3239
|
modelValue: e.value,
|
|
3236
3240
|
"onUpdate:modelValue": o[2] || (o[2] = (j) => e.value = j),
|
|
3237
3241
|
onSubmit: q,
|
|
3238
|
-
onReset:
|
|
3242
|
+
onReset: M,
|
|
3239
3243
|
flag: t.value
|
|
3240
3244
|
}, be({ _: 2 }, [
|
|
3241
|
-
G(l.$slots, (j, de,
|
|
3245
|
+
G(l.$slots, (j, de, x) => ({
|
|
3242
3246
|
name: de,
|
|
3243
|
-
fn: _((
|
|
3244
|
-
k(l.$slots, de, { model:
|
|
3247
|
+
fn: _((J) => [
|
|
3248
|
+
k(l.$slots, de, { model: J }, void 0, !0)
|
|
3245
3249
|
])
|
|
3246
3250
|
}))
|
|
3247
3251
|
]), 1032, ["modelValue", "flag"])
|
|
@@ -3251,35 +3255,35 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3251
3255
|
_: 3
|
|
3252
3256
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3253
3257
|
])) : $e("", !0),
|
|
3254
|
-
e.value.dialog.mode == "drawer" && u.value ? (p(), U("div",
|
|
3255
|
-
ae(
|
|
3258
|
+
e.value.dialog.mode == "drawer" && u.value ? (p(), U("div", Va, [
|
|
3259
|
+
ae(T, B({
|
|
3256
3260
|
ref_key: "drawerRef",
|
|
3257
3261
|
ref: f,
|
|
3258
3262
|
modelValue: u.value,
|
|
3259
3263
|
"onUpdate:modelValue": o[5] || (o[5] = (j) => u.value = j)
|
|
3260
3264
|
}, N(je)(e.value.dialog, (j) => !["width"].includes(j))), {
|
|
3261
3265
|
header: _(() => [
|
|
3262
|
-
|
|
3263
|
-
|
|
3266
|
+
X("div", qa, [
|
|
3267
|
+
X("div", Aa, [
|
|
3264
3268
|
k(l.$slots, "f-header", {}, () => [
|
|
3265
|
-
|
|
3269
|
+
X("div", Ba, _e(e.value.dialog.title), 1)
|
|
3266
3270
|
], !0)
|
|
3267
3271
|
])
|
|
3268
3272
|
])
|
|
3269
3273
|
]),
|
|
3270
3274
|
default: _(() => [
|
|
3271
3275
|
k(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3272
|
-
ae(
|
|
3276
|
+
ae(xt, {
|
|
3273
3277
|
modelValue: e.value,
|
|
3274
3278
|
"onUpdate:modelValue": o[4] || (o[4] = (j) => e.value = j),
|
|
3275
3279
|
onSubmit: q,
|
|
3276
|
-
onReset:
|
|
3280
|
+
onReset: M,
|
|
3277
3281
|
flag: t.value
|
|
3278
3282
|
}, be({ _: 2 }, [
|
|
3279
|
-
G(l.$slots, (j, de,
|
|
3283
|
+
G(l.$slots, (j, de, x) => ({
|
|
3280
3284
|
name: de,
|
|
3281
|
-
fn: _((
|
|
3282
|
-
k(l.$slots, de, { model:
|
|
3285
|
+
fn: _((J) => [
|
|
3286
|
+
k(l.$slots, de, { model: J }, void 0, !0)
|
|
3283
3287
|
])
|
|
3284
3288
|
}))
|
|
3285
3289
|
]), 1032, ["modelValue", "flag"])
|
|
@@ -3288,8 +3292,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3288
3292
|
_: 3
|
|
3289
3293
|
}, 16, ["modelValue"])
|
|
3290
3294
|
])) : $e("", !0),
|
|
3291
|
-
|
|
3292
|
-
((st = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : st.hidden) != !0 ? (p(), U("div",
|
|
3295
|
+
X("div", Oa, [
|
|
3296
|
+
((st = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : st.hidden) != !0 ? (p(), U("div", Ia, [
|
|
3293
3297
|
k(l.$slots, "query", {}, () => [
|
|
3294
3298
|
ae(Nl, {
|
|
3295
3299
|
modelValue: e.value,
|
|
@@ -3302,54 +3306,54 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3302
3306
|
"q-btns": _(() => [
|
|
3303
3307
|
k(l.$slots, "q-btns", {}, () => [
|
|
3304
3308
|
(p(!0), U(te, null, G(Se(["add", "download", "setting"], V.value, e.value), (j, de) => (p(), U(te, null, [
|
|
3305
|
-
de == "default" ? (p(!0), U(te, { key: 0 }, G(j, (
|
|
3306
|
-
k(l.$slots,
|
|
3307
|
-
(
|
|
3308
|
-
|
|
3309
|
+
de == "default" ? (p(!0), U(te, { key: 0 }, G(j, (x) => (p(), U(te, null, [
|
|
3310
|
+
k(l.$slots, x.name + "-left", {}, void 0, !0),
|
|
3311
|
+
(x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? k(l.$slots, x.name, { key: 0 }, () => [
|
|
3312
|
+
x.label ? (p(), A(N(Ae), B({
|
|
3309
3313
|
key: 0,
|
|
3310
|
-
title:
|
|
3314
|
+
title: x.label,
|
|
3311
3315
|
ref_for: !0
|
|
3312
|
-
},
|
|
3313
|
-
onClick: (
|
|
3316
|
+
}, x.attr, {
|
|
3317
|
+
onClick: (J) => x.func(V.value, e.value, $.value)
|
|
3314
3318
|
}), {
|
|
3315
3319
|
default: _(() => [
|
|
3316
|
-
Re(_e(
|
|
3320
|
+
Re(_e(x.label), 1)
|
|
3317
3321
|
]),
|
|
3318
3322
|
_: 2
|
|
3319
3323
|
}, 1040, ["title", "onClick"])) : (p(), A(N(Ae), B({
|
|
3320
3324
|
key: 1,
|
|
3321
|
-
title:
|
|
3325
|
+
title: x.label,
|
|
3322
3326
|
ref_for: !0
|
|
3323
|
-
},
|
|
3324
|
-
onClick: (
|
|
3327
|
+
}, x.attr, {
|
|
3328
|
+
onClick: (J) => x.func(V.value, e.value, $.value)
|
|
3325
3329
|
}), null, 16, ["title", "onClick"]))
|
|
3326
3330
|
], !0) : $e("", !0),
|
|
3327
|
-
k(l.$slots,
|
|
3331
|
+
k(l.$slots, x.name + "-right", {}, void 0, !0)
|
|
3328
3332
|
], 64))), 256)) : (p(), A(I, { key: 1 }, {
|
|
3329
3333
|
default: _(() => [
|
|
3330
|
-
(p(!0), U(te, null, G(j, (
|
|
3331
|
-
k(l.$slots,
|
|
3332
|
-
(
|
|
3333
|
-
|
|
3334
|
+
(p(!0), U(te, null, G(j, (x) => (p(), U(te, null, [
|
|
3335
|
+
k(l.$slots, x.name + "-left", {}, void 0, !0),
|
|
3336
|
+
(x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? k(l.$slots, x.name, { key: 0 }, () => [
|
|
3337
|
+
x.label ? (p(), A(N(Ae), B({
|
|
3334
3338
|
key: 0,
|
|
3335
|
-
title:
|
|
3339
|
+
title: x.label,
|
|
3336
3340
|
ref_for: !0
|
|
3337
|
-
},
|
|
3338
|
-
onClick: (
|
|
3341
|
+
}, x.attr, {
|
|
3342
|
+
onClick: (J) => x.func(V.value, e.value, $.value)
|
|
3339
3343
|
}), {
|
|
3340
3344
|
default: _(() => [
|
|
3341
|
-
Re(_e(
|
|
3345
|
+
Re(_e(x.label), 1)
|
|
3342
3346
|
]),
|
|
3343
3347
|
_: 2
|
|
3344
3348
|
}, 1040, ["title", "onClick"])) : (p(), A(N(Ae), B({
|
|
3345
3349
|
key: 1,
|
|
3346
|
-
title:
|
|
3350
|
+
title: x.label,
|
|
3347
3351
|
ref_for: !0
|
|
3348
|
-
},
|
|
3349
|
-
onClick: (
|
|
3352
|
+
}, x.attr, {
|
|
3353
|
+
onClick: (J) => x.func(V.value, e.value, $.value)
|
|
3350
3354
|
}), null, 16, ["title", "onClick"]))
|
|
3351
3355
|
], !0) : $e("", !0),
|
|
3352
|
-
k(l.$slots,
|
|
3356
|
+
k(l.$slots, x.name + "-right", {}, void 0, !0)
|
|
3353
3357
|
], 64))), 256))
|
|
3354
3358
|
]),
|
|
3355
3359
|
_: 2
|
|
@@ -3359,16 +3363,16 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3359
3363
|
]),
|
|
3360
3364
|
_: 2
|
|
3361
3365
|
}, [
|
|
3362
|
-
G(l.$slots, (j, de,
|
|
3366
|
+
G(l.$slots, (j, de, x) => ({
|
|
3363
3367
|
name: de,
|
|
3364
|
-
fn: _((
|
|
3368
|
+
fn: _((J) => [
|
|
3365
3369
|
k(l.$slots, de, { model: e.value }, void 0, !0)
|
|
3366
3370
|
])
|
|
3367
3371
|
}))
|
|
3368
3372
|
]), 1032, ["modelValue", "info"])
|
|
3369
3373
|
], !0)
|
|
3370
3374
|
])) : $e("", !0),
|
|
3371
|
-
|
|
3375
|
+
X("div", Ua, [
|
|
3372
3376
|
ae(Ie, B({
|
|
3373
3377
|
...l.$attrs,
|
|
3374
3378
|
...N(je)(
|
|
@@ -3378,8 +3382,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3378
3382
|
}, {
|
|
3379
3383
|
"summary-method": (j) => e.value.table["summary-method"](j, { fields: L.value, sums: Y.value }),
|
|
3380
3384
|
onSortChange: o[8] || (o[8] = (j) => {
|
|
3381
|
-
var de,
|
|
3382
|
-
e.value.table.onSortChange(j, c.value), ((de = j == null ? void 0 : j.column) == null ? void 0 : de.sortable) === "custom" && ((
|
|
3385
|
+
var de, x;
|
|
3386
|
+
e.value.table.onSortChange(j, c.value), ((de = j == null ? void 0 : j.column) == null ? void 0 : de.sortable) === "custom" && ((x = e.value.table) == null || x.load());
|
|
3383
3387
|
})
|
|
3384
3388
|
}), {
|
|
3385
3389
|
append: _(() => [
|
|
@@ -3396,64 +3400,64 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3396
3400
|
ref_for: !0
|
|
3397
3401
|
}, {
|
|
3398
3402
|
...e.value.tableColumns,
|
|
3399
|
-
...N(je)(j, (
|
|
3403
|
+
...N(je)(j, (x) => d.includes(x))
|
|
3400
3404
|
}), be({
|
|
3401
|
-
header: _(({ column:
|
|
3405
|
+
header: _(({ column: x, $index: J }) => [
|
|
3402
3406
|
de == "control" ? k(l.$slots, `${de}-header`, {
|
|
3403
3407
|
key: 0,
|
|
3404
|
-
column:
|
|
3405
|
-
index:
|
|
3408
|
+
column: x,
|
|
3409
|
+
index: J
|
|
3406
3410
|
}, () => [
|
|
3407
|
-
|
|
3411
|
+
X("span", null, _e(x.label), 1)
|
|
3408
3412
|
], !0) : k(l.$slots, `${de}-header`, {
|
|
3409
3413
|
key: 1,
|
|
3410
|
-
column:
|
|
3411
|
-
index:
|
|
3414
|
+
column: x,
|
|
3415
|
+
index: J
|
|
3412
3416
|
}, void 0, !0)
|
|
3413
3417
|
]),
|
|
3414
|
-
"filter-icon": _((
|
|
3415
|
-
k(l.$slots, `${de}-filter-icon`, { data:
|
|
3418
|
+
"filter-icon": _((x) => [
|
|
3419
|
+
k(l.$slots, `${de}-filter-icon`, { data: x }, void 0, !0)
|
|
3416
3420
|
]),
|
|
3417
3421
|
_: 2
|
|
3418
3422
|
}, [
|
|
3419
3423
|
j.type === "expand" ? {
|
|
3420
3424
|
name: "default",
|
|
3421
|
-
fn: _(({ row:
|
|
3425
|
+
fn: _(({ row: x, column: J, $index: ue }) => [
|
|
3422
3426
|
k(l.$slots, `${de}`, {
|
|
3423
|
-
row:
|
|
3424
|
-
column:
|
|
3427
|
+
row: x,
|
|
3428
|
+
column: J,
|
|
3425
3429
|
index: ue
|
|
3426
3430
|
}, void 0, !0)
|
|
3427
3431
|
]),
|
|
3428
3432
|
key: "0"
|
|
3429
3433
|
} : j.type == "control" ? {
|
|
3430
3434
|
name: "default",
|
|
3431
|
-
fn: _(({ row:
|
|
3435
|
+
fn: _(({ row: x, column: J, $index: ue }) => {
|
|
3432
3436
|
var Qe, Ze;
|
|
3433
3437
|
return [
|
|
3434
|
-
|
|
3438
|
+
X("div", {
|
|
3435
3439
|
class: Rt(["control", (Qe = e.value.control) == null ? void 0 : Qe.class]),
|
|
3436
3440
|
style: Ve((Ze = e.value.control) == null ? void 0 : Ze.style)
|
|
3437
3441
|
}, [
|
|
3438
3442
|
k(l.$slots, "control", {}, () => [
|
|
3439
3443
|
k(l.$slots, "control-left", {
|
|
3440
|
-
row:
|
|
3441
|
-
column:
|
|
3444
|
+
row: x,
|
|
3445
|
+
column: J,
|
|
3442
3446
|
index: ue
|
|
3443
3447
|
}, void 0, !0),
|
|
3444
|
-
(p(!0), U(te, null, G(Se(["view", "edit", "delete", "save"],
|
|
3448
|
+
(p(!0), U(te, null, G(Se(["view", "edit", "delete", "save"], x, J, ue, e.value), (Ge, Xe) => {
|
|
3445
3449
|
var ot;
|
|
3446
3450
|
return p(), U(te, null, [
|
|
3447
3451
|
Xe == "default" ? (p(!0), U(te, { key: 0 }, G(Ge, (R) => (p(), U(te, null, [
|
|
3448
3452
|
k(l.$slots, R.name + "-left", {
|
|
3449
|
-
row:
|
|
3450
|
-
column:
|
|
3453
|
+
row: x,
|
|
3454
|
+
column: J,
|
|
3451
3455
|
index: ue
|
|
3452
3456
|
}, void 0, !0),
|
|
3453
3457
|
R.attr.auth() ? k(l.$slots, R.name, {
|
|
3454
3458
|
key: 0,
|
|
3455
|
-
row:
|
|
3456
|
-
column:
|
|
3459
|
+
row: x,
|
|
3460
|
+
column: J,
|
|
3457
3461
|
index: ue
|
|
3458
3462
|
}, () => [
|
|
3459
3463
|
R.label ? (p(), A(N(Ae), B({
|
|
@@ -3461,7 +3465,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3461
3465
|
title: R.label,
|
|
3462
3466
|
ref_for: !0
|
|
3463
3467
|
}, R.attr, {
|
|
3464
|
-
onClick: (Ye) => R.func(
|
|
3468
|
+
onClick: (Ye) => R.func(x, J, ue, e.value)
|
|
3465
3469
|
}), {
|
|
3466
3470
|
default: _(() => [
|
|
3467
3471
|
Re(_e(R.label), 1)
|
|
@@ -3472,18 +3476,18 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3472
3476
|
title: R.label,
|
|
3473
3477
|
ref_for: !0
|
|
3474
3478
|
}, R.attr, {
|
|
3475
|
-
onClick: (Ye) => R.func(
|
|
3479
|
+
onClick: (Ye) => R.func(x, J, ue, e.value)
|
|
3476
3480
|
}), null, 16, ["title", "onClick"]))
|
|
3477
3481
|
], !0) : $e("", !0),
|
|
3478
3482
|
k(l.$slots, R.name + "-right", {
|
|
3479
|
-
row:
|
|
3480
|
-
column:
|
|
3483
|
+
row: x,
|
|
3484
|
+
column: J,
|
|
3481
3485
|
index: ue
|
|
3482
3486
|
}, void 0, !0)
|
|
3483
|
-
], 64))), 256)) : Xe != null && Xe.startsWith("dropdown") && ((ot = ge(
|
|
3487
|
+
], 64))), 256)) : Xe != null && Xe.startsWith("dropdown") && ((ot = ge(x, J, ue, e.value)) != null && ot.auth()) ? (p(), A(Ee, B({
|
|
3484
3488
|
key: 1,
|
|
3485
3489
|
ref_for: !0
|
|
3486
|
-
}, ge(
|
|
3490
|
+
}, ge(x, J, ue, e.value)), {
|
|
3487
3491
|
dropdown: _(() => [
|
|
3488
3492
|
ae(ye, null, {
|
|
3489
3493
|
default: _(() => [
|
|
@@ -3492,8 +3496,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3492
3496
|
return p(), U(te, null, [
|
|
3493
3497
|
l.$slots[R.name + "-left"] ? k(l.$slots, R.name + "-left", {
|
|
3494
3498
|
key: 0,
|
|
3495
|
-
row:
|
|
3496
|
-
column:
|
|
3499
|
+
row: x,
|
|
3500
|
+
column: J,
|
|
3497
3501
|
index: ue
|
|
3498
3502
|
}, void 0, !0) : $e("", !0),
|
|
3499
3503
|
R.attr.auth() ? (p(), A(W, B({
|
|
@@ -3506,8 +3510,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3506
3510
|
}), {
|
|
3507
3511
|
default: _(() => [
|
|
3508
3512
|
k(l.$slots, R.name, {
|
|
3509
|
-
row:
|
|
3510
|
-
column:
|
|
3513
|
+
row: x,
|
|
3514
|
+
column: J,
|
|
3511
3515
|
index: ue
|
|
3512
3516
|
}, () => [
|
|
3513
3517
|
R.label ? (p(), A(N(Ae), B({
|
|
@@ -3515,7 +3519,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3515
3519
|
title: R.label,
|
|
3516
3520
|
ref_for: !0
|
|
3517
3521
|
}, R.attr, {
|
|
3518
|
-
onClick: (ne) => R.func(
|
|
3522
|
+
onClick: (ne) => R.func(x, J, ue, e.value)
|
|
3519
3523
|
}), {
|
|
3520
3524
|
default: _(() => [
|
|
3521
3525
|
Re(_e(R.label), 1)
|
|
@@ -3526,7 +3530,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3526
3530
|
title: R.label,
|
|
3527
3531
|
ref_for: !0
|
|
3528
3532
|
}, R.attr, {
|
|
3529
|
-
onClick: (ne) => R.func(
|
|
3533
|
+
onClick: (ne) => R.func(x, J, ue, e.value)
|
|
3530
3534
|
}), null, 16, ["title", "onClick"]))
|
|
3531
3535
|
], !0)
|
|
3532
3536
|
]),
|
|
@@ -3534,8 +3538,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3534
3538
|
}, 1040)) : $e("", !0),
|
|
3535
3539
|
l.$slots[R.name + "-right"] ? k(l.$slots, R.name + "-right", {
|
|
3536
3540
|
key: 2,
|
|
3537
|
-
row:
|
|
3538
|
-
column:
|
|
3541
|
+
row: x,
|
|
3542
|
+
column: J,
|
|
3539
3543
|
index: ue
|
|
3540
3544
|
}, void 0, !0) : $e("", !0)
|
|
3541
3545
|
], 64);
|
|
@@ -3547,7 +3551,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3547
3551
|
default: _(() => {
|
|
3548
3552
|
var R;
|
|
3549
3553
|
return [
|
|
3550
|
-
Re(_e((R = ge(
|
|
3554
|
+
Re(_e((R = ge(x, J, ue, e.value)) == null ? void 0 : R.label) + " ", 1)
|
|
3551
3555
|
];
|
|
3552
3556
|
}),
|
|
3553
3557
|
_: 2
|
|
@@ -3555,14 +3559,14 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3555
3559
|
default: _(() => [
|
|
3556
3560
|
(p(!0), U(te, null, G(Ge, (R) => (p(), U(te, null, [
|
|
3557
3561
|
k(l.$slots, R.name + "-left", {
|
|
3558
|
-
row:
|
|
3559
|
-
column:
|
|
3562
|
+
row: x,
|
|
3563
|
+
column: J,
|
|
3560
3564
|
index: ue
|
|
3561
3565
|
}, void 0, !0),
|
|
3562
3566
|
R.attr.auth() ? k(l.$slots, R.name, {
|
|
3563
3567
|
key: 0,
|
|
3564
|
-
row:
|
|
3565
|
-
column:
|
|
3568
|
+
row: x,
|
|
3569
|
+
column: J,
|
|
3566
3570
|
index: ue
|
|
3567
3571
|
}, () => [
|
|
3568
3572
|
R.label ? (p(), A(N(Ae), B({
|
|
@@ -3570,7 +3574,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3570
3574
|
title: R.label,
|
|
3571
3575
|
ref_for: !0
|
|
3572
3576
|
}, R.attr, {
|
|
3573
|
-
onClick: (Ye) => R.func(
|
|
3577
|
+
onClick: (Ye) => R.func(x, J, ue, e.value)
|
|
3574
3578
|
}), {
|
|
3575
3579
|
default: _(() => [
|
|
3576
3580
|
Re(_e(R.label), 1)
|
|
@@ -3581,12 +3585,12 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3581
3585
|
title: R.label,
|
|
3582
3586
|
ref_for: !0
|
|
3583
3587
|
}, R.attr, {
|
|
3584
|
-
onClick: (Ye) => R.func(
|
|
3588
|
+
onClick: (Ye) => R.func(x, J, ue, e.value)
|
|
3585
3589
|
}), null, 16, ["title", "onClick"]))
|
|
3586
3590
|
], !0) : $e("", !0),
|
|
3587
3591
|
k(l.$slots, R.name + "-right", {
|
|
3588
|
-
row:
|
|
3589
|
-
column:
|
|
3592
|
+
row: x,
|
|
3593
|
+
column: J,
|
|
3590
3594
|
index: ue
|
|
3591
3595
|
}, void 0, !0)
|
|
3592
3596
|
], 64))), 256))
|
|
@@ -3596,8 +3600,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3596
3600
|
], 64);
|
|
3597
3601
|
}), 256)),
|
|
3598
3602
|
k(l.$slots, "control-right", {
|
|
3599
|
-
row:
|
|
3600
|
-
column:
|
|
3603
|
+
row: x,
|
|
3604
|
+
column: J,
|
|
3601
3605
|
index: ue
|
|
3602
3606
|
}, void 0, !0)
|
|
3603
3607
|
], !0)
|
|
@@ -3607,26 +3611,26 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3607
3611
|
key: "1"
|
|
3608
3612
|
} : j.type != "selection" && j.type != "index" ? {
|
|
3609
3613
|
name: "default",
|
|
3610
|
-
fn: _(({ row:
|
|
3611
|
-
he(j,
|
|
3614
|
+
fn: _(({ row: x, column: J, $index: ue }) => [
|
|
3615
|
+
he(j, x, J, ue) && ue != -1 ? k(l.$slots, `${de}`, {
|
|
3612
3616
|
key: 0,
|
|
3613
|
-
row:
|
|
3614
|
-
column:
|
|
3617
|
+
row: x,
|
|
3618
|
+
column: J,
|
|
3615
3619
|
index: ue
|
|
3616
3620
|
}, () => {
|
|
3617
3621
|
var Qe;
|
|
3618
3622
|
return [
|
|
3619
3623
|
(p(), A(_t, {
|
|
3620
|
-
modelValue:
|
|
3621
|
-
"onUpdate:modelValue": (Ze) =>
|
|
3622
|
-
item: j == null ? void 0 : j.table(
|
|
3624
|
+
modelValue: x[de],
|
|
3625
|
+
"onUpdate:modelValue": (Ze) => x[de] = Ze,
|
|
3626
|
+
item: j == null ? void 0 : j.table(x, J, ue),
|
|
3623
3627
|
ctrlKey: de,
|
|
3624
3628
|
key: `${de}-${ue} -${se.value}`,
|
|
3625
|
-
ctrlType: (Qe = j.table(
|
|
3629
|
+
ctrlType: (Qe = j.table(x, J, ue)) != null && Qe.type ? j.table(x, J, ue).type : j.type,
|
|
3626
3630
|
model: e.value,
|
|
3627
3631
|
class: "g-ctrl-container",
|
|
3628
3632
|
t: "t",
|
|
3629
|
-
formInfo:
|
|
3633
|
+
formInfo: x
|
|
3630
3634
|
}, be({ _: 2 }, [
|
|
3631
3635
|
G(l.$slots, (Ze, Ge) => ({
|
|
3632
3636
|
name: Ge,
|
|
@@ -3642,17 +3646,17 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3642
3646
|
];
|
|
3643
3647
|
}, !0) : k(l.$slots, `${de}`, {
|
|
3644
3648
|
key: 1,
|
|
3645
|
-
row:
|
|
3646
|
-
column:
|
|
3649
|
+
row: x,
|
|
3650
|
+
column: J,
|
|
3647
3651
|
index: ue
|
|
3648
3652
|
}, () => [
|
|
3649
|
-
|
|
3653
|
+
X("div", {
|
|
3650
3654
|
style: Ve([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, j == null ? void 0 : j.style]),
|
|
3651
3655
|
innerHTML: ee(
|
|
3652
3656
|
j,
|
|
3653
|
-
|
|
3657
|
+
J.formatter(x, J, x[de], ue)
|
|
3654
3658
|
)
|
|
3655
|
-
}, null, 12,
|
|
3659
|
+
}, null, 12, Ya)
|
|
3656
3660
|
], !0)
|
|
3657
3661
|
]),
|
|
3658
3662
|
key: "2"
|
|
@@ -3680,7 +3684,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3680
3684
|
], 64);
|
|
3681
3685
|
};
|
|
3682
3686
|
}
|
|
3683
|
-
}),
|
|
3687
|
+
}), La = /* @__PURE__ */ at(Ra, [["__scopeId", "data-v-fb74c643"]]), Ha = { class: "g-tree-table" }, za = { class: "g-tree-container" }, Pa = { class: "g-tree-table-container" }, ja = /* @__PURE__ */ Object.assign({
|
|
3684
3688
|
name: "g-tree-table",
|
|
3685
3689
|
inheritAttrs: !1
|
|
3686
3690
|
}, {
|
|
@@ -3691,9 +3695,9 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3691
3695
|
},
|
|
3692
3696
|
emits: /* @__PURE__ */ tt(["load"], ["update:modelValue"]),
|
|
3693
3697
|
setup(n, { emit: s }) {
|
|
3694
|
-
var $,
|
|
3698
|
+
var $, Q, Y, L;
|
|
3695
3699
|
const a = s, t = lt(n, "modelValue"), r = At(), e = re(
|
|
3696
|
-
typeof (($ = r == null ? void 0 : r.tree) == null ? void 0 : $.width) == "number" ? `${r.tree.width}px` : ((
|
|
3700
|
+
typeof (($ = r == null ? void 0 : r.tree) == null ? void 0 : $.width) == "number" ? `${r.tree.width}px` : ((Q = r == null ? void 0 : r.tree) == null ? void 0 : Q.width) || "180px"
|
|
3697
3701
|
), h = re(((Y = r == null ? void 0 : r.tree) == null ? void 0 : Y.search) === void 0 ? !0 : (L = r == null ? void 0 : r.tree) == null ? void 0 : L.search), c = re({}), D = re(""), f = re(null), v = (V, se) => {
|
|
3698
3702
|
var pe, fe;
|
|
3699
3703
|
if (!V) return !0;
|
|
@@ -3708,8 +3712,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3708
3712
|
f.value.filter(V);
|
|
3709
3713
|
}), (V, se) => {
|
|
3710
3714
|
const ce = P("el-input"), pe = P("el-tree"), fe = P("g-table");
|
|
3711
|
-
return p(), U("div",
|
|
3712
|
-
|
|
3715
|
+
return p(), U("div", Ha, [
|
|
3716
|
+
X("div", {
|
|
3713
3717
|
class: "g-tree-left",
|
|
3714
3718
|
style: Ve({ width: e.value })
|
|
3715
3719
|
}, [
|
|
@@ -3721,7 +3725,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3721
3725
|
placeholder: "输入节点查询",
|
|
3722
3726
|
clearable: ""
|
|
3723
3727
|
}, null, 8, ["modelValue"])) : $e("", !0),
|
|
3724
|
-
|
|
3728
|
+
X("div", za, [
|
|
3725
3729
|
ae(pe, B({
|
|
3726
3730
|
style: { width: e.value },
|
|
3727
3731
|
"filter-node-method": v,
|
|
@@ -3735,12 +3739,12 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3735
3739
|
node: ie,
|
|
3736
3740
|
data: ge
|
|
3737
3741
|
}, () => [
|
|
3738
|
-
|
|
3742
|
+
X("span", null, _e(ie.label), 1)
|
|
3739
3743
|
], !0)
|
|
3740
3744
|
]),
|
|
3741
3745
|
_: 2
|
|
3742
3746
|
}, [
|
|
3743
|
-
G(V.$slots, (ie, ge,
|
|
3747
|
+
G(V.$slots, (ie, ge, Me) => ({
|
|
3744
3748
|
name: ge,
|
|
3745
3749
|
fn: _((De) => [
|
|
3746
3750
|
k(V.$slots, ge, { data: De }, void 0, !0)
|
|
@@ -3749,12 +3753,12 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3749
3753
|
]), 1040, ["style"])
|
|
3750
3754
|
])
|
|
3751
3755
|
], 4),
|
|
3752
|
-
|
|
3756
|
+
X("div", Pa, [
|
|
3753
3757
|
ae(fe, B({
|
|
3754
3758
|
modelValue: t.value,
|
|
3755
3759
|
"onUpdate:modelValue": se[1] || (se[1] = (ie) => t.value = ie)
|
|
3756
3760
|
}, V.$attrs, { onLoad: u }), be({ _: 2 }, [
|
|
3757
|
-
G(V.$slots, (ie, ge,
|
|
3761
|
+
G(V.$slots, (ie, ge, Me) => ({
|
|
3758
3762
|
name: ge,
|
|
3759
3763
|
fn: _((De) => [
|
|
3760
3764
|
k(V.$slots, ge, { data: De }, void 0, !0)
|
|
@@ -3765,14 +3769,14 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3765
3769
|
]);
|
|
3766
3770
|
};
|
|
3767
3771
|
}
|
|
3768
|
-
}),
|
|
3772
|
+
}), Na = /* @__PURE__ */ at(ja, [["__scopeId", "data-v-c888e4fc"]]), Wa = {
|
|
3769
3773
|
key: 0,
|
|
3770
3774
|
class: "op-group"
|
|
3771
|
-
},
|
|
3775
|
+
}, Ga = {
|
|
3772
3776
|
key: 1,
|
|
3773
3777
|
class: "op-items",
|
|
3774
3778
|
style: { width: "100%", height: "100%" }
|
|
3775
|
-
},
|
|
3779
|
+
}, Xa = ["title"], It = "100px", Qa = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3776
3780
|
__name: "g-select-option",
|
|
3777
3781
|
props: {
|
|
3778
3782
|
columns: {
|
|
@@ -3794,7 +3798,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3794
3798
|
},
|
|
3795
3799
|
setup(n) {
|
|
3796
3800
|
const s = n;
|
|
3797
|
-
return (a, t) => s.title ? (p(), U("div",
|
|
3801
|
+
return (a, t) => s.title ? (p(), U("div", Wa, [
|
|
3798
3802
|
(p(!0), U(te, null, G(s.columns, (r) => (p(), U("span", {
|
|
3799
3803
|
style: Ve({ width: (r == null ? void 0 : r.width) || It, ...r == null ? void 0 : r.titleStyle, textAlign: (r == null ? void 0 : r.align) || "center" }),
|
|
3800
3804
|
key: r.key
|
|
@@ -3803,7 +3807,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3803
3807
|
Re(_e(r.label), 1)
|
|
3804
3808
|
], !0)
|
|
3805
3809
|
], 4))), 128))
|
|
3806
|
-
])) : (p(), U("div",
|
|
3810
|
+
])) : (p(), U("div", Ga, [
|
|
3807
3811
|
(p(!0), U(te, null, G(s.columns, (r) => (p(), U("span", {
|
|
3808
3812
|
style: Ve({ width: (r == null ? void 0 : r.width) || It, textAlign: (r == null ? void 0 : r.align) || "center", ...r == null ? void 0 : r.style }),
|
|
3809
3813
|
key: r.key,
|
|
@@ -3812,24 +3816,24 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3812
3816
|
k(a.$slots, `${n.t}-option-${r.key}`, { col: r }, () => [
|
|
3813
3817
|
Re(_e(n.data[r.key] ?? "-"), 1)
|
|
3814
3818
|
], !0)
|
|
3815
|
-
], 12,
|
|
3819
|
+
], 12, Xa))), 128))
|
|
3816
3820
|
]));
|
|
3817
3821
|
}
|
|
3818
|
-
}),
|
|
3819
|
-
let
|
|
3820
|
-
const
|
|
3822
|
+
}), Za = /* @__PURE__ */ at(Qa, [["__scopeId", "data-v-c0ac6b77"]]), Ja = Object.freeze({}), Jt = [La, xt, Na, Za];
|
|
3823
|
+
let Tt = {};
|
|
3824
|
+
const dr = {
|
|
3821
3825
|
install: (n, s = {}) => {
|
|
3822
|
-
|
|
3826
|
+
Tt = Object.freeze({ ...Ja, ...s }), Jt.forEach((a) => {
|
|
3823
3827
|
n.component(a.name, a);
|
|
3824
|
-
}), n.provide("options",
|
|
3828
|
+
}), n.provide("options", Tt), n.config.globalProperties.$openModal = Ft;
|
|
3825
3829
|
}
|
|
3826
|
-
},
|
|
3830
|
+
}, Ka = (n) => ({ dialog: ll, drawer: al })[n] || null, Ft = (n = {}, s = "dialog") => {
|
|
3827
3831
|
if (typeof document > "u") return () => {
|
|
3828
3832
|
};
|
|
3829
3833
|
const a = document.createElement("div");
|
|
3830
3834
|
let t = () => {
|
|
3831
3835
|
};
|
|
3832
|
-
const r =
|
|
3836
|
+
const r = Ka(s);
|
|
3833
3837
|
if (!r) return () => {
|
|
3834
3838
|
};
|
|
3835
3839
|
const e = re(!0), h = vl({
|
|
@@ -3863,7 +3867,7 @@ const nr = {
|
|
|
3863
3867
|
});
|
|
3864
3868
|
return Jt.forEach((c) => {
|
|
3865
3869
|
h.component(c.name, c);
|
|
3866
|
-
}), h.provide("options",
|
|
3870
|
+
}), h.provide("options", Tt), h.use(tl, { locale: Sl }), document.body.appendChild(a), h.mount(a), t;
|
|
3867
3871
|
};
|
|
3868
3872
|
function Kt(n, s = window.innerWidth) {
|
|
3869
3873
|
if (typeof n == "number")
|
|
@@ -3891,7 +3895,7 @@ function Kt(n, s = window.innerWidth) {
|
|
|
3891
3895
|
}
|
|
3892
3896
|
throw new Error("Unsupported unit in value: " + n);
|
|
3893
3897
|
}
|
|
3894
|
-
const
|
|
3898
|
+
const Fe = (...n) => {
|
|
3895
3899
|
const s = {}, a = (t, r) => (Object.keys(r).forEach((e) => {
|
|
3896
3900
|
t[e] = typeof r[e] == "object" && !Array.isArray(r[e]) ? a(t[e] || {}, r[e]) : r[e];
|
|
3897
3901
|
}), t);
|
|
@@ -3903,12 +3907,12 @@ function je(n, s = (a, t) => s(a, t)) {
|
|
|
3903
3907
|
n.hasOwnProperty(t) && s(t, n[t]) && (a[t] = n[t]);
|
|
3904
3908
|
return a;
|
|
3905
3909
|
}
|
|
3906
|
-
function
|
|
3910
|
+
function er(n, s, a = "value", t = "label", r = "children") {
|
|
3907
3911
|
for (const e of n) {
|
|
3908
3912
|
if (e[a] === s)
|
|
3909
3913
|
return e[t];
|
|
3910
3914
|
if (e[r] && e[r].length > 0) {
|
|
3911
|
-
const h =
|
|
3915
|
+
const h = er(e[r], s, a, t, r);
|
|
3912
3916
|
if (h)
|
|
3913
3917
|
return h;
|
|
3914
3918
|
}
|
|
@@ -3934,7 +3938,7 @@ function Vt(n) {
|
|
|
3934
3938
|
}
|
|
3935
3939
|
return r + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3936
3940
|
}
|
|
3937
|
-
function
|
|
3941
|
+
function tr(n) {
|
|
3938
3942
|
if (typeof n != "number" || isNaN(n) || !isFinite(n))
|
|
3939
3943
|
return "0.00";
|
|
3940
3944
|
const s = n.toFixed(2), [a, t] = s.split(".");
|
|
@@ -3973,10 +3977,10 @@ const Ce = {
|
|
|
3973
3977
|
const n = document.querySelector(".el-dialog");
|
|
3974
3978
|
if (!n || n.querySelector(".dialog-resize-handle"))
|
|
3975
3979
|
return;
|
|
3976
|
-
const s =
|
|
3977
|
-
n.appendChild(s),
|
|
3980
|
+
const s = lr();
|
|
3981
|
+
n.appendChild(s), ar(n), rr(n, s);
|
|
3978
3982
|
});
|
|
3979
|
-
},
|
|
3983
|
+
}, lr = () => {
|
|
3980
3984
|
const n = document.createElement("div");
|
|
3981
3985
|
return Object.assign(n.style, {
|
|
3982
3986
|
position: "absolute",
|
|
@@ -3988,7 +3992,7 @@ const Ce = {
|
|
|
3988
3992
|
cursor: "nwse-resize",
|
|
3989
3993
|
zIndex: "999999999999"
|
|
3990
3994
|
}), n.className = "dialog-resize-handle", n;
|
|
3991
|
-
},
|
|
3995
|
+
}, ar = (n) => {
|
|
3992
3996
|
Object.assign(n.style, {
|
|
3993
3997
|
transition: "none",
|
|
3994
3998
|
minWidth: "300px",
|
|
@@ -3996,7 +4000,7 @@ const Ce = {
|
|
|
3996
4000
|
resize: "none"
|
|
3997
4001
|
// 防止与原生resize冲突
|
|
3998
4002
|
});
|
|
3999
|
-
},
|
|
4003
|
+
}, rr = (n, s) => {
|
|
4000
4004
|
let a = !1, t, r, e, h;
|
|
4001
4005
|
const c = (v) => {
|
|
4002
4006
|
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(n).width), h = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove", D), document.addEventListener("mouseup", f);
|
|
@@ -4013,11 +4017,11 @@ export {
|
|
|
4013
4017
|
Ce as CT,
|
|
4014
4018
|
Et as bindResize,
|
|
4015
4019
|
Kt as convertToPx,
|
|
4016
|
-
|
|
4020
|
+
dr as default,
|
|
4017
4021
|
je as filterObject,
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4022
|
+
er as findTreeLabelByValue,
|
|
4023
|
+
tr as formatAmount,
|
|
4024
|
+
Fe as mergeObjects,
|
|
4021
4025
|
Vt as moneyToChinese,
|
|
4022
|
-
|
|
4026
|
+
Ft as openModal
|
|
4023
4027
|
};
|