vue-2024-ui 0.0.65 → 0.0.67

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,7 +1,7 @@
1
- import Et, { ElForm as He, ElButtonGroup as Ye, ElButton as ge, ElPopover as Je, ElMessage as _e, ElMessageBox as ct, ElDialog as wt, ElDrawer as _t } from "element-plus";
2
- import { mergeModels as Oe, useModel as xe, ref as ye, onMounted as Pe, resolveComponent as R, openBlock as s, createElementBlock as B, unref as o, createBlock as S, mergeProps as x, withCtx as g, renderSlot as p, Fragment as W, renderList as U, createTextVNode as be, toDisplayString as pe, createSlots as fe, createVNode as G, createCommentVNode as ve, normalizeProps as Le, createElementVNode as Q, useSlots as mt, nextTick as kt, inject as ot, useAttrs as Ne, onUnmounted as Ct, computed as Ae, normalizeStyle as Te, withModifiers as it, guardReactiveProps as Ke, resolveDynamicComponent as Se, Transition as Dt, withDirectives as pt, vShow as vt, h as Ve, onBeforeUnmount as Vt, normalizeClass as yt, watchEffect as Ft, watch as Tt, createApp as Mt } from "vue";
1
+ import wt, { ElForm as We, ElButtonGroup as He, ElButton as ge, ElPopover as Je, ElMessage as _e, ElMessageBox as ct, ElDialog as _t, ElDrawer as kt } from "element-plus";
2
+ import { mergeModels as Oe, useModel as xe, ref as ye, onMounted as Pe, watch as mt, resolveComponent as R, openBlock as s, createElementBlock as B, unref as o, createBlock as S, mergeProps as x, withCtx as g, renderSlot as p, Fragment as Y, renderList as U, createTextVNode as be, toDisplayString as pe, createSlots as fe, createVNode as G, createCommentVNode as ve, normalizeProps as Ne, createElementVNode as Q, useSlots as pt, nextTick as Ct, inject as ot, useAttrs as Le, onUnmounted as Dt, computed as Ae, normalizeStyle as Te, withModifiers as it, guardReactiveProps as Ke, resolveDynamicComponent as Se, Transition as Vt, withDirectives as vt, vShow as yt, h as Ve, onBeforeUnmount as Ft, normalizeClass as ht, watchEffect as Tt, createApp as Mt } from "vue";
3
3
  import { FullScreen as qt, Remove as St } from "@element-plus/icons-vue";
4
- import ht from "sortablejs";
4
+ import gt from "sortablejs";
5
5
  import { Dexie as Ot } from "dexie";
6
6
  var xt = {
7
7
  name: "zh-cn",
@@ -184,12 +184,12 @@ var xt = {
184
184
  function Bt(c) {
185
185
  return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
186
186
  }
187
- var gt = { exports: {} };
187
+ var bt = { exports: {} };
188
188
  (function(c, f) {
189
189
  (function(t, e) {
190
190
  c.exports = e();
191
191
  })(At, function() {
192
- var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", V = "second", F = "minute", q = "hour", E = "day", w = "week", P = "month", se = "quarter", D = "year", u = "date", A = "Invalid Date", ee = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, le = /\[([^\]]+)]|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, ae = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
192
+ var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", V = "second", F = "minute", q = "hour", E = "day", w = "week", P = "month", ne = "quarter", D = "year", u = "date", A = "Invalid Date", ee = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, le = /\[([^\]]+)]|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, ae = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
193
193
  var h = ["th", "st", "nd", "rd"], $ = M % 100;
194
194
  return "[" + M + (h[($ - 20) % 10] || h[$] || h[0]) + "]";
195
195
  } }, ce = function(M, h, $) {
@@ -205,33 +205,33 @@ var gt = { exports: {} };
205
205
  }, a: function(M) {
206
206
  return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
207
207
  }, p: function(M) {
208
- return { M: P, y: D, w, d: E, D: u, h: q, m: F, s: V, ms: v, Q: se }[M] || String(M || "").toLowerCase().replace(/s$/, "");
208
+ return { M: P, y: D, w, d: E, D: u, h: q, m: F, s: V, ms: v, Q: ne }[M] || String(M || "").toLowerCase().replace(/s$/, "");
209
209
  }, u: function(M) {
210
210
  return M === void 0;
211
- } }, ne = "en", d = {};
212
- d[ne] = ae;
211
+ } }, se = "en", d = {};
212
+ d[se] = ae;
213
213
  var k = "$isDayjsObject", I = function(M) {
214
214
  return M instanceof J || !(!M || !M[k]);
215
215
  }, y = function M(h, $, m) {
216
216
  var i;
217
- if (!h) return ne;
217
+ if (!h) return se;
218
218
  if (typeof h == "string") {
219
219
  var _ = h.toLowerCase();
220
220
  d[_] && (i = _), $ && (d[_] = $, i = _);
221
221
  var T = h.split("-");
222
222
  if (!i && T.length > 1) return M(T[0]);
223
223
  } else {
224
- var N = h.name;
225
- d[N] = h, i = N;
224
+ var L = h.name;
225
+ d[L] = h, i = L;
226
226
  }
227
- return !m && i && (ne = i), i || !m && ne;
228
- }, L = function(M, h) {
227
+ return !m && i && (se = i), i || !m && se;
228
+ }, N = function(M, h) {
229
229
  if (I(M)) return M.clone();
230
230
  var $ = typeof h == "object" ? h : {};
231
231
  return $.date = M, $.args = arguments, new J($);
232
232
  }, O = ie;
233
233
  O.l = y, O.i = I, O.w = function(M, h) {
234
- return L(M, { locale: h.$L, utc: h.$u, x: h.$x, $offset: h.$offset });
234
+ return N(M, { locale: h.$L, utc: h.$u, x: h.$x, $offset: h.$offset });
235
235
  };
236
236
  var J = function() {
237
237
  function M($) {
@@ -247,8 +247,8 @@ var gt = { exports: {} };
247
247
  if (typeof i == "string" && !/Z$/i.test(i)) {
248
248
  var T = i.match(ee);
249
249
  if (T) {
250
- var N = T[2] - 1 || 0, X = (T[7] || "0").substring(0, 3);
251
- return _ ? new Date(Date.UTC(T[1], N, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, X)) : new Date(T[1], N, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, X);
250
+ var L = T[2] - 1 || 0, X = (T[7] || "0").substring(0, 3);
251
+ return _ ? new Date(Date.UTC(T[1], L, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, X)) : new Date(T[1], L, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, X);
252
252
  }
253
253
  }
254
254
  return new Date(i);
@@ -261,12 +261,12 @@ var gt = { exports: {} };
261
261
  }, h.isValid = function() {
262
262
  return this.$d.toString() !== A;
263
263
  }, h.isSame = function($, m) {
264
- var i = L($);
264
+ var i = N($);
265
265
  return this.startOf(m) <= i && i <= this.endOf(m);
266
266
  }, h.isAfter = function($, m) {
267
- return L($) < this.startOf(m);
267
+ return N($) < this.startOf(m);
268
268
  }, h.isBefore = function($, m) {
269
- return this.endOf(m) < L($);
269
+ return this.endOf(m) < N($);
270
270
  }, h.$g = function($, m, i) {
271
271
  return O.u($) ? this[m] : this.set(i, $);
272
272
  }, h.unix = function() {
@@ -274,7 +274,7 @@ var gt = { exports: {} };
274
274
  }, h.valueOf = function() {
275
275
  return this.$d.getTime();
276
276
  }, h.startOf = function($, m) {
277
- var i = this, _ = !!O.u(m) || m, T = O.p($), N = function(De, he) {
277
+ var i = this, _ = !!O.u(m) || m, T = O.p($), L = function(De, he) {
278
278
  var l = O.w(i.$u ? Date.UTC(i.$y, he, De) : new Date(i.$y, he, De), i);
279
279
  return _ ? l : l.endOf(E);
280
280
  }, X = function(De, he) {
@@ -282,12 +282,12 @@ var gt = { exports: {} };
282
282
  }, oe = this.$W, n = this.$M, z = this.$D, re = "set" + (this.$u ? "UTC" : "");
283
283
  switch (T) {
284
284
  case D:
285
- return _ ? N(1, 0) : N(31, 11);
285
+ return _ ? L(1, 0) : L(31, 11);
286
286
  case P:
287
- return _ ? N(1, n) : N(0, n + 1);
287
+ return _ ? L(1, n) : L(0, n + 1);
288
288
  case w:
289
289
  var Ce = this.$locale().weekStart || 0, Me = (oe < Ce ? oe + 7 : oe) - Ce;
290
- return N(_ ? z - Me : z + (6 - Me), n);
290
+ return L(_ ? z - Me : z + (6 - Me), n);
291
291
  case E:
292
292
  case u:
293
293
  return X(re + "Hours", 0);
@@ -303,11 +303,11 @@ var gt = { exports: {} };
303
303
  }, h.endOf = function($) {
304
304
  return this.startOf($, !1);
305
305
  }, h.$set = function($, m) {
306
- var i, _ = O.p($), T = "set" + (this.$u ? "UTC" : ""), N = (i = {}, i[E] = T + "Date", i[u] = T + "Date", i[P] = T + "Month", i[D] = T + "FullYear", i[q] = T + "Hours", i[F] = T + "Minutes", i[V] = T + "Seconds", i[v] = T + "Milliseconds", i)[_], X = _ === E ? this.$D + (m - this.$W) : m;
306
+ var i, _ = O.p($), T = "set" + (this.$u ? "UTC" : ""), L = (i = {}, i[E] = T + "Date", i[u] = T + "Date", i[P] = T + "Month", i[D] = T + "FullYear", i[q] = T + "Hours", i[F] = T + "Minutes", i[V] = T + "Seconds", i[v] = T + "Milliseconds", i)[_], X = _ === E ? this.$D + (m - this.$W) : m;
307
307
  if (_ === P || _ === D) {
308
308
  var oe = this.clone().set(u, 1);
309
- oe.$d[N](X), oe.init(), this.$d = oe.set(u, Math.min(this.$D, oe.daysInMonth())).$d;
310
- } else N && this.$d[N](X);
309
+ oe.$d[L](X), oe.init(), this.$d = oe.set(u, Math.min(this.$D, oe.daysInMonth())).$d;
310
+ } else L && this.$d[L](X);
311
311
  return this.init(), this;
312
312
  }, h.set = function($, m) {
313
313
  return this.clone().$set($, m);
@@ -316,14 +316,14 @@ var gt = { exports: {} };
316
316
  }, h.add = function($, m) {
317
317
  var i, _ = this;
318
318
  $ = Number($);
319
- var T = O.p(m), N = function(n) {
320
- var z = L(_);
319
+ var T = O.p(m), L = function(n) {
320
+ var z = N(_);
321
321
  return O.w(z.date(z.date() + Math.round(n * $)), _);
322
322
  };
323
323
  if (T === P) return this.set(P, this.$M + $);
324
324
  if (T === D) return this.set(D, this.$y + $);
325
- if (T === E) return N(1);
326
- if (T === w) return N(7);
325
+ if (T === E) return L(1);
326
+ if (T === w) return L(7);
327
327
  var X = (i = {}, i[F] = e, i[q] = a, i[V] = t, i)[T] || 1, oe = this.$d.getTime() + $ * X;
328
328
  return O.w(oe, this);
329
329
  }, h.subtract = function($, m) {
@@ -331,10 +331,10 @@ var gt = { exports: {} };
331
331
  }, h.format = function($) {
332
332
  var m = this, i = this.$locale();
333
333
  if (!this.isValid()) return i.invalidDate || A;
334
- var _ = $ || "YYYY-MM-DDTHH:mm:ssZ", T = O.z(this), N = this.$H, X = this.$m, oe = this.$M, n = i.weekdays, z = i.months, re = i.meridiem, Ce = function(he, l, r, b) {
334
+ var _ = $ || "YYYY-MM-DDTHH:mm:ssZ", T = O.z(this), L = this.$H, X = this.$m, oe = this.$M, n = i.weekdays, z = i.months, re = i.meridiem, Ce = function(he, l, r, b) {
335
335
  return he && (he[l] || he(m, _)) || r[l].slice(0, b);
336
336
  }, Me = function(he) {
337
- return O.s(N % 12 || 12, he, "0");
337
+ return O.s(L % 12 || 12, he, "0");
338
338
  }, De = re || function(he, l, r) {
339
339
  var b = he < 12 ? "AM" : "PM";
340
340
  return r ? b.toLowerCase() : b;
@@ -367,17 +367,17 @@ var gt = { exports: {} };
367
367
  case "dddd":
368
368
  return n[m.$W];
369
369
  case "H":
370
- return String(N);
370
+ return String(L);
371
371
  case "HH":
372
- return O.s(N, 2, "0");
372
+ return O.s(L, 2, "0");
373
373
  case "h":
374
374
  return Me(1);
375
375
  case "hh":
376
376
  return Me(2);
377
377
  case "a":
378
- return De(N, X, !0);
378
+ return De(L, X, !0);
379
379
  case "A":
380
- return De(N, X, !1);
380
+ return De(L, X, !1);
381
381
  case "m":
382
382
  return String(X);
383
383
  case "mm":
@@ -397,17 +397,17 @@ var gt = { exports: {} };
397
397
  }, h.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
399
  }, h.diff = function($, m, i) {
400
- var _, T = this, N = O.p(m), X = L($), oe = (X.utcOffset() - this.utcOffset()) * e, n = this - X, z = function() {
400
+ var _, T = this, L = O.p(m), X = N($), oe = (X.utcOffset() - this.utcOffset()) * e, n = this - X, z = function() {
401
401
  return O.m(T, X);
402
402
  };
403
- switch (N) {
403
+ switch (L) {
404
404
  case D:
405
405
  _ = z() / 12;
406
406
  break;
407
407
  case P:
408
408
  _ = z();
409
409
  break;
410
- case se:
410
+ case ne:
411
411
  _ = z() / 3;
412
412
  break;
413
413
  case w:
@@ -449,18 +449,18 @@ var gt = { exports: {} };
449
449
  return this.$d.toUTCString();
450
450
  }, M;
451
451
  }(), $e = J.prototype;
452
- return L.prototype = $e, [["$ms", v], ["$s", V], ["$m", F], ["$H", q], ["$W", E], ["$M", P], ["$y", D], ["$D", u]].forEach(function(M) {
452
+ return N.prototype = $e, [["$ms", v], ["$s", V], ["$m", F], ["$H", q], ["$W", E], ["$M", P], ["$y", D], ["$D", u]].forEach(function(M) {
453
453
  $e[M[1]] = function(h) {
454
454
  return this.$g(h, M[0], M[1]);
455
455
  };
456
- }), L.extend = function(M, h) {
457
- return M.$i || (M(h, J, L), M.$i = !0), L;
458
- }, L.locale = y, L.isDayjs = I, L.unix = function(M) {
459
- return L(1e3 * M);
460
- }, L.en = d[ne], L.Ls = d, L.p = {}, L;
456
+ }), N.extend = function(M, h) {
457
+ return M.$i || (M(h, J, N), M.$i = !0), N;
458
+ }, N.locale = y, N.isDayjs = I, N.unix = function(M) {
459
+ return N(1e3 * M);
460
+ }, N.en = d[se], N.Ls = d, N.p = {}, N;
461
461
  });
462
- })(gt);
463
- var It = gt.exports;
462
+ })(bt);
463
+ var It = bt.exports;
464
464
  const Ze = /* @__PURE__ */ Bt(It), Ut = {
465
465
  style: { display: "flex", width: "100%" },
466
466
  class: "g-ctrl-container"
@@ -475,17 +475,17 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
475
475
  }),
