vue-2024-ui 0.2.22 → 0.2.24
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 +1040 -1021
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { h as we, mergeModels as tt, useModel as lt, ref as re, nextTick as dt, onMounted as ft, computed as nt, resolveComponent as
|
|
3
|
-
import { CircleCheck as Lt, CircleCheckFilled as
|
|
4
|
-
import
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
1
|
+
import ll, { ElForm as gt, ElButtonGroup as bt, ElButton as Be, ElPopover as Ct, ElMessage as et, ElMessageBox as Ut, ElDialog as al, ElDrawer as rl } 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 L, openBlock as p, createElementBlock as Y, Fragment as te, createElementVNode as X, createBlock as A, createCommentVNode as $e, unref as P, mergeProps as O, withCtx as _, renderSlot as k, renderList as W, createTextVNode as Ve, toDisplayString as Ee, createSlots as be, createVNode as ee, normalizeStyle as qe, normalizeProps as St, useSlots as Yt, inject as qt, useAttrs as At, onUnmounted as ol, withModifiers as wt, resolveDynamicComponent as Ke, guardReactiveProps as nl, Transition as ul, withDirectives as sl, vShow as il, onBeforeUnmount as dl, normalizeClass as Rt, watchEffect as cl, onBeforeMount as fl, watch as vl, createApp as pl } from "vue";
|
|
3
|
+
import { CircleCheck as Lt, CircleCheckFilled as ml, Refresh as Ht, Plus as hl, ZoomIn as yl, Delete as zt, More as gl, Search as bl, InfoFilled as Pt, Download as jt, DocumentCopy as $l, View as wl, Edit as _l, CirclePlus as El, Setting as kl, FullScreen as Cl, CopyDocument as Dl } from "@element-plus/icons-vue";
|
|
4
|
+
import Nt from "sortablejs";
|
|
5
|
+
import { Dexie as Sl } from "dexie";
|
|
6
|
+
var xl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: {
|
|
@@ -181,38 +181,38 @@ var Sl = {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}, Ml = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
184
|
-
function
|
|
184
|
+
function Wt(n) {
|
|
185
185
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var Gt = { exports: {} };
|
|
188
188
|
(function(n, s) {
|
|
189
189
|
(function(a, t) {
|
|
190
190
|
n.exports = t();
|
|
191
191
|
})(Ml, function() {
|
|
192
|
-
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", h = "second",
|
|
192
|
+
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", h = "second", f = "minute", D = "hour", c = "day", v = "week", u = "month", d = "quarter", $ = "year", le = "date", B = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|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, ue = { 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 V = String(w);
|
|
197
|
+
return !V || V.length >= g ? w : "" + Array(g + 1 - V.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), V = Math.floor(i / 60), E = i % 60;
|
|
200
|
+
return (g <= 0 ? "+" : "-") + ce(V, 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 V = 12 * (i.year() - g.year()) + (i.month() - g.month()), E = g.clone().add(V, u), q = i - E < 0, T = g.clone().add(V + (q ? -1 : 1), u);
|
|
204
|
+
return +(-(V + (i - E) / (q ? E - T : T - 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:
|
|
208
|
+
return { M: u, y: $, w: v, d: c, D: le, h: D, m: f, 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
|
-
ie[fe] =
|
|
213
|
-
var ge = "$isDayjsObject",
|
|
212
|
+
ie[fe] = ue;
|
|
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, V) {
|
|
216
216
|
var E;
|
|
217
217
|
if (!g) return fe;
|
|
218
218
|
if (typeof g == "string") {
|
|
@@ -224,14 +224,14 @@ var Wt = { exports: {} };
|
|
|
224
224
|
var Q = g.name;
|
|
225
225
|
ie[Q] = g, E = Q;
|
|
226
226
|
}
|
|
227
|
-
return !
|
|
228
|
-
},
|
|
229
|
-
if (
|
|
227
|
+
return !V && E && (fe = E), E || !V && fe;
|
|
228
|
+
}, J = function(w, g) {
|
|
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
|
-
},
|
|
233
|
-
|
|
234
|
-
return
|
|
232
|
+
}, K = pe;
|
|
233
|
+
K.l = De, K.i = Me, K.w = function(w, g) {
|
|
234
|
+
return J(w, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
235
235
|
};
|
|
236
236
|
var Le = function() {
|
|
237
237
|
function w(i) {
|
|
@@ -239,13 +239,13 @@ 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(V) {
|
|
243
|
+
var E = V.date, q = V.utc;
|
|
244
244
|
if (E === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
|
-
if (
|
|
245
|
+
if (K.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 T = E.match(
|
|
248
|
+
var T = E.match(G);
|
|
249
249
|
if (T) {
|
|
250
250
|
var Q = T[2] - 1 || 0, oe = (T[7] || "0").substring(0, 3);
|
|
251
251
|
return q ? new Date(Date.UTC(T[1], Q, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, oe)) : new Date(T[1], Q, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, oe);
|
|
@@ -257,43 +257,43 @@ var Wt = { exports: {} };
|
|
|
257
257
|
var i = this.$d;
|
|
258
258
|
this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
|
|
259
259
|
}, g.$utils = function() {
|
|
260
|
-
return
|
|
260
|
+
return K;
|
|
261
261
|
}, g.isValid = function() {
|
|
262
|
-
return this.$d.toString() !==
|
|
263
|
-
}, g.isSame = function(i,
|
|
264
|
-
var E =
|
|
265
|
-
return this.startOf(
|
|
266
|
-
}, g.isAfter = function(i,
|
|
267
|
-
return
|
|
268
|
-
}, g.isBefore = function(i,
|
|
269
|
-
return this.endOf(
|
|
270
|
-
}, g.$g = function(i,
|
|
271
|
-
return
|
|
262
|
+
return this.$d.toString() !== B;
|
|
263
|
+
}, g.isSame = function(i, V) {
|
|
264
|
+
var E = J(i);
|
|
265
|
+
return this.startOf(V) <= E && E <= this.endOf(V);
|
|
266
|
+
}, g.isAfter = function(i, V) {
|
|
267
|
+
return J(i) < this.startOf(V);
|
|
268
|
+
}, g.isBefore = function(i, V) {
|
|
269
|
+
return this.endOf(V) < J(i);
|
|
270
|
+
}, g.$g = function(i, V, E) {
|
|
271
|
+
return K.u(i) ? this[V] : 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 = !!
|
|
278
|
-
var he =
|
|
279
|
-
return q ? he : he.endOf(
|
|
280
|
-
}, oe = function(
|
|
281
|
-
return
|
|
282
|
-
},
|
|
276
|
+
}, g.startOf = function(i, V) {
|
|
277
|
+
var E = this, q = !!K.u(V) || V, T = K.p(i), Q = function(I, C) {
|
|
278
|
+
var he = K.w(E.$u ? Date.UTC(E.$y, C, I) : new Date(E.$y, C, I), E);
|
|
279
|
+
return q ? he : he.endOf(c);
|
|
280
|
+
}, oe = function(I, C) {
|
|
281
|
+
return K.w(E.toDate()[I].apply(E.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(C)), E);
|
|
282
|
+
}, ae = this.$W, H = this.$M, z = this.$D, Se = "set" + (this.$u ? "UTC" : "");
|
|
283
283
|
switch (T) {
|
|
284
284
|
case $:
|
|
285
285
|
return q ? Q(1, 0) : Q(31, 11);
|
|
286
286
|
case u:
|
|
287
287
|
return q ? Q(1, H) : Q(0, H + 1);
|
|
288
288
|
case v:
|
|
289
|
-
var me = this.$locale().weekStart || 0,
|
|
290
|
-
return Q(q ? z -
|
|
291
|
-
case
|
|
292
|
-
case
|
|
289
|
+
var me = this.$locale().weekStart || 0, Te = (ae < me ? ae + 7 : ae) - me;
|
|
290
|
+
return Q(q ? z - Te : z + (6 - Te), H);
|
|
291
|
+
case c:
|
|
292
|
+
case le:
|
|
293
293
|
return oe(Se + "Hours", 0);
|
|
294
294
|
case D:
|
|
295
295
|
return oe(Se + "Minutes", 1);
|
|
296
|
-
case
|
|
296
|
+
case f:
|
|
297
297
|
return oe(Se + "Seconds", 2);
|
|
298
298
|
case h:
|
|
299
299
|
return oe(Se + "Milliseconds", 3);
|
|
@@ -302,92 +302,92 @@ 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 =
|
|
305
|
+
}, g.$set = function(i, V) {
|
|
306
|
+
var E, q = K.p(i), T = "set" + (this.$u ? "UTC" : ""), Q = (E = {}, E[c] = T + "Date", E[le] = T + "Date", E[u] = T + "Month", E[$] = T + "FullYear", E[D] = T + "Hours", E[f] = T + "Minutes", E[h] = T + "Seconds", E[e] = T + "Milliseconds", E)[q], oe = q === c ? this.$D + (V - this.$W) : V;
|
|
307
307
|
if (q === u || q === $) {
|
|
308
|
-
var
|
|
309
|
-
|
|
308
|
+
var ae = this.clone().set(le, 1);
|
|
309
|
+
ae.$d[Q](oe), ae.init(), this.$d = ae.set(le, Math.min(this.$D, ae.daysInMonth())).$d;
|
|
310
310
|
} else Q && this.$d[Q](oe);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
}, g.set = function(i,
|
|
313
|
-
return this.clone().$set(i,
|
|
312
|
+
}, g.set = function(i, V) {
|
|
313
|
+
return this.clone().$set(i, V);
|
|
314
314
|
}, g.get = function(i) {
|
|
315
|
-
return this[
|
|
316
|
-
}, g.add = function(i,
|
|
315
|
+
return this[K.p(i)]();
|
|
316
|
+
}, g.add = function(i, V) {
|
|
317
317
|
var E, q = this;
|
|
318
318
|
i = Number(i);
|
|
319
|
-
var T =
|
|
320
|
-
var z =
|
|
321
|
-
return
|
|
319
|
+
var T = K.p(V), Q = function(H) {
|
|
320
|
+
var z = J(q);
|
|
321
|
+
return K.w(z.date(z.date() + Math.round(H * i)), q);
|
|
322
322
|
};
|
|
323
323
|
if (T === u) return this.set(u, this.$M + i);
|
|
324
324
|
if (T === $) return this.set($, this.$y + i);
|
|
325
|
-
if (T ===
|
|
325
|
+
if (T === c) return Q(1);
|
|
326
326
|
if (T === v) return Q(7);
|
|
327
|
-
var oe = (E = {}, E[
|
|
328
|
-
return
|
|
329
|
-
}, g.subtract = function(i,
|
|
330
|
-
return this.add(-1 * i,
|
|
327
|
+
var oe = (E = {}, E[f] = t, E[D] = r, E[h] = a, E)[T] || 1, ae = this.$d.getTime() + i * oe;
|
|
328
|
+
return K.w(ae, this);
|
|
329
|
+
}, g.subtract = function(i, V) {
|
|
330
|
+
return this.add(-1 * i, V);
|
|
331
331
|
}, g.format = function(i) {
|
|
332
|
-
var
|
|
333
|
-
if (!this.isValid()) return E.invalidDate ||
|
|
334
|
-
var q = i || "YYYY-MM-DDTHH:mm:ssZ", T =
|
|
335
|
-
return C && (C[he] || C(
|
|
336
|
-
},
|
|
337
|
-
return
|
|
338
|
-
},
|
|
339
|
-
var
|
|
340
|
-
return
|
|
332
|
+
var V = this, E = this.$locale();
|
|
333
|
+
if (!this.isValid()) return E.invalidDate || B;
|
|
334
|
+
var q = i || "YYYY-MM-DDTHH:mm:ssZ", T = K.z(this), Q = this.$H, oe = this.$m, ae = this.$M, H = E.weekdays, z = E.months, Se = E.meridiem, me = function(C, he, Oe, xe) {
|
|
335
|
+
return C && (C[he] || C(V, q)) || Oe[he].slice(0, xe);
|
|
336
|
+
}, Te = function(C) {
|
|
337
|
+
return K.s(Q % 12 || 12, C, "0");
|
|
338
|
+
}, I = Se || function(C, he, Oe) {
|
|
339
|
+
var xe = C < 12 ? "AM" : "PM";
|
|
340
|
+
return Oe ? xe.toLowerCase() : xe;
|
|
341
341
|
};
|
|
342
|
-
return q.replace(
|
|
343
|
-
return he || function(
|
|
344
|
-
switch (
|
|
342
|
+
return q.replace(S, function(C, he) {
|
|
343
|
+
return he || function(Oe) {
|
|
344
|
+
switch (Oe) {
|
|
345
345
|
case "YY":
|
|
346
|
-
return String(
|
|
346
|
+
return String(V.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return
|
|
348
|
+
return K.s(V.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
|
-
return
|
|
350
|
+
return ae + 1;
|
|
351
351
|
case "MM":
|
|
352
|
-
return
|
|
352
|
+
return K.s(ae + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return me(E.monthsShort,
|
|
354
|
+
return me(E.monthsShort, ae, z, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return me(z,
|
|
356
|
+
return me(z, ae);
|
|
357
357
|
case "D":
|
|
358
|
-
return
|
|
358
|
+
return V.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return
|
|
360
|
+
return K.s(V.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
|
-
return String(
|
|
362
|
+
return String(V.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return me(E.weekdaysMin,
|
|
364
|
+
return me(E.weekdaysMin, V.$W, H, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return me(E.weekdaysShort,
|
|
366
|
+
return me(E.weekdaysShort, V.$W, H, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return H[
|
|
368
|
+
return H[V.$W];
|
|
369
369
|
case "H":
|
|
370
370
|
return String(Q);
|
|
371
371
|
case "HH":
|
|
372
|
-
return
|
|
372
|
+
return K.s(Q, 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
|
|
378
|
+
return I(Q, oe, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return
|
|
380
|
+
return I(Q, oe, !1);
|
|
381
381
|
case "m":
|
|
382
382
|
return String(oe);
|
|
383
383
|
case "mm":
|
|
384
|
-
return
|
|
384
|
+
return K.s(oe, 2, "0");
|
|
385
385
|
case "s":
|
|
386
|
-
return String(
|
|
386
|
+
return String(V.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return
|
|
388
|
+
return K.s(V.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return
|
|
390
|
+
return K.s(V.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
392
|
return T;
|
|
393
393
|
}
|
|
@@ -396,9 +396,9 @@ var Wt = { exports: {} };
|
|
|
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, T = this, Q =
|
|
401
|
-
return
|
|
399
|
+
}, g.diff = function(i, V, E) {
|
|
400
|
+
var q, T = this, Q = K.p(V), oe = J(i), ae = (oe.utcOffset() - this.utcOffset()) * t, H = this - oe, z = function() {
|
|
401
|
+
return K.m(T, oe);
|
|
402
402
|
};
|
|
403
403
|
switch (Q) {
|
|
404
404
|
case $:
|
|
@@ -411,15 +411,15 @@ var Wt = { exports: {} };
|
|
|
411
411
|
q = z() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case v:
|
|
414
|
-
q = (H -
|
|
414
|
+
q = (H - ae) / 6048e5;
|
|
415
415
|
break;
|
|
416
|
-
case
|
|
417
|
-
q = (H -
|
|
416
|
+
case c:
|
|
417
|
+
q = (H - ae) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case D:
|
|
420
420
|
q = H / r;
|
|
421
421
|
break;
|
|
422
|
-
case
|
|
422
|
+
case f:
|
|
423
423
|
q = H / t;
|
|
424
424
|
break;
|
|
425
425
|
case h:
|
|
@@ -428,17 +428,17 @@ var Wt = { exports: {} };
|
|
|
428
428
|
default:
|
|
429
429
|
q = H;
|
|
430
430
|
}
|
|
431
|
-
return E ? q :
|
|
431
|
+
return E ? q : K.a(q);
|
|
432
432
|
}, g.daysInMonth = function() {
|
|
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, V) {
|
|
437
437
|
if (!i) return this.$L;
|
|
438
|
-
var E = this.clone(), q = De(i,
|
|
438
|
+
var E = this.clone(), q = De(i, V, !0);
|
|
439
439
|
return q && (E.$L = q), E;
|
|
440
440
|
}, g.clone = function() {
|
|
441
|
-
return
|
|
441
|
+
return K.w(this.$d, this);
|
|
442
442
|
}, g.toDate = function() {
|
|
443
443
|
return new Date(this.valueOf());
|
|
444
444
|
}, g.toJSON = function() {
|
|
@@ -448,20 +448,20 @@ var Wt = { exports: {} };
|
|
|
448
448
|
}, g.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, w;
|
|
451
|
-
}(),
|
|
452
|
-
return
|
|
453
|
-
|
|
451
|
+
}(), x = Le.prototype;
|
|
452
|
+
return J.prototype = x, [["$ms", e], ["$s", h], ["$m", f], ["$H", D], ["$W", c], ["$M", u], ["$y", $], ["$D", le]].forEach(function(w) {
|
|
453
|
+
x[w[1]] = function(g) {
|
|
454
454
|
return this.$g(g, w[0], w[1]);
|
|
455
455
|
};
|
|
456
|
-
}),
|
|
457
|
-
return w.$i || (w(g, Le,
|
|
458
|
-
},
|
|
459
|
-
return
|
|
460
|
-
},
|
|
456
|
+
}), J.extend = function(w, g) {
|
|
457
|
+
return w.$i || (w(g, Le, J), w.$i = !0), J;
|
|
458
|
+
}, J.locale = De, J.isDayjs = Me, J.unix = function(w) {
|
|
459
|
+
return J(1e3 * w);
|
|
460
|
+
}, J.en = ie[fe], J.Ls = ie, J.p = {}, J;
|
|
461
461
|
});
|
|
462
|
-
})(
|
|
463
|
-
var Tl =
|
|
464
|
-
const Dt = /* @__PURE__ */
|
|
462
|
+
})(Gt);
|
|
463
|
+
var Tl = Gt.exports;
|
|
464
|
+
const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
465
465
|
inline: !0,
|
|
466
466
|
type: "hidden",
|
|
467
467
|
"scroll-to-error": !0,
|
|
@@ -500,7 +500,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
500
500
|
label: "保存提交",
|
|
501
501
|
plain: !0,
|
|
502
502
|
hidden: !0,
|
|
503
|
-
icon: () => we(
|
|
503
|
+
icon: () => we(ml)
|
|
504
504
|
},
|
|
505
505
|
//表单重置按钮属性
|
|
506
506
|
reset: {
|
|
@@ -523,7 +523,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
523
523
|
}, Fl = {
|
|
524
524
|
style: { display: "flex", width: "100%" },
|
|
525
525
|
class: "g-ctrl-container"
|
|
526
|
-
},
|
|
526
|
+
}, Vl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, ql = ["title"], Al = ["innerHTML"], Bl = ["innerHTML"], Ol = ["innerHTML"], Il = ["innerHTML"], Ul = ["innerHTML"], Yl = ["innerHTML"], Rl = ["innerHTML"], Ll = /* @__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,20 +531,20 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
531
531
|
}),
|
|
532
532
|
emits: ["update:modelValue"],
|
|
533
533
|
setup(n) {
|
|
534
|
-
var
|
|
535
|
-
const s = lt(n, "modelValue"), a = n, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), h = re(a.model),
|
|
536
|
-
!((
|
|
537
|
-
const d = re({ display: "flex", flex: 1 }), $ = a.t === "t" ? "center" : "flex-start",
|
|
538
|
-
d.value = { ...d.value, justifyContent: $, ...
|
|
539
|
-
const
|
|
540
|
-
const
|
|
534
|
+
var x, w, g, i, V, E, q, T, Q, oe, ae, H, z, Se, me, Te;
|
|
535
|
+
const s = lt(n, "modelValue"), a = n, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), h = re(a.model), f = re([]), D = re([]), c = re(!1), v = re(!1), u = re((w = (x = h == null ? void 0 : h.value) == null ? void 0 : x.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
|
+
!((V = e.value) != null && V.startsWith("text")) && !((E = e.value) != null && E.startsWith("link")) && !((q = e.value) != null && q.startsWith("tag")) && !((T = e.value) != null && T.startsWith("div")) && !((Q = e.value) != null && Q.startsWith("span")) && !((oe = e.value) != null && oe.startsWith("avatar")) && ((ae = t.value) != null && ae.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", le = ((Se = t.value) == null ? void 0 : Se.style) || {};
|
|
538
|
+
d.value = { ...d.value, justifyContent: $, ...le };
|
|
539
|
+
const B = () => {
|
|
540
|
+
const I = Yt(), C = Object.keys(I), he = `${a.t}-${r.value}-`;
|
|
541
541
|
return C.filter((Ne) => Ne.startsWith(he)).map((Ne) => Ne.replace(he, ""));
|
|
542
|
-
},
|
|
542
|
+
}, G = re({
|
|
543
543
|
multiple: !1,
|
|
544
544
|
"show-file-list": !1,
|
|
545
545
|
"file-list": [],
|
|
546
|
-
showDel: (me = t.value) != null && me.showDel ? (
|
|
547
|
-
}),
|
|
546
|
+
showDel: (me = t.value) != null && me.showDel ? (Te = t.value) == null ? void 0 : Te.showDel : a.t !== "t"
|
|
547
|
+
}), S = re(t.value.innerHtml), ue = (I) => [
|
|
548
548
|
"year",
|
|
549
549
|
"years",
|
|
550
550
|
"month",
|
|
@@ -557,7 +557,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
557
557
|
"daterange",
|
|
558
558
|
"monthrange",
|
|
559
559
|
"yearrange"
|
|
560
|
-
].includes(
|
|
560
|
+
].includes(I), ce = (I) => ({
|
|
561
561
|
year: "YYYY",
|
|
562
562
|
years: "YYYY",
|
|
563
563
|
month: "YYYY-MM",
|
|
@@ -571,60 +571,60 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
571
571
|
daterange: "YYYY-MM-DD",
|
|
572
572
|
monthrange: "YYYY-MM",
|
|
573
573
|
yearrange: "YYYY"
|
|
574
|
-
})[
|
|
574
|
+
})[I] || "YYYY-MM-DD", pe = re({
|
|
575
575
|
filterable: !0,
|
|
576
576
|
remote: !!(t.value && t.value["remote-method"]),
|
|
577
577
|
...t.value
|
|
578
|
-
}), fe = re((
|
|
579
|
-
t.value["remote-method"](
|
|
578
|
+
}), fe = re((I) => {
|
|
579
|
+
t.value["remote-method"](I, (C) => {
|
|
580
580
|
dt(() => {
|
|
581
581
|
D.value = C;
|
|
582
582
|
});
|
|
583
583
|
});
|
|
584
|
-
}), ie = async (
|
|
584
|
+
}), ie = async (I = "options") => {
|
|
585
585
|
var C;
|
|
586
586
|
try {
|
|
587
587
|
const he = await ((C = t.value) == null ? void 0 : C.getDicts(a.formInfo));
|
|
588
588
|
if (typeof he == "string")
|
|
589
589
|
D.value = [{ label: he, value: s.value }];
|
|
590
590
|
else {
|
|
591
|
-
const
|
|
592
|
-
...
|
|
593
|
-
value:
|
|
594
|
-
label:
|
|
591
|
+
const Oe = he == null ? void 0 : he.map((xe, Ne) => ({
|
|
592
|
+
...xe,
|
|
593
|
+
value: xe.value ?? xe.label ?? Ne,
|
|
594
|
+
label: xe.label || "未知选项"
|
|
595
595
|
}));
|
|
596
|
-
D.value =
|
|
596
|
+
D.value = Oe || [];
|
|
597
597
|
}
|
|
598
598
|
} catch (he) {
|
|
599
599
|
throw console.error("获取选项失败:", he), he;
|
|
600
600
|
}
|
|
601
601
|
}, ge = () => {
|
|
602
|
-
var
|
|
603
|
-
t.value.noSearch !== !0 && a.t === "q" && ((C = (
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
}, De = (
|
|
607
|
-
|
|
608
|
-
},
|
|
609
|
-
|
|
610
|
-
},
|
|
602
|
+
var I, C;
|
|
603
|
+
t.value.noSearch !== !0 && a.t === "q" && ((C = (I = h.value) == null ? void 0 : I.table) == null || C.load());
|
|
604
|
+
}, Me = (I) => {
|
|
605
|
+
I.preventDefault(), I.stopPropagation(), s.value = "";
|
|
606
|
+
}, De = (I) => {
|
|
607
|
+
c.value = !0;
|
|
608
|
+
}, J = (I) => {
|
|
609
|
+
I.preventDefault(), I.stopPropagation(), c.value = !0;
|
|
610
|
+
}, K = re(null);
|
|
611
611
|
ft(async () => {
|
|
612
|
-
var he,
|
|
613
|
-
t.value && t.value["remote-method"] && (pe.value["remote-method"] = fe), (
|
|
614
|
-
const
|
|
612
|
+
var he, Oe, xe, Ne, rt;
|
|
613
|
+
t.value && t.value["remote-method"] && (pe.value["remote-method"] = fe), (Oe = (he = h.value[r.value]) == null ? void 0 : he.options) != null && Oe.length && (D.value = h.value[r.value].options);
|
|
614
|
+
const I = (Ie, He = "options", ze = h.value[r.value]) => {
|
|
615
615
|
typeof t.value.getDicts == "function" && ie(He).catch((Pe) => {
|
|
616
|
-
console.error(`Failed to load ${He} for ${
|
|
616
|
+
console.error(`Failed to load ${He} for ${Ie}:`, Pe);
|
|
617
617
|
});
|
|
618
618
|
};
|
|
619
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) &&
|
|
619
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && I(e.value), e.value === Ce.TREESELECT && await (async () => {
|
|
620
620
|
try {
|
|
621
|
-
typeof t.value.getDicts == "function" ?
|
|
621
|
+
typeof t.value.getDicts == "function" ? f.value = await t.value.getDicts(a.formInfo) : f.value = D.value;
|
|
622
622
|
} catch (He) {
|
|
623
623
|
console.error("Failed to load data for tree-select:", He);
|
|
624
624
|
}
|
|
625
625
|
})(), a.t == "q") {
|
|
626
|
-
let
|
|
627
|
-
(
|
|
626
|
+
let Ie = t.value.type || e.value;
|
|
627
|
+
(Ie === void 0 || e.value === "input" || Ie == Ce.NUMBER || Ie == Ce.EMAIL || Ie == "url" || Ie == "text") && t.value.onKeyup == null && (t.value.onKeyup = (He) => {
|
|
628
628
|
var ze, Pe;
|
|
629
629
|
(He.keyCode === 13 || He.key === "Enter") && ((Pe = (ze = h.value) == null ? void 0 : ze.table) == null || Pe.load());
|
|
630
630
|
}), [
|
|
@@ -643,88 +643,88 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
643
643
|
"datetime",
|
|
644
644
|
"datetimerange",
|
|
645
645
|
"week"
|
|
646
|
-
].includes(
|
|
646
|
+
].includes(Ie) && t.value.onChange === void 0 && (t.value.onChange = (He) => {
|
|
647
647
|
var ze, Pe;
|
|
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 = K.value) != null && xe.$el) && K.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((Ne = K.value) != null && Ne.$el) && K.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((rt = K.value) != null && rt.$el) && K.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
|
-
var
|
|
655
|
-
return t.value["file-list"] && t.value["file-list"].length ? (
|
|
654
|
+
var I;
|
|
655
|
+
return t.value["file-list"] && t.value["file-list"].length ? (I = t.value["file-list"]) == null ? void 0 : I.map((C) => C == null ? void 0 : C.url) : [s.value];
|
|
656
656
|
});
|
|
657
|
-
return (
|
|
658
|
-
var Z,
|
|
659
|
-
const he =
|
|
660
|
-
return p(),
|
|
661
|
-
|
|
662
|
-
|
|
657
|
+
return (I, C) => {
|
|
658
|
+
var Z, se, Qe, Ze, Ge, Xe, ot, R, Re, Je;
|
|
659
|
+
const he = L("el-image-viewer"), Oe = L("el-radio"), xe = L("el-radio-group"), Ne = L("el-radio-button"), rt = L("el-checkbox"), Ie = L("el-checkbox-group"), He = L("el-checkbox-button"), ze = L("g-select-option"), Pe = L("el-option"), vt = L("el-select"), pt = L("el-tree-select"), l = L("el-time-picker"), o = L("el-time-select"), m = L("el-date-picker"), b = L("el-color-picker"), F = L("el-rate"), U = L("el-slider"), N = L("el-switch"), ye = L("el-transfer"), _e = L("el-cascader"), Ae = L("el-icon"), Ue = L("el-image"), Ye = L("el-tooltip"), We = L("el-upload"), st = L("el-autocomplete"), mt = L("el-input-number"), ct = L("el-input"), ht = L("el-link"), j = L("el-text"), de = L("el-avatar"), M = L("el-tag");
|
|
660
|
+
return p(), Y(te, null, [
|
|
661
|
+
X("div", null, [
|
|
662
|
+
c.value ? (p(), A(he, {
|
|
663
663
|
key: 0,
|
|
664
664
|
teleported: !0,
|
|
665
665
|
"url-list": Le.value,
|
|
666
|
-
onClose: C[0] || (C[0] = (y) =>
|
|
666
|
+
onClose: C[0] || (C[0] = (y) => c.value = !1)
|
|
667
667
|
}, null, 8, ["url-list"])) : $e("", !0)
|
|
668
668
|
]),
|
|
669
|
-
|
|
670
|
-
e.value ==
|
|
669
|
+
X("div", Fl, [
|
|
670
|
+
e.value == P(Ce).RADIO ? (p(), A(xe, O({
|
|
671
671
|
key: 0,
|
|
672
672
|
modelValue: s.value,
|
|
673
673
|
"onUpdate:modelValue": C[1] || (C[1] = (y) => s.value = y),
|
|
674
674
|
disabled: h.value[r.value].disabled
|
|
675
675
|
}, t.value), {
|
|
676
676
|
default: _(() => [
|
|
677
|
-
k(
|
|
678
|
-
(p(!0),
|
|
677
|
+
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
678
|
+
(p(!0), Y(te, null, W(D.value, (y) => (p(), A(Oe, O({ ref_for: !0 }, y), {
|
|
679
679
|
default: _(() => [
|
|
680
|
-
k(
|
|
680
|
+
k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
681
681
|
]),
|
|
682
682
|
_: 2
|
|
683
683
|
}, 1040))), 256))
|
|
684
684
|
], !0)
|
|
685
685
|
]),
|
|
686
686
|
_: 3
|
|
687
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
687
|
+
}, 16, ["modelValue", "disabled"])) : e.value == P(Ce).RADIOBUTTON ? (p(), A(xe, O({
|
|
688
688
|
key: 1,
|
|
689
689
|
modelValue: s.value,
|
|
690
690
|
"onUpdate:modelValue": C[2] || (C[2] = (y) => s.value = y),
|
|
691
691
|
disabled: h.value[r.value].disabled
|
|
692
692
|
}, t.value), {
|
|
693
693
|
default: _(() => [
|
|
694
|
-
k(
|
|
695
|
-
(p(!0),
|
|
694
|
+
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
695
|
+
(p(!0), Y(te, null, W(D.value, (y) => (p(), A(Ne, O({ ref_for: !0 }, y), {
|
|
696
696
|
default: _(() => [
|
|
697
|
-
k(
|
|
697
|
+
k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
698
698
|
]),
|
|
699
699
|
_: 2
|
|
700
700
|
}, 1040))), 256))
|
|
701
701
|
], !0)
|
|
702
702
|
]),
|
|
703
703
|
_: 3
|
|
704
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
704
|
+
}, 16, ["modelValue", "disabled"])) : e.value == P(Ce).CHECKBOX ? (p(), A(rt, O({
|
|
705
705
|
key: 2,
|
|
706
706
|
modelValue: s.value,
|
|
707
707
|
"onUpdate:modelValue": C[3] || (C[3] = (y) => s.value = y),
|
|
708
708
|
disabled: h.value[r.value].disabled
|
|
709
709
|
}, t.value), {
|
|
710
710
|
default: _(() => [
|
|
711
|
-
k(
|
|
712
|
-
C[27] || (C[27] =
|
|
711
|
+
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
712
|
+
C[27] || (C[27] = Ve(Ee(" ")))
|
|
713
713
|
], !0)
|
|
714
714
|
]),
|
|
715
715
|
_: 3
|
|
716
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
716
|
+
}, 16, ["modelValue", "disabled"])) : e.value == P(Ce).CHECKBOXGROUP ? (p(), A(Ie, O({
|
|
717
717
|
key: 3,
|
|
718
718
|
modelValue: s.value,
|
|
719
719
|
"onUpdate:modelValue": C[4] || (C[4] = (y) => s.value = y),
|
|
720
720
|
disabled: h.value[r.value].disabled
|
|
721
721
|
}, t.value), {
|
|
722
722
|
default: _(() => [
|
|
723
|
-
k(
|
|
724
|
-
(p(!0),
|
|
723
|
+
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
724
|
+
(p(!0), Y(te, null, W(D.value, (y) => (p(), A(rt, O({ ref_for: !0 }, y), {
|
|
725
725
|
default: _(() => [
|
|
726
|
-
k(
|
|
727
|
-
|
|
726
|
+
k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, () => [
|
|
727
|
+
Ve(Ee(y.label), 1)
|
|
728
728
|
], !0)
|
|
729
729
|
]),
|
|
730
730
|
_: 2
|
|
@@ -732,24 +732,24 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
732
732
|
], !0)
|
|
733
733
|
]),
|
|
734
734
|
_: 3
|
|
735
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
735
|
+
}, 16, ["modelValue", "disabled"])) : e.value == P(Ce).CHECKBOXGROUPBUTTON ? (p(), A(Ie, O({
|
|
736
736
|
key: 4,
|
|
737
737
|
modelValue: s.value,
|
|
738
738
|
"onUpdate:modelValue": C[5] || (C[5] = (y) => s.value = y),
|
|
739
739
|
disabled: h.value[r.value].disabled
|
|
740
740
|
}, t.value), {
|
|
741
741
|
default: _(() => [
|
|
742
|
-
k(
|
|
743
|
-
(p(!0),
|
|
742
|
+
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
743
|
+
(p(!0), Y(te, null, W(D.value, (y) => (p(), A(He, O({ ref_for: !0 }, y), {
|
|
744
744
|
default: _(() => [
|
|
745
|
-
k(
|
|
745
|
+
k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
746
746
|
]),
|
|
747
747
|
_: 2
|
|
748
748
|
}, 1040))), 256))
|
|
749
749
|
], !0)
|
|
750
750
|
]),
|
|
751
751
|
_: 3
|
|
752
|
-
}, 16, ["modelValue", "disabled"])) : e.value ===
|
|
752
|
+
}, 16, ["modelValue", "disabled"])) : e.value === P(Ce).SELECT ? (p(), A(vt, O({
|
|
753
753
|
key: 5,
|
|
754
754
|
modelValue: s.value,
|
|
755
755
|
"onUpdate:modelValue": C[6] || (C[6] = (y) => s.value = y),
|
|
@@ -761,11 +761,11 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
761
761
|
disabled: h.value[r.value].disabled
|
|
762
762
|
}, pe.value), be({
|
|
763
763
|
default: _(() => [
|
|
764
|
-
k(
|
|
765
|
-
(p(!0),
|
|
764
|
+
k(I.$slots, `${a.t}-${r.value}`, { options: D.value }, () => [
|
|
765
|
+
(p(!0), Y(te, null, W(D.value, (y) => (p(), Y(te, {
|
|
766
766
|
key: y.value
|
|
767
767
|
}, [
|
|
768
|
-
|
|
768
|
+
ee(Pe, O({ ref_for: !0 }, P(je)(y, (ne) => ne != "children"), {
|
|
769
769
|
onClick: (ne) => {
|
|
770
770
|
pe.value.change && pe.value.change(y), ge();
|
|
771
771
|
}
|
|
@@ -773,21 +773,21 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
773
773
|
default: _(() => {
|
|
774
774
|
var ne;
|
|
775
775
|
return [
|
|
776
|
-
(ne = t.value) != null && ne.columns ? k(
|
|
776
|
+
(ne = t.value) != null && ne.columns ? k(I.$slots, `${a.t}-${r.value}-options`, {
|
|
777
777
|
key: 0,
|
|
778
778
|
option: y
|
|
779
779
|
}, () => {
|
|
780
780
|
var ke;
|
|
781
781
|
return [
|
|
782
|
-
|
|
782
|
+
ee(ze, {
|
|
783
783
|
columns: (ke = t.value) == null ? void 0 : ke.columns,
|
|
784
784
|
data: y,
|
|
785
785
|
t: a.t
|
|
786
786
|
}, be({ _: 2 }, [
|
|
787
|
-
|
|
787
|
+
W(I.$slots, (it, kt) => ({
|
|
788
788
|
name: kt,
|
|
789
789
|
fn: _((yt) => [
|
|
790
|
-
k(
|
|
790
|
+
k(I.$slots, kt, {
|
|
791
791
|
option: y,
|
|
792
792
|
data: yt,
|
|
793
793
|
form: n.formInfo
|
|
@@ -801,11 +801,11 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
801
801
|
}),
|
|
802
802
|
_: 2
|
|
803
803
|
}, 1040, ["onClick"]),
|
|
804
|
-
y.children && y.children.length ? (p(!0),
|
|
804
|
+
y.children && y.children.length ? (p(!0), Y(te, { key: 0 }, W(y.children, (ne) => (p(), A(Pe, O({
|
|
805
805
|
style: { "margin-left": "20px" },
|
|
806
806
|
key: ne.value,
|
|
807
807
|
ref_for: !0
|
|
808
|
-
},
|
|
808
|
+
}, P(je)(ne, (ke) => ke != "children"), {
|
|
809
809
|
onClick: (ke) => {
|
|
810
810
|
pe.value.change && pe.value.change(ne), ge();
|
|
811
811
|
}
|
|
@@ -813,23 +813,23 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
813
813
|
default: _(() => {
|
|
814
814
|
var ke;
|
|
815
815
|
return [
|
|
816
|
-
(ke = t.value) != null && ke.columns ? k(
|
|
816
|
+
(ke = t.value) != null && ke.columns ? k(I.$slots, `${a.t}-${r.value}-options`, {
|
|
817
817
|
key: 0,
|
|
818
818
|
option: ne
|
|
819
819
|
}, () => {
|
|
820
820
|
var it;
|
|
821
821
|
return [
|
|
822
|
-
|
|
822
|
+
ee(ze, {
|
|
823
823
|
columns: (it = t.value) == null ? void 0 : it.columns,
|
|
824
824
|
data: ne,
|
|
825
825
|
t: a.t
|
|
826
826
|
}, be({ _: 2 }, [
|
|
827
|
-
|
|
827
|
+
W(I.$slots, (kt, yt) => ({
|
|
828
828
|
name: yt,
|
|
829
|
-
fn: _((
|
|
830
|
-
k(
|
|
829
|
+
fn: _((tl) => [
|
|
830
|
+
k(I.$slots, yt, {
|
|
831
831
|
option: ne,
|
|
832
|
-
data:
|
|
832
|
+
data: tl,
|
|
833
833
|
form: n.formInfo
|
|
834
834
|
}, void 0, !0)
|
|
835
835
|
])
|
|
@@ -851,15 +851,15 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
851
851
|
fn: _(() => {
|
|
852
852
|
var y;
|
|
853
853
|
return [
|
|
854
|
-
|
|
854
|
+
ee(ze, {
|
|
855
855
|
columns: (y = t.value) == null ? void 0 : y.columns,
|
|
856
856
|
title: !0,
|
|
857
857
|
t: a.t
|
|
858
858
|
}, be({ _: 2 }, [
|
|
859
|
-
|
|
859
|
+
W(I.$slots, (ne, ke) => ({
|
|
860
860
|
name: ke,
|
|
861
861
|
fn: _((it) => [
|
|
862
|
-
k(
|
|
862
|
+
k(I.$slots, ke, { data: it }, void 0, !0)
|
|
863
863
|
])
|
|
864
864
|
}))
|
|
865
865
|
]), 1032, ["columns", "t"])
|
|
@@ -867,32 +867,32 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
867
867
|
}),
|
|
868
868
|
key: "0"
|
|
869
869
|
} : void 0,
|
|
870
|
-
|
|
870
|
+
W(B(), (y) => ({
|
|
871
871
|
name: y,
|
|
872
872
|
fn: _((ne) => [
|
|
873
|
-
k(
|
|
873
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { form: n.formInfo }, void 0, !0)
|
|
874
874
|
])
|
|
875
875
|
}))
|
|
876
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
876
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == P(Ce).TREESELECT ? (p(), A(pt, O({
|
|
877
877
|
key: 6,
|
|
878
878
|
modelValue: s.value,
|
|
879
879
|
"onUpdate:modelValue": C[8] || (C[8] = (y) => s.value = y),
|
|
880
880
|
placeholder: u.value,
|
|
881
881
|
disabled: h.value[r.value].disabled
|
|
882
|
-
}, t.value, { data:
|
|
883
|
-
|
|
882
|
+
}, t.value, { data: f.value }), be({ _: 2 }, [
|
|
883
|
+
W(B(), (y) => ({
|
|
884
884
|
name: y,
|
|
885
885
|
fn: _((ne) => [
|
|
886
|
-
k(
|
|
886
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ne }, void 0, !0)
|
|
887
887
|
])
|
|
888
888
|
}))
|
|
889
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value ==
|
|
889
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == P(Ce).TIME ? (p(), A(l, O({
|
|
890
890
|
key: 7,
|
|
891
891
|
modelValue: s.value,
|
|
892
892
|
"onUpdate:modelValue": C[9] || (C[9] = (y) => s.value = y),
|
|
893
893
|
"arrow-control": "",
|
|
894
894
|
disabled: h.value[r.value].disabled
|
|
895
|
-
}, t.value, { placeholder: u.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value ==
|
|
895
|
+
}, t.value, { placeholder: u.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == P(Ce).TIMESELECT ? (p(), A(o, O({
|
|
896
896
|
key: 8,
|
|
897
897
|
modelValue: s.value,
|
|
898
898
|
"onUpdate:modelValue": C[10] || (C[10] = (y) => s.value = y),
|
|
@@ -901,7 +901,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
901
901
|
end: "23:30",
|
|
902
902
|
placeholder: u.value,
|
|
903
903
|
disabled: h.value[r.value].disabled
|
|
904
|
-
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) :
|
|
904
|
+
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : ue(e.value) ? (p(), A(m, O({
|
|
905
905
|
key: 9,
|
|
906
906
|
modelValue: s.value,
|
|
907
907
|
"onUpdate:modelValue": C[11] || (C[11] = (y) => s.value = y),
|
|
@@ -910,131 +910,131 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
910
910
|
"value-format": ce(e.value),
|
|
911
911
|
disabled: h.value[r.value].disabled
|
|
912
912
|
}, t.value), be({ _: 2 }, [
|
|
913
|
-
|
|
913
|
+
W(B(), (y) => ({
|
|
914
914
|
name: y,
|
|
915
915
|
fn: _((ne) => [
|
|
916
|
-
k(
|
|
916
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ne }, void 0, !0)
|
|
917
917
|
])
|
|
918
918
|
}))
|
|
919
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value ==
|
|
919
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == P(Ce).COLOR ? (p(), A(b, O({
|
|
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 ==
|
|
923
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == P(Ce).RATE ? (p(), A(F, O({
|
|
924
924
|
key: 11,
|
|
925
925
|
modelValue: s.value,
|
|
926
926
|
"onUpdate:modelValue": C[13] || (C[13] = (y) => s.value = y),
|
|
927
927
|
disabled: h.value[r.value].disabled
|
|
928
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
928
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == P(Ce).SLIDER ? (p(), A(U, O({
|
|
929
929
|
key: 12,
|
|
930
930
|
modelValue: s.value,
|
|
931
931
|
"onUpdate:modelValue": C[14] || (C[14] = (y) => s.value = y),
|
|
932
932
|
disabled: h.value[r.value].disabled
|
|
933
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
933
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == P(Ce).SWITCH ? (p(), A(N, O({
|
|
934
934
|
key: 13,
|
|
935
935
|
modelValue: s.value,
|
|
936
936
|
"onUpdate:modelValue": C[15] || (C[15] = (y) => s.value = y),
|
|
937
937
|
inlinePrompt: !0,
|
|
938
938
|
disabled: h.value[r.value].disabled
|
|
939
939
|
}, t.value), be({ _: 2 }, [
|
|
940
|
-
|
|
940
|
+
W(B(), (y) => ({
|
|
941
941
|
name: y,
|
|
942
942
|
fn: _((ne) => [
|
|
943
|
-
k(
|
|
943
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ne }, void 0, !0)
|
|
944
944
|
])
|
|
945
945
|
}))
|
|
946
|
-
]), 1040, ["modelValue", "disabled"])) : e.value ==
|
|
946
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == P(Ce).TRANSFER ? (p(), A(ye, O({
|
|
947
947
|
key: 14,
|
|
948
948
|
modelValue: s.value,
|
|
949
949
|
"onUpdate:modelValue": C[16] || (C[16] = (y) => s.value = y)
|
|
950
950
|
}, t.value), be({ _: 2 }, [
|
|
951
|
-
|
|
951
|
+
W(B(), (y) => ({
|
|
952
952
|
name: y,
|
|
953
953
|
fn: _((ne) => [
|
|
954
|
-
k(
|
|
954
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ne }, void 0, !0)
|
|
955
955
|
])
|
|
956
956
|
}))
|
|
957
|
-
]), 1040, ["modelValue"])) : e.value ==
|
|
957
|
+
]), 1040, ["modelValue"])) : e.value == P(Ce).CASCADER ? (p(), A(_e, O({
|
|
958
958
|
key: 15,
|
|
959
959
|
modelValue: s.value,
|
|
960
960
|
"onUpdate:modelValue": C[17] || (C[17] = (y) => s.value = y)
|
|
961
961
|
}, t.value, { options: D.value }), be({ _: 2 }, [
|
|
962
|
-
|
|
962
|
+
W(B(), (y) => ({
|
|
963
963
|
name: y,
|
|
964
964
|
fn: _((ne) => [
|
|
965
|
-
k(
|
|
965
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ne }, void 0, !0)
|
|
966
966
|
])
|
|
967
967
|
}))
|
|
968
|
-
]), 1040, ["modelValue", "options"])) : e.value ==
|
|
968
|
+
]), 1040, ["modelValue", "options"])) : e.value == P(Ce).IMAGE ? (p(), A(We, O({
|
|
969
969
|
key: 16,
|
|
970
970
|
"file-list": t.value["file-list"],
|
|
971
971
|
"onUpdate:fileList": C[21] || (C[21] = (y) => t.value["file-list"] = y),
|
|
972
972
|
"list-type": "picture-card",
|
|
973
973
|
class: "custom-upload",
|
|
974
974
|
"on-preview": De
|
|
975
|
-
}, { ...
|
|
975
|
+
}, { ...G.value, ...t.value }, {
|
|
976
976
|
ref_key: "uploadRef",
|
|
977
|
-
ref:
|
|
977
|
+
ref: K
|
|
978
978
|
}), be({
|
|
979
979
|
default: _(() => {
|
|
980
980
|
var y;
|
|
981
981
|
return [
|
|
982
|
-
s.value ? (p(),
|
|
982
|
+
s.value ? (p(), Y("div", {
|
|
983
983
|
key: 1,
|
|
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
|
-
|
|
988
|
-
|
|
987
|
+
X("div", Vl, [
|
|
988
|
+
ee(Ue, O({
|
|
989
989
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
990
990
|
src: s.value
|
|
991
991
|
}, { fit: "cover", lazy: !0, ...(y = t.value) == null ? void 0 : y.img }), be({ _: 2 }, [
|
|
992
|
-
|
|
992
|
+
W(B(), (ne, ke) => ({
|
|
993
993
|
name: ne,
|
|
994
994
|
fn: _((it) => [
|
|
995
|
-
k(
|
|
995
|
+
k(I.$slots, `${a.t}-${r.value}-${ne}`, { data: it }, void 0, !0)
|
|
996
996
|
])
|
|
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),
|
|
1004
1004
|
class: "up-view"
|
|
1005
1005
|
}, [
|
|
1006
|
-
v.value ? (p(), A(
|
|
1006
|
+
v.value ? (p(), A(Ye, {
|
|
1007
1007
|
key: 0,
|
|
1008
1008
|
content: "查看大图",
|
|
1009
1009
|
placement: "top"
|
|
1010
1010
|
}, {
|
|
1011
1011
|
default: _(() => [
|
|
1012
|
-
|
|
1012
|
+
ee(P(yl), {
|
|
1013
1013
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1014
1014
|
color: "white",
|
|
1015
|
-
onClick:
|
|
1015
|
+
onClick: J
|
|
1016
1016
|
})
|
|
1017
1017
|
]),
|
|
1018
1018
|
_: 1
|
|
1019
1019
|
})) : $e("", !0),
|
|
1020
|
-
|
|
1020
|
+
G.value.showDel && v.value ? (p(), A(Ye, {
|
|
1021
1021
|
key: 1,
|
|
1022
1022
|
content: "删除",
|
|
1023
1023
|
placement: "top"
|
|
1024
1024
|
}, {
|
|
1025
1025
|
default: _(() => [
|
|
1026
|
-
|
|
1026
|
+
ee(P(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
|
|
1033
1033
|
})) : $e("", !0)
|
|
1034
1034
|
], 32)
|
|
1035
|
-
])) : (p(), A(
|
|
1035
|
+
])) : (p(), A(Ae, { key: 0 }, {
|
|
1036
1036
|
default: _(() => [
|
|
1037
|
-
|
|
1037
|
+
ee(P(hl))
|
|
1038
1038
|
]),
|
|
1039
1039
|
_: 1
|
|
1040
1040
|
}))
|
|
@@ -1042,24 +1042,24 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1042
1042
|
}),
|
|
1043
1043
|
_: 2
|
|
1044
1044
|
}, [
|
|
1045
|
-
|
|
1045
|
+
W(B(), (y, ne) => ({
|
|
1046
1046
|
name: y,
|
|
1047
1047
|
fn: _((ke) => [
|
|
1048
|
-
k(
|
|
1048
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ke }, void 0, !0)
|
|
1049
1049
|
])
|
|
1050
1050
|
}))
|
|
1051
|
-
]), 1040, ["file-list"])) : e.value ==
|
|
1051
|
+
]), 1040, ["file-list"])) : e.value == P(Ce).AUTOCOMPLETE ? (p(), A(st, O({
|
|
1052
1052
|
key: 17,
|
|
1053
1053
|
modelValue: s.value,
|
|
1054
1054
|
"onUpdate:modelValue": C[22] || (C[22] = (y) => s.value = y)
|
|
1055
1055
|
}, t.value, { placeholder: u.value }), be({ _: 2 }, [
|
|
1056
|
-
|
|
1056
|
+
W(B(), (y, ne) => ({
|
|
1057
1057
|
name: y,
|
|
1058
1058
|
fn: _((ke) => [
|
|
1059
|
-
k(
|
|
1059
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ke }, void 0, !0)
|
|
1060
1060
|
])
|
|
1061
1061
|
}))
|
|
1062
|
-
]), 1040, ["modelValue", "placeholder"])) : e.value ==
|
|
1062
|
+
]), 1040, ["modelValue", "placeholder"])) : e.value == P(Ce).INPUTNUMBER ? (p(), A(mt, O({
|
|
1063
1063
|
key: 18,
|
|
1064
1064
|
modelValue: s.value,
|
|
1065
1065
|
"onUpdate:modelValue": C[23] || (C[23] = (y) => s.value = y),
|
|
@@ -1068,76 +1068,76 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1068
1068
|
placeholder: u.value,
|
|
1069
1069
|
disabled: h.value[r.value].disabled
|
|
1070
1070
|
}, t.value), be({ _: 2 }, [
|
|
1071
|
-
|
|
1071
|
+
W(B(), (y, ne) => ({
|
|
1072
1072
|
name: y,
|
|
1073
1073
|
fn: _((ke) => [
|
|
1074
|
-
k(
|
|
1074
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ke }, void 0, !0)
|
|
1075
1075
|
])
|
|
1076
1076
|
}))
|
|
1077
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
1077
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == P(Ce).MONEY ? (p(), Y("div", {
|
|
1078
1078
|
key: 19,
|
|
1079
|
-
style:
|
|
1079
|
+
style: qe([{ position: "relative" }, d.value])
|
|
1080
1080
|
}, [
|
|
1081
|
-
|
|
1081
|
+
ee(ct, O({
|
|
1082
1082
|
modelValue: s.value,
|
|
1083
1083
|
"onUpdate:modelValue": C[24] || (C[24] = (y) => s.value = y),
|
|
1084
1084
|
placeholder: u.value,
|
|
1085
1085
|
type: "number",
|
|
1086
|
-
maxlength: ((
|
|
1086
|
+
maxlength: ((se = t.value) == null ? void 0 : se.max) || 25
|
|
1087
1087
|
}, { ...t.value, type: e.value }), be({
|
|
1088
1088
|
suffix: _(() => [
|
|
1089
|
-
|
|
1090
|
-
title:
|
|
1089
|
+
X("div", {
|
|
1090
|
+
title: P(Vt)(s.value),
|
|
1091
1091
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1092
|
-
},
|
|
1092
|
+
}, Ee(P(Vt)(s.value)), 9, ql)
|
|
1093
1093
|
]),
|
|
1094
1094
|
_: 2
|
|
1095
1095
|
}, [
|
|
1096
|
-
|
|
1096
|
+
W(B(), (y, ne) => ({
|
|
1097
1097
|
name: y,
|
|
1098
1098
|
fn: _((ke) => [
|
|
1099
|
-
k(
|
|
1099
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, { data: ke }, void 0, !0)
|
|
1100
1100
|
])
|
|
1101
1101
|
}))
|
|
1102
1102
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1103
|
-
], 4)) : (Qe = e.value) != null && Qe.startsWith("link") ? (p(),
|
|
1103
|
+
], 4)) : (Qe = e.value) != null && Qe.startsWith("link") ? (p(), Y("div", {
|
|
1104
1104
|
key: 20,
|
|
1105
|
-
style:
|
|
1105
|
+
style: qe(d.value)
|
|
1106
1106
|
}, [
|
|
1107
|
-
|
|
1107
|
+
ee(ht, O(t.value, {
|
|
1108
1108
|
type: e.value.replace("link-", ""),
|
|
1109
|
-
innerHTML:
|
|
1109
|
+
innerHTML: S.value || s.value
|
|
1110
1110
|
}), null, 16, ["type", "innerHTML"])
|
|
1111
|
-
], 4)) : e.value != "textarea" && ((Ze = e.value) != null && Ze.startsWith("text")) ? (p(),
|
|
1111
|
+
], 4)) : e.value != "textarea" && ((Ze = e.value) != null && Ze.startsWith("text")) ? (p(), Y("div", {
|
|
1112
1112
|
key: 21,
|
|
1113
|
-
style:
|
|
1113
|
+
style: qe(d.value)
|
|
1114
1114
|
}, [
|
|
1115
|
-
|
|
1115
|
+
ee(j, O(t.value, {
|
|
1116
1116
|
type: e.value.replace("text-", ""),
|
|
1117
|
-
innerHTML:
|
|
1117
|
+
innerHTML: S.value || s.value
|
|
1118
1118
|
}), null, 16, ["type", "innerHTML"])
|
|
1119
|
-
], 4)) : e.value == "avatar" ? (p(),
|
|
1119
|
+
], 4)) : e.value == "avatar" ? (p(), Y("div", {
|
|
1120
1120
|
key: 22,
|
|
1121
|
-
style:
|
|
1121
|
+
style: qe(d.value)
|
|
1122
1122
|
}, [
|
|
1123
|
-
|
|
1123
|
+
S.value ? (p(), A(de, St(O({ key: 0 }, t.value)), {
|
|
1124
1124
|
default: _(() => [
|
|
1125
|
-
|
|
1125
|
+
X("div", { innerHTML: S.value }, null, 8, Al)
|
|
1126
1126
|
]),
|
|
1127
1127
|
_: 1
|
|
1128
|
-
}, 16)) : (p(), A(de, St(
|
|
1129
|
-
], 4)) : (Ge = e.value) != null && Ge.startsWith("tag") ? (p(),
|
|
1128
|
+
}, 16)) : (p(), A(de, St(O({ key: 1 }, t.value)), null, 16))
|
|
1129
|
+
], 4)) : (Ge = e.value) != null && Ge.startsWith("tag") ? (p(), Y("div", {
|
|
1130
1130
|
key: 23,
|
|
1131
|
-
style:
|
|
1131
|
+
style: qe(d.value)
|
|
1132
1132
|
}, [
|
|
1133
|
-
Array.isArray(
|
|
1134
|
-
typeof y == "object" ? (p(), A(M,
|
|
1133
|
+
Array.isArray(S.value) && S.value.length > 0 ? (p(!0), Y(te, { key: 0 }, W(S.value, (y, ne) => (p(), Y(te, { key: ne }, [
|
|
1134
|
+
typeof y == "object" ? (p(), A(M, O({
|
|
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(M,
|
|
1140
|
+
}), null, 16, ["innerHTML"])) : (p(), A(M, O({
|
|
1141
1141
|
key: 1,
|
|
1142
1142
|
ref_for: !0
|
|
1143
1143
|
}, t.value, {
|
|
@@ -1145,17 +1145,17 @@ 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(M,
|
|
1148
|
+
], 64))), 128)) : (p(), A(M, O({ key: 1 }, t.value, {
|
|
1149
1149
|
type: e.value.replace("tag-", ""),
|
|
1150
|
-
innerHTML:
|
|
1150
|
+
innerHTML: S.value || s.value
|
|
1151
1151
|
}), null, 16, ["type", "innerHTML"]))
|
|
1152
|
-
], 4)) : e.value == "div" ? (p(),
|
|
1153
|
-
innerHTML:
|
|
1152
|
+
], 4)) : e.value == "div" ? (p(), Y("div", O({ key: 24 }, t.value, {
|
|
1153
|
+
innerHTML: S.value || s.value,
|
|
1154
1154
|
style: d.value
|
|
1155
|
-
}), null, 16,
|
|
1156
|
-
innerHTML:
|
|
1155
|
+
}), null, 16, Bl)) : e.value == "span" ? (p(), Y("span", O({ key: 25 }, t.value, {
|
|
1156
|
+
innerHTML: S.value || s.value,
|
|
1157
1157
|
style: d.value
|
|
1158
|
-
}), null, 16,
|
|
1158
|
+
}), null, 16, Ol)) : (p(), A(ct, O({
|
|
1159
1159
|
key: 26,
|
|
1160
1160
|
modelValue: s.value,
|
|
1161
1161
|
"onUpdate:modelValue": C[25] || (C[25] = (y) => s.value = y),
|
|
@@ -1166,15 +1166,15 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1166
1166
|
a.t == "q" && h.value.table.load();
|
|
1167
1167
|
}),
|
|
1168
1168
|
disabled: h.value[r.value].disabled
|
|
1169
|
-
}, { ...
|
|
1169
|
+
}, { ...P(je)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), be({ _: 2 }, [
|
|
1170
1170
|
(ot = t.value) != null && ot.suffix ? {
|
|
1171
1171
|
name: "suffix",
|
|
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
|
-
}, null, 8,
|
|
1177
|
+
}, null, 8, Il)
|
|
1178
1178
|
];
|
|
1179
1179
|
}),
|
|
1180
1180
|
key: "0"
|
|
@@ -1184,21 +1184,21 @@ 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
|
-
}, null, 8,
|
|
1189
|
+
}, null, 8, Ul)
|
|
1190
1190
|
];
|
|
1191
1191
|
}),
|
|
1192
1192
|
key: "1"
|
|
1193
1193
|
} : void 0,
|
|
1194
|
-
(
|
|
1194
|
+
(Re = t.value) != null && Re.append ? {
|
|
1195
1195
|
name: "append",
|
|
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
|
-
}, null, 8,
|
|
1201
|
+
}, null, 8, Yl)
|
|
1202
1202
|
];
|
|
1203
1203
|
}),
|
|
1204
1204
|
key: "2"
|
|
@@ -1208,17 +1208,17 @@ 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
|
-
}, null, 8,
|
|
1213
|
+
}, null, 8, Rl)
|
|
1214
1214
|
];
|
|
1215
1215
|
}),
|
|
1216
1216
|
key: "3"
|
|
1217
1217
|
} : void 0,
|
|
1218
|
-
|
|
1218
|
+
W(B(), (y, ne) => ({
|
|
1219
1219
|
name: y,
|
|
1220
1220
|
fn: _((ke) => [
|
|
1221
|
-
k(
|
|
1221
|
+
k(I.$slots, `${a.t}-${r.value}-${y}`, {
|
|
1222
1222
|
data: ke,
|
|
1223
1223
|
form: n.formInfo
|
|
1224
1224
|
}, void 0, !0)
|
|
@@ -1229,7 +1229,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1229
1229
|
], 64);
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
1232
|
-
}),
|
|
1232
|
+
}), Et = /* @__PURE__ */ at(Ll, [["__scopeId", "data-v-ecd28c07"]]), Hl = { class: "g-form-container" }, zl = /* @__PURE__ */ Object.assign({
|
|
1233
1233
|
name: "g-form",
|
|
1234
1234
|
inheritAttrs: !1
|
|
1235
1235
|
}, {
|
|
@@ -1240,34 +1240,34 @@ 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,
|
|
1244
|
-
const t = lt(n, "modelValue"), r = a, e = re(null), h = qt("options"),
|
|
1245
|
-
t.value.form =
|
|
1246
|
-
|
|
1243
|
+
var ge, Me, De, J, K, Le;
|
|
1244
|
+
const t = lt(n, "modelValue"), r = a, e = re(null), h = qt("options"), f = re({}), D = re(""), c = n;
|
|
1245
|
+
t.value.form = Fe(
|
|
1246
|
+
Xt,
|
|
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 = (
|
|
1251
|
-
{ ...(
|
|
1249
|
+
), t.value.form.style = Fe(
|
|
1250
|
+
(De = (Me = t.value) == null ? void 0 : Me.form) == null ? void 0 : De.style,
|
|
1251
|
+
{ ...(J = At()) == null ? void 0 : J.style }
|
|
1252
1252
|
);
|
|
1253
|
-
const v = async (
|
|
1253
|
+
const v = async (x, 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((V, E) => {
|
|
1258
|
+
V ? r("submit", x, w, g) : console.error("表单验证不通过!", E);
|
|
1259
1259
|
});
|
|
1260
1260
|
return;
|
|
1261
1261
|
}
|
|
1262
|
-
i--, await new Promise((
|
|
1262
|
+
i--, await new Promise((V) => setTimeout(V, 50));
|
|
1263
1263
|
}
|
|
1264
1264
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1265
|
-
}, u = async (
|
|
1265
|
+
}, u = async (x, w) => {
|
|
1266
1266
|
let g = 5;
|
|
1267
1267
|
for (; g > 0; ) {
|
|
1268
1268
|
if (await dt(), e.value)
|
|
1269
1269
|
try {
|
|
1270
|
-
e.value.resetFields(), r("reset",
|
|
1270
|
+
e.value.resetFields(), r("reset", x, w);
|
|
1271
1271
|
return;
|
|
1272
1272
|
} catch (i) {
|
|
1273
1273
|
console.error("表单重置失败:", i);
|
|
@@ -1285,24 +1285,24 @@ 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
|
+
(K = t == null ? void 0 : t.value) == null ? void 0 : K.formItems
|
|
1292
1292
|
);
|
|
1293
1293
|
const $ = {
|
|
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 le = (x) => {
|
|
1303
1303
|
let w = [];
|
|
1304
|
-
if (
|
|
1305
|
-
w =
|
|
1304
|
+
if (x.rules)
|
|
1305
|
+
w = x.rules;
|
|
1306
1306
|
else {
|
|
1307
1307
|
const i = { ...{
|
|
1308
1308
|
required: void 0,
|
|
@@ -1312,20 +1312,20 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1312
1312
|
url: void 0,
|
|
1313
1313
|
pattern: void 0,
|
|
1314
1314
|
validate: void 0
|
|
1315
|
-
}, ...
|
|
1315
|
+
}, ...x };
|
|
1316
1316
|
i.required && w.push({
|
|
1317
1317
|
required: !0,
|
|
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: (V, 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: (V, 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,7 +1338,7 @@ 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: (V, E, q) => {
|
|
1342
1342
|
if (E == null || E === "") return q();
|
|
1343
1343
|
const T = Number(i.min), Q = Number(i.max);
|
|
1344
1344
|
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? q(
|
|
@@ -1355,13 +1355,13 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
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: (V, E, q) => i.validate(V, E, q)
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
1361
|
return w;
|
|
1362
|
-
},
|
|
1363
|
-
var
|
|
1364
|
-
const g = w ?
|
|
1362
|
+
}, B = (x, w = !1) => {
|
|
1363
|
+
var V, E, q, T, Q;
|
|
1364
|
+
const g = w ? x : x == null ? void 0 : x.item, i = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(f.value, (V = t.value.form) == null ? void 0 : V.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 };
|
|
@@ -1371,59 +1371,59 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1371
1371
|
return { ...i, ...oe };
|
|
1372
1372
|
}
|
|
1373
1373
|
return i;
|
|
1374
|
-
},
|
|
1375
|
-
var g, i,
|
|
1376
|
-
const w = typeof
|
|
1377
|
-
return ((i = t.value.form) == null ? void 0 : i.modalState) === "edit" ? ((
|
|
1374
|
+
}, G = (x) => {
|
|
1375
|
+
var g, i, V, E, q;
|
|
1376
|
+
const w = typeof x.editor == "function" ? x.editor(f.value, (g = t.value.form) == null ? void 0 : g.modalState) : x.editor;
|
|
1377
|
+
return ((i = t.value.form) == null ? void 0 : i.modalState) === "edit" ? ((V = w == null ? void 0 : w.ep) == null ? void 0 : V.type) ?? (w == null ? void 0 : w.type) ?? x.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) ?? x.type : (w == null ? void 0 : w.type) ?? x.type;
|
|
1378
1378
|
};
|
|
1379
1379
|
ft(() => {
|
|
1380
|
-
|
|
1381
|
-
}),
|
|
1380
|
+
S(), c != null && c.editForm ? f.value = c.editForm : f.value = ce.value;
|
|
1381
|
+
}), ol(() => {
|
|
1382
1382
|
e.value = null;
|
|
1383
1383
|
});
|
|
1384
|
-
const
|
|
1384
|
+
const S = () => {
|
|
1385
1385
|
D.value = Math.random().toString(36).substring(2);
|
|
1386
|
-
for (const [
|
|
1387
|
-
t.value[
|
|
1388
|
-
...t.value[
|
|
1386
|
+
for (const [x, w] of Object.entries(ue.value))
|
|
1387
|
+
t.value[x].formItem = {
|
|
1388
|
+
...t.value[x].formItem,
|
|
1389
1389
|
...w.formItem
|
|
1390
|
-
}, t.value[
|
|
1391
|
-
...t.value[
|
|
1390
|
+
}, t.value[x].formItem.style = {
|
|
1391
|
+
...t.value[x].formItem.style,
|
|
1392
1392
|
...w.formItem.style
|
|
1393
1393
|
};
|
|
1394
|
-
},
|
|
1394
|
+
}, ue = nt(
|
|
1395
1395
|
() => Object.fromEntries(
|
|
1396
|
-
Object.entries(t.value).filter((
|
|
1397
|
-
var g, i,
|
|
1398
|
-
const w = typeof
|
|
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" ? ((
|
|
1400
|
-
}).map((
|
|
1396
|
+
Object.entries(t.value).filter((x) => x[1].type != "hidden").filter((x) => x[1].hidden !== !0).filter((x) => x[1].edit !== !1).filter((x) => x[1].editor !== !1).filter((x) => x[1].type !== "control").filter((x) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(x[0])).filter((x) => {
|
|
1397
|
+
var g, i, V;
|
|
1398
|
+
const w = typeof x[1].editor == "function" ? x[1].editor(f.value, (g = t.value.form) == null ? void 0 : g.modalState) : x[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" ? ((V = w == null ? void 0 : w.ap) == null ? void 0 : V.editor) !== !1 : !0;
|
|
1400
|
+
}).map((x) => [x[0], x[1]])
|
|
1401
1401
|
)
|
|
1402
1402
|
), ce = nt(
|
|
1403
1403
|
() => Object.fromEntries(
|
|
1404
|
-
Object.entries(t.value).filter((
|
|
1404
|
+
Object.entries(t.value).filter((x) => x[1].type != "hidden").filter((x) => x[1].type != "control").map((x) => [x[0], x[1].value])
|
|
1405
1405
|
)
|
|
1406
1406
|
), pe = nt(() => {
|
|
1407
|
-
const
|
|
1408
|
-
return Object.entries(
|
|
1407
|
+
const x = /* @__PURE__ */ new Map();
|
|
1408
|
+
return Object.entries(ue.value).forEach(([w, g]) => {
|
|
1409
1409
|
if (g.groupName) {
|
|
1410
1410
|
const i = g.groupName;
|
|
1411
|
-
|
|
1411
|
+
x.has(i) || x.set(i, {
|
|
1412
1412
|
groupName: i,
|
|
1413
1413
|
items: []
|
|
1414
|
-
}),
|
|
1414
|
+
}), x.get(i).items.push({ key: w, item: g });
|
|
1415
1415
|
}
|
|
1416
|
-
}),
|
|
1417
|
-
w.tabPane =
|
|
1416
|
+
}), x.forEach((w) => {
|
|
1417
|
+
w.tabPane = Fe(
|
|
1418
1418
|
...w.items.map(({ item: g }) => g.tabPane || {})
|
|
1419
1419
|
);
|
|
1420
|
-
}), Array.from(
|
|
1420
|
+
}), Array.from(x.values());
|
|
1421
1421
|
}), fe = re([
|
|
1422
1422
|
{
|
|
1423
1423
|
name: "f-submit",
|
|
1424
1424
|
label: t.value.form.submit.label,
|
|
1425
1425
|
click: t.value.form.submit.click,
|
|
1426
|
-
hidden:
|
|
1426
|
+
hidden: c.flag === "view" ? !0 : t.value.form.submit.hidden,
|
|
1427
1427
|
info: t.value.form.submit,
|
|
1428
1428
|
// filterObject(model.value.form.submit, (k) => !["click"].includes(k)),
|
|
1429
1429
|
sort: t.value.form.submit.sort ?? 1,
|
|
@@ -1436,7 +1436,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1436
1436
|
name: "f-save-submit",
|
|
1437
1437
|
label: t.value.form.saveSubmit.label,
|
|
1438
1438
|
click: t.value.form.saveSubmit.click,
|
|
1439
|
-
hidden: !(
|
|
1439
|
+
hidden: !(c.flag == "add" && t.value.form.saveSubmit.hidden === !1),
|
|
1440
1440
|
info: t.value.form.saveSubmit,
|
|
1441
1441
|
// filterObject(model.value.form.saveSubmit, (k) => !["click"].includes(k)),
|
|
1442
1442
|
sort: t.value.form.saveSubmit.sort ?? 1,
|
|
@@ -1451,27 +1451,27 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1451
1451
|
click: t.value.form.reset.click,
|
|
1452
1452
|
info: t.value.form.reset,
|
|
1453
1453
|
// filterObject(model.value.form.reset, (k) => !["click"].includes(k)),
|
|
1454
|
-
hidden: !(
|
|
1454
|
+
hidden: !(c.flag === "add" && t.value.form.reset.hidden === !1),
|
|
1455
1455
|
sort: t.value.form.reset.sort ?? 2,
|
|
1456
1456
|
// 使用空值合并运算符
|
|
1457
1457
|
originalOrder: 1
|
|
1458
1458
|
// 添加原始顺序标识
|
|
1459
1459
|
}
|
|
1460
|
-
]), ie = nt(() => fe.value.filter((
|
|
1460
|
+
]), ie = nt(() => fe.value.filter((x) => !x.hidden).sort((x, w) => x.sort - w.sort || x.originalOrder - w.originalOrder));
|
|
1461
1461
|
return s({
|
|
1462
1462
|
submit: v,
|
|
1463
1463
|
saveSubmit: v,
|
|
1464
1464
|
reset: u,
|
|
1465
|
-
formData:
|
|
1466
|
-
}), (
|
|
1467
|
-
var Q, oe,
|
|
1468
|
-
const g =
|
|
1469
|
-
return p(),
|
|
1470
|
-
|
|
1465
|
+
formData: f
|
|
1466
|
+
}), (x, w) => {
|
|
1467
|
+
var Q, oe, ae;
|
|
1468
|
+
const g = L("el-form-item"), i = L("el-col"), V = L("el-tab-pane"), E = L("el-tabs"), q = L("el-form"), T = L("el-button");
|
|
1469
|
+
return p(), Y("div", Hl, [
|
|
1470
|
+
ee(q, O(
|
|
1471
1471
|
{
|
|
1472
1472
|
ref_key: "gform",
|
|
1473
1473
|
ref: e,
|
|
1474
|
-
model:
|
|
1474
|
+
model: f.value,
|
|
1475
1475
|
style: {
|
|
1476
1476
|
width: "98%",
|
|
1477
1477
|
padding: 0,
|
|
@@ -1479,21 +1479,21 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1479
1479
|
"box-sizing": "border-box"
|
|
1480
1480
|
}
|
|
1481
1481
|
},
|
|
1482
|
-
|
|
1482
|
+
P(je)(
|
|
1483
1483
|
t.value.form,
|
|
1484
1484
|
(H) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(H)
|
|
1485
1485
|
)
|
|
1486
1486
|
), {
|
|
1487
1487
|
default: _(() => [
|
|
1488
|
-
pe.value.length > 0 ? k(
|
|
1489
|
-
|
|
1488
|
+
pe.value.length > 0 ? k(x.$slots, "default", { key: 0 }, () => [
|
|
1489
|
+
ee(E, O({
|
|
1490
1490
|
class: "demo-tabs",
|
|
1491
1491
|
modelValue: pe.value[0].groupName,
|
|
1492
1492
|
"onUpdate:modelValue": w[0] || (w[0] = (H) => pe.value[0].groupName = H),
|
|
1493
1493
|
style: { width: "100%" }
|
|
1494
1494
|
}, t.value.form.tabs), {
|
|
1495
1495
|
default: _(() => [
|
|
1496
|
-
(p(!0),
|
|
1496
|
+
(p(!0), Y(te, null, W(pe.value, (H) => (p(), A(V, O({
|
|
1497
1497
|
key: H.groupName,
|
|
1498
1498
|
label: H.groupName,
|
|
1499
1499
|
name: H.groupName,
|
|
@@ -1501,42 +1501,42 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1501
1501
|
ref_for: !0
|
|
1502
1502
|
}, H.tabPane), {
|
|
1503
1503
|
default: _(() => [
|
|
1504
|
-
(p(!0),
|
|
1504
|
+
(p(!0), Y(te, null, W(H.items, (z, Se) => (p(), A(i, O({ ref_for: !0 }, { ...t.value.form.cols, ...z == null ? void 0 : z.item.col }, {
|
|
1505
1505
|
key: z.key,
|
|
1506
1506
|
style: { width: "100%" }
|
|
1507
1507
|
}), {
|
|
1508
1508
|
default: _(() => {
|
|
1509
|
-
var me,
|
|
1509
|
+
var me, Te;
|
|
1510
1510
|
return [
|
|
1511
|
-
|
|
1511
|
+
ee(g, O({
|
|
1512
1512
|
label: z == null ? void 0 : z.item.label,
|
|
1513
1513
|
prop: z.key,
|
|
1514
|
-
rules:
|
|
1514
|
+
rules: le(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
|
-
k(
|
|
1518
|
+
k(x.$slots, "f-" + z.key, {
|
|
1519
1519
|
item: z == null ? void 0 : z.item,
|
|
1520
|
-
formInfo:
|
|
1520
|
+
formInfo: f.value,
|
|
1521
1521
|
model: t.value,
|
|
1522
|
-
form:
|
|
1522
|
+
form: f.value
|
|
1523
1523
|
}, () => [
|
|
1524
|
-
(p(), A(
|
|
1525
|
-
modelValue:
|
|
1526
|
-
"onUpdate:modelValue": (
|
|
1527
|
-
item:
|
|
1524
|
+
(p(), A(Et, {
|
|
1525
|
+
modelValue: f.value[z.key],
|
|
1526
|
+
"onUpdate:modelValue": (I) => f.value[z.key] = I,
|
|
1527
|
+
item: B(z),
|
|
1528
1528
|
ctrlKey: z.key,
|
|
1529
|
-
ctrlType:
|
|
1529
|
+
ctrlType: G(z == null ? void 0 : z.item),
|
|
1530
1530
|
model: t.value,
|
|
1531
1531
|
key: `${z.key}-${D.value}`,
|
|
1532
1532
|
class: "g-ctrl-container",
|
|
1533
1533
|
t: "f",
|
|
1534
|
-
formInfo:
|
|
1534
|
+
formInfo: f.value
|
|
1535
1535
|
}, be({ _: 2 }, [
|
|
1536
|
-
|
|
1536
|
+
W(x.$slots, (I, C) => ({
|
|
1537
1537
|
name: C,
|
|
1538
1538
|
fn: _((he) => [
|
|
1539
|
-
k(
|
|
1539
|
+
k(x.$slots, C, {
|
|
1540
1540
|
data: he,
|
|
1541
1541
|
item: z.item,
|
|
1542
1542
|
model: t.value
|
|
@@ -1558,53 +1558,53 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1558
1558
|
]),
|
|
1559
1559
|
_: 3
|
|
1560
1560
|
}, 16, ["modelValue"])
|
|
1561
|
-
], !0) : k(
|
|
1562
|
-
(p(!0),
|
|
1561
|
+
], !0) : k(x.$slots, "default", { key: 1 }, () => [
|
|
1562
|
+
(p(!0), Y(te, null, W(ue.value, (H, z) => (p(), A(i, O({ ref_for: !0 }, { ...t.value.form.cols, ...H.col }, {
|
|
1563
1563
|
key: z,
|
|
1564
1564
|
style: { width: "100%" }
|
|
1565
1565
|
}), {
|
|
1566
1566
|
default: _(() => {
|
|
1567
1567
|
var Se;
|
|
1568
1568
|
return [
|
|
1569
|
-
|
|
1569
|
+
ee(g, O({
|
|
1570
1570
|
label: H.label,
|
|
1571
1571
|
prop: z,
|
|
1572
|
-
rules:
|
|
1572
|
+
rules: le(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) => [
|
|
1576
|
-
k(
|
|
1576
|
+
k(x.$slots, `f-${z}-label`, {
|
|
1577
1577
|
data: me,
|
|
1578
1578
|
item: H,
|
|
1579
1579
|
model: t.value
|
|
1580
1580
|
}, () => [
|
|
1581
|
-
|
|
1581
|
+
Ve(Ee(H.label), 1)
|
|
1582
1582
|
], !0)
|
|
1583
1583
|
]),
|
|
1584
1584
|
default: _(() => [
|
|
1585
|
-
k(
|
|
1585
|
+
k(x.$slots, "f-" + z, {
|
|
1586
1586
|
item: H,
|
|
1587
|
-
formInfo:
|
|
1587
|
+
formInfo: f.value,
|
|
1588
1588
|
model: t.value,
|
|
1589
|
-
form:
|
|
1589
|
+
form: f.value
|
|
1590
1590
|
}, () => [
|
|
1591
|
-
(p(), A(
|
|
1592
|
-
modelValue:
|
|
1593
|
-
"onUpdate:modelValue": (me) =>
|
|
1594
|
-
item:
|
|
1591
|
+
(p(), A(Et, {
|
|
1592
|
+
modelValue: f.value[z],
|
|
1593
|
+
"onUpdate:modelValue": (me) => f.value[z] = me,
|
|
1594
|
+
item: B(H, !0),
|
|
1595
1595
|
ctrlKey: z,
|
|
1596
|
-
ctrlType:
|
|
1596
|
+
ctrlType: G(H),
|
|
1597
1597
|
key: `${z}-${D.value}`,
|
|
1598
1598
|
model: t.value,
|
|
1599
1599
|
class: "g-ctrl-container",
|
|
1600
1600
|
t: "f",
|
|
1601
|
-
formInfo:
|
|
1601
|
+
formInfo: f.value
|
|
1602
1602
|
}, be({ _: 2 }, [
|
|
1603
|
-
|
|
1604
|
-
name:
|
|
1605
|
-
fn: _((
|
|
1606
|
-
k(
|
|
1607
|
-
data:
|
|
1603
|
+
W(x.$slots, (me, Te) => ({
|
|
1604
|
+
name: Te,
|
|
1605
|
+
fn: _((I) => [
|
|
1606
|
+
k(x.$slots, Te, {
|
|
1607
|
+
data: I,
|
|
1608
1608
|
item: H,
|
|
1609
1609
|
model: t.value
|
|
1610
1610
|
}, void 0, !0)
|
|
@@ -1623,38 +1623,38 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1623
1623
|
]),
|
|
1624
1624
|
_: 3
|
|
1625
1625
|
}, 16, ["model"]),
|
|
1626
|
-
(
|
|
1627
|
-
|
|
1628
|
-
style:
|
|
1626
|
+
(ae = (oe = (Q = t.value) == null ? void 0 : Q.form) == null ? void 0 : oe.footer) != null && ae.hidden ? $e("", !0) : k(x.$slots, "f-footer", { key: 0 }, () => [
|
|
1627
|
+
X("div", {
|
|
1628
|
+
style: qe(t.value.form.footer.style)
|
|
1629
1629
|
}, [
|
|
1630
|
-
k(
|
|
1631
|
-
(p(!0),
|
|
1632
|
-
k(
|
|
1633
|
-
k(
|
|
1630
|
+
k(x.$slots, "f-footer-left", {}, void 0, !0),
|
|
1631
|
+
(p(!0), Y(te, null, W(ie.value, (H) => (p(), Y(te, null, [
|
|
1632
|
+
k(x.$slots, H.name + "-left", {}, void 0, !0),
|
|
1633
|
+
k(x.$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(T,
|
|
1636
|
+
(z = H == null ? void 0 : H.info) != null && z.hidden ? $e("", !0) : (p(), A(T, O({
|
|
1637
1637
|
key: 0,
|
|
1638
1638
|
ref_for: !0
|
|
1639
1639
|
}, H.info, {
|
|
1640
|
-
onClick: wt((Se) => H.click(
|
|
1640
|
+
onClick: wt((Se) => H.click(f.value, t.value, H.flag), ["stop"])
|
|
1641
1641
|
}), {
|
|
1642
1642
|
default: _(() => [
|
|
1643
|
-
|
|
1643
|
+
Ve(Ee(H == null ? void 0 : H.label), 1)
|
|
1644
1644
|
]),
|
|
1645
1645
|
_: 2
|
|
1646
1646
|
}, 1040, ["onClick"]))
|
|
1647
1647
|
];
|
|
1648
1648
|
}, !0),
|
|
1649
|
-
k(
|
|
1649
|
+
k(x.$slots, H.name + "-right", {}, void 0, !0)
|
|
1650
1650
|
], 64))), 256)),
|
|
1651
|
-
k(
|
|
1651
|
+
k(x.$slots, "f-footer-right", {}, void 0, !0)
|
|
1652
1652
|
], 4)
|
|
1653
1653
|
], !0)
|
|
1654
1654
|
]);
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
|
-
}),
|
|
1657
|
+
}), xt = /* @__PURE__ */ at(zl, [["__scopeId", "data-v-a28ff0af"]]), Bt = {
|
|
1658
1658
|
__name: "g-query-item",
|
|
1659
1659
|
props: /* @__PURE__ */ tt(["more"], {
|
|
1660
1660
|
modelValue: { required: !0 },
|
|
@@ -1665,31 +1665,31 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1665
1665
|
emits: ["update:modelValue", "update:info"],
|
|
1666
1666
|
setup(n) {
|
|
1667
1667
|
const s = lt(n, "modelValue"), a = n, t = lt(n, "info"), r = (D) => {
|
|
1668
|
-
let
|
|
1668
|
+
let c = Object.entries(s.value).filter((u) => {
|
|
1669
1669
|
var d;
|
|
1670
1670
|
return typeof u[1].search == "function" ? u[1].search && ((d = u[1].search(t.value, s.value.table)) == null ? void 0 : d.more) === D : u[1].search && u[1].search.more === D;
|
|
1671
|
-
}).map((u) => [u[0], u[1]]), v = Object.fromEntries(
|
|
1671
|
+
}).map((u) => [u[0], u[1]]), v = Object.fromEntries(c);
|
|
1672
1672
|
return nt(() => v).value;
|
|
1673
1673
|
}, e = (D) => typeof D.search == "function" ? D.search(t.value, s.value.table) : D.search || {}, h = (D) => {
|
|
1674
|
-
const
|
|
1675
|
-
return (
|
|
1676
|
-
},
|
|
1674
|
+
const c = e(D);
|
|
1675
|
+
return (c == null ? void 0 : c.type) || D.type;
|
|
1676
|
+
}, f = (D) => {
|
|
1677
1677
|
var u;
|
|
1678
|
-
const
|
|
1679
|
-
let v = (
|
|
1678
|
+
const c = e(D);
|
|
1679
|
+
let v = (c == null ? void 0 : c.width) || ((u = s.value.queryItems) == null ? void 0 : u.width) || "100%";
|
|
1680
1680
|
return isNaN(v) || (v += "px"), v;
|
|
1681
1681
|
};
|
|
1682
|
-
return (D,
|
|
1683
|
-
const v =
|
|
1684
|
-
return p(!0),
|
|
1682
|
+
return (D, c) => {
|
|
1683
|
+
const v = L("el-form-item");
|
|
1684
|
+
return p(!0), Y(te, null, W(r(a.more), (u, d) => k(D.$slots, `q-${d}`, {
|
|
1685
1685
|
key: d,
|
|
1686
1686
|
item: u,
|
|
1687
1687
|
queryModel: t.value,
|
|
1688
1688
|
model: s.value
|
|
1689
1689
|
}, () => [
|
|
1690
|
-
|
|
1690
|
+
ee(v, O({
|
|
1691
1691
|
label: u.label,
|
|
1692
|
-
style: { width:
|
|
1692
|
+
style: { width: f(u) },
|
|
1693
1693
|
ref_for: !0
|
|
1694
1694
|
}, { ...s.value.queryItems, ...e(u) }), {
|
|
1695
1695
|
label: _(() => [
|
|
@@ -1699,7 +1699,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1699
1699
|
})
|
|
1700
1700
|
]),
|
|
1701
1701
|
default: _(() => [
|
|
1702
|
-
|
|
1702
|
+
ee(Et, {
|
|
1703
1703
|
modelValue: t.value[d],
|
|
1704
1704
|
"onUpdate:modelValue": ($) => t.value[d] = $,
|
|
1705
1705
|
item: { ...u == null ? void 0 : u.editor, ...e(u) },
|
|
@@ -1709,11 +1709,11 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1709
1709
|
t: "q",
|
|
1710
1710
|
formInfo: t.value
|
|
1711
1711
|
}, be({ _: 2 }, [
|
|
1712
|
-
|
|
1712
|
+
W(Object.keys(D.$slots), ($) => ({
|
|
1713
1713
|
name: $,
|
|
1714
|
-
fn: _((
|
|
1714
|
+
fn: _((le) => [
|
|
1715
1715
|
k(D.$slots, $, {
|
|
1716
|
-
data:
|
|
1716
|
+
data: le,
|
|
1717
1717
|
item: u,
|
|
1718
1718
|
model: s.value
|
|
1719
1719
|
})
|
|
@@ -1726,10 +1726,10 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1726
1726
|
])), 128);
|
|
1727
1727
|
};
|
|
1728
1728
|
}
|
|
1729
|
-
},
|
|
1729
|
+
}, Pl = {
|
|
1730
1730
|
key: 0,
|
|
1731
1731
|
class: "outer"
|
|
1732
|
-
},
|
|
1732
|
+
}, jl = { class: "inner" }, Nl = {
|
|
1733
1733
|
__name: "g-query",
|
|
1734
1734
|
props: {
|
|
1735
1735
|
modelValue: { required: !0 },
|
|
@@ -1739,7 +1739,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1739
1739
|
},
|
|
1740
1740
|
emits: /* @__PURE__ */ tt(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1741
1741
|
setup(n, { emit: s }) {
|
|
1742
|
-
const a = lt(n, "modelValue"), t = s, r = qt("options"), e = re(!1), h = lt(n, "info"),
|
|
1742
|
+
const a = lt(n, "modelValue"), t = s, r = qt("options"), e = re(!1), h = lt(n, "info"), f = {
|
|
1743
1743
|
hidden: !1,
|
|
1744
1744
|
type: "hidden",
|
|
1745
1745
|
labelWidth: 100,
|
|
@@ -1756,7 +1756,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1756
1756
|
hidden: !0,
|
|
1757
1757
|
type: "primary",
|
|
1758
1758
|
label: "更多",
|
|
1759
|
-
icon: () => we(
|
|
1759
|
+
icon: () => we(gl),
|
|
1760
1760
|
click: () => {
|
|
1761
1761
|
e.value = !e.value;
|
|
1762
1762
|
}
|
|
@@ -1775,7 +1775,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1775
1775
|
hidden: !1,
|
|
1776
1776
|
type: "primary",
|
|
1777
1777
|
label: "查询",
|
|
1778
|
-
icon: () => we(
|
|
1778
|
+
icon: () => we(bl),
|
|
1779
1779
|
click: () => {
|
|
1780
1780
|
t("query", h.value), e.value = !1;
|
|
1781
1781
|
}
|
|
@@ -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(f, r == null ? void 0 : r.query, a.value.query);
|
|
1795
1795
|
const D = {
|
|
1796
1796
|
2: {
|
|
1797
1797
|
title: "更多查询",
|
|
@@ -1809,11 +1809,11 @@ 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
|
);
|
|
1816
|
-
const
|
|
1816
|
+
const c = {
|
|
1817
1817
|
type: "hidden",
|
|
1818
1818
|
hidden: !1,
|
|
1819
1819
|
labelPosition: "right",
|
|
@@ -1822,26 +1822,26 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1822
1822
|
// width: "280px"
|
|
1823
1823
|
}
|
|
1824
1824
|
};
|
|
1825
|
-
a.value.queryItems =
|
|
1826
|
-
const v = (
|
|
1827
|
-
const
|
|
1825
|
+
a.value.queryItems = Fe(c, r == null ? void 0 : r.queryItems, a.value.queryItems);
|
|
1826
|
+
const v = (B, G) => {
|
|
1827
|
+
const S = Object.keys(B.slots).filter((ue) => ue !== "default").reduce((ue, ce) => (ue[ce] = (pe) => B.slots[ce]({
|
|
1828
1828
|
model: a.value
|
|
1829
1829
|
// 传递当前模型数据
|
|
1830
|
-
}),
|
|
1830
|
+
}), ue), {});
|
|
1831
1831
|
return we(Bt, {
|
|
1832
1832
|
modelValue: a.value,
|
|
1833
|
-
"onUpdate:modelValue": (
|
|
1833
|
+
"onUpdate:modelValue": (ue) => a.value = ue,
|
|
1834
1834
|
info: h.value,
|
|
1835
|
-
"onUpdate:info": (
|
|
1836
|
-
more:
|
|
1837
|
-
},
|
|
1835
|
+
"onUpdate:info": (ue) => h.value = ue,
|
|
1836
|
+
more: G
|
|
1837
|
+
}, S);
|
|
1838
1838
|
}, u = Yt(), d = () => {
|
|
1839
|
-
var
|
|
1840
|
-
const
|
|
1839
|
+
var S, ue, ce, pe, fe, ie, ge, Me, De;
|
|
1840
|
+
const B = [
|
|
1841
1841
|
{
|
|
1842
1842
|
key: "query",
|
|
1843
|
-
hidden: (ce = (
|
|
1844
|
-
component:
|
|
1843
|
+
hidden: (ce = (ue = (S = a.value) == null ? void 0 : S.query) == null ? void 0 : ue.query) == null ? void 0 : ce.hidden,
|
|
1844
|
+
component: Be,
|
|
1845
1845
|
props: {
|
|
1846
1846
|
...a.value.query.query,
|
|
1847
1847
|
onClick: a.value.query.query.click
|
|
@@ -1852,7 +1852,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1852
1852
|
{
|
|
1853
1853
|
key: "reset",
|
|
1854
1854
|
hidden: (ie = (fe = (pe = a.value) == null ? void 0 : pe.query) == null ? void 0 : fe.reset) == null ? void 0 : ie.hidden,
|
|
1855
|
-
component:
|
|
1855
|
+
component: Be,
|
|
1856
1856
|
props: {
|
|
1857
1857
|
...a.value.query.reset,
|
|
1858
1858
|
onClick: a.value.query.reset.click
|
|
@@ -1862,8 +1862,8 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1862
1862
|
},
|
|
1863
1863
|
{
|
|
1864
1864
|
key: "more",
|
|
1865
|
-
hidden: (De = (
|
|
1866
|
-
component: a.value.query.more.mode === 3 ? Ct :
|
|
1865
|
+
hidden: (De = (Me = (ge = a.value) == null ? void 0 : ge.query) == null ? void 0 : Me.more) == null ? void 0 : De.hidden,
|
|
1866
|
+
component: a.value.query.more.mode === 3 ? Ct : Be,
|
|
1867
1867
|
props: a.value.query.more.mode === 3 ? { ...a.value.query.more.dialog } : {
|
|
1868
1868
|
...a.value.query.more,
|
|
1869
1869
|
onClick: a.value.query.more.click
|
|
@@ -1872,64 +1872,64 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1872
1872
|
sort: a.value.query.more.sort || 0,
|
|
1873
1873
|
content: a.value.query.more.mode === 3 ? () => we(gt, {
|
|
1874
1874
|
class: "query-form",
|
|
1875
|
-
...je(a.value.query, (
|
|
1875
|
+
...je(a.value.query, (J) => !["query", "more", "reset"].includes(J))
|
|
1876
1876
|
}, () => v({ slots: u }, !0)) : null
|
|
1877
1877
|
}
|
|
1878
1878
|
];
|
|
1879
|
-
return
|
|
1880
|
-
reference: () => we(
|
|
1881
|
-
default:
|
|
1882
|
-
}) : (
|
|
1879
|
+
return B.sort((J, K) => J.sort - K.sort), B.filter((J) => !J.hidden).map((J) => J.key === "more" && J.component === Ct ? we(Ct, J.props, {
|
|
1880
|
+
reference: () => we(Be, a.value.query.more, () => J.label),
|
|
1881
|
+
default: J.content
|
|
1882
|
+
}) : (J.props.slot = "query-" + J.key, J.label ? we(J.component, J.props, () => J.label) : we(J.component, J.props)));
|
|
1883
1883
|
}, $ = nt(() => ({
|
|
1884
1884
|
diplay: "flex",
|
|
1885
1885
|
flexDirection: a.value.query.container.mode === "row" ? "row" : "column"
|
|
1886
|
-
})),
|
|
1886
|
+
})), le = () => {
|
|
1887
1887
|
alert("查询设置,正在开发中......");
|
|
1888
1888
|
};
|
|
1889
|
-
return (
|
|
1890
|
-
var ce, pe, fe, ie, ge,
|
|
1891
|
-
const
|
|
1892
|
-
return p(),
|
|
1893
|
-
|
|
1889
|
+
return (B, G) => {
|
|
1890
|
+
var ce, pe, fe, ie, ge, Me, De, J, K, Le, x, w, g, i, V, E, q;
|
|
1891
|
+
const S = L("el-form-item"), ue = L("el-drawer");
|
|
1892
|
+
return p(), Y(te, null, [
|
|
1893
|
+
X("div", {
|
|
1894
1894
|
class: "g-query-container",
|
|
1895
|
-
style:
|
|
1896
|
-
onDblclick:
|
|
1895
|
+
style: qe({ ...$.value, ...((pe = (ce = a.value.query) == null ? void 0 : ce.container) == null ? void 0 : pe.style) || {} }),
|
|
1896
|
+
onDblclick: le
|
|
1897
1897
|
}, [
|
|
1898
|
-
|
|
1899
|
-
onSubmit:
|
|
1898
|
+
ee(P(gt), O({
|
|
1899
|
+
onSubmit: G[0] || (G[0] = wt(() => {
|
|
1900
1900
|
}, ["prevent"]))
|
|
1901
|
-
},
|
|
1901
|
+
}, P(je)(a.value.query, (T) => !["query", "more", "reset", "btns"].includes(T))), {
|
|
1902
1902
|
default: _(() => {
|
|
1903
1903
|
var T, Q;
|
|
1904
1904
|
return [
|
|
1905
|
-
(p(), A(Ke(v({ slots:
|
|
1906
|
-
((Q = (T = a.value.query) == null ? void 0 : T.container) == null ? void 0 : Q.inline) === !0 ? (p(), A(
|
|
1905
|
+
(p(), A(Ke(v({ slots: B.$slots }, void 0)))),
|
|
1906
|
+
((Q = (T = a.value.query) == null ? void 0 : T.container) == null ? void 0 : Q.inline) === !0 ? (p(), A(S, { key: 0 }, {
|
|
1907
1907
|
default: _(() => {
|
|
1908
|
-
var oe,
|
|
1908
|
+
var oe, ae, H, z, Se;
|
|
1909
1909
|
return [
|
|
1910
|
-
|
|
1911
|
-
style:
|
|
1910
|
+
X("div", {
|
|
1911
|
+
style: qe((ae = (oe = a.value.query) == null ? void 0 : oe.btns) == null ? void 0 : ae.style)
|
|
1912
1912
|
}, [
|
|
1913
|
-
a.value.query.group ? (p(), A(
|
|
1913
|
+
a.value.query.group ? (p(), A(P(bt), { key: 0 }, {
|
|
1914
1914
|
default: _(() => [
|
|
1915
|
-
(p(!0),
|
|
1915
|
+
(p(!0), Y(te, null, W(d(), (me) => k(B.$slots, me.props.slot, {}, () => [
|
|
1916
1916
|
(p(), A(Ke(me)))
|
|
1917
1917
|
], !0)), 256)),
|
|
1918
|
-
k(
|
|
1918
|
+
k(B.$slots, "q-btns", {}, void 0, !0)
|
|
1919
1919
|
]),
|
|
1920
1920
|
_: 3
|
|
1921
|
-
})) : (p(),
|
|
1922
|
-
(Se = (z = (H = a.value) == null ? void 0 : H.query) == null ? void 0 : z.btns) != null && Se.group ? (p(), A(
|
|
1921
|
+
})) : (p(), Y(te, { key: 1 }, [
|
|
1922
|
+
(Se = (z = (H = a.value) == null ? void 0 : H.query) == null ? void 0 : z.btns) != null && Se.group ? (p(), A(P(bt), { key: 0 }, {
|
|
1923
1923
|
default: _(() => [
|
|
1924
|
-
(p(!0),
|
|
1924
|
+
(p(!0), Y(te, null, W(d(), (me) => k(B.$slots, me.props.slot, {}, () => [
|
|
1925
1925
|
(p(), A(Ke(me)))
|
|
1926
1926
|
], !0)), 256))
|
|
1927
1927
|
]),
|
|
1928
1928
|
_: 3
|
|
1929
|
-
})) : (p(!0),
|
|
1929
|
+
})) : (p(!0), Y(te, { key: 1 }, W(d(), (me) => k(B.$slots, me.props.slot, {}, () => [
|
|
1930
1930
|
(p(), A(Ke(me)))
|
|
1931
1931
|
], !0)), 256)),
|
|
1932
|
-
k(
|
|
1932
|
+
k(B.$slots, "q-btns", {}, void 0, !0)
|
|
1933
1933
|
], 64))
|
|
1934
1934
|
], 4)
|
|
1935
1935
|
];
|
|
@@ -1940,57 +1940,57 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
1940
1940
|
}),
|
|
1941
1941
|
_: 3
|
|
1942
1942
|
}, 16),
|
|
1943
|
-
((ge = (ie = (fe = a.value) == null ? void 0 : fe.query) == null ? void 0 : ie.container) == null ? void 0 : ge.inline) === !1 ? (p(),
|
|
1943
|
+
((ge = (ie = (fe = a.value) == null ? void 0 : fe.query) == null ? void 0 : ie.container) == null ? void 0 : ge.inline) === !1 ? (p(), Y("div", {
|
|
1944
1944
|
key: 0,
|
|
1945
|
-
style:
|
|
1945
|
+
style: qe((De = (Me = a.value.query) == null ? void 0 : Me.btns) == null ? void 0 : De.style)
|
|
1946
1946
|
}, [
|
|
1947
|
-
a.value.query.group ? (p(), A(
|
|
1947
|
+
a.value.query.group ? (p(), A(P(bt), { key: 0 }, {
|
|
1948
1948
|
default: _(() => [
|
|
1949
|
-
(p(!0),
|
|
1949
|
+
(p(!0), Y(te, null, W(d(), (T) => k(B.$slots, T.props.slot, {}, () => [
|
|
1950
1950
|
(p(), A(Ke(T)))
|
|
1951
1951
|
], !0)), 256)),
|
|
1952
|
-
k(
|
|
1952
|
+
k(B.$slots, "q-btns", {}, void 0, !0)
|
|
1953
1953
|
]),
|
|
1954
1954
|
_: 3
|
|
1955
|
-
})) : (p(),
|
|
1956
|
-
(
|
|
1955
|
+
})) : (p(), Y(te, { key: 1 }, [
|
|
1956
|
+
(K = (J = a.value.query) == null ? void 0 : J.btns) != null && K.group ? (p(), A(P(bt), { key: 0 }, {
|
|
1957
1957
|
default: _(() => [
|
|
1958
|
-
(p(!0),
|
|
1958
|
+
(p(!0), Y(te, null, W(d(), (T) => k(B.$slots, T.props.slot, {}, () => [
|
|
1959
1959
|
(p(), A(Ke(T)))
|
|
1960
1960
|
], !0)), 256))
|
|
1961
1961
|
]),
|
|
1962
1962
|
_: 3
|
|
1963
|
-
})) : (p(!0),
|
|
1963
|
+
})) : (p(!0), Y(te, { key: 1 }, W(d(), (T) => k(B.$slots, T.props.slot, {}, () => [
|
|
1964
1964
|
(p(), A(Ke(T)))
|
|
1965
1965
|
], !0)), 256)),
|
|
1966
|
-
k(
|
|
1966
|
+
k(B.$slots, "q-btns", {}, void 0, !0)
|
|
1967
1967
|
], 64))
|
|
1968
1968
|
], 4)) : $e("", !0)
|
|
1969
1969
|
], 36),
|
|
1970
|
-
e.value && !((w = (
|
|
1970
|
+
e.value && !((w = (x = (Le = a.value) == null ? void 0 : Le.query) == null ? void 0 : x.more) != null && w.hidden) && a.value.query.more.mode == 2 ? (p(), A(ue, O({
|
|
1971
1971
|
key: 0,
|
|
1972
1972
|
modelValue: e.value,
|
|
1973
|
-
"onUpdate:modelValue":
|
|
1973
|
+
"onUpdate:modelValue": G[6] || (G[6] = (T) => e.value = T),
|
|
1974
1974
|
title: "更多查询",
|
|
1975
1975
|
"show-close": !1
|
|
1976
1976
|
}, a.value.query.more.dialog), be({
|
|
1977
1977
|
default: _(() => [
|
|
1978
|
-
|
|
1979
|
-
onSubmit:
|
|
1978
|
+
ee(P(gt), O({
|
|
1979
|
+
onSubmit: G[3] || (G[3] = wt(() => {
|
|
1980
1980
|
}, ["prevent"]))
|
|
1981
|
-
},
|
|
1981
|
+
}, P(je)(a.value.query, (T) => !["query", "more", "reset"].includes(T)), { style: { width: "98%" } }), {
|
|
1982
1982
|
default: _(() => [
|
|
1983
|
-
|
|
1983
|
+
ee(Bt, {
|
|
1984
1984
|
modelValue: a.value,
|
|
1985
|
-
"onUpdate:modelValue":
|
|
1985
|
+
"onUpdate:modelValue": G[1] || (G[1] = (T) => a.value = T),
|
|
1986
1986
|
info: h.value,
|
|
1987
|
-
"onUpdate:info":
|
|
1987
|
+
"onUpdate:info": G[2] || (G[2] = (T) => h.value = T),
|
|
1988
1988
|
more: !0
|
|
1989
1989
|
}, be({ _: 2 }, [
|
|
1990
|
-
|
|
1990
|
+
W(B.$slots, (T, Q, oe) => ({
|
|
1991
1991
|
name: Q,
|
|
1992
|
-
fn: _((
|
|
1993
|
-
k(
|
|
1992
|
+
fn: _((ae) => [
|
|
1993
|
+
k(B.$slots, Q, { model: a.value }, void 0, !0)
|
|
1994
1994
|
])
|
|
1995
1995
|
}))
|
|
1996
1996
|
]), 1032, ["modelValue", "info"])
|
|
@@ -2000,23 +2000,23 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2000
2000
|
]),
|
|
2001
2001
|
_: 2
|
|
2002
2002
|
}, [
|
|
2003
|
-
(q = (E = (
|
|
2003
|
+
(q = (E = (V = (i = (g = a.value) == null ? void 0 : g.query) == null ? void 0 : i.more) == null ? void 0 : V.dialog) == null ? void 0 : E.footer) != null && q.hidden ? void 0 : {
|
|
2004
2004
|
name: "footer",
|
|
2005
2005
|
fn: _(() => [
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
onClick:
|
|
2006
|
+
X("div", St(nl(a.value.query.more.dialog.footer)), [
|
|
2007
|
+
ee(P(Be), O(a.value.query.query, {
|
|
2008
|
+
onClick: G[4] || (G[4] = (T) => a.value.query.query.click())
|
|
2009
2009
|
}), {
|
|
2010
2010
|
default: _(() => [
|
|
2011
|
-
|
|
2011
|
+
Ve(Ee(a.value.query.query.label), 1)
|
|
2012
2012
|
]),
|
|
2013
2013
|
_: 1
|
|
2014
2014
|
}, 16),
|
|
2015
|
-
|
|
2016
|
-
onClick:
|
|
2015
|
+
ee(P(Be), O(a.value.query.reset, {
|
|
2016
|
+
onClick: G[5] || (G[5] = (T) => a.value.query.reset.click())
|
|
2017
2017
|
}), {
|
|
2018
2018
|
default: _(() => [
|
|
2019
|
-
|
|
2019
|
+
Ve(Ee(a.value.query.reset.label), 1)
|
|
2020
2020
|
]),
|
|
2021
2021
|
_: 1
|
|
2022
2022
|
}, 16)
|
|
@@ -2025,7 +2025,7 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2025
2025
|
key: "0"
|
|
2026
2026
|
}
|
|
2027
2027
|
]), 1040, ["modelValue"])) : $e("", !0),
|
|
2028
|
-
|
|
2028
|
+
ee(ul, {
|
|
2029
2029
|
duration: 300,
|
|
2030
2030
|
name: "nested",
|
|
2031
2031
|
style: { padding: "10px" }
|
|
@@ -2033,19 +2033,19 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2033
2033
|
default: _(() => {
|
|
2034
2034
|
var T, Q, oe;
|
|
2035
2035
|
return [
|
|
2036
|
-
e.value && !((oe = (Q = (T = a.value) == null ? void 0 : T.query) == null ? void 0 : Q.more) != null && oe.hidden) && a.value.query.more.mode == 1 ? (p(),
|
|
2037
|
-
|
|
2038
|
-
a.value.query.more.mode == 1 ?
|
|
2036
|
+
e.value && !((oe = (Q = (T = a.value) == null ? void 0 : T.query) == null ? void 0 : Q.more) != null && oe.hidden) && a.value.query.more.mode == 1 ? (p(), Y("div", Pl, [
|
|
2037
|
+
X("div", jl, [
|
|
2038
|
+
a.value.query.more.mode == 1 ? sl((p(), A(P(gt), O({
|
|
2039
2039
|
key: 0,
|
|
2040
|
-
onSubmit:
|
|
2040
|
+
onSubmit: G[7] || (G[7] = wt(() => {
|
|
2041
2041
|
}, ["prevent"]))
|
|
2042
|
-
},
|
|
2042
|
+
}, P(je)(a.value.query, (ae) => !["query", "more", "reset"].includes(ae))), {
|
|
2043
2043
|
default: _(() => [
|
|
2044
|
-
(p(), A(Ke(v({ slots:
|
|
2044
|
+
(p(), A(Ke(v({ slots: B.$slots }, !0))))
|
|
2045
2045
|
]),
|
|
2046
2046
|
_: 1
|
|
2047
2047
|
}, 16)), [
|
|
2048
|
-
[
|
|
2048
|
+
[il, e.value]
|
|
2049
2049
|
]) : $e("", !0)
|
|
2050
2050
|
])
|
|
2051
2051
|
])) : $e("", !0)
|
|
@@ -2056,10 +2056,10 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2056
2056
|
], 64);
|
|
2057
2057
|
};
|
|
2058
2058
|
}
|
|
2059
|
-
},
|
|
2059
|
+
}, Wl = /* @__PURE__ */ at(Nl, [["__scopeId", "data-v-fbc339ad"]]), Gl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Xl = { style: { padding: "5px 10px", "box-sizing": "border-box" } }, Ql = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Zl = { style: { display: "flex", flex: "1", "align-items": "center" } }, Jl = {
|
|
2060
2060
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2061
2061
|
id: "excelSortEl"
|
|
2062
|
-
},
|
|
2062
|
+
}, Kl = ["textContent"], ea = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ta = {
|
|
2063
2063
|
__name: "check-excel-item",
|
|
2064
2064
|
props: {
|
|
2065
2065
|
items: Array,
|
|
@@ -2075,82 +2075,94 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2075
2075
|
r.value.forEach((D) => {
|
|
2076
2076
|
D.value = !1;
|
|
2077
2077
|
});
|
|
2078
|
-
},
|
|
2079
|
-
t("excel", r.value, (D,
|
|
2078
|
+
}, f = () => {
|
|
2079
|
+
t("excel", r.value, (D, c = "excel.xls") => {
|
|
2080
2080
|
if (!D) {
|
|
2081
2081
|
console.error("下载链接无效");
|
|
2082
2082
|
return;
|
|
2083
2083
|
}
|
|
2084
2084
|
try {
|
|
2085
2085
|
const v = document.createElement("a");
|
|
2086
|
-
v.href = D, v.download =
|
|
2086
|
+
v.href = D, v.download = c, v.style.display = "none", document.body.appendChild(v), v.click(), document.body.removeChild(v);
|
|
2087
2087
|
} catch (v) {
|
|
2088
2088
|
console.error("下载文件时出现错误:", v);
|
|
2089
2089
|
}
|
|
2090
2090
|
});
|
|
2091
2091
|
};
|
|
2092
2092
|
return ft(() => {
|
|
2093
|
-
const D = new
|
|
2093
|
+
const D = new Nt(document.getElementById("excelSortEl"), {
|
|
2094
2094
|
animation: 150,
|
|
2095
2095
|
onEnd: () => {
|
|
2096
2096
|
D.toArray();
|
|
2097
2097
|
}
|
|
2098
|
-
}),
|
|
2099
|
-
|
|
2100
|
-
|
|
2098
|
+
}), c = D;
|
|
2099
|
+
dl(() => {
|
|
2100
|
+
c && c.destroy();
|
|
2101
2101
|
});
|
|
2102
|
-
}), (D,
|
|
2103
|
-
const v =
|
|
2104
|
-
return p(),
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2102
|
+
}), (D, c) => {
|
|
2103
|
+
const v = L("el-divider"), u = L("el-icon"), d = L("el-text"), $ = L("el-checkbox"), le = L("el-button");
|
|
2104
|
+
return p(), Y("div", Gl, [
|
|
2105
|
+
X("div", Xl, [
|
|
2106
|
+
X("div", Ql, [
|
|
2107
|
+
X("div", Zl, [
|
|
2108
|
+
X("a", {
|
|
2109
|
+
onClick: e,
|
|
2110
|
+
style: { cursor: "pointer" }
|
|
2111
|
+
}, "全选"),
|
|
2112
|
+
ee(v, { direction: "vertical" }),
|
|
2113
|
+
X("a", {
|
|
2114
|
+
onClick: h,
|
|
2115
|
+
style: { cursor: "pointer" }
|
|
2116
|
+
}, "全不选")
|
|
2117
|
+
]),
|
|
2118
|
+
X("div", null, [
|
|
2119
|
+
ee(d, {
|
|
2120
|
+
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2121
|
+
type: "warning"
|
|
2122
|
+
}, {
|
|
2123
|
+
default: _(() => [
|
|
2124
|
+
ee(u, { size: "16" }, {
|
|
2125
|
+
default: _(() => [
|
|
2126
|
+
ee(P(Pt))
|
|
2127
|
+
]),
|
|
2128
|
+
_: 1
|
|
2129
|
+
}),
|
|
2130
|
+
c[0] || (c[0] = Ve(" 拖动列标题可以改变表格列的生成顺序 ! "))
|
|
2131
|
+
]),
|
|
2132
|
+
_: 1
|
|
2133
|
+
})
|
|
2134
|
+
])
|
|
2116
2135
|
]),
|
|
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, {
|
|
2136
|
+
c[1] || (c[1] = X("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2137
|
+
X("div", Jl, [
|
|
2138
|
+
(p(!0), Y(te, null, W(r.value, (B) => (p(), A($, {
|
|
2127
2139
|
class: "check-box-hover",
|
|
2128
2140
|
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": (
|
|
2132
|
-
key:
|
|
2133
|
-
title:
|
|
2141
|
+
"data-id": B.key,
|
|
2142
|
+
modelValue: B.value,
|
|
2143
|
+
"onUpdate:modelValue": (G) => B.value = G,
|
|
2144
|
+
key: B.key,
|
|
2145
|
+
title: B.label
|
|
2134
2146
|
}, {
|
|
2135
2147
|
default: _(() => [
|
|
2136
|
-
|
|
2137
|
-
textContent:
|
|
2148
|
+
X("span", {
|
|
2149
|
+
textContent: Ee(B.label),
|
|
2138
2150
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2139
|
-
}, null, 8,
|
|
2151
|
+
}, null, 8, Kl)
|
|
2140
2152
|
]),
|
|
2141
2153
|
_: 2
|
|
2142
2154
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2143
2155
|
])
|
|
2144
2156
|
]),
|
|
2145
|
-
|
|
2146
|
-
|
|
2157
|
+
X("div", ea, [
|
|
2158
|
+
ee(le, {
|
|
2147
2159
|
type: "primary",
|
|
2148
|
-
onClick:
|
|
2149
|
-
icon:
|
|
2150
|
-
disabled: r.value.filter((
|
|
2160
|
+
onClick: f,
|
|
2161
|
+
icon: P(jt),
|
|
2162
|
+
disabled: r.value.filter((B) => B.value).length < 1
|
|
2151
2163
|
}, {
|
|
2152
2164
|
default: _(() => [
|
|
2153
|
-
|
|
2165
|
+
Ve(Ee(a.commitText), 1)
|
|
2154
2166
|
]),
|
|
2155
2167
|
_: 1
|
|
2156
2168
|
}, 8, ["icon", "disabled"])
|
|
@@ -2158,8 +2170,8 @@ const Dt = /* @__PURE__ */ Nt(Tl), Gt = {
|
|
|
2158
2170
|
]);
|
|
2159
2171
|
};
|
|
2160
2172
|
}
|
|
2161
|
-
},
|
|
2162
|
-
ve.version(
|
|
2173
|
+
}, la = /* @__PURE__ */ at(ta, [["__scopeId", "data-v-69098363"]]), aa = "vue-gyc-ui", ra = 1, ve = new Sl(aa);
|
|
2174
|
+
ve.version(ra).stores({
|
|
2163
2175
|
// 记录表格项设置信息
|
|
2164
2176
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2165
2177
|
// 记录表格分页条数
|
|
@@ -2181,7 +2193,7 @@ async function $t(n, s, a) {
|
|
|
2181
2193
|
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${s}, state: ${a}):`, t), t;
|
|
2182
2194
|
}
|
|
2183
2195
|
}
|
|
2184
|
-
async function
|
|
2196
|
+
async function oa(n, s, a) {
|
|
2185
2197
|
ut(n);
|
|
2186
2198
|
try {
|
|
2187
2199
|
const t = await ve.tableWidths.where({ page: n, key: s }).first();
|
|
@@ -2190,7 +2202,7 @@ async function aa(n, s, a) {
|
|
|
2190
2202
|
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${s}):`, t), t;
|
|
2191
2203
|
}
|
|
2192
2204
|
}
|
|
2193
|
-
async function
|
|
2205
|
+
async function na(n) {
|
|
2194
2206
|
ut(n);
|
|
2195
2207
|
try {
|
|
2196
2208
|
return await ve.tableWidths.where({ page: n }).toArray();
|
|
@@ -2198,7 +2210,7 @@ async function ra(n) {
|
|
|
2198
2210
|
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, s), s;
|
|
2199
2211
|
}
|
|
2200
2212
|
}
|
|
2201
|
-
async function
|
|
2213
|
+
async function ua(n) {
|
|
2202
2214
|
ut(n);
|
|
2203
2215
|
try {
|
|
2204
2216
|
const s = await ve.tableColsState.where({ page: n }).toArray();
|
|
@@ -2207,7 +2219,7 @@ async function oa(n) {
|
|
|
2207
2219
|
throw console.error(`获取表格列状态时出错 (page: ${n}):`, s), s;
|
|
2208
2220
|
}
|
|
2209
2221
|
}
|
|
2210
|
-
async function
|
|
2222
|
+
async function sa(n) {
|
|
2211
2223
|
ut(n);
|
|
2212
2224
|
try {
|
|
2213
2225
|
return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
|
|
@@ -2222,7 +2234,7 @@ async function na(n) {
|
|
|
2222
2234
|
throw console.error(`删除页面"${n}"的表格设置信息时出错:`, s), s;
|
|
2223
2235
|
}
|
|
2224
2236
|
}
|
|
2225
|
-
async function
|
|
2237
|
+
async function ia({ page: n, size: s }) {
|
|
2226
2238
|
ut(n);
|
|
2227
2239
|
try {
|
|
2228
2240
|
const a = await ve.pageInfo.where({ page: n }).first();
|
|
@@ -2231,7 +2243,7 @@ async function ua({ page: n, size: s }) {
|
|
|
2231
2243
|
throw console.error(`保存分页条数时出错 (page: ${n}):`, a), a;
|
|
2232
2244
|
}
|
|
2233
2245
|
}
|
|
2234
|
-
async function
|
|
2246
|
+
async function da(n) {
|
|
2235
2247
|
ut(n);
|
|
2236
2248
|
try {
|
|
2237
2249
|
const s = await ve.pageInfo.where({ page: n }).first();
|
|
@@ -2240,7 +2252,7 @@ async function sa(n) {
|
|
|
2240
2252
|
throw console.error(`获取分页条数时出错 (page: ${n}):`, s), s;
|
|
2241
2253
|
}
|
|
2242
2254
|
}
|
|
2243
|
-
async function
|
|
2255
|
+
async function ca(n, s) {
|
|
2244
2256
|
ut(n);
|
|
2245
2257
|
try {
|
|
2246
2258
|
const a = await ve.sorts.where({ page: n }).first();
|
|
@@ -2249,7 +2261,7 @@ async function ia(n, s) {
|
|
|
2249
2261
|
throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, a), a;
|
|
2250
2262
|
}
|
|
2251
2263
|
}
|
|
2252
|
-
async function
|
|
2264
|
+
async function fa(n) {
|
|
2253
2265
|
ut(n);
|
|
2254
2266
|
try {
|
|
2255
2267
|
const s = await ve.sorts.where({ page: n }).first();
|
|
@@ -2258,13 +2270,13 @@ async function da(n) {
|
|
|
2258
2270
|
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, s), s;
|
|
2259
2271
|
}
|
|
2260
2272
|
}
|
|
2261
|
-
const
|
|
2262
|
-
style: {
|
|
2273
|
+
const va = { style: { display: "flex", "align-items": "center", padding: "5px 10px", height: "30px" } }, pa = {
|
|
2274
|
+
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2263
2275
|
class: "allcheck"
|
|
2264
|
-
},
|
|
2276
|
+
}, ma = {
|
|
2265
2277
|
id: "cols",
|
|
2266
2278
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2267
|
-
},
|
|
2279
|
+
}, ha = ["textContent"], ya = {
|
|
2268
2280
|
__name: "columns-setting",
|
|
2269
2281
|
props: /* @__PURE__ */ tt({
|
|
2270
2282
|
tuid: {
|
|
@@ -2279,21 +2291,21 @@ const ca = {
|
|
|
2279
2291
|
setup(n, { emit: s }) {
|
|
2280
2292
|
const a = n, t = s, r = re([]), e = lt(n, "modelValue"), h = async (u, d) => {
|
|
2281
2293
|
u ? (e.value[d].showCol = !0, await $t(a.tuid, d, "del")) : (e.value[d].showCol = !1, await $t(a.tuid, d, "add"));
|
|
2282
|
-
},
|
|
2294
|
+
}, f = () => {
|
|
2283
2295
|
const u = document.getElementById("cols");
|
|
2284
2296
|
if (u) {
|
|
2285
|
-
let d =
|
|
2297
|
+
let d = Nt.create(u, {
|
|
2286
2298
|
animation: 150,
|
|
2287
2299
|
filter: ".filtered",
|
|
2288
2300
|
sort: !0,
|
|
2289
2301
|
onEnd: async () => {
|
|
2290
2302
|
let $ = d.toArray();
|
|
2291
2303
|
try {
|
|
2292
|
-
|
|
2304
|
+
ca(a.tuid, $).then((le) => {
|
|
2293
2305
|
t("setting-drag-end");
|
|
2294
2306
|
});
|
|
2295
|
-
} catch (
|
|
2296
|
-
console.error("列排序保存信息时出错:",
|
|
2307
|
+
} catch (le) {
|
|
2308
|
+
console.error("列排序保存信息时出错:", le), et({
|
|
2297
2309
|
type: "error",
|
|
2298
2310
|
message: "列排序保存信息失败!"
|
|
2299
2311
|
});
|
|
@@ -2314,7 +2326,7 @@ const ca = {
|
|
|
2314
2326
|
message: "全选列保存信息失败!"
|
|
2315
2327
|
});
|
|
2316
2328
|
}
|
|
2317
|
-
},
|
|
2329
|
+
}, c = async () => {
|
|
2318
2330
|
try {
|
|
2319
2331
|
let u = r.value.filter((d) => !d.alwaysShow && d.value != "control" && d.value != "hidden");
|
|
2320
2332
|
u.forEach((d) => {
|
|
@@ -2334,7 +2346,7 @@ const ca = {
|
|
|
2334
2346
|
cancelButtonText: "取消",
|
|
2335
2347
|
type: "warning"
|
|
2336
2348
|
}).then(() => {
|
|
2337
|
-
|
|
2349
|
+
sa(a.tuid).then((u) => {
|
|
2338
2350
|
window.location.reload();
|
|
2339
2351
|
}).catch((u) => {
|
|
2340
2352
|
console.error("复位操作出错:", u), et({
|
|
@@ -2352,43 +2364,50 @@ const ca = {
|
|
|
2352
2364
|
showCol: d.showCol !== !1,
|
|
2353
2365
|
sort: d.sort || 0,
|
|
2354
2366
|
width: d == null ? void 0 : d.width
|
|
2355
|
-
})).sort((u, d) => u.sort - d.sort),
|
|
2367
|
+
})).sort((u, d) => u.sort - d.sort), f();
|
|
2356
2368
|
}), (u, d) => {
|
|
2357
|
-
const $ =
|
|
2358
|
-
return p(),
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2369
|
+
const $ = L("el-divider"), le = L("el-icon"), B = L("el-text"), G = L("el-checkbox");
|
|
2370
|
+
return p(), Y("div", null, [
|
|
2371
|
+
X("div", va, [
|
|
2372
|
+
X("div", pa, [
|
|
2373
|
+
X("a", { onClick: D }, "全选"),
|
|
2374
|
+
ee($, { direction: "vertical" }),
|
|
2375
|
+
X("a", { onClick: c }, "全不选"),
|
|
2376
|
+
ee($, { direction: "vertical" }),
|
|
2377
|
+
X("a", { onClick: v }, "复位")
|
|
2378
|
+
]),
|
|
2379
|
+
ee(B, { type: "warning" }, {
|
|
2380
|
+
default: _(() => [
|
|
2381
|
+
ee(le, { size: "16" }, {
|
|
2382
|
+
default: _(() => [
|
|
2383
|
+
ee(P(Pt))
|
|
2384
|
+
]),
|
|
2385
|
+
_: 1
|
|
2386
|
+
}),
|
|
2387
|
+
d[0] || (d[0] = Ve(" 拖动表格列标题可以改变表格列显示顺序 !"))
|
|
2388
|
+
]),
|
|
2389
|
+
_: 1
|
|
2390
|
+
})
|
|
2365
2391
|
]),
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
J("div", fa, [
|
|
2375
|
-
(p(!0), U(te, null, G(r.value, (L) => (p(), A(Y, {
|
|
2376
|
-
modelValue: L.showCol,
|
|
2377
|
-
"onUpdate:modelValue": (V) => L.showCol = V,
|
|
2378
|
-
"data-id": L.value,
|
|
2379
|
-
class: Rt(["check-box-hover", L.value == "control" ? "filtered" : ""]),
|
|
2380
|
-
onChange: (V) => h(V, L.value),
|
|
2392
|
+
X("div", null, [
|
|
2393
|
+
X("div", ma, [
|
|
2394
|
+
(p(!0), Y(te, null, W(r.value, (S) => (p(), A(G, {
|
|
2395
|
+
modelValue: S.showCol,
|
|
2396
|
+
"onUpdate:modelValue": (ue) => S.showCol = ue,
|
|
2397
|
+
"data-id": S.value,
|
|
2398
|
+
class: Rt(["check-box-hover", S.value == "control" ? "filtered" : ""]),
|
|
2399
|
+
onChange: (ue) => h(ue, S.value),
|
|
2381
2400
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2382
|
-
value:
|
|
2383
|
-
title:
|
|
2384
|
-
disabled:
|
|
2385
|
-
key:
|
|
2401
|
+
value: S.value,
|
|
2402
|
+
title: S.label,
|
|
2403
|
+
disabled: S.alwaysShow,
|
|
2404
|
+
key: S.value
|
|
2386
2405
|
}, {
|
|
2387
2406
|
default: _(() => [
|
|
2388
|
-
|
|
2389
|
-
textContent:
|
|
2407
|
+
X("span", {
|
|
2408
|
+
textContent: Ee(S.label),
|
|
2390
2409
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2391
|
-
}, null, 8,
|
|
2410
|
+
}, null, 8, ha)
|
|
2392
2411
|
]),
|
|
2393
2412
|
_: 2
|
|
2394
2413
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2397,7 +2416,7 @@ const ca = {
|
|
|
2397
2416
|
]);
|
|
2398
2417
|
};
|
|
2399
2418
|
}
|
|
2400
|
-
},
|
|
2419
|
+
}, ga = /* @__PURE__ */ at(ya, [["__scopeId", "data-v-8b3dc588"]]), ba = { class: "title" }, $a = { class: "content" }, wa = {
|
|
2401
2420
|
__name: "g-cell-toopTip",
|
|
2402
2421
|
props: {
|
|
2403
2422
|
content: {
|
|
@@ -2413,25 +2432,25 @@ const ca = {
|
|
|
2413
2432
|
const s = n, a = () => {
|
|
2414
2433
|
s.content ? (navigator.clipboard.writeText(s.content), et.success("复制成功")) : et.warning("没有内容可复制");
|
|
2415
2434
|
};
|
|
2416
|
-
return (t, r) => (p(),
|
|
2435
|
+
return (t, r) => (p(), Y("div", {
|
|
2417
2436
|
class: "g-cell-toopTip",
|
|
2418
|
-
style:
|
|
2437
|
+
style: qe({ width: s.column.width + "px" })
|
|
2419
2438
|
}, [
|
|
2420
|
-
|
|
2421
|
-
r[0] || (r[0] =
|
|
2422
|
-
|
|
2439
|
+
X("div", ba, [
|
|
2440
|
+
r[0] || (r[0] = X("span", { class: "title-text" }, "内容", -1)),
|
|
2441
|
+
X("span", {
|
|
2423
2442
|
class: "copy-btn",
|
|
2424
2443
|
onClick: a,
|
|
2425
2444
|
title: "复制内容"
|
|
2426
2445
|
}, [
|
|
2427
|
-
|
|
2446
|
+
ee(P($l))
|
|
2428
2447
|
])
|
|
2429
2448
|
]),
|
|
2430
|
-
|
|
2449
|
+
X("div", $a, Ee(s.content), 1)
|
|
2431
2450
|
], 4));
|
|
2432
2451
|
}
|
|
2433
|
-
},
|
|
2434
|
-
var
|
|
2452
|
+
}, _a = /* @__PURE__ */ at(wa, [["__scopeId", "data-v-f28912da"]]);
|
|
2453
|
+
var Qt = { exports: {} }, Zt = { exports: {} };
|
|
2435
2454
|
(function() {
|
|
2436
2455
|
var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
|
|
2437
2456
|
// Bit-wise rotation left
|
|
@@ -2495,18 +2514,18 @@ var Xt = { exports: {} }, Qt = { exports: {} };
|
|
|
2495
2514
|
return t;
|
|
2496
2515
|
}
|
|
2497
2516
|
};
|
|
2498
|
-
|
|
2517
|
+
Zt.exports = s;
|
|
2499
2518
|
})();
|
|
2500
|
-
var
|
|
2519
|
+
var Ea = Zt.exports, Mt = {
|
|
2501
2520
|
// UTF-8 encoding
|
|
2502
2521
|
utf8: {
|
|
2503
2522
|
// Convert a string to a byte array
|
|
2504
2523
|
stringToBytes: function(n) {
|
|
2505
|
-
return
|
|
2524
|
+
return Mt.bin.stringToBytes(unescape(encodeURIComponent(n)));
|
|
2506
2525
|
},
|
|
2507
2526
|
// Convert a byte array to a string
|
|
2508
2527
|
bytesToString: function(n) {
|
|
2509
|
-
return decodeURIComponent(escape(
|
|
2528
|
+
return decodeURIComponent(escape(Mt.bin.bytesToString(n)));
|
|
2510
2529
|
}
|
|
2511
2530
|
},
|
|
2512
2531
|
// Binary encoding
|
|
@@ -2524,61 +2543,61 @@ var $a = Qt.exports, Tt = {
|
|
|
2524
2543
|
return s.join("");
|
|
2525
2544
|
}
|
|
2526
2545
|
}
|
|
2527
|
-
}, Ot =
|
|
2546
|
+
}, Ot = Mt;
|
|
2528
2547
|
/*!
|
|
2529
2548
|
* Determine if an object is a Buffer
|
|
2530
2549
|
*
|
|
2531
2550
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2532
2551
|
* @license MIT
|
|
2533
2552
|
*/
|
|
2534
|
-
var
|
|
2535
|
-
return n != null && (
|
|
2553
|
+
var ka = function(n) {
|
|
2554
|
+
return n != null && (Jt(n) || Ca(n) || !!n._isBuffer);
|
|
2536
2555
|
};
|
|
2537
|
-
function
|
|
2556
|
+
function Jt(n) {
|
|
2538
2557
|
return !!n.constructor && typeof n.constructor.isBuffer == "function" && n.constructor.isBuffer(n);
|
|
2539
2558
|
}
|
|
2540
|
-
function
|
|
2541
|
-
return typeof n.readFloatLE == "function" && typeof n.slice == "function" &&
|
|
2559
|
+
function Ca(n) {
|
|
2560
|
+
return typeof n.readFloatLE == "function" && typeof n.slice == "function" && Jt(n.slice(0, 0));
|
|
2542
2561
|
}
|
|
2543
2562
|
(function() {
|
|
2544
|
-
var n =
|
|
2563
|
+
var n = Ea, s = Ot.utf8, a = ka, t = Ot.bin, r = function(e, h) {
|
|
2545
2564
|
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
|
-
for (var
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
for (var
|
|
2550
|
-
var
|
|
2551
|
-
|
|
2565
|
+
for (var f = n.bytesToWords(e), D = e.length * 8, c = 1732584193, v = -271733879, u = -1732584194, d = 271733878, $ = 0; $ < f.length; $++)
|
|
2566
|
+
f[$] = (f[$] << 8 | f[$] >>> 24) & 16711935 | (f[$] << 24 | f[$] >>> 8) & 4278255360;
|
|
2567
|
+
f[D >>> 5] |= 128 << D % 32, f[(D + 64 >>> 9 << 4) + 14] = D;
|
|
2568
|
+
for (var le = r._ff, B = r._gg, G = r._hh, S = r._ii, $ = 0; $ < f.length; $ += 16) {
|
|
2569
|
+
var ue = c, ce = v, pe = u, fe = d;
|
|
2570
|
+
c = le(c, v, u, d, f[$ + 0], 7, -680876936), d = le(d, c, v, u, f[$ + 1], 12, -389564586), u = le(u, d, c, v, f[$ + 2], 17, 606105819), v = le(v, u, d, c, f[$ + 3], 22, -1044525330), c = le(c, v, u, d, f[$ + 4], 7, -176418897), d = le(d, c, v, u, f[$ + 5], 12, 1200080426), u = le(u, d, c, v, f[$ + 6], 17, -1473231341), v = le(v, u, d, c, f[$ + 7], 22, -45705983), c = le(c, v, u, d, f[$ + 8], 7, 1770035416), d = le(d, c, v, u, f[$ + 9], 12, -1958414417), u = le(u, d, c, v, f[$ + 10], 17, -42063), v = le(v, u, d, c, f[$ + 11], 22, -1990404162), c = le(c, v, u, d, f[$ + 12], 7, 1804603682), d = le(d, c, v, u, f[$ + 13], 12, -40341101), u = le(u, d, c, v, f[$ + 14], 17, -1502002290), v = le(v, u, d, c, f[$ + 15], 22, 1236535329), c = B(c, v, u, d, f[$ + 1], 5, -165796510), d = B(d, c, v, u, f[$ + 6], 9, -1069501632), u = B(u, d, c, v, f[$ + 11], 14, 643717713), v = B(v, u, d, c, f[$ + 0], 20, -373897302), c = B(c, v, u, d, f[$ + 5], 5, -701558691), d = B(d, c, v, u, f[$ + 10], 9, 38016083), u = B(u, d, c, v, f[$ + 15], 14, -660478335), v = B(v, u, d, c, f[$ + 4], 20, -405537848), c = B(c, v, u, d, f[$ + 9], 5, 568446438), d = B(d, c, v, u, f[$ + 14], 9, -1019803690), u = B(u, d, c, v, f[$ + 3], 14, -187363961), v = B(v, u, d, c, f[$ + 8], 20, 1163531501), c = B(c, v, u, d, f[$ + 13], 5, -1444681467), d = B(d, c, v, u, f[$ + 2], 9, -51403784), u = B(u, d, c, v, f[$ + 7], 14, 1735328473), v = B(v, u, d, c, f[$ + 12], 20, -1926607734), c = G(c, v, u, d, f[$ + 5], 4, -378558), d = G(d, c, v, u, f[$ + 8], 11, -2022574463), u = G(u, d, c, v, f[$ + 11], 16, 1839030562), v = G(v, u, d, c, f[$ + 14], 23, -35309556), c = G(c, v, u, d, f[$ + 1], 4, -1530992060), d = G(d, c, v, u, f[$ + 4], 11, 1272893353), u = G(u, d, c, v, f[$ + 7], 16, -155497632), v = G(v, u, d, c, f[$ + 10], 23, -1094730640), c = G(c, v, u, d, f[$ + 13], 4, 681279174), d = G(d, c, v, u, f[$ + 0], 11, -358537222), u = G(u, d, c, v, f[$ + 3], 16, -722521979), v = G(v, u, d, c, f[$ + 6], 23, 76029189), c = G(c, v, u, d, f[$ + 9], 4, -640364487), d = G(d, c, v, u, f[$ + 12], 11, -421815835), u = G(u, d, c, v, f[$ + 15], 16, 530742520), v = G(v, u, d, c, f[$ + 2], 23, -995338651), c = S(c, v, u, d, f[$ + 0], 6, -198630844), d = S(d, c, v, u, f[$ + 7], 10, 1126891415), u = S(u, d, c, v, f[$ + 14], 15, -1416354905), v = S(v, u, d, c, f[$ + 5], 21, -57434055), c = S(c, v, u, d, f[$ + 12], 6, 1700485571), d = S(d, c, v, u, f[$ + 3], 10, -1894986606), u = S(u, d, c, v, f[$ + 10], 15, -1051523), v = S(v, u, d, c, f[$ + 1], 21, -2054922799), c = S(c, v, u, d, f[$ + 8], 6, 1873313359), d = S(d, c, v, u, f[$ + 15], 10, -30611744), u = S(u, d, c, v, f[$ + 6], 15, -1560198380), v = S(v, u, d, c, f[$ + 13], 21, 1309151649), c = S(c, v, u, d, f[$ + 4], 6, -145523070), d = S(d, c, v, u, f[$ + 11], 10, -1120210379), u = S(u, d, c, v, f[$ + 2], 15, 718787259), v = S(v, u, d, c, f[$ + 9], 21, -343485551), c = c + ue >>> 0, v = v + ce >>> 0, u = u + pe >>> 0, d = d + fe >>> 0;
|
|
2552
2571
|
}
|
|
2553
|
-
return n.endian([
|
|
2572
|
+
return n.endian([c, v, u, d]);
|
|
2554
2573
|
};
|
|
2555
|
-
r._ff = function(e, h,
|
|
2556
|
-
var d = e + (h &
|
|
2574
|
+
r._ff = function(e, h, f, D, c, v, u) {
|
|
2575
|
+
var d = e + (h & f | ~h & D) + (c >>> 0) + u;
|
|
2557
2576
|
return (d << v | d >>> 32 - v) + h;
|
|
2558
|
-
}, r._gg = function(e, h,
|
|
2559
|
-
var d = e + (h & D |
|
|
2577
|
+
}, r._gg = function(e, h, f, D, c, v, u) {
|
|
2578
|
+
var d = e + (h & D | f & ~D) + (c >>> 0) + u;
|
|
2560
2579
|
return (d << v | d >>> 32 - v) + h;
|
|
2561
|
-
}, r._hh = function(e, h,
|
|
2562
|
-
var d = e + (h ^
|
|
2580
|
+
}, r._hh = function(e, h, f, D, c, v, u) {
|
|
2581
|
+
var d = e + (h ^ f ^ D) + (c >>> 0) + u;
|
|
2563
2582
|
return (d << v | d >>> 32 - v) + h;
|
|
2564
|
-
}, r._ii = function(e, h,
|
|
2565
|
-
var d = e + (
|
|
2583
|
+
}, r._ii = function(e, h, f, D, c, v, u) {
|
|
2584
|
+
var d = e + (f ^ (h | ~D)) + (c >>> 0) + u;
|
|
2566
2585
|
return (d << v | d >>> 32 - v) + h;
|
|
2567
|
-
}, r._blocksize = 16, r._digestsize = 16,
|
|
2586
|
+
}, r._blocksize = 16, r._digestsize = 16, Qt.exports = function(e, h) {
|
|
2568
2587
|
if (e == null)
|
|
2569
2588
|
throw new Error("Illegal argument " + e);
|
|
2570
|
-
var
|
|
2571
|
-
return h && h.asBytes ?
|
|
2589
|
+
var f = n.wordsToBytes(r(e, h));
|
|
2590
|
+
return h && h.asBytes ? f : h && h.asString ? t.bytesToString(f) : n.bytesToHex(f);
|
|
2572
2591
|
};
|
|
2573
2592
|
})();
|
|
2574
|
-
var
|
|
2575
|
-
const
|
|
2593
|
+
var Da = Qt.exports;
|
|
2594
|
+
const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "flex", "margin-top": "-2px" } }, Ta = { style: { display: "flex", flex: "1" } }, Fa = { class: "el-dialog__title" }, Va = {
|
|
2576
2595
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2577
2596
|
id: "table-form"
|
|
2578
|
-
},
|
|
2597
|
+
}, qa = { key: 1 }, Aa = { style: { display: "flex" } }, Ba = { style: { display: "flex", flex: "1" } }, Oa = { class: "el-dialog__title" }, Ia = { class: "g-table-container" }, Ua = {
|
|
2579
2598
|
key: 0,
|
|
2580
2599
|
class: "table-query-container"
|
|
2581
|
-
},
|
|
2600
|
+
}, Ya = { class: "table-container" }, Ra = ["innerHTML"], La = /* @__PURE__ */ Object.assign({
|
|
2582
2601
|
name: "g-table",
|
|
2583
2602
|
inheritAttrs: !1
|
|
2584
2603
|
}, {
|
|
@@ -2597,9 +2616,9 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2597
2616
|
"row-save"
|
|
2598
2617
|
], ["update:modelValue"]),
|
|
2599
2618
|
setup(n, { expose: s, emit: a }) {
|
|
2600
|
-
var rt,
|
|
2601
|
-
const t = re(""), r = a, e = lt(n, "modelValue"), h = qt("options"),
|
|
2602
|
-
|
|
2619
|
+
var rt, Ie, He, ze, Pe, vt, pt;
|
|
2620
|
+
const t = re(""), r = a, e = lt(n, "modelValue"), h = qt("options"), f = re({}), D = re(null), c = re(null), v = Object.entries(e.value).filter(([l, o]) => (o == null ? void 0 : o.search) !== void 0).map(([l, o]) => [l, o.value]);
|
|
2621
|
+
f.value = Object.fromEntries(v);
|
|
2603
2622
|
const u = re(!1), d = [
|
|
2604
2623
|
"type",
|
|
2605
2624
|
"index",
|
|
@@ -2629,7 +2648,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2629
2648
|
"filter-multiple",
|
|
2630
2649
|
"filter-method",
|
|
2631
2650
|
"filtered-value"
|
|
2632
|
-
], $ = re([]),
|
|
2651
|
+
], $ = re([]), le = At(), B = re({}), G = re([]), S = re(null), ue = re(""), ce = re("/"), pe = re({
|
|
2633
2652
|
autoWatch: !1,
|
|
2634
2653
|
data: [],
|
|
2635
2654
|
border: !0,
|
|
@@ -2638,14 +2657,14 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2638
2657
|
fit: !1,
|
|
2639
2658
|
type: "hidden",
|
|
2640
2659
|
load: async () => {
|
|
2641
|
-
e.value.table.page.pageSize = await
|
|
2660
|
+
e.value.table.page.pageSize = await da(ce.value);
|
|
2642
2661
|
let { currentPage: l, pageSize: o } = e.value.table.page;
|
|
2643
2662
|
try {
|
|
2644
2663
|
r(
|
|
2645
2664
|
"load",
|
|
2646
|
-
{ currentPage: l, pageSize: o, ...
|
|
2647
|
-
(m = [], b = 0, { fields: F = [], sums:
|
|
2648
|
-
var
|
|
2665
|
+
{ currentPage: l, pageSize: o, ...f.value },
|
|
2666
|
+
(m = [], b = 0, { fields: F = [], sums: U = {} } = {}) => {
|
|
2667
|
+
var N;
|
|
2649
2668
|
if (!Array.isArray(m)) {
|
|
2650
2669
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), et.error("数据加载失败,请检查数据格式。");
|
|
2651
2670
|
return;
|
|
@@ -2654,19 +2673,19 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2654
2673
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), et.error("数据加载失败,请检查数据格式。");
|
|
2655
2674
|
return;
|
|
2656
2675
|
}
|
|
2657
|
-
e.value.table.data = m, ((
|
|
2676
|
+
e.value.table.data = m, ((N = e.value.control) == null ? void 0 : N.add(S.value, e).inline) === !0 && e.value.table.data.unshift(S.value), e.value.table.page.total = b, G.value = F, B.value = U, C(), ue.value = Math.random().toString(36).substring(2);
|
|
2658
2677
|
},
|
|
2659
|
-
|
|
2678
|
+
S.value
|
|
2660
2679
|
);
|
|
2661
2680
|
} catch (m) {
|
|
2662
2681
|
console.error("触发 load 事件时出现错误:", m), et.error("数据加载时出现错误,请稍后重试。");
|
|
2663
2682
|
}
|
|
2664
2683
|
},
|
|
2665
2684
|
onHeaderDragend: (l, o, m) => {
|
|
2666
|
-
|
|
2685
|
+
oa(ce.value, m.property, l);
|
|
2667
2686
|
},
|
|
2668
2687
|
onRowDblclick: (l, o, m) => {
|
|
2669
|
-
e.value.table.dblclickType == "edit" ? g(l, o, m, e) : e.value.table.dblclickType == "view" ?
|
|
2688
|
+
e.value.table.dblclickType == "edit" ? g(l, o, m, e) : e.value.table.dblclickType == "view" ? V(l, o, m, e) : e.value.table.dblclickType == "delete" ? i(l, o, m, e) : e.value.table.dblclickType(l, o, m, e);
|
|
2670
2689
|
},
|
|
2671
2690
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2672
2691
|
page: {
|
|
@@ -2686,7 +2705,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2686
2705
|
e.value.table.page.currentPage = l, e.value.table.load();
|
|
2687
2706
|
},
|
|
2688
2707
|
onSizeChange: (l) => {
|
|
2689
|
-
|
|
2708
|
+
ia({ page: ce.value, size: l }).then(() => {
|
|
2690
2709
|
e.value.table.page.pageSize = l, e.value.table.load();
|
|
2691
2710
|
});
|
|
2692
2711
|
}
|
|
@@ -2696,11 +2715,11 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2696
2715
|
onSortChange: ({ column: l, prop: o, order: m }, b) => {
|
|
2697
2716
|
}
|
|
2698
2717
|
});
|
|
2699
|
-
e.value.table =
|
|
2718
|
+
e.value.table = Fe(
|
|
2700
2719
|
pe.value,
|
|
2701
2720
|
h == null ? void 0 : h.table,
|
|
2702
2721
|
e.value.table,
|
|
2703
|
-
|
|
2722
|
+
le
|
|
2704
2723
|
// 继承父组件的属性
|
|
2705
2724
|
);
|
|
2706
2725
|
const fe = {
|
|
@@ -2710,14 +2729,14 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2710
2729
|
"min-width": 100,
|
|
2711
2730
|
width: 160,
|
|
2712
2731
|
fixed: "right",
|
|
2713
|
-
style: { ...(
|
|
2732
|
+
style: { ...(Ie = (rt = e.value) == null ? void 0 : rt.control) == null ? void 0 : Ie.style },
|
|
2714
2733
|
validate: async (l) => await !0,
|
|
2715
2734
|
view: (l, o, m, b) => ({
|
|
2716
2735
|
label: "查看",
|
|
2717
2736
|
text: !0,
|
|
2718
2737
|
type: "success",
|
|
2719
2738
|
mode: "dialog",
|
|
2720
|
-
icon: () => we(
|
|
2739
|
+
icon: () => we(wl),
|
|
2721
2740
|
auth: () => {
|
|
2722
2741
|
var F;
|
|
2723
2742
|
return !(((F = b == null ? void 0 : b.control) == null ? void 0 : F.add(l, b).inline) === !0 && m === 0);
|
|
@@ -2728,7 +2747,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2728
2747
|
text: !0,
|
|
2729
2748
|
type: "primary",
|
|
2730
2749
|
mode: "dialog",
|
|
2731
|
-
icon: () => we(
|
|
2750
|
+
icon: () => we(_l),
|
|
2732
2751
|
auth: () => {
|
|
2733
2752
|
var F;
|
|
2734
2753
|
return ((F = b == null ? void 0 : b.control) == null ? void 0 : F.add(l, b).inline) !== !0;
|
|
@@ -2754,16 +2773,16 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2754
2773
|
}
|
|
2755
2774
|
}),
|
|
2756
2775
|
save: (l, o, m, b) => {
|
|
2757
|
-
var F,
|
|
2776
|
+
var F, U;
|
|
2758
2777
|
return {
|
|
2759
2778
|
label: ((F = b.control) == null ? void 0 : F.add(l, b).inline) !== !0 ? "保存" : m === 0 ? "新增" : "保存",
|
|
2760
2779
|
text: !0,
|
|
2761
2780
|
icon: () => we(Lt),
|
|
2762
|
-
type: ((
|
|
2781
|
+
type: ((U = b.control) == null ? void 0 : U.add(l, b).inline) !== !0 || m === 0 ? "primary" : "success",
|
|
2763
2782
|
sort: -1,
|
|
2764
2783
|
auth: () => {
|
|
2765
|
-
var
|
|
2766
|
-
return ((
|
|
2784
|
+
var N;
|
|
2785
|
+
return ((N = b.control) == null ? void 0 : N.add(l, b).inline) === !0;
|
|
2767
2786
|
}
|
|
2768
2787
|
};
|
|
2769
2788
|
},
|
|
@@ -2781,7 +2800,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2781
2800
|
text: !1,
|
|
2782
2801
|
type: "primary",
|
|
2783
2802
|
mode: "dialog",
|
|
2784
|
-
icon: () => we(
|
|
2803
|
+
icon: () => we(jt),
|
|
2785
2804
|
excelLabel: "下载EXCEL",
|
|
2786
2805
|
auth: () => !0
|
|
2787
2806
|
}),
|
|
@@ -2790,7 +2809,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2790
2809
|
text: !1,
|
|
2791
2810
|
type: "primary",
|
|
2792
2811
|
mode: "dialog",
|
|
2793
|
-
icon: () => we(
|
|
2812
|
+
icon: () => we(kl),
|
|
2794
2813
|
auth: () => !0
|
|
2795
2814
|
}),
|
|
2796
2815
|
dropdown: (l, o, m, b) => ({
|
|
@@ -2801,52 +2820,52 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2801
2820
|
size: "small",
|
|
2802
2821
|
auth: () => !(b.control.add(l, b).inline === !0 && m == 0),
|
|
2803
2822
|
onClick: () => {
|
|
2804
|
-
var
|
|
2805
|
-
let F = (
|
|
2806
|
-
F === "edit" ? g(l, o, m, b) : F === "delete" ? i(l, o, m, b) : F === "view" &&
|
|
2823
|
+
var U;
|
|
2824
|
+
let F = (U = ge(l, o, m, b)) == null ? void 0 : U.operate;
|
|
2825
|
+
F === "edit" ? g(l, o, m, b) : F === "delete" ? i(l, o, m, b) : F === "view" && V(l, o, m, b);
|
|
2807
2826
|
},
|
|
2808
2827
|
"button-props": { round: !0, plain: !0 }
|
|
2809
2828
|
})
|
|
2810
2829
|
};
|
|
2811
|
-
e.value.control =
|
|
2830
|
+
e.value.control = Fe(
|
|
2812
2831
|
fe,
|
|
2813
2832
|
h == null ? void 0 : h.control,
|
|
2814
2833
|
(He = e.value) == null ? void 0 : He.control
|
|
2815
2834
|
);
|
|
2816
2835
|
const ie = (l, o = !0) => {
|
|
2817
|
-
const m = e.value.control[l], b = o ? (F,
|
|
2818
|
-
var
|
|
2819
|
-
if (!F || !
|
|
2836
|
+
const m = e.value.control[l], b = o ? (F, U, N, ye) => {
|
|
2837
|
+
var Ye, We, st;
|
|
2838
|
+
if (!F || !U || N == null)
|
|
2820
2839
|
return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2821
|
-
const
|
|
2822
|
-
return
|
|
2823
|
-
} : (F,
|
|
2824
|
-
var
|
|
2825
|
-
const
|
|
2826
|
-
return
|
|
2840
|
+
const _e = ((Ye = fe[l]) == null ? void 0 : Ye.call(fe, F, U, N, ye)) || {}, Ae = ((st = (We = h == null ? void 0 : h.control) == null ? void 0 : We[l]) == null ? void 0 : st.call(We, F, U, N, ye)) || {}, Ue = (m == null ? void 0 : m(F, U, N, ye)) || {};
|
|
2841
|
+
return Fe(_e, Ae, Ue) || {};
|
|
2842
|
+
} : (F, U) => {
|
|
2843
|
+
var Ae, Ue, Ye;
|
|
2844
|
+
const N = ((Ae = fe[l]) == null ? void 0 : Ae.call(fe, F, U)) || {}, ye = ((Ye = (Ue = h == null ? void 0 : h.control) == null ? void 0 : Ue[l]) == null ? void 0 : Ye.call(Ue, F, U)) || {}, _e = (m == null ? void 0 : m(F, U)) || {};
|
|
2845
|
+
return Fe(N, ye, _e) || {};
|
|
2827
2846
|
};
|
|
2828
2847
|
e.value.control[l] = b;
|
|
2829
2848
|
};
|
|
2830
2849
|
ie("edit"), ie("delete"), ie("view"), ie("save"), ie("add", !1), ie("download", !1), ie("setting", !1);
|
|
2831
2850
|
const ge = (l, o, m, b) => {
|
|
2832
|
-
var ye,
|
|
2851
|
+
var ye, _e, Ae, Ue, Ye, We;
|
|
2833
2852
|
if (!l || !o || m == null)
|
|
2834
2853
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2835
|
-
const F = ((ye = fe.dropdown) == null ? void 0 : ye.call(fe, l, o, m, b)) || {},
|
|
2836
|
-
return
|
|
2837
|
-
},
|
|
2854
|
+
const F = ((ye = fe.dropdown) == null ? void 0 : ye.call(fe, l, o, m, b)) || {}, U = ((Ae = (_e = h == null ? void 0 : h.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Ae.call(_e, l, o, m, b)) || {}, N = ((We = (Ye = (Ue = e.value) == null ? void 0 : Ue.control) == null ? void 0 : Ye.dropdown) == null ? void 0 : We.call(Ye, l, o, m, b)) || {};
|
|
2855
|
+
return Fe(F, U, N) || {};
|
|
2856
|
+
}, Me = {
|
|
2838
2857
|
type: "hidden",
|
|
2839
2858
|
"min-width": 100,
|
|
2840
2859
|
align: "center",
|
|
2841
2860
|
formatter: (l, o, m, b) => m,
|
|
2842
|
-
"tooltip-formatter": ({ row: l, column: o, cellValue: m }) => we(
|
|
2861
|
+
"tooltip-formatter": ({ row: l, column: o, cellValue: m }) => we(_a, { content: m, column: o })
|
|
2843
2862
|
};
|
|
2844
|
-
e.value.tableColumns =
|
|
2845
|
-
|
|
2863
|
+
e.value.tableColumns = Fe(
|
|
2864
|
+
Me,
|
|
2846
2865
|
h == null ? void 0 : h.tableColumns,
|
|
2847
2866
|
(ze = e.value) == null ? void 0 : ze.tableColumns
|
|
2848
|
-
), e.value.form =
|
|
2849
|
-
|
|
2867
|
+
), e.value.form = Fe(
|
|
2868
|
+
Xt,
|
|
2850
2869
|
h == null ? void 0 : h.form,
|
|
2851
2870
|
(Pe = e.value) == null ? void 0 : Pe.form
|
|
2852
2871
|
);
|
|
@@ -2857,12 +2876,12 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2857
2876
|
width: "100%"
|
|
2858
2877
|
}
|
|
2859
2878
|
};
|
|
2860
|
-
e.value.formItems =
|
|
2879
|
+
e.value.formItems = Fe(
|
|
2861
2880
|
De,
|
|
2862
2881
|
h == null ? void 0 : h.formItems,
|
|
2863
2882
|
(vt = e == null ? void 0 : e.value) == null ? void 0 : vt.formItems
|
|
2864
2883
|
);
|
|
2865
|
-
const
|
|
2884
|
+
const J = {
|
|
2866
2885
|
title: "编辑",
|
|
2867
2886
|
mode: "drawer",
|
|
2868
2887
|
type: "hidden",
|
|
@@ -2875,20 +2894,20 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2875
2894
|
overflow: !0,
|
|
2876
2895
|
max: {
|
|
2877
2896
|
style: {},
|
|
2878
|
-
icon: () => we(
|
|
2897
|
+
icon: () => we(Cl)
|
|
2879
2898
|
},
|
|
2880
2899
|
min: {
|
|
2881
2900
|
style: {},
|
|
2882
|
-
icon: () => we(
|
|
2901
|
+
icon: () => we(Dl)
|
|
2883
2902
|
// 最小化图标
|
|
2884
2903
|
}
|
|
2885
2904
|
};
|
|
2886
|
-
e.value.dialog =
|
|
2887
|
-
|
|
2905
|
+
e.value.dialog = Fe(
|
|
2906
|
+
J,
|
|
2888
2907
|
h == null ? void 0 : h.dialog,
|
|
2889
2908
|
(pt = e.value) == null ? void 0 : pt.dialog
|
|
2890
2909
|
);
|
|
2891
|
-
const
|
|
2910
|
+
const K = (l, o) => {
|
|
2892
2911
|
let m = o;
|
|
2893
2912
|
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
2913
|
parseFloat(m).toFixed(l.decimals.num)
|
|
@@ -2902,83 +2921,83 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2902
2921
|
}
|
|
2903
2922
|
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${Vt(
|
|
2904
2923
|
parseFloat(m)
|
|
2905
|
-
)}">${
|
|
2924
|
+
)}">${lr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
|
|
2906
2925
|
}, Le = (l) => {
|
|
2907
|
-
|
|
2908
|
-
},
|
|
2909
|
-
|
|
2926
|
+
f.value = Object.fromEntries(v), e.value.table.load();
|
|
2927
|
+
}, x = (l) => {
|
|
2928
|
+
f.value = l, e.value.table.load();
|
|
2910
2929
|
}, w = async (l, o) => {
|
|
2911
2930
|
var m, b;
|
|
2912
2931
|
e.value.form.modalState = "add", t.value = "add";
|
|
2913
2932
|
try {
|
|
2914
|
-
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row:
|
|
2933
|
+
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: S.value, m: o }))) return;
|
|
2915
2934
|
} catch (F) {
|
|
2916
2935
|
console.error("验证失败:", F);
|
|
2917
2936
|
return;
|
|
2918
2937
|
}
|
|
2919
|
-
(b = e.value.control.add(l, o)) != null && b.click ? e.value.control.add(l, o).click(
|
|
2920
|
-
e.value[F] && (e.value[F].value =
|
|
2921
|
-
}), u.value = !0, r("open", "add", { row:
|
|
2938
|
+
(b = e.value.control.add(l, o)) != null && b.click ? e.value.control.add(l, o).click(S.value, o) : e.value.control.add(l, o).inline === !0 ? (e.value.table.data.unshift(S.value), r("open", "row-add", { row: S.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(S.value).forEach((F) => {
|
|
2939
|
+
e.value[F] && (e.value[F].value = S.value[F]);
|
|
2940
|
+
}), u.value = !0, r("open", "add", { row: S.value, m: o }), _t());
|
|
2922
2941
|
}, g = async (l, o, m, b) => {
|
|
2923
|
-
var F,
|
|
2942
|
+
var F, U;
|
|
2924
2943
|
e.value.form.modalState = "edit", t.value = "edit";
|
|
2925
2944
|
try {
|
|
2926
2945
|
if (!await ((F = e.value.control) == null ? void 0 : F.validate("edit", { row: l, column: o, index: m, m: b }))) return;
|
|
2927
|
-
} catch (
|
|
2928
|
-
console.error("验证失败:",
|
|
2946
|
+
} catch (N) {
|
|
2947
|
+
console.error("验证失败:", N);
|
|
2929
2948
|
return;
|
|
2930
2949
|
}
|
|
2931
|
-
(
|
|
2932
|
-
e.value[
|
|
2933
|
-
}), u.value = !0, r("open", "edit", { m: b, row: l, column: o, index: m }),
|
|
2950
|
+
(U = e.value.control.edit(l, o, m, b)) != null && U.click ? e.value.control.edit(l, o, m, b).click(l, o, m, b) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit(l, o, m, b).mode, e.value.dialog.title = e.value.control.edit(l, o, m, b).title || e.value.control.edit(l, o, m, b).label || "编辑", Object.keys(l).forEach((N) => {
|
|
2951
|
+
e.value[N] && (e.value[N].value = l[N]);
|
|
2952
|
+
}), u.value = !0, r("open", "edit", { m: b, row: l, column: o, index: m }), _t());
|
|
2934
2953
|
}, i = async (l, o, m, b) => {
|
|
2935
|
-
var F,
|
|
2954
|
+
var F, U;
|
|
2936
2955
|
try {
|
|
2937
2956
|
if (!await ((F = e.value.control) == null ? void 0 : F.validate("delete", { row: l, column: o, index: m, m: b }))) return;
|
|
2938
|
-
} catch (
|
|
2939
|
-
console.error("验证失败:",
|
|
2957
|
+
} catch (N) {
|
|
2958
|
+
console.error("验证失败:", N);
|
|
2940
2959
|
return;
|
|
2941
2960
|
}
|
|
2942
|
-
if ((
|
|
2961
|
+
if ((U = e.value.control.delete(l, o, m, b)) != null && U.click)
|
|
2943
2962
|
e.value.control.delete(l, o, m, b).click(l, o, m, b);
|
|
2944
2963
|
else {
|
|
2945
|
-
let { message:
|
|
2946
|
-
Ut.confirm(
|
|
2964
|
+
let { message: N, title: ye, options: _e } = e.value.control.delete(l, o, m, b).dialog;
|
|
2965
|
+
Ut.confirm(N, ye, _e).then(() => {
|
|
2947
2966
|
r(
|
|
2948
2967
|
"delete",
|
|
2949
2968
|
{ row: l, column: o, index: m, m: b },
|
|
2950
|
-
(
|
|
2951
|
-
|
|
2969
|
+
(Ae = !0, Ue = !1) => {
|
|
2970
|
+
Ae && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Ue && e.value.table.load();
|
|
2952
2971
|
}
|
|
2953
2972
|
);
|
|
2954
2973
|
}).catch(() => {
|
|
2955
2974
|
});
|
|
2956
2975
|
}
|
|
2957
|
-
},
|
|
2958
|
-
var F,
|
|
2976
|
+
}, V = async (l, o, m, b) => {
|
|
2977
|
+
var F, U;
|
|
2959
2978
|
e.value.form.modalState = void 0, t.value = "view";
|
|
2960
2979
|
try {
|
|
2961
2980
|
if (!await ((F = e.value.control) == null ? void 0 : F.validate("view", { row: l, column: o, index: m, m: b }))) return;
|
|
2962
|
-
} catch (
|
|
2963
|
-
console.error("验证失败:",
|
|
2981
|
+
} catch (N) {
|
|
2982
|
+
console.error("验证失败:", N);
|
|
2964
2983
|
return;
|
|
2965
2984
|
}
|
|
2966
|
-
(
|
|
2967
|
-
e.value[
|
|
2968
|
-
}), u.value = !0, r("open", "view", { m: b, row: l, column: o, index: m }),
|
|
2985
|
+
(U = e.value.control.view(l, o, m, b)) != null && U.click ? e.value.control.view(l, o, m, b).click(l, o, m, b) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view(l, o, m, b).mode, e.value.dialog.title = e.value.control.view(l, o, m, b).title || e.value.control.view(l, o, m, b).label || "查看", Object.keys(l).forEach((N) => {
|
|
2986
|
+
e.value[N] && (e.value[N].value = l[N]);
|
|
2987
|
+
}), u.value = !0, r("open", "view", { m: b, row: l, column: o, index: m }), _t());
|
|
2969
2988
|
}, E = (l, o, m, b) => {
|
|
2970
2989
|
var F;
|
|
2971
2990
|
(F = e.value.control.save(l, o, m, b)) != null && F.click ? e.value.control.save(l, o, m, b).click(l, o, m, b) : r(
|
|
2972
2991
|
"row-save",
|
|
2973
2992
|
{ row: l, column: o, index: m, data: e.value.table.data },
|
|
2974
|
-
(
|
|
2975
|
-
|
|
2976
|
-
|
|
2993
|
+
(U = !0, N = !0) => {
|
|
2994
|
+
U && e.value.table.load(), N && dt(() => {
|
|
2995
|
+
S.value = Object.assign(
|
|
2977
2996
|
{},
|
|
2978
2997
|
Object.fromEntries(
|
|
2979
2998
|
Object.entries(
|
|
2980
|
-
je(e.value, (ye,
|
|
2981
|
-
).map(([ye,
|
|
2999
|
+
je(e.value, (ye, _e) => _e.type != "control" && _e.editor !== !1 && _e.type != "hidden")
|
|
3000
|
+
).map(([ye, _e]) => [ye, _e.value])
|
|
2982
3001
|
)
|
|
2983
3002
|
);
|
|
2984
3003
|
});
|
|
@@ -2986,30 +3005,30 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
2986
3005
|
);
|
|
2987
3006
|
}, q = (l, o, m) => {
|
|
2988
3007
|
r("submit", e.value.form.modalState, l, o, (b) => {
|
|
2989
|
-
b && (m === 1 && (u.value = !1), Object.keys(
|
|
2990
|
-
l[F] =
|
|
3008
|
+
b && (m === 1 && (u.value = !1), Object.keys(S.value).forEach((F) => {
|
|
3009
|
+
l[F] = S.value[F];
|
|
2991
3010
|
}), o.table.load());
|
|
2992
3011
|
});
|
|
2993
3012
|
}, T = (l, o) => {
|
|
2994
|
-
Object.keys(
|
|
2995
|
-
l[m] =
|
|
3013
|
+
Object.keys(S.value).forEach((m) => {
|
|
3014
|
+
l[m] = S.value[m];
|
|
2996
3015
|
}), r("reset", l, o);
|
|
2997
3016
|
}, Q = (l, o, m) => {
|
|
2998
3017
|
var b;
|
|
2999
3018
|
if ((b = o.control.download(l, o)) != null && b.click)
|
|
3000
3019
|
o.control.download(l, o).click(l, o, m);
|
|
3001
3020
|
else {
|
|
3002
|
-
let F =
|
|
3021
|
+
let F = Ft(
|
|
3003
3022
|
{
|
|
3004
3023
|
title: o.control.download(l, o).title || o.control.download(l, o).label || "下载",
|
|
3005
3024
|
size: o.control.download(l, o).size || 480,
|
|
3006
3025
|
width: o.control.download(l, o).width || 600,
|
|
3007
3026
|
slots: {
|
|
3008
|
-
default: () => we(
|
|
3027
|
+
default: () => we(la, {
|
|
3009
3028
|
items: m,
|
|
3010
3029
|
commitText: o.control.download(l, o).excelLabel,
|
|
3011
|
-
onExcel: (
|
|
3012
|
-
r("download",
|
|
3030
|
+
onExcel: (U, N) => {
|
|
3031
|
+
r("download", U, f.value, N), F();
|
|
3013
3032
|
}
|
|
3014
3033
|
})
|
|
3015
3034
|
}
|
|
@@ -3019,66 +3038,66 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3019
3038
|
}
|
|
3020
3039
|
}, oe = (l, o) => {
|
|
3021
3040
|
var m;
|
|
3022
|
-
(m = o.control.setting(l, o)) != null && m.click ? o.control.setting(l, o).click(l, o) :
|
|
3041
|
+
(m = o.control.setting(l, o)) != null && m.click ? o.control.setting(l, o).click(l, o) : Ft(
|
|
3023
3042
|
{
|
|
3024
3043
|
title: o.control.setting(l, o).title || o.control.setting(l, o).label || "设置",
|
|
3025
3044
|
size: o.control.setting(l, o).size || 470,
|
|
3026
3045
|
width: o.control.setting(l, o).width || 600,
|
|
3027
3046
|
slots: {
|
|
3028
|
-
default: () => we(
|
|
3047
|
+
default: () => we(ga, {
|
|
3029
3048
|
modelValue: o,
|
|
3030
3049
|
tuid: ce.value,
|
|
3031
3050
|
onSettingDragEnd: async () => {
|
|
3032
|
-
await
|
|
3051
|
+
await xe(ce.value);
|
|
3033
3052
|
},
|
|
3034
3053
|
onSelectAll: async (b) => {
|
|
3035
|
-
await
|
|
3054
|
+
await xe(ce.value);
|
|
3036
3055
|
}
|
|
3037
3056
|
})
|
|
3038
3057
|
}
|
|
3039
3058
|
},
|
|
3040
3059
|
o.control.setting(l, o).mode
|
|
3041
3060
|
);
|
|
3042
|
-
},
|
|
3061
|
+
}, ae = e.value.control, H = [
|
|
3043
3062
|
{ type: "add", func: w },
|
|
3044
3063
|
{ type: "download", func: Q },
|
|
3045
3064
|
{ type: "setting", func: oe },
|
|
3046
|
-
{ type: "view", func:
|
|
3065
|
+
{ type: "view", func: V },
|
|
3047
3066
|
{ type: "edit", func: g },
|
|
3048
3067
|
{ type: "delete", func: i },
|
|
3049
3068
|
{ type: "save", func: E }
|
|
3050
|
-
], z = (l, o, m, b, F) => H.filter((
|
|
3051
|
-
var ye,
|
|
3069
|
+
], z = (l, o, m, b, F) => H.filter((U) => l.includes(U.type)).map(({ type: U, func: N }) => {
|
|
3070
|
+
var ye, _e, Ae;
|
|
3052
3071
|
return {
|
|
3053
|
-
name: `control-${
|
|
3054
|
-
attr:
|
|
3055
|
-
func:
|
|
3056
|
-
label: (ye =
|
|
3057
|
-
sort: ((
|
|
3058
|
-
groupName: ((
|
|
3072
|
+
name: `control-${U}`,
|
|
3073
|
+
attr: ae == null ? void 0 : ae[U](o, m, b, F),
|
|
3074
|
+
func: N,
|
|
3075
|
+
label: (ye = ae == null ? void 0 : ae[U](o, m, b, F)) == null ? void 0 : ye.label,
|
|
3076
|
+
sort: ((_e = ae == null ? void 0 : ae[U](o, m, b, F)) == null ? void 0 : _e.sort) || 0,
|
|
3077
|
+
groupName: ((Ae = ae == null ? void 0 : ae[U](o, m, b, F)) == null ? void 0 : Ae.groupName) || "default"
|
|
3059
3078
|
};
|
|
3060
|
-
}).sort((
|
|
3061
|
-
const ye =
|
|
3062
|
-
return
|
|
3079
|
+
}).sort((U, N) => U.sort - N.sort), Se = (l, o, m, b, F) => z(l, o, m, b, F).reduce((U, N) => {
|
|
3080
|
+
const ye = N.groupName || "default";
|
|
3081
|
+
return U[ye] || (U[ye] = []), U[ye].push(N), U;
|
|
3063
3082
|
}, {}), me = nt(
|
|
3064
3083
|
() => Object.fromEntries(
|
|
3065
3084
|
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
3085
|
)
|
|
3067
|
-
),
|
|
3086
|
+
), Te = re({}), I = (l, o) => {
|
|
3068
3087
|
const m = (b, F) => {
|
|
3069
|
-
for (const
|
|
3070
|
-
if (
|
|
3071
|
-
if (
|
|
3072
|
-
const
|
|
3073
|
-
if (
|
|
3088
|
+
for (const U of b) {
|
|
3089
|
+
if (U.value == F) return U.label;
|
|
3090
|
+
if (U.children) {
|
|
3091
|
+
const N = m(U.children, F);
|
|
3092
|
+
if (N) return N;
|
|
3074
3093
|
}
|
|
3075
3094
|
}
|
|
3076
3095
|
return null;
|
|
3077
3096
|
};
|
|
3078
3097
|
if (l.getDicts) {
|
|
3079
3098
|
const b = o.toString();
|
|
3080
|
-
return
|
|
3081
|
-
|
|
3099
|
+
return Te.value[b] ? (l.options = Te.value[b], l.formatter || (l.formatter = (F, U, N, ye) => l.options && m(l.options, N) || N), Promise.resolve()) : l.getDicts(e.value.table.data).then((F) => {
|
|
3100
|
+
Te.value[b] = F, l.options = F, l.formatter || (l.formatter = (U, N, ye, _e) => l.options && m(l.options, ye) || ye);
|
|
3082
3101
|
});
|
|
3083
3102
|
}
|
|
3084
3103
|
return Promise.resolve();
|
|
@@ -3086,12 +3105,12 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3086
3105
|
const l = [];
|
|
3087
3106
|
Object.keys(e.value).forEach((o) => {
|
|
3088
3107
|
if (e.value[o].getDicts) {
|
|
3089
|
-
const m =
|
|
3108
|
+
const m = I(e.value[o], o).then(() => {
|
|
3090
3109
|
e.value.table.data.forEach((b) => {
|
|
3091
3110
|
var F;
|
|
3092
3111
|
if (e.value[o].getDicts && ((F = e.value[o]) == null ? void 0 : F.forceString) !== !1) {
|
|
3093
|
-
const
|
|
3094
|
-
b[o] =
|
|
3112
|
+
const U = b[o];
|
|
3113
|
+
b[o] = U != null ? U.toString() : U;
|
|
3095
3114
|
}
|
|
3096
3115
|
});
|
|
3097
3116
|
}).catch((b) => {
|
|
@@ -3103,11 +3122,11 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3103
3122
|
console.error("字典加载过程中发生错误:", o);
|
|
3104
3123
|
});
|
|
3105
3124
|
}, he = (l, o, m, b) => {
|
|
3106
|
-
var F,
|
|
3107
|
-
return l.table ? (F = l.table(o, m, b)) != null && F.auth ? (
|
|
3108
|
-
},
|
|
3125
|
+
var F, U;
|
|
3126
|
+
return l.table ? (F = l.table(o, m, b)) != null && F.auth ? (U = l.table(o, m, b)) == null ? void 0 : U.auth(o, m, b) : !0 : !1;
|
|
3127
|
+
}, Oe = () => {
|
|
3109
3128
|
if (e.value.dialog.mode == "drawer")
|
|
3110
|
-
|
|
3129
|
+
c.value.handleClose();
|
|
3111
3130
|
else if (e.value.dialog.mode == "dialog")
|
|
3112
3131
|
try {
|
|
3113
3132
|
D.value.handleClose();
|
|
@@ -3117,22 +3136,22 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3117
3136
|
else
|
|
3118
3137
|
u.value = !1;
|
|
3119
3138
|
};
|
|
3120
|
-
|
|
3139
|
+
cl(() => {
|
|
3121
3140
|
e.value.table.autoWatch && e.value.table.load();
|
|
3122
3141
|
});
|
|
3123
|
-
const
|
|
3142
|
+
const xe = async () => {
|
|
3124
3143
|
try {
|
|
3125
3144
|
const [l, o, m] = await Promise.all([
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3145
|
+
na(ce.value),
|
|
3146
|
+
fa(ce.value),
|
|
3147
|
+
ua(ce.value)
|
|
3129
3148
|
]);
|
|
3130
3149
|
l && Array.isArray(l) && l.forEach((b) => {
|
|
3131
3150
|
const F = e.value[b.key];
|
|
3132
3151
|
F && (F.width = b.width);
|
|
3133
3152
|
}), o && Array.isArray(o) && o.forEach((b, F) => {
|
|
3134
|
-
const
|
|
3135
|
-
|
|
3153
|
+
const U = e.value[b];
|
|
3154
|
+
U && (U.sort = F);
|
|
3136
3155
|
}), m && Array.isArray(m) && m.length > 0 ? m.forEach((b) => {
|
|
3137
3156
|
const F = e.value[b];
|
|
3138
3157
|
F && (F.showCol = !1);
|
|
@@ -3142,8 +3161,8 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3142
3161
|
} catch (l) {
|
|
3143
3162
|
console.error("加载表格信息时出错:", l);
|
|
3144
3163
|
}
|
|
3145
|
-
}, Ne = () =>
|
|
3146
|
-
return
|
|
3164
|
+
}, Ne = () => Sa(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3165
|
+
return fl(() => {
|
|
3147
3166
|
ce.value = Ne();
|
|
3148
3167
|
}), ft(async () => {
|
|
3149
3168
|
$.value = Object.entries(e.value).filter(
|
|
@@ -3158,19 +3177,19 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3158
3177
|
const l = Object.entries(e.value).filter(
|
|
3159
3178
|
([o, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
|
|
3160
3179
|
);
|
|
3161
|
-
|
|
3180
|
+
S.value = Object.fromEntries(
|
|
3162
3181
|
l.map(([o, m]) => [o, m.value])
|
|
3163
|
-
), await
|
|
3182
|
+
), await xe();
|
|
3164
3183
|
} catch (l) {
|
|
3165
3184
|
console.error("Error during component initialization:", l);
|
|
3166
3185
|
}
|
|
3167
3186
|
e.value.table.autoWatch || e.value.table.load();
|
|
3168
|
-
}), s({ addRow: w, editRow: g, deleteRow: i, readForm:
|
|
3187
|
+
}), s({ addRow: w, editRow: g, deleteRow: i, readForm: V, saveRowData: E, closeDialog: Oe }), (l, o) => {
|
|
3169
3188
|
var We, st, mt, ct, ht;
|
|
3170
|
-
const m =
|
|
3171
|
-
return p(),
|
|
3172
|
-
e.value.dialog.mode == "dialog" && u.value ? (p(),
|
|
3173
|
-
|
|
3189
|
+
const m = L("el-icon"), b = L("el-dialog"), F = L("el-drawer"), U = L("el-button-group"), N = L("el-dropdown-item"), ye = L("el-dropdown-menu"), _e = L("el-dropdown"), Ae = L("el-table-column"), Ue = L("el-table"), Ye = L("el-pagination");
|
|
3190
|
+
return p(), Y(te, null, [
|
|
3191
|
+
e.value.dialog.mode == "dialog" && u.value ? (p(), Y("div", xa, [
|
|
3192
|
+
ee(b, O(
|
|
3174
3193
|
{
|
|
3175
3194
|
ref_key: "dialogRef",
|
|
3176
3195
|
ref: D,
|
|
@@ -3179,47 +3198,47 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3179
3198
|
"onUpdate:modelValue": o[3] || (o[3] = (j) => u.value = j),
|
|
3180
3199
|
fullscreen: e.value.dialog.fullScreen
|
|
3181
3200
|
},
|
|
3182
|
-
|
|
3201
|
+
P(je)(e.value.dialog, (j) => !["size", "max", "min"].includes(j)),
|
|
3183
3202
|
{
|
|
3184
|
-
width:
|
|
3203
|
+
width: P(el)(e.value.dialog.width) + 35
|
|
3185
3204
|
}
|
|
3186
3205
|
), {
|
|
3187
3206
|
header: _(() => {
|
|
3188
|
-
var j, de, M, Z,
|
|
3207
|
+
var j, de, M, Z, se, Qe, Ze, Ge, Xe, ot;
|
|
3189
3208
|
return [
|
|
3190
|
-
|
|
3191
|
-
|
|
3209
|
+
X("div", Ma, [
|
|
3210
|
+
X("div", Ta, [
|
|
3192
3211
|
k(l.$slots, "f-header", {}, () => [
|
|
3193
|
-
|
|
3212
|
+
X("div", Fa, Ee(e.value.dialog.title), 1)
|
|
3194
3213
|
], !0)
|
|
3195
3214
|
]),
|
|
3196
|
-
((de = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : de.fullScreen) === !1 ? (p(),
|
|
3215
|
+
((de = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : de.fullScreen) === !1 ? (p(), Y("div", {
|
|
3197
3216
|
key: 0,
|
|
3198
|
-
style:
|
|
3217
|
+
style: qe((se = (Z = (M = e.value) == null ? void 0 : M.dialog) == null ? void 0 : Z.max) == null ? void 0 : se.style),
|
|
3199
3218
|
onClick: o[0] || (o[0] = (R) => e.value.dialog.fullScreen = !0),
|
|
3200
3219
|
class: "max"
|
|
3201
3220
|
}, [
|
|
3202
|
-
|
|
3221
|
+
ee(m, null, {
|
|
3203
3222
|
default: _(() => {
|
|
3204
|
-
var R,
|
|
3223
|
+
var R, Re, Je;
|
|
3205
3224
|
return [
|
|
3206
|
-
(p(), A(Ke((Je = (
|
|
3225
|
+
(p(), A(Ke((Je = (Re = (R = e.value) == null ? void 0 : R.dialog) == null ? void 0 : Re.max) == null ? void 0 : Je.icon)))
|
|
3207
3226
|
];
|
|
3208
3227
|
}),
|
|
3209
3228
|
_: 1
|
|
3210
3229
|
})
|
|
3211
3230
|
], 4)) : $e("", !0),
|
|
3212
|
-
((Ze = (Qe = e.value) == null ? void 0 : Qe.dialog) == null ? void 0 : Ze.fullScreen) === !0 ? (p(),
|
|
3231
|
+
((Ze = (Qe = e.value) == null ? void 0 : Qe.dialog) == null ? void 0 : Ze.fullScreen) === !0 ? (p(), Y("div", {
|
|
3213
3232
|
key: 1,
|
|
3214
|
-
style:
|
|
3233
|
+
style: qe((ot = (Xe = (Ge = e.value) == null ? void 0 : Ge.dialog) == null ? void 0 : Xe.min) == null ? void 0 : ot.style),
|
|
3215
3234
|
onClick: o[1] || (o[1] = (R) => e.value.dialog.fullScreen = !1),
|
|
3216
3235
|
class: "max"
|
|
3217
3236
|
}, [
|
|
3218
|
-
|
|
3237
|
+
ee(m, null, {
|
|
3219
3238
|
default: _(() => {
|
|
3220
|
-
var R,
|
|
3239
|
+
var R, Re, Je;
|
|
3221
3240
|
return [
|
|
3222
|
-
(p(), A(Ke((Je = (
|
|
3241
|
+
(p(), A(Ke((Je = (Re = (R = e.value) == null ? void 0 : R.dialog) == null ? void 0 : Re.min) == null ? void 0 : Je.icon)))
|
|
3223
3242
|
];
|
|
3224
3243
|
}),
|
|
3225
3244
|
_: 1
|
|
@@ -3229,16 +3248,16 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3229
3248
|
];
|
|
3230
3249
|
}),
|
|
3231
3250
|
default: _(() => [
|
|
3232
|
-
|
|
3251
|
+
X("div", Va, [
|
|
3233
3252
|
k(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3234
|
-
|
|
3253
|
+
ee(xt, {
|
|
3235
3254
|
modelValue: e.value,
|
|
3236
3255
|
"onUpdate:modelValue": o[2] || (o[2] = (j) => e.value = j),
|
|
3237
3256
|
onSubmit: q,
|
|
3238
3257
|
onReset: T,
|
|
3239
3258
|
flag: t.value
|
|
3240
3259
|
}, be({ _: 2 }, [
|
|
3241
|
-
|
|
3260
|
+
W(l.$slots, (j, de, M) => ({
|
|
3242
3261
|
name: de,
|
|
3243
3262
|
fn: _((Z) => [
|
|
3244
3263
|
k(l.$slots, de, { model: Z }, void 0, !0)
|
|
@@ -3251,32 +3270,32 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3251
3270
|
_: 3
|
|
3252
3271
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3253
3272
|
])) : $e("", !0),
|
|
3254
|
-
e.value.dialog.mode == "drawer" && u.value ? (p(),
|
|
3255
|
-
|
|
3273
|
+
e.value.dialog.mode == "drawer" && u.value ? (p(), Y("div", qa, [
|
|
3274
|
+
ee(F, O({
|
|
3256
3275
|
ref_key: "drawerRef",
|
|
3257
|
-
ref:
|
|
3276
|
+
ref: c,
|
|
3258
3277
|
modelValue: u.value,
|
|
3259
3278
|
"onUpdate:modelValue": o[5] || (o[5] = (j) => u.value = j)
|
|
3260
|
-
},
|
|
3279
|
+
}, P(je)(e.value.dialog, (j) => !["width"].includes(j))), {
|
|
3261
3280
|
header: _(() => [
|
|
3262
|
-
|
|
3263
|
-
|
|
3281
|
+
X("div", Aa, [
|
|
3282
|
+
X("div", Ba, [
|
|
3264
3283
|
k(l.$slots, "f-header", {}, () => [
|
|
3265
|
-
|
|
3284
|
+
X("div", Oa, Ee(e.value.dialog.title), 1)
|
|
3266
3285
|
], !0)
|
|
3267
3286
|
])
|
|
3268
3287
|
])
|
|
3269
3288
|
]),
|
|
3270
3289
|
default: _(() => [
|
|
3271
3290
|
k(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3272
|
-
|
|
3291
|
+
ee(xt, {
|
|
3273
3292
|
modelValue: e.value,
|
|
3274
3293
|
"onUpdate:modelValue": o[4] || (o[4] = (j) => e.value = j),
|
|
3275
3294
|
onSubmit: q,
|
|
3276
3295
|
onReset: T,
|
|
3277
3296
|
flag: t.value
|
|
3278
3297
|
}, be({ _: 2 }, [
|
|
3279
|
-
|
|
3298
|
+
W(l.$slots, (j, de, M) => ({
|
|
3280
3299
|
name: de,
|
|
3281
3300
|
fn: _((Z) => [
|
|
3282
3301
|
k(l.$slots, de, { model: Z }, void 0, !0)
|
|
@@ -3288,65 +3307,65 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3288
3307
|
_: 3
|
|
3289
3308
|
}, 16, ["modelValue"])
|
|
3290
3309
|
])) : $e("", !0),
|
|
3291
|
-
|
|
3292
|
-
((st = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : st.hidden) != !0 ? (p(),
|
|
3310
|
+
X("div", Ia, [
|
|
3311
|
+
((st = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : st.hidden) != !0 ? (p(), Y("div", Ua, [
|
|
3293
3312
|
k(l.$slots, "query", {}, () => [
|
|
3294
|
-
|
|
3313
|
+
ee(Wl, {
|
|
3295
3314
|
modelValue: e.value,
|
|
3296
3315
|
"onUpdate:modelValue": o[6] || (o[6] = (j) => e.value = j),
|
|
3297
|
-
info:
|
|
3298
|
-
"onUpdate:info": o[7] || (o[7] = (j) =>
|
|
3299
|
-
onQuery:
|
|
3316
|
+
info: f.value,
|
|
3317
|
+
"onUpdate:info": o[7] || (o[7] = (j) => f.value = j),
|
|
3318
|
+
onQuery: x,
|
|
3300
3319
|
onReset: Le
|
|
3301
3320
|
}, be({
|
|
3302
3321
|
"q-btns": _(() => [
|
|
3303
3322
|
k(l.$slots, "q-btns", {}, () => [
|
|
3304
|
-
(p(!0),
|
|
3305
|
-
de == "default" ? (p(!0),
|
|
3323
|
+
(p(!0), Y(te, null, W(Se(["add", "download", "setting"], S.value, e.value), (j, de) => (p(), Y(te, null, [
|
|
3324
|
+
de == "default" ? (p(!0), Y(te, { key: 0 }, W(j, (M) => (p(), Y(te, null, [
|
|
3306
3325
|
k(l.$slots, M.name + "-left", {}, void 0, !0),
|
|
3307
3326
|
(M.name === "control-add" ? M.attr.auth() && M.attr.inline === !1 : M.attr.auth()) ? k(l.$slots, M.name, { key: 0 }, () => [
|
|
3308
|
-
M.label ? (p(), A(
|
|
3327
|
+
M.label ? (p(), A(P(Be), O({
|
|
3309
3328
|
key: 0,
|
|
3310
3329
|
title: M.label,
|
|
3311
3330
|
ref_for: !0
|
|
3312
3331
|
}, M.attr, {
|
|
3313
|
-
onClick: (Z) => M.func(
|
|
3332
|
+
onClick: (Z) => M.func(S.value, e.value, $.value)
|
|
3314
3333
|
}), {
|
|
3315
3334
|
default: _(() => [
|
|
3316
|
-
|
|
3335
|
+
Ve(Ee(M.label), 1)
|
|
3317
3336
|
]),
|
|
3318
3337
|
_: 2
|
|
3319
|
-
}, 1040, ["title", "onClick"])) : (p(), A(
|
|
3338
|
+
}, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
|
|
3320
3339
|
key: 1,
|
|
3321
3340
|
title: M.label,
|
|
3322
3341
|
ref_for: !0
|
|
3323
3342
|
}, M.attr, {
|
|
3324
|
-
onClick: (Z) => M.func(
|
|
3343
|
+
onClick: (Z) => M.func(S.value, e.value, $.value)
|
|
3325
3344
|
}), null, 16, ["title", "onClick"]))
|
|
3326
3345
|
], !0) : $e("", !0),
|
|
3327
3346
|
k(l.$slots, M.name + "-right", {}, void 0, !0)
|
|
3328
|
-
], 64))), 256)) : (p(), A(
|
|
3347
|
+
], 64))), 256)) : (p(), A(U, { key: 1 }, {
|
|
3329
3348
|
default: _(() => [
|
|
3330
|
-
(p(!0),
|
|
3349
|
+
(p(!0), Y(te, null, W(j, (M) => (p(), Y(te, null, [
|
|
3331
3350
|
k(l.$slots, M.name + "-left", {}, void 0, !0),
|
|
3332
3351
|
(M.name === "control-add" ? M.attr.auth() && M.attr.inline === !1 : M.attr.auth()) ? k(l.$slots, M.name, { key: 0 }, () => [
|
|
3333
|
-
M.label ? (p(), A(
|
|
3352
|
+
M.label ? (p(), A(P(Be), O({
|
|
3334
3353
|
key: 0,
|
|
3335
3354
|
title: M.label,
|
|
3336
3355
|
ref_for: !0
|
|
3337
3356
|
}, M.attr, {
|
|
3338
|
-
onClick: (Z) => M.func(
|
|
3357
|
+
onClick: (Z) => M.func(S.value, e.value, $.value)
|
|
3339
3358
|
}), {
|
|
3340
3359
|
default: _(() => [
|
|
3341
|
-
|
|
3360
|
+
Ve(Ee(M.label), 1)
|
|
3342
3361
|
]),
|
|
3343
3362
|
_: 2
|
|
3344
|
-
}, 1040, ["title", "onClick"])) : (p(), A(
|
|
3363
|
+
}, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
|
|
3345
3364
|
key: 1,
|
|
3346
3365
|
title: M.label,
|
|
3347
3366
|
ref_for: !0
|
|
3348
3367
|
}, M.attr, {
|
|
3349
|
-
onClick: (Z) => M.func(
|
|
3368
|
+
onClick: (Z) => M.func(S.value, e.value, $.value)
|
|
3350
3369
|
}), null, 16, ["title", "onClick"]))
|
|
3351
3370
|
], !0) : $e("", !0),
|
|
3352
3371
|
k(l.$slots, M.name + "-right", {}, void 0, !0)
|
|
@@ -3359,7 +3378,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3359
3378
|
]),
|
|
3360
3379
|
_: 2
|
|
3361
3380
|
}, [
|
|
3362
|
-
|
|
3381
|
+
W(l.$slots, (j, de, M) => ({
|
|
3363
3382
|
name: de,
|
|
3364
3383
|
fn: _((Z) => [
|
|
3365
3384
|
k(l.$slots, de, { model: e.value }, void 0, !0)
|
|
@@ -3368,18 +3387,18 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3368
3387
|
]), 1032, ["modelValue", "info"])
|
|
3369
3388
|
], !0)
|
|
3370
3389
|
])) : $e("", !0),
|
|
3371
|
-
|
|
3372
|
-
|
|
3390
|
+
X("div", Ya, [
|
|
3391
|
+
ee(Ue, O({
|
|
3373
3392
|
...l.$attrs,
|
|
3374
|
-
...
|
|
3393
|
+
...P(je)(
|
|
3375
3394
|
e.value.table,
|
|
3376
3395
|
(j) => !["dblclickType", "page"].includes(j)
|
|
3377
3396
|
)
|
|
3378
3397
|
}, {
|
|
3379
|
-
"summary-method": (j) => e.value.table["summary-method"](j, { fields:
|
|
3398
|
+
"summary-method": (j) => e.value.table["summary-method"](j, { fields: G.value, sums: B.value }),
|
|
3380
3399
|
onSortChange: o[8] || (o[8] = (j) => {
|
|
3381
3400
|
var de, M;
|
|
3382
|
-
e.value.table.onSortChange(j,
|
|
3401
|
+
e.value.table.onSortChange(j, f.value), ((de = j == null ? void 0 : j.column) == null ? void 0 : de.sortable) === "custom" && ((M = e.value.table) == null || M.load());
|
|
3383
3402
|
})
|
|
3384
3403
|
}), {
|
|
3385
3404
|
append: _(() => [
|
|
@@ -3390,13 +3409,13 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3390
3409
|
]),
|
|
3391
3410
|
default: _(() => [
|
|
3392
3411
|
k(l.$slots, "default", {}, () => [
|
|
3393
|
-
(p(!0),
|
|
3412
|
+
(p(!0), Y(te, null, W(me.value, (j, de) => (p(), A(Ae, O({
|
|
3394
3413
|
prop: de,
|
|
3395
3414
|
key: de,
|
|
3396
3415
|
ref_for: !0
|
|
3397
3416
|
}, {
|
|
3398
3417
|
...e.value.tableColumns,
|
|
3399
|
-
...
|
|
3418
|
+
...P(je)(j, (M) => d.includes(M))
|
|
3400
3419
|
}), be({
|
|
3401
3420
|
header: _(({ column: M, $index: Z }) => [
|
|
3402
3421
|
de == "control" ? k(l.$slots, `${de}-header`, {
|
|
@@ -3404,7 +3423,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3404
3423
|
column: M,
|
|
3405
3424
|
index: Z
|
|
3406
3425
|
}, () => [
|
|
3407
|
-
|
|
3426
|
+
X("span", null, Ee(M.label), 1)
|
|
3408
3427
|
], !0) : k(l.$slots, `${de}-header`, {
|
|
3409
3428
|
key: 1,
|
|
3410
3429
|
column: M,
|
|
@@ -3418,89 +3437,89 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3418
3437
|
}, [
|
|
3419
3438
|
j.type === "expand" ? {
|
|
3420
3439
|
name: "default",
|
|
3421
|
-
fn: _(({ row: M, column: Z, $index:
|
|
3440
|
+
fn: _(({ row: M, column: Z, $index: se }) => [
|
|
3422
3441
|
k(l.$slots, `${de}`, {
|
|
3423
3442
|
row: M,
|
|
3424
3443
|
column: Z,
|
|
3425
|
-
index:
|
|
3444
|
+
index: se
|
|
3426
3445
|
}, void 0, !0)
|
|
3427
3446
|
]),
|
|
3428
3447
|
key: "0"
|
|
3429
3448
|
} : j.type == "control" ? {
|
|
3430
3449
|
name: "default",
|
|
3431
|
-
fn: _(({ row: M, column: Z, $index:
|
|
3450
|
+
fn: _(({ row: M, column: Z, $index: se }) => {
|
|
3432
3451
|
var Qe, Ze;
|
|
3433
3452
|
return [
|
|
3434
|
-
|
|
3453
|
+
X("div", {
|
|
3435
3454
|
class: Rt(["control", (Qe = e.value.control) == null ? void 0 : Qe.class]),
|
|
3436
|
-
style:
|
|
3455
|
+
style: qe((Ze = e.value.control) == null ? void 0 : Ze.style)
|
|
3437
3456
|
}, [
|
|
3438
3457
|
k(l.$slots, "control", {}, () => [
|
|
3439
3458
|
k(l.$slots, "control-left", {
|
|
3440
3459
|
row: M,
|
|
3441
3460
|
column: Z,
|
|
3442
|
-
index:
|
|
3461
|
+
index: se
|
|
3443
3462
|
}, void 0, !0),
|
|
3444
|
-
(p(!0),
|
|
3463
|
+
(p(!0), Y(te, null, W(Se(["view", "edit", "delete", "save"], M, Z, se, e.value), (Ge, Xe) => {
|
|
3445
3464
|
var ot;
|
|
3446
|
-
return p(),
|
|
3447
|
-
Xe == "default" ? (p(!0),
|
|
3465
|
+
return p(), Y(te, null, [
|
|
3466
|
+
Xe == "default" ? (p(!0), Y(te, { key: 0 }, W(Ge, (R) => (p(), Y(te, null, [
|
|
3448
3467
|
k(l.$slots, R.name + "-left", {
|
|
3449
3468
|
row: M,
|
|
3450
3469
|
column: Z,
|
|
3451
|
-
index:
|
|
3470
|
+
index: se
|
|
3452
3471
|
}, void 0, !0),
|
|
3453
3472
|
R.attr.auth() ? k(l.$slots, R.name, {
|
|
3454
3473
|
key: 0,
|
|
3455
3474
|
row: M,
|
|
3456
3475
|
column: Z,
|
|
3457
|
-
index:
|
|
3476
|
+
index: se
|
|
3458
3477
|
}, () => [
|
|
3459
|
-
R.label ? (p(), A(
|
|
3478
|
+
R.label ? (p(), A(P(Be), O({
|
|
3460
3479
|
key: 0,
|
|
3461
3480
|
title: R.label,
|
|
3462
3481
|
ref_for: !0
|
|
3463
3482
|
}, R.attr, {
|
|
3464
|
-
onClick: (
|
|
3483
|
+
onClick: (Re) => R.func(M, Z, se, e.value)
|
|
3465
3484
|
}), {
|
|
3466
3485
|
default: _(() => [
|
|
3467
|
-
|
|
3486
|
+
Ve(Ee(R.label), 1)
|
|
3468
3487
|
]),
|
|
3469
3488
|
_: 2
|
|
3470
|
-
}, 1040, ["title", "onClick"])) : (p(), A(
|
|
3489
|
+
}, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
|
|
3471
3490
|
key: 1,
|
|
3472
3491
|
title: R.label,
|
|
3473
3492
|
ref_for: !0
|
|
3474
3493
|
}, R.attr, {
|
|
3475
|
-
onClick: (
|
|
3494
|
+
onClick: (Re) => R.func(M, Z, se, e.value)
|
|
3476
3495
|
}), null, 16, ["title", "onClick"]))
|
|
3477
3496
|
], !0) : $e("", !0),
|
|
3478
3497
|
k(l.$slots, R.name + "-right", {
|
|
3479
3498
|
row: M,
|
|
3480
3499
|
column: Z,
|
|
3481
|
-
index:
|
|
3500
|
+
index: se
|
|
3482
3501
|
}, void 0, !0)
|
|
3483
|
-
], 64))), 256)) : Xe != null && Xe.startsWith("dropdown") && ((ot = ge(M, Z,
|
|
3502
|
+
], 64))), 256)) : Xe != null && Xe.startsWith("dropdown") && ((ot = ge(M, Z, se, e.value)) != null && ot.auth()) ? (p(), A(_e, O({
|
|
3484
3503
|
key: 1,
|
|
3485
3504
|
ref_for: !0
|
|
3486
|
-
}, ge(M, Z,
|
|
3505
|
+
}, ge(M, Z, se, e.value)), {
|
|
3487
3506
|
dropdown: _(() => [
|
|
3488
|
-
|
|
3507
|
+
ee(ye, null, {
|
|
3489
3508
|
default: _(() => [
|
|
3490
|
-
(p(!0),
|
|
3491
|
-
var
|
|
3492
|
-
return p(),
|
|
3509
|
+
(p(!0), Y(te, null, W(Ge, (R) => {
|
|
3510
|
+
var Re, Je, y;
|
|
3511
|
+
return p(), Y(te, null, [
|
|
3493
3512
|
l.$slots[R.name + "-left"] ? k(l.$slots, R.name + "-left", {
|
|
3494
3513
|
key: 0,
|
|
3495
3514
|
row: M,
|
|
3496
3515
|
column: Z,
|
|
3497
|
-
index:
|
|
3516
|
+
index: se
|
|
3498
3517
|
}, void 0, !0) : $e("", !0),
|
|
3499
|
-
R.attr.auth() ? (p(), A(
|
|
3518
|
+
R.attr.auth() ? (p(), A(N, O({
|
|
3500
3519
|
key: 1,
|
|
3501
3520
|
ref_for: !0
|
|
3502
3521
|
}, {
|
|
3503
|
-
command: (
|
|
3522
|
+
command: (Re = R == null ? void 0 : R.attr) == null ? void 0 : Re.command,
|
|
3504
3523
|
divided: (Je = R == null ? void 0 : R.attr) == null ? void 0 : Je.divided,
|
|
3505
3524
|
disabled: (y = R == null ? void 0 : R.attr) == null ? void 0 : y.disabled
|
|
3506
3525
|
}), {
|
|
@@ -3508,25 +3527,25 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3508
3527
|
k(l.$slots, R.name, {
|
|
3509
3528
|
row: M,
|
|
3510
3529
|
column: Z,
|
|
3511
|
-
index:
|
|
3530
|
+
index: se
|
|
3512
3531
|
}, () => [
|
|
3513
|
-
R.label ? (p(), A(
|
|
3532
|
+
R.label ? (p(), A(P(Be), O({
|
|
3514
3533
|
key: 0,
|
|
3515
3534
|
title: R.label,
|
|
3516
3535
|
ref_for: !0
|
|
3517
3536
|
}, R.attr, {
|
|
3518
|
-
onClick: (ne) => R.func(M, Z,
|
|
3537
|
+
onClick: (ne) => R.func(M, Z, se, e.value)
|
|
3519
3538
|
}), {
|
|
3520
3539
|
default: _(() => [
|
|
3521
|
-
|
|
3540
|
+
Ve(Ee(R.label), 1)
|
|
3522
3541
|
]),
|
|
3523
3542
|
_: 2
|
|
3524
|
-
}, 1040, ["title", "onClick"])) : (p(), A(
|
|
3543
|
+
}, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
|
|
3525
3544
|
key: 1,
|
|
3526
3545
|
title: R.label,
|
|
3527
3546
|
ref_for: !0
|
|
3528
3547
|
}, R.attr, {
|
|
3529
|
-
onClick: (ne) => R.func(M, Z,
|
|
3548
|
+
onClick: (ne) => R.func(M, Z, se, e.value)
|
|
3530
3549
|
}), null, 16, ["title", "onClick"]))
|
|
3531
3550
|
], !0)
|
|
3532
3551
|
]),
|
|
@@ -3536,7 +3555,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3536
3555
|
key: 2,
|
|
3537
3556
|
row: M,
|
|
3538
3557
|
column: Z,
|
|
3539
|
-
index:
|
|
3558
|
+
index: se
|
|
3540
3559
|
}, void 0, !0) : $e("", !0)
|
|
3541
3560
|
], 64);
|
|
3542
3561
|
}), 256))
|
|
@@ -3547,47 +3566,47 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3547
3566
|
default: _(() => {
|
|
3548
3567
|
var R;
|
|
3549
3568
|
return [
|
|
3550
|
-
|
|
3569
|
+
Ve(Ee((R = ge(M, Z, se, e.value)) == null ? void 0 : R.label) + " ", 1)
|
|
3551
3570
|
];
|
|
3552
3571
|
}),
|
|
3553
3572
|
_: 2
|
|
3554
|
-
}, 1040)) : (p(), A(
|
|
3573
|
+
}, 1040)) : (p(), A(U, { key: 2 }, {
|
|
3555
3574
|
default: _(() => [
|
|
3556
|
-
(p(!0),
|
|
3575
|
+
(p(!0), Y(te, null, W(Ge, (R) => (p(), Y(te, null, [
|
|
3557
3576
|
k(l.$slots, R.name + "-left", {
|
|
3558
3577
|
row: M,
|
|
3559
3578
|
column: Z,
|
|
3560
|
-
index:
|
|
3579
|
+
index: se
|
|
3561
3580
|
}, void 0, !0),
|
|
3562
3581
|
R.attr.auth() ? k(l.$slots, R.name, {
|
|
3563
3582
|
key: 0,
|
|
3564
3583
|
row: M,
|
|
3565
3584
|
column: Z,
|
|
3566
|
-
index:
|
|
3585
|
+
index: se
|
|
3567
3586
|
}, () => [
|
|
3568
|
-
R.label ? (p(), A(
|
|
3587
|
+
R.label ? (p(), A(P(Be), O({
|
|
3569
3588
|
key: 0,
|
|
3570
3589
|
title: R.label,
|
|
3571
3590
|
ref_for: !0
|
|
3572
3591
|
}, R.attr, {
|
|
3573
|
-
onClick: (
|
|
3592
|
+
onClick: (Re) => R.func(M, Z, se, e.value)
|
|
3574
3593
|
}), {
|
|
3575
3594
|
default: _(() => [
|
|
3576
|
-
|
|
3595
|
+
Ve(Ee(R.label), 1)
|
|
3577
3596
|
]),
|
|
3578
3597
|
_: 2
|
|
3579
|
-
}, 1040, ["title", "onClick"])) : (p(), A(
|
|
3598
|
+
}, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
|
|
3580
3599
|
key: 1,
|
|
3581
3600
|
title: R.label,
|
|
3582
3601
|
ref_for: !0
|
|
3583
3602
|
}, R.attr, {
|
|
3584
|
-
onClick: (
|
|
3603
|
+
onClick: (Re) => R.func(M, Z, se, e.value)
|
|
3585
3604
|
}), null, 16, ["title", "onClick"]))
|
|
3586
3605
|
], !0) : $e("", !0),
|
|
3587
3606
|
k(l.$slots, R.name + "-right", {
|
|
3588
3607
|
row: M,
|
|
3589
3608
|
column: Z,
|
|
3590
|
-
index:
|
|
3609
|
+
index: se
|
|
3591
3610
|
}, void 0, !0)
|
|
3592
3611
|
], 64))), 256))
|
|
3593
3612
|
]),
|
|
@@ -3598,7 +3617,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3598
3617
|
k(l.$slots, "control-right", {
|
|
3599
3618
|
row: M,
|
|
3600
3619
|
column: Z,
|
|
3601
|
-
index:
|
|
3620
|
+
index: se
|
|
3602
3621
|
}, void 0, !0)
|
|
3603
3622
|
], !0)
|
|
3604
3623
|
], 6)
|
|
@@ -3607,28 +3626,28 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3607
3626
|
key: "1"
|
|
3608
3627
|
} : j.type != "selection" && j.type != "index" ? {
|
|
3609
3628
|
name: "default",
|
|
3610
|
-
fn: _(({ row: M, column: Z, $index:
|
|
3611
|
-
he(j, M, Z,
|
|
3629
|
+
fn: _(({ row: M, column: Z, $index: se }) => [
|
|
3630
|
+
he(j, M, Z, se) && se != -1 ? k(l.$slots, `${de}`, {
|
|
3612
3631
|
key: 0,
|
|
3613
3632
|
row: M,
|
|
3614
3633
|
column: Z,
|
|
3615
|
-
index:
|
|
3634
|
+
index: se
|
|
3616
3635
|
}, () => {
|
|
3617
3636
|
var Qe;
|
|
3618
3637
|
return [
|
|
3619
|
-
(p(), A(
|
|
3638
|
+
(p(), A(Et, {
|
|
3620
3639
|
modelValue: M[de],
|
|
3621
3640
|
"onUpdate:modelValue": (Ze) => M[de] = Ze,
|
|
3622
|
-
item: j == null ? void 0 : j.table(M, Z,
|
|
3641
|
+
item: j == null ? void 0 : j.table(M, Z, se),
|
|
3623
3642
|
ctrlKey: de,
|
|
3624
|
-
key: `${de}-${
|
|
3625
|
-
ctrlType: (Qe = j.table(M, Z,
|
|
3643
|
+
key: `${de}-${se} -${ue.value}`,
|
|
3644
|
+
ctrlType: (Qe = j.table(M, Z, se)) != null && Qe.type ? j.table(M, Z, se).type : j.type,
|
|
3626
3645
|
model: e.value,
|
|
3627
3646
|
class: "g-ctrl-container",
|
|
3628
3647
|
t: "t",
|
|
3629
3648
|
formInfo: M
|
|
3630
3649
|
}, be({ _: 2 }, [
|
|
3631
|
-
|
|
3650
|
+
W(l.$slots, (Ze, Ge) => ({
|
|
3632
3651
|
name: Ge,
|
|
3633
3652
|
fn: _((Xe) => [
|
|
3634
3653
|
k(l.$slots, Ge, {
|
|
@@ -3644,15 +3663,15 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3644
3663
|
key: 1,
|
|
3645
3664
|
row: M,
|
|
3646
3665
|
column: Z,
|
|
3647
|
-
index:
|
|
3666
|
+
index: se
|
|
3648
3667
|
}, () => [
|
|
3649
|
-
|
|
3650
|
-
style:
|
|
3651
|
-
innerHTML:
|
|
3668
|
+
X("div", {
|
|
3669
|
+
style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, j == null ? void 0 : j.style]),
|
|
3670
|
+
innerHTML: K(
|
|
3652
3671
|
j,
|
|
3653
|
-
Z.formatter(M, Z, M[de],
|
|
3672
|
+
Z.formatter(M, Z, M[de], se)
|
|
3654
3673
|
)
|
|
3655
|
-
}, null, 12,
|
|
3674
|
+
}, null, 12, Ra)
|
|
3656
3675
|
], !0)
|
|
3657
3676
|
]),
|
|
3658
3677
|
key: "2"
|
|
@@ -3663,7 +3682,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3663
3682
|
_: 3
|
|
3664
3683
|
}, 16, ["summary-method"]),
|
|
3665
3684
|
(ht = (ct = (mt = e.value) == null ? void 0 : mt.table) == null ? void 0 : ct.page) != null && ht.hidden ? $e("", !0) : k(l.$slots, "page", { key: 0 }, () => [
|
|
3666
|
-
|
|
3685
|
+
ee(Ye, O({
|
|
3667
3686
|
"page-size": e.value.table.page.pageSize,
|
|
3668
3687
|
"onUpdate:pageSize": o[9] || (o[9] = (j) => e.value.table.page.pageSize = j),
|
|
3669
3688
|
"current-page": e.value.table.page.currentPage,
|
|
@@ -3680,7 +3699,7 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3680
3699
|
], 64);
|
|
3681
3700
|
};
|
|
3682
3701
|
}
|
|
3683
|
-
}),
|
|
3702
|
+
}), Ha = /* @__PURE__ */ at(La, [["__scopeId", "data-v-fb74c643"]]), za = { class: "g-tree-table" }, Pa = { class: "g-tree-container" }, ja = { class: "g-tree-table-container" }, Na = /* @__PURE__ */ Object.assign({
|
|
3684
3703
|
name: "g-tree-table",
|
|
3685
3704
|
inheritAttrs: !1
|
|
3686
3705
|
}, {
|
|
@@ -3691,73 +3710,73 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3691
3710
|
},
|
|
3692
3711
|
emits: /* @__PURE__ */ tt(["load"], ["update:modelValue"]),
|
|
3693
3712
|
setup(n, { emit: s }) {
|
|
3694
|
-
var $,
|
|
3713
|
+
var $, le, B, G;
|
|
3695
3714
|
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` : ((
|
|
3697
|
-
), h = re(((
|
|
3715
|
+
typeof (($ = r == null ? void 0 : r.tree) == null ? void 0 : $.width) == "number" ? `${r.tree.width}px` : ((le = r == null ? void 0 : r.tree) == null ? void 0 : le.width) || "180px"
|
|
3716
|
+
), h = re(((B = r == null ? void 0 : r.tree) == null ? void 0 : B.search) === void 0 ? !0 : (G = r == null ? void 0 : r.tree) == null ? void 0 : G.search), f = re({}), D = re(""), c = re(null), v = (S, ue) => {
|
|
3698
3717
|
var pe, fe;
|
|
3699
|
-
if (!
|
|
3718
|
+
if (!S) return !0;
|
|
3700
3719
|
const ce = ((fe = (pe = r.tree) == null ? void 0 : pe.props) == null ? void 0 : fe.label) || "label";
|
|
3701
|
-
return
|
|
3702
|
-
}, u = (
|
|
3703
|
-
a("load",
|
|
3704
|
-
}, d = (
|
|
3705
|
-
|
|
3720
|
+
return ue[ce].includes(S);
|
|
3721
|
+
}, u = (S, ue) => {
|
|
3722
|
+
a("load", f.value, S, ue);
|
|
3723
|
+
}, d = (S) => {
|
|
3724
|
+
f.value = S, t.value.table.load();
|
|
3706
3725
|
};
|
|
3707
|
-
return
|
|
3708
|
-
|
|
3709
|
-
}), (
|
|
3710
|
-
const ce =
|
|
3711
|
-
return p(),
|
|
3712
|
-
|
|
3726
|
+
return vl(D, (S) => {
|
|
3727
|
+
c.value.filter(S);
|
|
3728
|
+
}), (S, ue) => {
|
|
3729
|
+
const ce = L("el-input"), pe = L("el-tree"), fe = L("g-table");
|
|
3730
|
+
return p(), Y("div", za, [
|
|
3731
|
+
X("div", {
|
|
3713
3732
|
class: "g-tree-left",
|
|
3714
|
-
style:
|
|
3733
|
+
style: qe({ width: e.value })
|
|
3715
3734
|
}, [
|
|
3716
3735
|
h.value ? (p(), A(ce, {
|
|
3717
3736
|
key: 0,
|
|
3718
3737
|
modelValue: D.value,
|
|
3719
|
-
"onUpdate:modelValue":
|
|
3738
|
+
"onUpdate:modelValue": ue[0] || (ue[0] = (ie) => D.value = ie),
|
|
3720
3739
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3721
3740
|
placeholder: "输入节点查询",
|
|
3722
3741
|
clearable: ""
|
|
3723
3742
|
}, null, 8, ["modelValue"])) : $e("", !0),
|
|
3724
|
-
|
|
3725
|
-
|
|
3743
|
+
X("div", Pa, [
|
|
3744
|
+
ee(pe, O({
|
|
3726
3745
|
style: { width: e.value },
|
|
3727
3746
|
"filter-node-method": v,
|
|
3728
3747
|
"expand-on-click-node": !1,
|
|
3729
3748
|
ref_key: "treeRef",
|
|
3730
|
-
ref:
|
|
3749
|
+
ref: c,
|
|
3731
3750
|
onNodeClick: d
|
|
3732
|
-
},
|
|
3751
|
+
}, S.$attrs.tree), be({
|
|
3733
3752
|
default: _(({ node: ie, data: ge }) => [
|
|
3734
|
-
k(
|
|
3753
|
+
k(S.$slots, "tree", {
|
|
3735
3754
|
node: ie,
|
|
3736
3755
|
data: ge
|
|
3737
3756
|
}, () => [
|
|
3738
|
-
|
|
3757
|
+
X("span", null, Ee(ie.label), 1)
|
|
3739
3758
|
], !0)
|
|
3740
3759
|
]),
|
|
3741
3760
|
_: 2
|
|
3742
3761
|
}, [
|
|
3743
|
-
|
|
3762
|
+
W(S.$slots, (ie, ge, Me) => ({
|
|
3744
3763
|
name: ge,
|
|
3745
3764
|
fn: _((De) => [
|
|
3746
|
-
k(
|
|
3765
|
+
k(S.$slots, ge, { data: De }, void 0, !0)
|
|
3747
3766
|
])
|
|
3748
3767
|
}))
|
|
3749
3768
|
]), 1040, ["style"])
|
|
3750
3769
|
])
|
|
3751
3770
|
], 4),
|
|
3752
|
-
|
|
3753
|
-
|
|
3771
|
+
X("div", ja, [
|
|
3772
|
+
ee(fe, O({
|
|
3754
3773
|
modelValue: t.value,
|
|
3755
|
-
"onUpdate:modelValue":
|
|
3756
|
-
},
|
|
3757
|
-
|
|
3774
|
+
"onUpdate:modelValue": ue[1] || (ue[1] = (ie) => t.value = ie)
|
|
3775
|
+
}, S.$attrs, { onLoad: u }), be({ _: 2 }, [
|
|
3776
|
+
W(S.$slots, (ie, ge, Me) => ({
|
|
3758
3777
|
name: ge,
|
|
3759
3778
|
fn: _((De) => [
|
|
3760
|
-
k(
|
|
3779
|
+
k(S.$slots, ge, { data: De }, void 0, !0)
|
|
3761
3780
|
])
|
|
3762
3781
|
}))
|
|
3763
3782
|
]), 1040, ["modelValue"])
|
|
@@ -3765,14 +3784,14 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3765
3784
|
]);
|
|
3766
3785
|
};
|
|
3767
3786
|
}
|
|
3768
|
-
}),
|
|
3787
|
+
}), Wa = /* @__PURE__ */ at(Na, [["__scopeId", "data-v-c888e4fc"]]), Ga = {
|
|
3769
3788
|
key: 0,
|
|
3770
3789
|
class: "op-group"
|
|
3771
|
-
},
|
|
3790
|
+
}, Xa = {
|
|
3772
3791
|
key: 1,
|
|
3773
3792
|
class: "op-items",
|
|
3774
3793
|
style: { width: "100%", height: "100%" }
|
|
3775
|
-
},
|
|
3794
|
+
}, Qa = ["title"], It = "100px", Za = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3776
3795
|
__name: "g-select-option",
|
|
3777
3796
|
props: {
|
|
3778
3797
|
columns: {
|
|
@@ -3794,52 +3813,52 @@ const ka = /* @__PURE__ */ Nt(_a), Ca = { key: 0 }, Da = { style: { display: "fl
|
|
|
3794
3813
|
},
|
|
3795
3814
|
setup(n) {
|
|
3796
3815
|
const s = n;
|
|
3797
|
-
return (a, t) => s.title ? (p(),
|
|
3798
|
-
(p(!0),
|
|
3799
|
-
style:
|
|
3816
|
+
return (a, t) => s.title ? (p(), Y("div", Ga, [
|
|
3817
|
+
(p(!0), Y(te, null, W(s.columns, (r) => (p(), Y("span", {
|
|
3818
|
+
style: qe({ width: (r == null ? void 0 : r.width) || It, ...r == null ? void 0 : r.titleStyle, textAlign: (r == null ? void 0 : r.align) || "center" }),
|
|
3800
3819
|
key: r.key
|
|
3801
3820
|
}, [
|
|
3802
3821
|
k(a.$slots, `${n.t}-title-${r.key}`, { col: r }, () => [
|
|
3803
|
-
|
|
3822
|
+
Ve(Ee(r.label), 1)
|
|
3804
3823
|
], !0)
|
|
3805
3824
|
], 4))), 128))
|
|
3806
|
-
])) : (p(),
|
|
3807
|
-
(p(!0),
|
|
3808
|
-
style:
|
|
3825
|
+
])) : (p(), Y("div", Xa, [
|
|
3826
|
+
(p(!0), Y(te, null, W(s.columns, (r) => (p(), Y("span", {
|
|
3827
|
+
style: qe({ width: (r == null ? void 0 : r.width) || It, textAlign: (r == null ? void 0 : r.align) || "center", ...r == null ? void 0 : r.style }),
|
|
3809
3828
|
key: r.key,
|
|
3810
3829
|
title: n.data[r.key]
|
|
3811
3830
|
}, [
|
|
3812
3831
|
k(a.$slots, `${n.t}-option-${r.key}`, { col: r }, () => [
|
|
3813
|
-
|
|
3832
|
+
Ve(Ee(n.data[r.key] ?? "-"), 1)
|
|
3814
3833
|
], !0)
|
|
3815
|
-
], 12,
|
|
3834
|
+
], 12, Qa))), 128))
|
|
3816
3835
|
]));
|
|
3817
3836
|
}
|
|
3818
|
-
}),
|
|
3819
|
-
let
|
|
3820
|
-
const
|
|
3837
|
+
}), Ja = /* @__PURE__ */ at(Za, [["__scopeId", "data-v-c0ac6b77"]]), Ka = Object.freeze({}), Kt = [Ha, xt, Wa, Ja];
|
|
3838
|
+
let Tt = {};
|
|
3839
|
+
const cr = {
|
|
3821
3840
|
install: (n, s = {}) => {
|
|
3822
|
-
|
|
3841
|
+
Tt = Object.freeze({ ...Ka, ...s }), Kt.forEach((a) => {
|
|
3823
3842
|
n.component(a.name, a);
|
|
3824
|
-
}), n.provide("options",
|
|
3843
|
+
}), n.provide("options", Tt), n.config.globalProperties.$openModal = Ft;
|
|
3825
3844
|
}
|
|
3826
|
-
},
|
|
3845
|
+
}, er = (n) => ({ dialog: al, drawer: rl })[n] || null, Ft = (n = {}, s = "dialog") => {
|
|
3827
3846
|
if (typeof document > "u") return () => {
|
|
3828
3847
|
};
|
|
3829
3848
|
const a = document.createElement("div");
|
|
3830
3849
|
let t = () => {
|
|
3831
3850
|
};
|
|
3832
|
-
const r =
|
|
3851
|
+
const r = er(s);
|
|
3833
3852
|
if (!r) return () => {
|
|
3834
3853
|
};
|
|
3835
|
-
const e = re(!0), h =
|
|
3854
|
+
const e = re(!0), h = pl({
|
|
3836
3855
|
setup() {
|
|
3837
3856
|
return t = () => {
|
|
3838
3857
|
e.value = !1, setTimeout(() => {
|
|
3839
3858
|
h.unmount(), a.remove();
|
|
3840
3859
|
}, 300);
|
|
3841
3860
|
}, () => {
|
|
3842
|
-
var
|
|
3861
|
+
var f, D, c;
|
|
3843
3862
|
return we(r, {
|
|
3844
3863
|
modelValue: e.value,
|
|
3845
3864
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
@@ -3851,21 +3870,21 @@ const nr = {
|
|
|
3851
3870
|
"close-on-click-modal": !1,
|
|
3852
3871
|
...n
|
|
3853
3872
|
}, {
|
|
3854
|
-
default: (
|
|
3873
|
+
default: (f = n.slots) == null ? void 0 : f.default,
|
|
3855
3874
|
header: (D = n.slots) == null ? void 0 : D.header,
|
|
3856
|
-
footer: (
|
|
3875
|
+
footer: (c = n.slots) == null ? void 0 : c.footer
|
|
3857
3876
|
});
|
|
3858
3877
|
};
|
|
3859
3878
|
},
|
|
3860
3879
|
mounted: () => {
|
|
3861
|
-
|
|
3880
|
+
_t();
|
|
3862
3881
|
}
|
|
3863
3882
|
});
|
|
3864
|
-
return
|
|
3865
|
-
h.component(
|
|
3866
|
-
}), h.provide("options",
|
|
3883
|
+
return Kt.forEach((f) => {
|
|
3884
|
+
h.component(f.name, f);
|
|
3885
|
+
}), h.provide("options", Tt), h.use(ll, { locale: xl }), document.body.appendChild(a), h.mount(a), t;
|
|
3867
3886
|
};
|
|
3868
|
-
function
|
|
3887
|
+
function el(n, s = window.innerWidth) {
|
|
3869
3888
|
if (typeof n == "number")
|
|
3870
3889
|
return n;
|
|
3871
3890
|
if (n.endsWith("px"))
|
|
@@ -3881,17 +3900,17 @@ function Kt(n, s = window.innerWidth) {
|
|
|
3881
3900
|
return s * parseFloat(n) / 100;
|
|
3882
3901
|
}
|
|
3883
3902
|
if (n.startsWith("calc(") && n.endsWith(")")) {
|
|
3884
|
-
let e = function(
|
|
3885
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3886
|
-
return new Function("return " +
|
|
3903
|
+
let e = function(f) {
|
|
3904
|
+
if (/[0-9+\-*/().\s]+$/.test(f))
|
|
3905
|
+
return new Function("return " + f)();
|
|
3887
3906
|
throw new Error("Invalid calc expression");
|
|
3888
3907
|
};
|
|
3889
3908
|
const r = n.slice(5, -1).trim();
|
|
3890
|
-
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3909
|
+
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (f, D, c) => el(D + c, s)));
|
|
3891
3910
|
}
|
|
3892
3911
|
throw new Error("Unsupported unit in value: " + n);
|
|
3893
3912
|
}
|
|
3894
|
-
const
|
|
3913
|
+
const Fe = (...n) => {
|
|
3895
3914
|
const s = {}, a = (t, r) => (Object.keys(r).forEach((e) => {
|
|
3896
3915
|
t[e] = typeof r[e] == "object" && !Array.isArray(r[e]) ? a(t[e] || {}, r[e]) : r[e];
|
|
3897
3916
|
}), t);
|
|
@@ -3903,12 +3922,12 @@ function je(n, s = (a, t) => s(a, t)) {
|
|
|
3903
3922
|
n.hasOwnProperty(t) && s(t, n[t]) && (a[t] = n[t]);
|
|
3904
3923
|
return a;
|
|
3905
3924
|
}
|
|
3906
|
-
function
|
|
3925
|
+
function tr(n, s, a = "value", t = "label", r = "children") {
|
|
3907
3926
|
for (const e of n) {
|
|
3908
3927
|
if (e[a] === s)
|
|
3909
3928
|
return e[t];
|
|
3910
3929
|
if (e[r] && e[r].length > 0) {
|
|
3911
|
-
const h =
|
|
3930
|
+
const h = tr(e[r], s, a, t, r);
|
|
3912
3931
|
if (h)
|
|
3913
3932
|
return h;
|
|
3914
3933
|
}
|
|
@@ -3927,14 +3946,14 @@ function Vt(n) {
|
|
|
3927
3946
|
e += (a[Math.floor(n * 10 * Math.pow(10, h)) % 10] + s[h]).replace(/零./, "");
|
|
3928
3947
|
e = e || "整", n = Math.floor(n);
|
|
3929
3948
|
for (let h = 0; h < t[0].length && n > 0; h++) {
|
|
3930
|
-
let
|
|
3949
|
+
let f = "";
|
|
3931
3950
|
for (let D = 0; D < t[1].length && n > 0; D++)
|
|
3932
|
-
|
|
3933
|
-
e =
|
|
3951
|
+
f = a[n % 10] + t[1][D] + f, n = Math.floor(n / 10);
|
|
3952
|
+
e = f.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][h] + e;
|
|
3934
3953
|
}
|
|
3935
3954
|
return r + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3936
3955
|
}
|
|
3937
|
-
function
|
|
3956
|
+
function lr(n) {
|
|
3938
3957
|
if (typeof n != "number" || isNaN(n) || !isFinite(n))
|
|
3939
3958
|
return "0.00";
|
|
3940
3959
|
const s = n.toFixed(2), [a, t] = s.split(".");
|
|
@@ -3968,15 +3987,15 @@ const Ce = {
|
|
|
3968
3987
|
PASSWORD: "password",
|
|
3969
3988
|
TEXTAREA: "textarea",
|
|
3970
3989
|
TEL: "tel"
|
|
3971
|
-
},
|
|
3990
|
+
}, _t = () => {
|
|
3972
3991
|
dt(() => {
|
|
3973
3992
|
const n = document.querySelector(".el-dialog");
|
|
3974
3993
|
if (!n || n.querySelector(".dialog-resize-handle"))
|
|
3975
3994
|
return;
|
|
3976
|
-
const s =
|
|
3977
|
-
n.appendChild(s),
|
|
3995
|
+
const s = ar();
|
|
3996
|
+
n.appendChild(s), rr(n), or(n, s);
|
|
3978
3997
|
});
|
|
3979
|
-
},
|
|
3998
|
+
}, ar = () => {
|
|
3980
3999
|
const n = document.createElement("div");
|
|
3981
4000
|
return Object.assign(n.style, {
|
|
3982
4001
|
position: "absolute",
|
|
@@ -3988,7 +4007,7 @@ const Ce = {
|
|
|
3988
4007
|
cursor: "nwse-resize",
|
|
3989
4008
|
zIndex: "999999999999"
|
|
3990
4009
|
}), n.className = "dialog-resize-handle", n;
|
|
3991
|
-
},
|
|
4010
|
+
}, rr = (n) => {
|
|
3992
4011
|
Object.assign(n.style, {
|
|
3993
4012
|
transition: "none",
|
|
3994
4013
|
minWidth: "300px",
|
|
@@ -3996,28 +4015,28 @@ const Ce = {
|
|
|
3996
4015
|
resize: "none"
|
|
3997
4016
|
// 防止与原生resize冲突
|
|
3998
4017
|
});
|
|
3999
|
-
},
|
|
4018
|
+
}, or = (n, s) => {
|
|
4000
4019
|
let a = !1, t, r, e, h;
|
|
4001
|
-
const
|
|
4002
|
-
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",
|
|
4020
|
+
const f = (v) => {
|
|
4021
|
+
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", c);
|
|
4003
4022
|
}, D = (v) => {
|
|
4004
4023
|
if (!a) return;
|
|
4005
4024
|
const u = Math.max(300, e + v.clientX - t), d = Math.max(200, h + v.clientY - r);
|
|
4006
4025
|
n.style.width = `${u}px`, n.style.height = `${d}px`;
|
|
4007
|
-
},
|
|
4008
|
-
a = !1, document.removeEventListener("mousemove", D), document.removeEventListener("mouseup",
|
|
4026
|
+
}, c = () => {
|
|
4027
|
+
a = !1, document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", c);
|
|
4009
4028
|
};
|
|
4010
|
-
s.addEventListener("mousedown",
|
|
4029
|
+
s.addEventListener("mousedown", f);
|
|
4011
4030
|
};
|
|
4012
4031
|
export {
|
|
4013
4032
|
Ce as CT,
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4033
|
+
_t as bindResize,
|
|
4034
|
+
el as convertToPx,
|
|
4035
|
+
cr as default,
|
|
4017
4036
|
je as filterObject,
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4037
|
+
tr as findTreeLabelByValue,
|
|
4038
|
+
lr as formatAmount,
|
|
4039
|
+
Fe as mergeObjects,
|
|
4021
4040
|
Vt as moneyToChinese,
|
|
4022
|
-
|
|
4041
|
+
Ft as openModal
|
|
4023
4042
|
};
|