vue-2024-ui 0.2.23 → 0.2.25

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