476
476
  emits: ["update:modelValue"],
477
477
  setup(c) {
478
- const f = xe(c, "modelValue"), t = c, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, V = t.model, F = ye([]), q = ye([]), E = () => Object.keys(mt()).filter((D) => D.startsWith(`${t.t}-${a}-`)).map((D) => D.replace(`${t.t}-${a}-`, "")), w = {
478
+ const f = xe(c, "modelValue"), t = c, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, V = t.model, F = ye([]), q = ye([]), E = () => Object.keys(pt()).filter((D) => D.startsWith(`${t.t}-${a}-`)).map((D) => D.replace(`${t.t}-${a}-`, "")), w = {
479
479
  filterable: !0,
480
480
  remote: !!(e && e["remote-method"]),
481
481
  ...e
482
482
  }, P = (D) => {
483
483
  e["remote-method"](D, (u) => {
484
- kt(() => {
484
+ Ct(() => {
485
485
  q.value = u;
486
486
  });
487
487
  });
488
- }, se = async (D = "options") => {
488
+ }, ne = async (D = "options") => {
489
489
  try {
490
490
  const u = await (e == null ? void 0 : e.getDicts(t.formInfo));
491
491
  if (typeof u == "string")
@@ -506,7 +506,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
506
506
  var A, ee;
507
507
  e && e["remote-method"] && (w["remote-method"] = P), (ee = (A = V[a]) == null ? void 0 : A.options) != null && ee.length && (q.value = V[a].options);
508
508
  const D = (le, ae = "options", ce = V[a]) => {
509
- typeof e.getDicts == "function" && se(ae).catch((ie) => {
509
+ typeof e.getDicts == "function" && ne(ae).catch((ie) => {
510
510
  console.error(`Failed to load ${ae} for ${le}:`, ie);
511
511
  });
512
512
  };
@@ -517,9 +517,14 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
517
517
  console.error("Failed to load data for tree-select:", ae);
518
518
  }
519
519
  })();
520
- }), (D, u) => {
520
+ }), mt(() => V.table.data.length, (D, u) => {
521
+ if (D !== u && typeof e.getDicts == "function") {
522
+ if (e != null && e.multiple) return;
523
+ ne();
524
+ }
525
+ }, { deep: !0 }), (D, u) => {
521
526
  var X, oe;
522
- const A = R("el-radio"), ee = R("el-radio-group"), le = R("el-radio-button"), ae = R("el-checkbox"), ce = R("el-checkbox-group"), ie = R("el-checkbox-button"), ne = R("el-option"), d = R("el-select"), k = R("el-tree-select"), I = R("el-time-picker"), y = R("el-time-select"), L = R("el-date-picker"), O = R("el-color-picker"), J = R("el-rate"), $e = R("el-slider"), M = R("el-switch"), h = R("el-transfer"), $ = R("el-cascader"), m = R("el-button"), i = R("el-upload"), _ = R("el-autocomplete"), T = R("el-input-number"), N = R("el-input");
527
+ const A = R("el-radio"), ee = R("el-radio-group"), le = R("el-radio-button"), ae = R("el-checkbox"), ce = R("el-checkbox-group"), ie = R("el-checkbox-button"), se = R("el-option"), d = R("el-select"), k = R("el-tree-select"), I = R("el-time-picker"), y = R("el-time-select"), N = R("el-date-picker"), O = R("el-color-picker"), J = R("el-rate"), $e = R("el-slider"), M = R("el-switch"), h = R("el-transfer"), $ = R("el-cascader"), m = R("el-button"), i = R("el-upload"), _ = R("el-autocomplete"), T = R("el-input-number"), L = R("el-input");
523
528
  return s(), B("div", Ut, [
524
529
  o(v) == o(de).RADIO ? (s(), S(ee, x({
525
530
  key: 0,
@@ -528,7 +533,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
528
533
  }, o(e)), {
529
534
  default: g(() => [
530
535
  p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
531
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(A, x({ ref_for: !0 }, n), {
536
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(A, x({ ref_for: !0 }, n), {
532
537
  default: g(() => [
533
538
  p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
534
539
  ]),
@@ -544,7 +549,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
544
549
  }, o(e)), {
545
550
  default: g(() => [
546
551
  p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
547
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(le, x({ ref_for: !0 }, n), {
552
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(le, x({ ref_for: !0 }, n), {
548
553
  default: g(() => [
549
554
  p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
550
555
  ]),
@@ -571,7 +576,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
571
576
  }, o(e)), {
572
577
  default: g(() => [
573
578
  p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
574
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(ae, x({ ref_for: !0 }, n), {
579
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(ae, x({ ref_for: !0 }, n), {
575
580
  default: g(() => [
576
581
  p(D.$slots, `${t.t}-${o(a)}-options`, { option: n }, () => [
577
582
  be(pe(n.label), 1)
@@ -589,7 +594,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
589
594
  }, o(e)), {
590
595
  default: g(() => [
591
596
  p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
592
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(ie, x({ ref_for: !0 }, n), {
597
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(ie, x({ ref_for: !0 }, n), {
593
598
  default: g(() => [
594
599
  p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
595
600
  ]),
@@ -606,10 +611,10 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
606
611
  }, w), fe({
607
612
  default: g(() => [
608
613
  p(D.$slots, `${t.t}-${o(a)}`, { options: q.value }, () => [
609
- (s(!0), B(W, null, U(q.value, (n) => (s(), B(W, {
614
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), B(Y, {
610
615
  key: n.value
611
616
  }, [
612
- G(ne, x({ ref_for: !0 }, n, {
617
+ G(se, x({ ref_for: !0 }, n, {
613
618
  onClick: (z) => w.change && w.change(n)
614
619
  }), {
615
620
  default: g(() => [
@@ -617,7 +622,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
617
622
  ]),
618
623
  _: 2
619
624
  }, 1040, ["onClick"]),
620
- n.children && n.children.length ? (s(!0), B(W, { key: 0 }, U(n.children, (z) => (s(), S(ne, x({
625
+ n.children && n.children.length ? (s(!0), B(Y, { key: 0 }, U(n.children, (z) => (s(), S(se, x({
621
626
  key: z.value,
622
627
  ref_for: !0
623
628
  }, z, {
@@ -666,7 +671,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
666
671
  step: "00:15",
667
672
  end: "23:30",
668
673
  placeholder: o(V)[o(a)].label
669
- }, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(de).DATE ? (s(), S(L, x({
674
+ }, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(de).DATE ? (s(), S(N, x({
670
675
  key: 9,
671
676
  modelValue: f.value,
672
677
  "onUpdate:modelValue": u[9] || (u[9] = (n) => f.value = n),
@@ -680,7 +685,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
680
685
  p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
681
686
  ])
682
687
  }))
683
- ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(de).DATETIME ? (s(), S(L, x({
688
+ ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(de).DATETIME ? (s(), S(N, x({
684
689
  key: 10,
685
690
  modelValue: f.value,
686
691
  "onUpdate:modelValue": u[10] || (u[10] = (n) => f.value = n),
@@ -739,7 +744,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
739
744
  p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
740
745
  ])
741
746
  }))
742
- ]), 1040, ["modelValue", "options"])) : o(v) == o(de).IMAGE ? (s(), S(i, Le(x({ key: 17 }, o(e))), fe({
747
+ ]), 1040, ["modelValue", "options"])) : o(v) == o(de).IMAGE ? (s(), S(i, Ne(x({ key: 17 }, o(e))), fe({
743
748
  default: g(() => [
744
749
  G(m, { type: "primary" }, {
745
750
  default: g(() => u[22] || (u[22] = [
@@ -784,23 +789,21 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
784
789
  ])
785
790
  }))
786
791
  ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(de).MONEY ? (s(), B("div", Rt, [
787
- G(N, x({
792
+ G(L, x({
788
793
  modelValue: f.value,
789
794
  "onUpdate:modelValue": u[19] || (u[19] = (n) => f.value = n),
790
795
  placeholder: o(V)[o(a)].label,
791
796
  type: o(de).NUMBER,
792
797
  maxlength: ((X = o(e)) == null ? void 0 : X.max) || 25
793
- }, { ...o(e), type: o(v) }), fe({ _: 2 }, [
794
- f.value ? {
795
- name: "suffix",
796
- fn: g(() => [
797
- Q("div", {
798
- title: o(lt)(f.value),
799
- style: { "font-size": "10px", display: "block", width: "120px", overflow: "hidden", "text-overflow": "ellipsis" }
800
- }, pe(o(lt)(f.value)), 9, jt)
801
- ]),
802
- key: "0"
803
- } : void 0,
798
+ }, { ...o(e), type: o(v) }), fe({
799
+ suffix: g(() => [
800
+ Q("div", {
801
+ title: o(lt)(f.value),
802
+ style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
803
+ }, pe(o(lt)(f.value)), 9, jt)
804
+ ]),
805
+ _: 2
806
+ }, [
804
807
  U(E(), (n, z) => ({
805
808
  name: n,
806
809
  fn: g((re) => [
@@ -808,7 +811,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
808
811
  ])
809
812
  }))
810
813
  ]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
811
- ])) : (s(), S(N, x({
814
+ ])) : (s(), S(L, x({
812
815
  key: 21,
813
816
  modelValue: f.value,
814
817
  "onUpdate:modelValue": u[20] || (u[20] = (n) => f.value = n),
@@ -826,7 +829,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
826
829
  ]);
827
830
  };
828
831
  }
829
- }), We = /* @__PURE__ */ Object.assign({
832
+ }), Ye = /* @__PURE__ */ Object.assign({
830
833
  name: "g-form",
831
834
  inheritAttrs: !1
832
835
  }, {
@@ -837,7 +840,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
837
840
  },
838
841
  emits: /* @__PURE__ */ Oe(["submit", "reset"], ["update:modelValue"]),
839
842
  setup(c, { emit: f }) {
840
- var ae, ce, ie, ne;
843
+ var ae, ce, ie, se;
841
844
  const t = xe(c, "modelValue"), e = f, a = ye(null), v = ot("options"), V = {
842
845
  inline: !0,
843
846
  type: "hidden",
@@ -848,7 +851,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
848
851
  style: {
849
852
  display: "flex",
850
853
  flexWrap: "wrap",
851
- ...(ae = Ne()) == null ? void 0 : ae.style
854
+ ...(ae = Le()) == null ? void 0 : ae.style
852
855
  },
853
856
  // 表单底部属性
854
857
  footer: {
@@ -917,7 +920,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
917
920
  };
918
921
  t.value.form.cols = Ee(
919
922
  q,
920
- (ne = v == null ? void 0 : v.form) == null ? void 0 : ne.cols,
923
+ (se = v == null ? void 0 : v.form) == null ? void 0 : se.cols,
921
924
  t.value.form.cols
922
925
  );
923
926
  const E = (d) => {
@@ -935,25 +938,25 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
935
938
  validate: void 0
936
939
  }, ...d };
937
940
  y.required && k.push({ required: !0, message: `${y.label}不能为空!`, trigger: "blur" }), y.max && y.min && k.push({
938
- validator: (L, O, J) => {
941
+ validator: (N, O, J) => {
939
942
  O && d.type == "number" && (O < y.min || O > y.max) ? J(new Error(`${y.label} 必须在 ${y.min} 和 ${y.max} 之间!`)) : O && d.type !== "number" && (O.toString().length < y.min || O.toString().length > y.max) ? J(new Error(`字符长度必须在 ${y.min} 和 ${y.max} 之间!`)) : J();
940
943
  }
941
944
  }), y.max && !y.min && d.type == "number" && k.push({
942
- validator: (L, O, J) => {
945
+ validator: (N, O, J) => {
943
946
  O && O > y.max ? J(new Error(`${y.label}不能大于${y.max}!`)) : J();
944
947
  }
945
948
  }), y.min && !y.max && d.type == "number" && k.push({
946
- validator: (L, O, J) => {
949
+ validator: (N, O, J) => {
947
950
  O && O < y.min ? J(new Error(`${y.label}不能小于${y.min}!`)) : J();
948
951
  }
949
952
  }), y.type == "email" && k.push({ type: "email", message: "不是一个正确的邮箱地址!" }), y.type == "url" && k.push({ type: "url", message: "不是一个合正确的URL!" }), y.pattern && k.push({ pattern: y == null ? void 0 : y.pattern, message: (y == null ? void 0 : y.message) || "格式不正确!" }), y.validate && k.push({
950
- validator: (L, O, J) => y.validate(L, O, J)
953
+ validator: (N, O, J) => y.validate(N, O, J)
951
954
  });
952
955
  }
953
956
  return k;
954
957
  }, w = (d, k = !1) => {
955
- var L, O, J, $e, M;
956
- const I = k ? d : d == null ? void 0 : d.item, y = typeof (I == null ? void 0 : I.editor) == "function" ? I.editor(u.value, (L = t.value.form) == null ? void 0 : L.modalState) : (I == null ? void 0 : I.editor) || {};
958
+ var N, O, J, $e, M;
959
+ const I = k ? d : d == null ? void 0 : d.item, y = typeof (I == null ? void 0 : I.editor) == "function" ? I.editor(u.value, (N = t.value.form) == null ? void 0 : N.modalState) : (I == null ? void 0 : I.editor) || {};
957
960
  if (((O = t.value.form) == null ? void 0 : O.modalState) === "edit") {
958
961
  const h = typeof (I == null ? void 0 : I.editor) == "object" ? (J = I.editor) == null ? void 0 : J.ep : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ep : {};
959
962
  return { ...y, ...h };
@@ -964,22 +967,22 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
964
967
  }
965
968
  return y;
966
969
  }, P = (d) => {
967
- var I, y, L, O, J;
970
+ var I, y, N, O, J;
968
971
  const k = typeof d.editor == "function" ? d.editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d.editor;
969
- return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = k == null ? void 0 : k.ep) == null ? void 0 : L.type) ?? (k == null ? void 0 : k.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((J = k == null ? void 0 : k.ap) == null ? void 0 : J.type) ?? (k == null ? void 0 : k.type) ?? d.type : (k == null ? void 0 : k.type) ?? d.type;
972
+ return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((N = k == null ? void 0 : k.ep) == null ? void 0 : N.type) ?? (k == null ? void 0 : k.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((J = k == null ? void 0 : k.ap) == null ? void 0 : J.type) ?? (k == null ? void 0 : k.type) ?? d.type : (k == null ? void 0 : k.type) ?? d.type;
970
973
  };
971
974
  Pe(() => {
972
- se();
973
- }), Ct(() => {
975
+ ne();
976
+ }), Dt(() => {
974
977
  a.value = null;
975
978
  });
976
- const se = () => {
979
+ const ne = () => {
977
980
  for (const [d, k] of Object.entries(D.value))
978
981
  t.value[d].formItem = { ...t.value[d].formItem, ...k.formItem }, t.value[d].formItem.style = { ...t.value[d].formItem.style, ...k.formItem.style };
979
982
  }, D = Ae(() => Object.fromEntries(Object.entries(t.value).filter((d) => d[1].type != "hidden").filter((d) => !["table", "tableColumns", "query", "queryItems"].includes(d[0])).filter((d) => d[1].editor !== !1).filter((d) => d[1].type !== "control").filter((d) => {
980
- var I, y, L;
983
+ var I, y, N;
981
984
  const k = typeof d[1].editor == "function" ? d[1].editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d[1].editor;
982
- return t.value.form.modalState === "edit" ? ((y = k == null ? void 0 : k.ep) == null ? void 0 : y.editor) !== !1 : t.value.form.modalState === "add" ? ((L = k == null ? void 0 : k.ap) == null ? void 0 : L.editor) !== !1 : !0;
985
+ return t.value.form.modalState === "edit" ? ((y = k == null ? void 0 : k.ep) == null ? void 0 : y.editor) !== !1 : t.value.form.modalState === "add" ? ((N = k == null ? void 0 : k.ap) == null ? void 0 : N.editor) !== !1 : !0;
983
986
  }).map((d) => [d[0], d[1]]))), u = Ae(() => Object.fromEntries(Object.entries(t.value).filter((d) => d[1].type != "hidden").filter((d) => d[1].type != "control").map((d) => [d[0], d[1].value]))), A = Ae(() => {
984
987
  const d = /* @__PURE__ */ new Map();
985
988
  return Object.entries(D.value).forEach(([k, I]) => {
@@ -1018,7 +1021,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1018
1021
  }
1019
1022
  ], le = Ae(() => ee.filter((d) => !d.hidden).sort((d, k) => d.sort - k.sort || d.originalOrder - k.originalOrder));
1020
1023
  return (d, k) => {
1021
- const I = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"), J = R("el-button"), $e = R("el-form");
1024
+ const I = R("el-form-item"), y = R("el-col"), N = R("el-tab-pane"), O = R("el-tabs"), J = R("el-button"), $e = R("el-form");
1022
1025
  return s(), S($e, x({
1023
1026
  ref_key: "gform",
1024
1027
  ref: a,
@@ -1036,7 +1039,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1036
1039
  style: { width: "100%" }
1037
1040
  }, t.value.form.tabs), {
1038
1041
  default: g(() => [
1039
- (s(!0), B(W, null, U(A.value, (m) => (s(), S(L, x({
1042
+ (s(!0), B(Y, null, U(A.value, (m) => (s(), S(N, x({
1040
1043
  key: m.groupName,
1041
1044
  label: m.groupName,
1042
1045
  name: m.groupName,
@@ -1044,19 +1047,19 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1044
1047
  ref_for: !0
1045
1048
  }, m.tabPane), {
1046
1049
  default: g(() => [
1047
- (s(!0), B(W, null, U(m.items, (i, _) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
1050
+ (s(!0), B(Y, null, U(m.items, (i, _) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
1048
1051
  key: i.key,
1049
1052
  style: { width: "100%" }
1050
1053
  }), {
1051
1054
  default: g(() => {
1052
- var T, N;
1055
+ var T, L;
1053
1056
  return [
1054
1057
  G(I, x({
1055
1058
  label: i == null ? void 0 : i.item.label,
1056
1059
  prop: `${i.key}.value`,
1057
1060
  rules: E(i == null ? void 0 : i.item),
1058
1061
  ref_for: !0
1059
- }, { ...(T = t.value) == null ? void 0 : T.formItems, ...(N = i == null ? void 0 : i.item) == null ? void 0 : N.formItem }, { style: { width: "100%" } }), {
1062
+ }, { ...(T = t.value) == null ? void 0 : T.formItems, ...(L = i == null ? void 0 : i.item) == null ? void 0 : L.formItem }, { style: { width: "100%" } }), {
1060
1063
  default: g(() => [
1061
1064
  p(d.$slots, "f-" + i.key, {
1062
1065
  item: i == null ? void 0 : i.item,
@@ -1103,7 +1106,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1103
1106
  style: Te(t.value.form.footer.style)
1104
1107
  }, [
1105
1108
  p(d.$slots, "f-footer-left"),
1106
- (s(!0), B(W, null, U(le.value, (m) => (s(), B(W, null, [
1109
+ (s(!0), B(Y, null, U(le.value, (m) => (s(), B(Y, null, [
1107
1110
  p(d.$slots, m.name + "-left"),
1108
1111
  p(d.$slots, m.name, {}, () => [
1109
1112
  G(J, x({ ref_for: !0 }, m.info, {
@@ -1124,7 +1127,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1124
1127
  }) : p(d.$slots, "default", { key: 1 }, () => {
1125
1128
  var M, h, $;
1126
1129
  return [
1127
- (s(!0), B(W, null, U(D.value, (m, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...m.col }, {
1130
+ (s(!0), B(Y, null, U(D.value, (m, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...m.col }, {
1128
1131
  key: i,
1129
1132
  style: { width: "100%" }
1130
1133
  }), {
@@ -1162,10 +1165,10 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1162
1165
  t: "f",
1163
1166
  formInfo: u.value
1164
1167
  }, fe({ _: 2 }, [
1165
- U(d.$slots, (T, N) => ({
1166
- name: N,
1168
+ U(d.$slots, (T, L) => ({
1169
+ name: L,
1167
1170
  fn: g((X) => [
1168
- p(d.$slots, N, {
1171
+ p(d.$slots, L, {
1169
1172
  data: X,
1170
1173
  item: m,
1171
1174
  model: t.value
@@ -1186,7 +1189,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1186
1189
  style: Te(t.value.form.footer.style)
1187
1190
  }, [
1188
1191
  p(d.$slots, "f-footer-left"),
1189
- (s(!0), B(W, null, U(le.value, (m) => (s(), B(W, null, [
1192
+ (s(!0), B(Y, null, U(le.value, (m) => (s(), B(Y, null, [
1190
1193
  p(d.$slots, m.name + "-left"),
1191
1194
  p(d.$slots, m.name, {}, () => [
1192
1195
  G(J, x({ ref_for: !0 }, m.info, {
@@ -1226,7 +1229,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1226
1229
  };
1227
1230
  return (F, q) => {
1228
1231
  const E = R("el-form-item");
1229
- return s(!0), B(W, null, U(a(t.more), (w, P) => p(F.$slots, `q-${P}`, {
1232
+ return s(!0), B(Y, null, U(a(t.more), (w, P) => p(F.$slots, `q-${P}`, {
1230
1233
  key: P,
1231
1234
  item: w,
1232
1235
  model: f.value
@@ -1244,7 +1247,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1244
1247
  default: g(() => [
1245
1248
  G(Ge, {
1246
1249
  modelValue: e.value[P],
1247
- "onUpdate:modelValue": (se) => e.value[P] = se,
1250
+ "onUpdate:modelValue": (ne) => e.value[P] = ne,
1248
1251
  item: { ...w == null ? void 0 : w.editor, ...v(w) },
1249
1252
  ctrlKey: P,
1250
1253
  ctrlType: V(w),
@@ -1252,10 +1255,10 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1252
1255
  t: "q",
1253
1256
  formInfo: e.value
1254
1257
  }, fe({ _: 2 }, [
1255
- U(Object.keys(F.$slots), (se) => ({
1256
- name: se,
1258
+ U(Object.keys(F.$slots), (ne) => ({
1259
+ name: ne,
1257
1260
  fn: g((D) => [
1258
- p(F.$slots, se, {
1261
+ p(F.$slots, ne, {
1259
1262
  data: D,
1260
1263
  item: w,
1261
1264
  model: f.value
@@ -1274,10 +1277,10 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1274
1277
  for (const [e, a] of f)
1275
1278
  t[e] = a;
1276
1279
  return t;
1277
- }, Lt = {
1280
+ }, Nt = {
1278
1281
  key: 0,
1279
1282
  class: "outer"
1280
- }, Nt = { class: "inner" }, Pt = {
1283
+ }, Lt = { class: "inner" }, Pt = {
1281
1284
  __name: "g-query",
1282
1285
  props: {
1283
1286
  modelValue: { required: !0 },
@@ -1375,8 +1378,8 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1375
1378
  "onUpdate:info": (le) => F.value = le,
1376
1379
  more: A
1377
1380
  }, ee);
1378
- }, se = mt(), D = () => {
1379
- var ee, le, ae, ce, ie, ne, d, k, I;
1381
+ }, ne = pt(), D = () => {
1382
+ var ee, le, ae, ce, ie, se, d, k, I;
1380
1383
  const u = [
1381
1384
  {
1382
1385
  key: "query",
@@ -1391,7 +1394,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1391
1394
  },
1392
1395
  {
1393
1396
  key: "reset",
1394
- hidden: (ne = (ie = (ce = t.value) == null ? void 0 : ce.query) == null ? void 0 : ie.reset) == null ? void 0 : ne.hidden,
1397
+ hidden: (se = (ie = (ce = t.value) == null ? void 0 : ce.query) == null ? void 0 : ie.reset) == null ? void 0 : se.hidden,
1395
1398
  component: ge,
1396
1399
  props: {
1397
1400
  ...t.value.query.reset,
@@ -1410,53 +1413,53 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1410
1413
  },
1411
1414
  label: t.value.query.more.label,
1412
1415
  sort: t.value.query.more.sort || 0,
1413
- content: t.value.query.more.mode === 3 ? () => Ve(He, {
1416
+ content: t.value.query.more.mode === 3 ? () => Ve(We, {
1414
1417
  class: "query-form",
1415
1418
  ...ke(t.value.query, (y) => !["query", "more", "reset"].includes(y))
1416
- }, () => P({ slots: se }, !0)) : null
1419
+ }, () => P({ slots: ne }, !0)) : null
1417
1420
  }
1418
1421
  ];
1419
- return u.sort((y, L) => y.sort - L.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Je ? Ve(Je, y.props, {
1422
+ return u.sort((y, N) => y.sort - N.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Je ? Ve(Je, y.props, {
1420
1423
  reference: () => Ve(ge, t.value.query.more, () => y.label),
1421
1424
  default: y.content
1422
1425
  }) : (y.props.slot = "query-" + y.key, y.label ? Ve(y.component, y.props, () => y.label) : Ve(y.component, y.props)));
1423
1426
  };
1424
1427
  return (u, A) => {
1425
- var ae, ce, ie, ne, d, k, I, y, L, O, J, $e, M, h, $, m, i;
1428
+ var ae, ce, ie, se, d, k, I, y, N, O, J, $e, M, h, $, m, i;
1426
1429
  const ee = R("el-form-item"), le = R("el-drawer");
1427
1430
  return s(), B("div", {
1428
1431
  class: "g-query-container",
1429
1432
  style: Te((ce = (ae = t.value.query) == null ? void 0 : ae.container) == null ? void 0 : ce.style)
1430
1433
  }, [
1431
- G(o(He), Le(Ke(o(ke)(t.value.query, (_) => !["query", "more", "reset", "btns"].includes(_)))), {
1434
+ G(o(We), Ne(Ke(o(ke)(t.value.query, (_) => !["query", "more", "reset", "btns"].includes(_)))), {
1432
1435
  default: g(() => {
1433
1436
  var _, T;
1434
1437
  return [
1435
1438
  (s(), S(Se(P({ slots: u.$slots }, void 0)))),
1436
1439
  ((T = (_ = t.value.query) == null ? void 0 : _.container) == null ? void 0 : T.inline) === !0 ? (s(), S(ee, { key: 0 }, {
1437
1440
  default: g(() => {
1438
- var N, X, oe, n, z;
1441
+ var L, X, oe, n, z;
1439
1442
  return [
1440
1443
  Q("div", {
1441
- style: Te((X = (N = t.value.query) == null ? void 0 : N.btns) == null ? void 0 : X.style)
1444
+ style: Te((X = (L = t.value.query) == null ? void 0 : L.btns) == null ? void 0 : X.style)
1442
1445
  }, [
1443
- t.value.query.group ? (s(), S(o(Ye), { key: 0 }, {
1446
+ t.value.query.group ? (s(), S(o(He), { key: 0 }, {
1444
1447
  default: g(() => [
1445
- (s(!0), B(W, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1448
+ (s(!0), B(Y, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1446
1449
  (s(), S(Se(re)))
1447
1450
  ], !0)), 256)),
1448
1451
  p(u.$slots, "q-btns", {}, void 0, !0)
1449
1452
  ]),
1450
1453
  _: 3
1451
- })) : (s(), B(W, { key: 1 }, [
1452
- (z = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && z.group ? (s(), S(o(Ye), { key: 0 }, {
1454
+ })) : (s(), B(Y, { key: 1 }, [
1455
+ (z = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && z.group ? (s(), S(o(He), { key: 0 }, {
1453
1456
  default: g(() => [
1454
- (s(!0), B(W, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1457
+ (s(!0), B(Y, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1455
1458
  (s(), S(Se(re)))
1456
1459
  ], !0)), 256))
1457
1460
  ]),
1458
1461
  _: 3
1459
- })) : (s(!0), B(W, { key: 1 }, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1462
+ })) : (s(!0), B(Y, { key: 1 }, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1460
1463
  (s(), S(Se(re)))
1461
1464
  ], !0)), 256)),
1462
1465
  p(u.$slots, "q-btns", {}, void 0, !0)
@@ -1470,48 +1473,48 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1470
1473
  }),
1471
1474
  _: 3
1472
1475
  }, 16),
1473
- ((d = (ne = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : ne.container) == null ? void 0 : d.inline) === !1 ? (s(), B("div", {
1476
+ ((d = (se = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : se.container) == null ? void 0 : d.inline) === !1 ? (s(), B("div", {
1474
1477
  key: 0,
1475
1478
  style: Te((I = (k = t.value.query) == null ? void 0 : k.btns) == null ? void 0 : I.style)
1476
1479
  }, [
1477
- t.value.query.group ? (s(), S(o(Ye), { key: 0 }, {
1480
+ t.value.query.group ? (s(), S(o(He), { key: 0 }, {
1478
1481
  default: g(() => [
1479
- (s(!0), B(W, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1482
+ (s(!0), B(Y, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1480
1483
  (s(), S(Se(_)))
1481
1484
  ], !0)), 256)),
1482
1485
  p(u.$slots, "q-btns", {}, void 0, !0)
1483
1486
  ]),
1484
1487
  _: 3
1485
- })) : (s(), B(W, { key: 1 }, [
1486
- (L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (s(), S(o(Ye), { key: 0 }, {
1488
+ })) : (s(), B(Y, { key: 1 }, [
1489
+ (N = (y = t.value.query) == null ? void 0 : y.btns) != null && N.group ? (s(), S(o(He), { key: 0 }, {
1487
1490
  default: g(() => [
1488
- (s(!0), B(W, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1491
+ (s(!0), B(Y, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1489
1492
  (s(), S(Se(_)))
1490
1493
  ], !0)), 256))
1491
1494
  ]),
1492
1495
  _: 3
1493
- })) : (s(!0), B(W, { key: 1 }, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1496
+ })) : (s(!0), B(Y, { key: 1 }, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1494
1497
  (s(), S(Se(_)))
1495
1498
  ], !0)), 256)),
1496
1499
  p(u.$slots, "q-btns", {}, void 0, !0)
1497
1500
  ], 64))
1498
1501
  ], 4)) : ve("", !0),
1499
- G(Dt, {
1502
+ G(Vt, {
1500
1503
  duration: 300,
1501
1504
  name: "nested"
1502
1505
  }, {
1503
1506
  default: g(() => {
1504
- var _, T, N;
1507
+ var _, T, L;
1505
1508
  return [
1506
- v.value && !((N = (T = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : T.more) != null && N.hidden) && t.value.query.more.mode == 1 ? (s(), B("div", Lt, [
1507
- Q("div", Nt, [
1508
- t.value.query.more.mode == 1 ? pt((s(), S(o(He), Le(x({ key: 0 }, o(ke)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
1509
+ v.value && !((L = (T = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : T.more) != null && L.hidden) && t.value.query.more.mode == 1 ? (s(), B("div", Nt, [
1510
+ Q("div", Lt, [
1511
+ t.value.query.more.mode == 1 ? vt((s(), S(o(We), Ne(x({ key: 0 }, o(ke)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
1509
1512
  default: g(() => [
1510
1513
  (s(), S(Se(P({ slots: u.$slots }, !0))))
1511
1514
  ]),
1512
1515
  _: 1
1513
1516
  }, 16)), [
1514
- [vt, v.value]
1517
+ [yt, v.value]
1515
1518
  ]) : ve("", !0)
1516
1519
  ])
1517
1520
  ])) : ve("", !0)
@@ -1527,7 +1530,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1527
1530
  "show-close": !1
1528
1531
  }, t.value.query.more.dialog), fe({
1529
1532
  default: g(() => [
1530
- G(o(He), x(o(ke)(t.value.query, (_) => !["query", "more", "reset"].includes(_)), { style: { width: "98%" } }), {
1533
+ G(o(We), x(o(ke)(t.value.query, (_) => !["query", "more", "reset"].includes(_)), { style: { width: "98%" } }), {
1531
1534
  default: g(() => [
1532
1535
  G(dt, {
1533
1536
  modelValue: t.value,
@@ -1536,7 +1539,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1536
1539
  "onUpdate:info": A[1] || (A[1] = (_) => F.value = _),
1537
1540
  more: !0
1538
1541
  }, fe({ _: 2 }, [
1539
- U(u.$slots, (_, T, N) => ({
1542
+ U(u.$slots, (_, T, L) => ({
1540
1543
  name: T,
1541
1544
  fn: g((X) => [
1542
1545
  p(u.$slots, T, { model: t.value }, void 0, !0)
@@ -1552,7 +1555,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1552
1555
  (i = (m = ($ = (h = (M = t.value) == null ? void 0 : M.query) == null ? void 0 : h.more) == null ? void 0 : $.dialog) == null ? void 0 : m.footer) != null && i.hidden ? void 0 : {
1553
1556
  name: "footer",
1554
1557
  fn: g(() => [
1555
- Q("div", Le(Ke(t.value.query.more.dialog.footer)), [
1558
+ Q("div", Ne(Ke(t.value.query.more.dialog.footer)), [
1556
1559
  G(o(ge), x(t.value.query.query, {
1557
1560
  onClick: A[2] || (A[2] = (_) => t.value.query.query.click())
1558
1561
  }), {
@@ -1577,7 +1580,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1577
1580
  ], 4);
1578
1581
  };
1579
1582
  }
1580
- }, zt = /* @__PURE__ */ Be(Pt, [["__scopeId", "data-v-561bb961"]]), Ht = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Yt = { style: { padding: "10px", "box-sizing": "border-box" } }, Wt = { style: { margin: "10px" } }, Gt = {
1583
+ }, zt = /* @__PURE__ */ Be(Pt, [["__scopeId", "data-v-561bb961"]]), Wt = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Ht = { style: { padding: "10px", "box-sizing": "border-box" } }, Yt = { style: { margin: "10px" } }, Gt = {
1581
1584
  style: { display: "flex", "flex-wrap": "wrap" },
1582
1585
  id: "excelSortEl"
1583
1586
  }, Qt = ["textContent"], Xt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Jt = {
@@ -1611,21 +1614,21 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1611
1614
  });
1612
1615
  };
1613
1616
  return Pe(() => {
1614
- const q = new ht(document.getElementById("excelSortEl"), {
1617
+ const q = new gt(document.getElementById("excelSortEl"), {
1615
1618
  animation: 150,
1616
1619
  onEnd: () => {
1617
1620
  let w = q.toArray();
1618
1621
  console.log(w);
1619
1622
  }
1620
1623
  }), E = q;
1621
- Vt(() => {
1624
+ Ft(() => {
1622
1625
  E && E.destroy();
1623
1626
  });
1624
1627
  }), (q, E) => {
1625
- const w = R("el-divider"), P = R("el-alert"), se = R("el-checkbox"), D = R("el-button");
1626
- return s(), B("div", Ht, [
1627
- Q("div", Yt, [
1628
- Q("div", Wt, [
1628
+ const w = R("el-divider"), P = R("el-alert"), ne = R("el-checkbox"), D = R("el-button");
1629
+ return s(), B("div", Wt, [
1630
+ Q("div", Ht, [
1631
+ Q("div", Yt, [
1629
1632
  Q("a", {
1630
1633
  onClick: v,
1631
1634
  style: { cursor: "pointer" }
@@ -1645,7 +1648,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1645
1648
  }),
1646
1649
  E[0] || (E[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
1647
1650
  Q("div", Gt, [
1648
- (s(!0), B(W, null, U(a.value, (u) => (s(), S(se, {
1651
+ (s(!0), B(Y, null, U(a.value, (u) => (s(), S(ne, {
1649
1652
  class: "check-box-hover",
1650
1653
  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" },
1651
1654
  "data-id": u.key,
@@ -1743,17 +1746,17 @@ const ol = {
1743
1746
  }, v = () => {
1744
1747
  const E = document.getElementById("cols");
1745
1748
  if (E) {
1746
- let w = ht.create(E, {
1749
+ let w = gt.create(E, {
1747
1750
  animation: 150,
1748
1751
  filter: ".filtered",
1749
1752
  //
1750
1753
  sort: !0,
1751
1754
  onEnd: () => {
1752
- w.toArray().forEach(async (se, D) => {
1753
- e.value[se].sort = D;
1754
- let u = e.value[se].width || "auto";
1755
+ w.toArray().forEach(async (ne, D) => {
1756
+ e.value[ne].sort = D;
1757
+ let u = e.value[ne].width || "auto";
1755
1758
  try {
1756
- const A = await je(e.value.table.user, f.name, se, { sort: D, width: u });
1759
+ const A = await je(e.value.table.user, f.name, ne, { sort: D, width: u });
1757
1760
  console.log(A);
1758
1761
  } catch (A) {
1759
1762
  console.error("列排序和宽度保存信息时出错:", A), _e({
@@ -1826,7 +1829,7 @@ const ol = {
1826
1829
  width: w.width || "auto"
1827
1830
  })).sort((E, w) => E.sort - w.sort), v();
1828
1831
  }), (E, w) => {
1829
- const P = R("el-divider"), se = R("el-alert"), D = R("el-checkbox");
1832
+ const P = R("el-divider"), ne = R("el-alert"), D = R("el-checkbox");
1830
1833
  return s(), B("div", null, [
1831
1834
  Q("div", ol, [
1832
1835
  Q("a", { onClick: V }, "全选"),
@@ -1835,7 +1838,7 @@ const ol = {
1835
1838
  G(P, { direction: "vertical" }),
1836
1839
  Q("a", { onClick: q }, "复位")
1837
1840
  ]),
1838
- G(se, {
1841
+ G(ne, {
1839
1842
  title: "拖动表格列标题可以改变表格列显示顺序 !",
1840
1843
  type: "warning",
1841
1844
  "show-icon": "",
@@ -1844,11 +1847,11 @@ const ol = {
1844
1847
  }),
1845
1848
  Q("div", null, [
1846
1849
  Q("div", rl, [
1847
- (s(!0), B(W, null, U(t.value, (u) => (s(), S(D, {
1850
+ (s(!0), B(Y, null, U(t.value, (u) => (s(), S(D, {
1848
1851
  modelValue: u.showCol,
1849
1852
  "onUpdate:modelValue": (A) => u.showCol = A,
1850
1853
  "data-id": u.value,
1851
- class: yt(["check-box-hover", u.value == "control" ? "filtered" : ""]),
1854
+ class: ht(["check-box-hover", u.value == "control" ? "filtered" : ""]),
1852
1855
  onChange: (A) => a(A, u.value),
1853
1856
  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" },
1854
1857
  value: u.value,
@@ -1890,7 +1893,8 @@ const ol = {
1890
1893
  emits: /* @__PURE__ */ Oe(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
1891
1894
  setup(c, { emit: f }) {
1892
1895
  var n, z, re, Ce, Me, De, he;
1893
- const t = f, e = xe(c, "modelValue"), a = ot("options"), v = ye({}), V = ye(!1), F = ye(!1), q = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], E = ye([]), w = c, P = Ne(), se = {
1896
+ const t = f, e = xe(c, "modelValue"), a = ot("options"), v = ye({}), V = ye(!1), F = ye(!1), q = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], E = ye([]), w = c, P = Le(), ne = {
1897
+ autoWatch: !0,
1894
1898
  data: [],
1895
1899
  border: !0,
1896
1900
  stripe: !0,
@@ -1900,24 +1904,25 @@ const ol = {
1900
1904
  load: () => {
1901
1905
  let { currentPage: l, pageSize: r } = e.value.table.page;
1902
1906
  try {
1903
- t("load", { currentPage: l, pageSize: r, ...v.value }, (b, H) => {
1907
+ t("load", { currentPage: l, pageSize: r, ...v.value }, (b, W) => {
1904
1908
  if (!Array.isArray(b)) {
1905
1909
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), _e.error("数据加载失败,请检查数据格式。");
1906
1910
  return;
1907
1911
  }
1908
- if (typeof H != "number") {
1912
+ if (typeof W != "number") {
1909
1913
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), _e.error("数据加载失败,请检查数据格式。");
1910
1914
  return;
1911
1915
  }
1912
- e.value.table.data = b, e.value.table.page.total = H, X();
1916
+ e.value.table.data = b, e.value.table.page.total = W, X();
1913
1917
  });
1914
1918
  } catch (b) {
1915
1919
  console.error("触发 load 事件时出现错误:", b), _e.error("数据加载时出现错误,请稍后重试。");
1916
1920
  }
1921
+ console.log("---");
1917
1922
  },
1918
1923
  onHeaderDragend: (l, r, b) => {
1919
- var H;
1920
- je((H = e.value.table) == null ? void 0 : H.user, w.name, b.property, { width: l });
1924
+ var W;
1925
+ je((W = e.value.table) == null ? void 0 : W.user, w.name, b.property, { width: l });
1921
1926
  },
1922
1927
  onRowDblclick: (l, r, b) => {
1923
1928
  e.value.table.dblclickType == "edit" ? k(l, r, b, e) : e.value.table.dblclickType == "view" && y(l, r, b, e);
@@ -1940,7 +1945,7 @@ const ol = {
1940
1945
  dblclickType: "edit"
1941
1946
  };
1942
1947
  e.value.table = Ee(
1943
- se,
1948
+ ne,
1944
1949
  a == null ? void 0 : a.table,
1945
1950
  e.value.table,
1946
1951
  P
@@ -2017,7 +2022,7 @@ const ol = {
2017
2022
  type: "hidden",
2018
2023
  minWidth: 120,
2019
2024
  align: "center",
2020
- formatter: (l, r, b, H) => b
2025
+ formatter: (l, r, b, W) => b
2021
2026
  };
2022
2027
  e.value.tableColumns = Ee(
2023
2028
  u,
@@ -2073,22 +2078,22 @@ const ol = {
2073
2078
  return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, b = `<span title="${lt(parseFloat(b))}">${xl(parseFloat(b))}</span>`), l.prefix && b && (b = `<span>${l.prefix}${b}</span>`), l.suffix && b && (b = `${b}<span>${l.suffix}</span>`), b;
2074
2079
  }, ie = (l) => {
2075
2080
  v.value = l.value;
2076
- }, ne = (l) => {
2081
+ }, se = (l) => {
2077
2082
  console.log(l), v.value = l, e.value.table.load();
2078
2083
  }, d = (l) => {
2079
2084
  var r;
2080
2085
  e.value.form.modalState = "add", (r = e.value.control.add) != null && r.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ae), F.value = !0, t("open", ae, F.value, "row-add")) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(ae).forEach((b) => {
2081
2086
  e.value[b] && (e.value[b].value = ae[b]);
2082
2087
  }), V.value = !0, t("open", l, "add"));
2083
- }, k = (l, r, b, H) => {
2088
+ }, k = (l, r, b, W) => {
2084
2089
  var Z;
2085
- e.value.form.modalState = "edit", (Z = e.value.control.edit) != null && Z.click ? e.value.control.edit.click(l, r, b, H) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((K) => {
2090
+ e.value.form.modalState = "edit", (Z = e.value.control.edit) != null && Z.click ? e.value.control.edit.click(l, r, b, W) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((K) => {
2086
2091
  e.value[K] && (e.value[K].value = l[K]);
2087
- }), V.value = !0, t("open", H, "edit", l, r, b));
2088
- }, I = (l, r, b, H) => {
2092
+ }), V.value = !0, t("open", W, "edit", l, r, b));
2093
+ }, I = (l, r, b, W) => {
2089
2094
  var Z;
2090
2095
  if ((Z = e.value.control.delete) != null && Z.click)
2091
- e.value.control.delete.click(l, r, b, H);
2096
+ e.value.control.delete.click(l, r, b, W);
2092
2097
  else {
2093
2098
  let { message: K, title: we, options: qe } = e.value.control.delete.dialog;
2094
2099
  ct.confirm(K, we, qe).then(() => {
@@ -2098,14 +2103,14 @@ const ol = {
2098
2103
  }).catch(() => {
2099
2104
  });
2100
2105
  }
2101
- }, y = (l, r, b, H) => {
2106
+ }, y = (l, r, b, W) => {
2102
2107
  var Z;
2103
- e.value.form.modalState = void 0, (Z = e.value.control.view) != null && Z.click ? e.value.control.view.click(l, r, b, H) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((K) => {
2108
+ e.value.form.modalState = void 0, (Z = e.value.control.view) != null && Z.click ? e.value.control.view.click(l, r, b, W) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((K) => {
2104
2109
  e.value[K] && (e.value[K].value = l[K]);
2105
- }), V.value = !0, t("open", H, "view", l, r, b));
2106
- }, L = (l, r, b, H) => {
2110
+ }), V.value = !0, t("open", W, "view", l, r, b));
2111
+ }, N = (l, r, b, W) => {
2107
2112
  var Z;
2108
- (Z = e.value.control.save) != null && Z.click ? e.value.control.save.click(l, r, b, H) : t("row-save", { row: l, column: r, $index: b, data: e.value.table.data }, (K) => {
2113
+ (Z = e.value.control.save) != null && Z.click ? e.value.control.save.click(l, r, b, W) : t("row-save", { row: l, column: r, $index: b, data: e.value.table.data }, (K) => {
2109
2114
  K && (e.value.table.load(), F.value = !1);
2110
2115
  });
2111
2116
  }, O = (l, r) => {
@@ -2119,7 +2124,7 @@ const ol = {
2119
2124
  if ((b = l.control.download) != null && b.click)
2120
2125
  l.control.download.click(l, r);
2121
2126
  else {
2122
- let H = tt({
2127
+ let W = tt({
2123
2128
  title: l.control.download.label,
2124
2129
  size: 480,
2125
2130
  width: 600,
@@ -2128,7 +2133,7 @@ const ol = {
2128
2133
  items: r,
2129
2134
  commitText: l.control.download.excelLabel,
2130
2135
  onExcel: (Z, K) => {
2131
- t("download", Z, K), H();
2136
+ t("download", Z, K), W();
2132
2137
  }
2133
2138
  })
2134
2139
  }
@@ -2154,25 +2159,25 @@ const ol = {
2154
2159
  { type: "view", func: y },
2155
2160
  { type: "edit", func: k },
2156
2161
  { type: "delete", func: I },
2157
- { type: "save", func: L }
2162
+ { type: "save", func: N }
2158
2163
  ], m = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func: b }) => {
2159
- var H, Z, K;
2164
+ var W, Z, K;
2160
2165
  return {
2161
2166
  name: `control-${r}`,
2162
2167
  attr: h == null ? void 0 : h[r],
2163
2168
  func: b,
2164
- label: (H = h == null ? void 0 : h[r]) == null ? void 0 : H.label,
2169
+ label: (W = h == null ? void 0 : h[r]) == null ? void 0 : W.label,
2165
2170
  sort: ((Z = h == null ? void 0 : h[r]) == null ? void 0 : Z.sort) || 0,
2166
2171
  groupName: ((K = h == null ? void 0 : h[r]) == null ? void 0 : K.groupName) || "default"
2167
2172
  };
2168
2173
  }).sort((r, b) => r.sort - b.sort), i = (l) => m(l).reduce((r, b) => {
2169
- const H = b.groupName || "default";
2170
- return r[H] || (r[H] = []), r[H].push(b), r;
2174
+ const W = b.groupName || "default";
2175
+ return r[W] || (r[W] = []), r[W].push(b), r;
2171
2176
  }, {}), _ = Ae(() => Object.fromEntries(
2172
2177
  Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
2173
- )), T = ye({}), N = (l, r) => {
2174
- const b = (H, Z) => {
2175
- for (const K of H) {
2178
+ )), T = ye({}), L = (l, r) => {
2179
+ const b = (W, Z) => {
2180
+ for (const K of W) {
2176
2181
  if (K.value == Z) return K.label;
2177
2182
  if (K.children) {
2178
2183
  const we = b(K.children, Z);
@@ -2182,9 +2187,9 @@ const ol = {
2182
2187
  return null;
2183
2188
  };
2184
2189
  if (l.getDicts) {
2185
- const H = r.toString();
2186
- return T.value[H] ? (l.options = T.value[H], l.formatter || (l.formatter = (Z, K, we, qe) => l.options && b(l.options, we) || we), Promise.resolve()) : l.getDicts(e.value.table.data).then((Z) => {
2187
- T.value[H] = Z, l.options = Z, l.formatter || (l.formatter = (K, we, qe, ze) => l.options && b(l.options, qe) || qe);
2190
+ const W = r.toString();
2191
+ return T.value[W] ? (l.options = T.value[W], l.formatter || (l.formatter = (Z, K, we, qe) => l.options && b(l.options, we) || we), Promise.resolve()) : l.getDicts(e.value.table.data).then((Z) => {
2192
+ T.value[W] = Z, l.options = Z, l.formatter || (l.formatter = (K, we, qe, ze) => l.options && b(l.options, qe) || qe);
2188
2193
  });
2189
2194
  }
2190
2195
  return Promise.resolve();
@@ -2192,28 +2197,28 @@ const ol = {
2192
2197
  const l = [];
2193
2198
  Object.keys(e.value).forEach((r) => {
2194
2199
  if (e.value[r].getDicts) {
2195
- const b = N(e.value[r], r).then(() => {
2196
- e.value.table.data.forEach((H) => {
2200
+ const b = L(e.value[r], r).then(() => {
2201
+ e.value.table.data.forEach((W) => {
2197
2202
  var Z;
2198
2203
  if (e.value[r].getDicts && ((Z = e.value[r]) == null ? void 0 : Z.forceString) !== !1) {
2199
- const K = H[r];
2200
- H[r] = K != null ? K.toString() : K;
2204
+ const K = W[r];
2205
+ W[r] = K != null ? K.toString() : K;
2201
2206
  }
2202
2207
  });
2203
- }).catch((H) => {
2204
- console.error(`加载字典${r}出错:`, H);
2208
+ }).catch((W) => {
2209
+ console.error(`加载字典${r}出错:`, W);
2205
2210
  });
2206
2211
  l.push(b);
2207
2212
  }
2208
2213
  }), Promise.all(l).catch((r) => {
2209
2214
  console.error("字典加载过程中发生错误:", r);
2210
2215
  });
2211
- }, oe = (l, r, b, H) => {
2216
+ }, oe = (l, r, b, W) => {
2212
2217
  var Z, K;
2213
- return l.table ? (Z = l.table(r, b, H)) != null && Z.auth ? (K = l.table(r, b, H)) == null ? void 0 : K.auth(r, b, H) : !0 : !1;
2218
+ return l.table ? (Z = l.table(r, b, W)) != null && Z.auth ? (K = l.table(r, b, W)) == null ? void 0 : K.auth(r, b, W) : !0 : !1;
2214
2219
  };
2215
- return Ft(() => {
2216
- e.value.table.load();
2220
+ return Tt(() => {
2221
+ e.value.table.autoWatch && e.value.table.load();
2217
2222
  }), Pe(async () => {
2218
2223
  var l;
2219
2224
  if (E.value = Object.values(e.value).filter((r) => r.type !== "hidden").filter((r) => r.type !== "control").filter((r) => r.visible !== !1).map((r) => ({ key: r.key || "", label: r.label, value: !0 })), !((l = e.value.table) != null && l.user)) {
@@ -2244,30 +2249,31 @@ const ol = {
2244
2249
  } catch (r) {
2245
2250
  console.error("Error fetching table column settings:", r);
2246
2251
  }
2252
+ e.value.table.autoWatch || e.value.table.load();
2247
2253
  }), (l, r) => {
2248
2254
  var rt, at, ut, nt, st;
2249
- const b = R("el-button-group"), H = R("el-table-column"), Z = R("el-table"), K = R("el-pagination"), we = R("el-icon"), qe = R("el-dialog"), ze = R("el-drawer");
2250
- return s(), B(W, null, [
2255
+ const b = R("el-button-group"), W = R("el-table-column"), Z = R("el-table"), K = R("el-pagination"), we = R("el-icon"), qe = R("el-dialog"), ze = R("el-drawer");
2256
+ return s(), B(Y, null, [
2251
2257
  Q("div", sl, [
2252
2258
  ((at = (rt = e.value) == null ? void 0 : rt.query) == null ? void 0 : at.hidden) != !0 ? (s(), B("div", il, [
2253
2259
  p(l.$slots, "query", {}, () => [
2254
2260
  G(zt, {
2255
2261
  modelValue: e.value,
2256
2262
  "onUpdate:modelValue": r[0] || (r[0] = (j) => e.value = j),
2257
- onQuery: ne,
2263
+ onQuery: se,
2258
2264
  onReset: ie
2259
2265
  }, fe({
2260
2266
  "q-btns": g(() => [
2261
2267
  p(l.$slots, "q-btns", {}, () => [
2262
- (s(!0), B(W, null, U(i(["add", "download", "setting"]), (j, ue) => (s(), B(W, null, [
2263
- ue == "default" ? (s(!0), B(W, { key: 0 }, U(j, (C) => (s(), B(W, null, [
2268
+ (s(!0), B(Y, null, U(i(["add", "download", "setting"]), (j, ue) => (s(), B(Y, null, [
2269
+ ue == "default" ? (s(!0), B(Y, { key: 0 }, U(j, (C) => (s(), B(Y, null, [
2264
2270
  p(l.$slots, C.name + "-left", {}, void 0, !0),
2265
2271
  (C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
2266
2272
  C.label ? (s(), S(o(ge), x({
2267
2273
  key: 0,
2268
2274
  ref_for: !0
2269
2275
  }, C.attr, {
2270
- onClick: (Y) => C.func(e.value, E.value)
2276
+ onClick: (H) => C.func(e.value, E.value)
2271
2277
  }), {
2272
2278
  default: g(() => [
2273
2279
  be(pe(C.label), 1)
@@ -2277,20 +2283,20 @@ const ol = {
2277
2283
  key: 1,
2278
2284
  ref_for: !0
2279
2285
  }, C.attr, {
2280
- onClick: (Y) => C.func(e.value, E.value)
2286
+ onClick: (H) => C.func(e.value, E.value)
2281
2287
  }), null, 16, ["onClick"]))
2282
2288
  ], !0) : ve("", !0),
2283
2289
  p(l.$slots, C.name + "-right", {}, void 0, !0)
2284
2290
  ], 64))), 256)) : (s(), S(b, { key: 1 }, {
2285
2291
  default: g(() => [
2286
- (s(!0), B(W, null, U(j, (C) => (s(), B(W, null, [
2292
+ (s(!0), B(Y, null, U(j, (C) => (s(), B(Y, null, [
2287
2293
  p(l.$slots, C.name + "-left", {}, void 0, !0),
2288
2294
  (C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
2289
2295
  C.label ? (s(), S(o(ge), x({
2290
2296
  key: 0,
2291
2297
  ref_for: !0
2292
2298
  }, C.attr, {
2293
- onClick: (Y) => C.func(e.value, E.value)
2299
+ onClick: (H) => C.func(e.value, E.value)
2294
2300
  }), {
2295
2301
  default: g(() => [
2296
2302
  be(pe(C.label), 1)
@@ -2300,7 +2306,7 @@ const ol = {
2300
2306
  key: 1,
2301
2307
  ref_for: !0
2302
2308
  }, C.attr, {
2303
- onClick: (Y) => C.func(e.value, E.value)
2309
+ onClick: (H) => C.func(e.value, E.value)
2304
2310
  }), null, 16, ["onClick"]))
2305
2311
  ], !0) : ve("", !0),
2306
2312
  p(l.$slots, C.name + "-right", {}, void 0, !0)
@@ -2315,7 +2321,7 @@ const ol = {
2315
2321
  }, [
2316
2322
  U(l.$slots, (j, ue, C) => ({
2317
2323
  name: ue,
2318
- fn: g((Y) => [
2324
+ fn: g((H) => [
2319
2325
  p(l.$slots, ue, { model: e.value }, void 0, !0)
2320
2326
  ])
2321
2327
  }))
@@ -2323,7 +2329,7 @@ const ol = {
2323
2329
  ], !0)
2324
2330
  ])) : ve("", !0),
2325
2331
  Q("div", dl, [
2326
- G(Z, Le(Ke({ ...l.$attrs, ...o(ke)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) })), {
2332
+ G(Z, Ne(Ke({ ...l.$attrs, ...o(ke)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) })), {
2327
2333
  append: g(() => [
2328
2334
  p(l.$slots, "append", {}, void 0, !0)
2329
2335
  ]),
@@ -2332,19 +2338,19 @@ const ol = {
2332
2338
  ]),
2333
2339
  default: g(() => [
2334
2340
  p(l.$slots, "default", {}, () => [
2335
- (s(!0), B(W, null, U(_.value, (j, ue) => (s(), S(H, x({
2341
+ (s(!0), B(Y, null, U(_.value, (j, ue) => (s(), S(W, x({
2336
2342
  prop: ue,
2337
2343
  key: ue,
2338
2344
  ref_for: !0
2339
2345
  }, { ...e.value.tableColumns, ...o(ke)(j, (C) => q.includes(C)) }, { "header-align": "center" }), fe({
2340
- header: g(({ column: C, $index: Y }) => [
2346
+ header: g(({ column: C, $index: H }) => [
2341
2347
  ue == "control" ? p(l.$slots, `${ue}-header`, {
2342
2348
  key: 0,
2343
2349
  column: C,
2344
- $index: Y
2350
+ $index: H
2345
2351
  }, () => [
2346
2352
  r[12] || (r[12] = Q("span", null, "操作", -1)),
2347
- e.value.control.add.inline === !0 && !F.value ? (s(), B(W, { key: 0 }, [
2353
+ e.value.control.add.inline === !0 && !F.value ? (s(), B(Y, { key: 0 }, [
2348
2354
  e.value.control.add.label ? (s(), S(o(ge), x({
2349
2355
  key: 0,
2350
2356
  title: "新增",
@@ -2369,7 +2375,7 @@ const ol = {
2369
2375
  ], !0) : p(l.$slots, `${ue}-header`, {
2370
2376
  key: 1,
2371
2377
  column: C,
2372
- $index: Y
2378
+ $index: H
2373
2379
  }, void 0, !0)
2374
2380
  ]),
2375
2381
  "filter-icon": g((C) => [
@@ -2379,10 +2385,10 @@ const ol = {
2379
2385
  }, [
2380
2386
  j.type === "image" ? {
2381
2387
  name: "default",
2382
- fn: g(({ row: C, column: Y, $index: te }) => [
2388
+ fn: g(({ row: C, column: H, $index: te }) => [
2383
2389
  p(l.$slots, `${ue}`, {
2384
2390
  row: C,
2385
- column: Y,
2391
+ column: H,
2386
2392
  $index: te
2387
2393
  }, () => [
2388
2394
  Q("img", x({
@@ -2395,47 +2401,47 @@ const ol = {
2395
2401
  key: "0"
2396
2402
  } : j.type === "expand" ? {
2397
2403
  name: "default",
2398
- fn: g(({ row: C, column: Y, $index: te }) => [
2404
+ fn: g(({ row: C, column: H, $index: te }) => [
2399
2405
  p(l.$slots, `${ue}`, {
2400
2406
  row: C,
2401
- column: Y,
2407
+ column: H,
2402
2408
  $index: te
2403
2409
  }, void 0, !0)
2404
2410
  ]),
2405
2411
  key: "1"
2406
2412
  } : j.type == "control" ? {
2407
2413
  name: "default",
2408
- fn: g(({ row: C, column: Y, $index: te }) => {
2414
+ fn: g(({ row: C, column: H, $index: te }) => {
2409
2415
  var Ie, Ue;
2410
2416
  return [
2411
2417
  Q("div", {
2412
- class: yt(["control", (Ie = e.value.control) == null ? void 0 : Ie.class]),
2418
+ class: ht(["control", (Ie = e.value.control) == null ? void 0 : Ie.class]),
2413
2419
  style: Te((Ue = e.value.control) == null ? void 0 : Ue.style)
2414
2420
  }, [
2415
2421
  p(l.$slots, "control", {}, () => [
2416
2422
  p(l.$slots, "control-left", {
2417
2423
  row: C,
2418
- column: Y,
2424
+ column: H,
2419
2425
  $index: te
2420
2426
  }, void 0, !0),
2421
- (s(!0), B(W, null, U(i(["view", "edit", "delete", "save"]), (Re, Qe) => (s(), B(W, null, [
2422
- Qe == "default" ? (s(!0), B(W, { key: 0 }, U(Re, (me) => (s(), B(W, null, [
2427
+ (s(!0), B(Y, null, U(i(["view", "edit", "delete", "save"]), (Re, Qe) => (s(), B(Y, null, [
2428
+ Qe == "default" ? (s(!0), B(Y, { key: 0 }, U(Re, (me) => (s(), B(Y, null, [
2423
2429
  p(l.$slots, me.name + "-left", {
2424
2430
  row: C,
2425
- column: Y,
2431
+ column: H,
2426
2432
  $index: te
2427
2433
  }, void 0, !0),
2428
- me.attr.auth(C, Y, te) ? p(l.$slots, me.name, {
2434
+ me.attr.auth(C, H, te) ? p(l.$slots, me.name, {
2429
2435
  key: 0,
2430
2436
  row: C,
2431
- column: Y,
2437
+ column: H,
2432
2438
  $index: te
2433
2439
  }, () => [
2434
2440
  me.label ? (s(), S(o(ge), x({
2435
2441
  key: 0,
2436
2442
  ref_for: !0
2437
2443
  }, me.attr, {
2438
- onClick: (Xe) => me.func(C, Y, te, e.value)
2444
+ onClick: (Xe) => me.func(C, H, te, e.value)
2439
2445
  }), {
2440
2446
  default: g(() => [
2441
2447
  be(pe(me.label), 1)
@@ -2445,33 +2451,33 @@ const ol = {
2445
2451
  key: 1,
2446
2452
  ref_for: !0
2447
2453
  }, me.attr, {
2448
- onClick: (Xe) => me.func(C, Y, te, e.value)
2454
+ onClick: (Xe) => me.func(C, H, te, e.value)
2449
2455
  }), null, 16, ["onClick"]))
2450
2456
  ], !0) : ve("", !0),
2451
2457
  p(l.$slots, me.name + "-right", {
2452
2458
  row: C,
2453
- column: Y,
2459
+ column: H,
2454
2460
  $index: te
2455
2461
  }, void 0, !0)
2456
2462
  ], 64))), 256)) : (s(), S(b, { key: 1 }, {
2457
2463
  default: g(() => [
2458
- (s(!0), B(W, null, U(Re, (me) => (s(), B(W, null, [
2464
+ (s(!0), B(Y, null, U(Re, (me) => (s(), B(Y, null, [
2459
2465
  p(l.$slots, me.name + "-left", {
2460
2466
  row: C,
2461
- column: Y,
2467
+ column: H,
2462
2468
  $index: te
2463
2469
  }, void 0, !0),
2464
- me.attr.auth(C, Y, te) ? p(l.$slots, me.name, {
2470
+ me.attr.auth(C, H, te) ? p(l.$slots, me.name, {
2465
2471
  key: 0,
2466
2472
  row: C,
2467
- column: Y,
2473
+ column: H,
2468
2474
  $index: te
2469
2475
  }, () => [
2470
2476
  me.label ? (s(), S(o(ge), x({
2471
2477
  key: 0,
2472
2478
  ref_for: !0
2473
2479
  }, me.attr, {
2474
- onClick: (Xe) => me.func(C, Y, te, e.value)
2480
+ onClick: (Xe) => me.func(C, H, te, e.value)
2475
2481
  }), {
2476
2482
  default: g(() => [
2477
2483
  be(pe(me.label), 1)
@@ -2481,12 +2487,12 @@ const ol = {
2481
2487
  key: 1,
2482
2488
  ref_for: !0
2483
2489
  }, me.attr, {
2484
- onClick: (Xe) => me.func(C, Y, te, e.value)
2490
+ onClick: (Xe) => me.func(C, H, te, e.value)
2485
2491
  }), null, 16, ["onClick"]))
2486
2492
  ], !0) : ve("", !0),
2487
2493
  p(l.$slots, me.name + "-right", {
2488
2494
  row: C,
2489
- column: Y,
2495
+ column: H,
2490
2496
  $index: te
2491
2497
  }, void 0, !0)
2492
2498
  ], 64))), 256))
@@ -2496,7 +2502,7 @@ const ol = {
2496
2502
  ], 64))), 256)),
2497
2503
  p(l.$slots, "control-right", {
2498
2504
  row: C,
2499
- column: Y,
2505
+ column: H,
2500
2506
  $index: te
2501
2507
  }, void 0, !0)
2502
2508
  ], !0)
@@ -2506,11 +2512,11 @@ const ol = {
2506
2512
  key: "2"
2507
2513
  } : j.type != "selection" && j.type != "index" ? {
2508
2514
  name: "default",
2509
- fn: g(({ row: C, column: Y, $index: te }) => [
2510
- oe(j, C, Y, te) && te != -1 ? p(l.$slots, `${ue}`, {
2515
+ fn: g(({ row: C, column: H, $index: te }) => [
2516
+ oe(j, C, H, te) && te != -1 ? p(l.$slots, `${ue}`, {
2511
2517
  key: 0,
2512
2518
  row: C,
2513
- column: Y,
2519
+ column: H,
2514
2520
  $index: te
2515
2521
  }, () => {
2516
2522
  var Ie;
@@ -2518,9 +2524,9 @@ const ol = {
2518
2524
  G(Ge, {
2519
2525
  modelValue: C[ue],
2520
2526
  "onUpdate:modelValue": (Ue) => C[ue] = Ue,
2521
- item: j == null ? void 0 : j.table(C, Y, te, F.value),
2527
+ item: j == null ? void 0 : j.table(C, H, te, F.value),
2522
2528
  ctrlKey: ue,
2523
- ctrlType: (Ie = j.table(C, Y, te, F.value)) != null && Ie.type ? j.table(C, Y, te, F.value).type : j.type,
2529
+ ctrlType: (Ie = j.table(C, H, te, F.value)) != null && Ie.type ? j.table(C, H, te, F.value).type : j.type,
2524
2530
  model: e.value,
2525
2531
  class: "g-ctrl-container",
2526
2532
  t: "t",
@@ -2541,11 +2547,11 @@ const ol = {
2541
2547
  }, !0) : p(l.$slots, `${ue}`, {
2542
2548
  key: 1,
2543
2549
  row: C,
2544
- column: Y,
2550
+ column: H,
2545
2551
  $index: te
2546
2552
  }, () => [
2547
2553
  Q("div", {
2548
- innerHTML: ce(j, Y.formatter(C, Y, C[ue], te))
2554
+ innerHTML: ce(j, H.formatter(C, H, C[ue], te))
2549
2555
  }, null, 8, cl)
2550
2556
  ], !0)
2551
2557
  ]),
@@ -2577,10 +2583,10 @@ const ol = {
2577
2583
  "onUpdate:modelValue": r[8] || (r[8] = (j) => V.value = j),
2578
2584
  fullscreen: e.value.dialog.fullScreen
2579
2585
  }, o(ke)(e.value.dialog, (j) => !["size"].includes(j)), {
2580
- width: o($t)(e.value.dialog.width) + 35
2586
+ width: o(Et)(e.value.dialog.width) + 35
2581
2587
  }), {
2582
2588
  header: g(() => {
2583
- var j, ue, C, Y;
2589
+ var j, ue, C, H;
2584
2590
  return [
2585
2591
  Q("div", pl, [
2586
2592
  Q("div", vl, [
@@ -2602,7 +2608,7 @@ const ol = {
2602
2608
  _: 1
2603
2609
  })
2604
2610
  ])) : ve("", !0),
2605
- ((Y = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Y.fullScreen) === !0 ? (s(), B("div", {
2611
+ ((H = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : H.fullScreen) === !0 ? (s(), B("div", {
2606
2612
  key: 1,
2607
2613
  onClick: r[6] || (r[6] = (te) => {
2608
2614
  e.value.dialog.fullScreen = !1;
@@ -2622,7 +2628,7 @@ const ol = {
2622
2628
  default: g(() => [
2623
2629
  Q("div", yl, [
2624
2630
  p(l.$slots, "table-dialog-form", { model: e.value }, () => [
2625
- G(We, {
2631
+ G(Ye, {
2626
2632
  modelValue: e.value,
2627
2633
  "onUpdate:modelValue": r[7] || (r[7] = (j) => e.value = j),
2628
2634
  onSubmit: O,
@@ -2630,8 +2636,8 @@ const ol = {
2630
2636
  }, fe({ _: 2 }, [
2631
2637
  U(l.$slots, (j, ue, C) => ({
2632
2638
  name: ue,
2633
- fn: g((Y) => [
2634
- p(l.$slots, ue, { model: Y }, void 0, !0)
2639
+ fn: g((H) => [
2640
+ p(l.$slots, ue, { model: H }, void 0, !0)
2635
2641
  ])
2636
2642
  }))
2637
2643
  ]), 1032, ["modelValue"])
@@ -2657,7 +2663,7 @@ const ol = {
2657
2663
  ]),
2658
2664
  default: g(() => [
2659
2665
  p(l.$slots, "table-drawer-form", { model: e.value }, () => [
2660
- G(We, {
2666
+ G(Ye, {
2661
2667
  modelValue: e.value,
2662
2668
  "onUpdate:modelValue": r[9] || (r[9] = (j) => e.value = j),
2663
2669
  onSubmit: O,
@@ -2665,8 +2671,8 @@ const ol = {
2665
2671
  }, fe({ _: 2 }, [
2666
2672
  U(l.$slots, (j, ue, C) => ({
2667
2673
  name: ue,
2668
- fn: g((Y) => [
2669
- p(l.$slots, ue, { model: Y }, void 0, !0)
2674
+ fn: g((H) => [
2675
+ p(l.$slots, ue, { model: H }, void 0, !0)
2670
2676
  ])
2671
2677
  }))
2672
2678
  ]), 1032, ["modelValue"])
@@ -2675,18 +2681,18 @@ const ol = {
2675
2681
  _: 3
2676
2682
  }, 16, ["modelValue"])
2677
2683
  ])) : ve("", !0),
2678
- pt(G(We, {
2684
+ vt(G(Ye, {
2679
2685
  modelValue: e.value,
2680
2686
  "onUpdate:modelValue": r[11] || (r[11] = (j) => e.value = j),
2681
2687
  onSubmit: O,
2682
2688
  onReset: J
2683
2689
  }, null, 8, ["modelValue"]), [
2684
- [vt, !1]
2690
+ [yt, !1]
2685
2691
  ])
2686
2692
  ], 64);
2687
2693
  };
2688
2694
  }
2689
- }), El = /* @__PURE__ */ Be($l, [["__scopeId", "data-v-3c74e18b"]]), wl = { class: "g-tree-table" }, _l = { class: "g-tree-container" }, kl = { class: "g-tree-table-container" }, Cl = /* @__PURE__ */ Object.assign({
2695
+ }), El = /* @__PURE__ */ Be($l, [["__scopeId", "data-v-f228da13"]]), wl = { class: "g-tree-table" }, _l = { class: "g-tree-container" }, kl = { class: "g-tree-table-container" }, Cl = /* @__PURE__ */ Object.assign({
2690
2696
  name: "g-tree-table",
2691
2697
  inheritAttrs: !1
2692
2698
  }, {
@@ -2697,13 +2703,13 @@ const ol = {
2697
2703
  },
2698
2704
  emits: /* @__PURE__ */ Oe(["load"], ["update:modelValue"]),
2699
2705
  setup(c, { emit: f }) {
2700
- var se, D, u;
2701
- const t = f, e = xe(c, "modelValue"), a = ye(((se = Ne()) == null ? void 0 : se.width) || "180px"), v = ye(((D = Ne()) == null ? void 0 : D.search) === void 0 ? !0 : (u = Ne()) == null ? void 0 : u.search), V = ye({}), F = ye(""), q = ye(null), E = (A, ee) => A ? ee.label.includes(A) : !0, w = (A, ee) => {
2706
+ var ne, D, u;
2707
+ const t = f, e = xe(c, "modelValue"), a = ye(((ne = Le()) == null ? void 0 : ne.width) || "180px"), v = ye(((D = Le()) == null ? void 0 : D.search) === void 0 ? !0 : (u = Le()) == null ? void 0 : u.search), V = ye({}), F = ye(""), q = ye(null), E = (A, ee) => A ? ee.label.includes(A) : !0, w = (A, ee) => {
2702
2708
  t("load", V.value, A, ee);
2703
2709
  }, P = (A) => {
2704
2710
  V.value = A, e.value.table.load();
2705
2711
  };
2706
- return Tt(F, (A) => {
2712
+ return mt(F, (A) => {
2707
2713
  q.value.filter(A);
2708
2714
  }), (A, ee) => {
2709
2715
  const le = R("el-input"), ae = R("el-tree"), ce = R("g-table");
@@ -2728,21 +2734,21 @@ const ol = {
2728
2734
  ref_key: "treeRef",
2729
2735
  ref: q,
2730
2736
  onNodeClick: P
2731
- }, A.$attrs), fe({
2732
- default: g(({ node: ie, data: ne }) => [
2737
+ }, A.$attrs.tree), fe({
2738
+ default: g(({ node: ie, data: se }) => [
2733
2739
  p(A.$slots, "tree", {
2734
2740
  node: ie,
2735
- data: ne
2741
+ data: se
2736
2742
  }, () => [
2737
2743
  Q("span", null, pe(ie.label), 1)
2738
2744
  ], !0)
2739
2745
  ]),
2740
2746
  _: 2
2741
2747
  }, [
2742
- U(A.$slots, (ie, ne, d) => ({
2743
- name: ne,
2748
+ U(A.$slots, (ie, se, d) => ({
2749
+ name: se,
2744
2750
  fn: g((k) => [
2745
- p(A.$slots, ne, { data: k }, void 0, !0)
2751
+ p(A.$slots, se, { data: k }, void 0, !0)
2746
2752
  ])
2747
2753
  }))
2748
2754
  ]), 1040, ["style"])
@@ -2753,10 +2759,10 @@ const ol = {
2753
2759
  modelValue: e.value,
2754
2760
  "onUpdate:modelValue": ee[1] || (ee[1] = (ie) => e.value = ie)
2755
2761
  }, A.$attrs, { onLoad: w }), fe({ _: 2 }, [
2756
- U(A.$slots, (ie, ne, d) => ({
2757
- name: ne,
2762
+ U(A.$slots, (ie, se, d) => ({
2763
+ name: se,
2758
2764
  fn: g((k) => [
2759
- p(A.$slots, ne, { data: k }, void 0, !0)
2765
+ p(A.$slots, se, { data: k }, void 0, !0)
2760
2766
  ])
2761
2767
  }))
2762
2768
  ]), 1040, ["modelValue"])
@@ -2764,7 +2770,7 @@ const ol = {
2764
2770
  ]);
2765
2771
  };
2766
2772
  }
2767
- }), Dl = /* @__PURE__ */ Be(Cl, [["__scopeId", "data-v-c07fe107"]]), Vl = {
2773
+ }), Dl = /* @__PURE__ */ Be(Cl, [["__scopeId", "data-v-ef1e623c"]]), Vl = {
2768
2774
  key: 0,
2769
2775
  class: "op-group"
2770
2776
  }, Fl = {
@@ -2789,7 +2795,7 @@ const ol = {
2789
2795
  setup(c) {
2790
2796
  const f = c;
2791
2797
  return (t, e) => f.title ? (s(), B("div", Vl, [
2792
- (s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
2798
+ (s(!0), B(Y, null, U(f.columns, (a) => (s(), B("span", {
2793
2799
  style: Te({ width: (a == null ? void 0 : a.width) || ft, ...a == null ? void 0 : a.titleStyle }),
2794
2800
  key: a.key
2795
2801
  }, [
@@ -2798,7 +2804,7 @@ const ol = {
2798
2804
  ], !0)
2799
2805
  ], 4))), 128))
2800
2806
  ])) : (s(), B("div", Fl, [
2801
- (s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
2807
+ (s(!0), B(Y, null, U(f.columns, (a) => (s(), B("span", {
2802
2808
  style: Te({ width: (a == null ? void 0 : a.width) || ft, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
2803
2809
  key: a.key
2804
2810
  }, [
@@ -2808,15 +2814,15 @@ const ol = {
2808
2814
  ], 4))), 128))
2809
2815
  ]));
2810
2816
  }
2811
- }), Ml = /* @__PURE__ */ Be(Tl, [["__scopeId", "data-v-422d5210"]]), ql = Object.freeze({}), bt = [El, We, Dl, Ml];
2817
+ }), Ml = /* @__PURE__ */ Be(Tl, [["__scopeId", "data-v-422d5210"]]), ql = Object.freeze({}), $t = [El, Ye, Dl, Ml];
2812
2818
  let et = {};
2813
2819
  const jl = {
2814
2820
  install: (c, f = {}) => {
2815
- et = Object.freeze({ ...ql, ...f }), bt.forEach((t) => {
2821
+ et = Object.freeze({ ...ql, ...f }), $t.forEach((t) => {
2816
2822
  c.component(t.name, t);
2817
2823
  }), c.provide("options", et), c.config.globalProperties.$openModal = tt;
2818
2824
  }
2819
- }, Sl = (c) => ({ dialog: wt, drawer: _t })[c] || null, tt = (c = {}, f = "dialog") => {
2825
+ }, Sl = (c) => ({ dialog: _t, drawer: kt })[c] || null, tt = (c = {}, f = "dialog") => {
2820
2826
  if (typeof document > "u") return () => {
2821
2827
  };
2822
2828
  const t = document.createElement("div");
@@ -2847,11 +2853,11 @@ const jl = {
2847
2853
  };
2848
2854
  }
2849
2855
  });
2850
- return bt.forEach((F) => {
2856
+ return $t.forEach((F) => {
2851
2857
  V.component(F.name, F);
2852
- }), V.provide("options", et), V.use(Et, { locale: xt }), document.body.appendChild(t), V.mount(t), e;
2858
+ }), V.provide("options", et), V.use(wt, { locale: xt }), document.body.appendChild(t), V.mount(t), e;
2853
2859
  };
2854
- function $t(c, f = window.innerWidth) {
2860
+ function Et(c, f = window.innerWidth) {
2855
2861
  if (typeof c == "number")
2856
2862
  return c;
2857
2863
  if (c.endsWith("px"))
@@ -2873,7 +2879,7 @@ function $t(c, f = window.innerWidth) {
2873
2879
  throw new Error("Invalid calc expression");
2874
2880
  };
2875
2881
  const a = c.slice(5, -1).trim();
2876
- return v(a.replace(/([0-9.]+)([a-z%]+)/g, (F, q, E) => $t(q + E, f)));
2882
+ return v(a.replace(/([0-9.]+)([a-z%]+)/g, (F, q, E) => Et(q + E, f)));
2877
2883
  }
2878
2884
  throw new Error("Unsupported unit in value: " + c);
2879
2885
  }
@@ -2902,6 +2908,7 @@ function Ol(c, f, t = "value", e = "label", a = "children") {
2902
2908
  return null;
2903
2909
  }
2904
2910
  function lt(c) {
2911
+ if (!c || isNaN(c)) return "零";
2905
2912
  const f = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], e = [
2906
2913
  ["元", "万", "亿"],
2907
2914
  ["", "拾", "佰", "仟"]
@@ -2956,7 +2963,7 @@ const de = {
2956
2963
  };
2957
2964
  export {
2958
2965
  de as CT,
2959
- $t as convertToPx,
2966
+ Et as convertToPx,
2960
2967
  jl as default,
2961
2968
  ke as filterObject,
2962
2969
  Ol as findTreeLabelByValue,