vue-2024-ui 0.0.64 → 0.0.66

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 Et, { ElForm as Pe, ElButtonGroup as ze, ElButton as he, ElPopover as Xe, ElMessage as we, ElMessageBox as ft, ElDialog as wt, ElDrawer as _t } from "element-plus";
2
- import { mergeModels as Se, useModel as Oe, ref as ye, onMounted as Ne, watch as ct, 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 ge, toDisplayString as pe, createSlots as de, createVNode as G, createCommentVNode as ve, normalizeProps as je, createElementVNode as Q, useSlots as mt, nextTick as kt, inject as lt, useAttrs as He, onUnmounted as Ct, computed as xe, normalizeStyle as Fe, withModifiers as st, guardReactiveProps as Ze, resolveDynamicComponent as qe, Transition as Dt, withDirectives as pt, vShow as vt, h as De, onBeforeUnmount as Vt, normalizeClass as yt, watchEffect as Ft, createApp as Tt } from "vue";
3
- import { FullScreen as Mt, Remove as qt } from "@element-plus/icons-vue";
4
- import ht from "sortablejs";
5
- import { Dexie as St } from "dexie";
6
- var Ot = {
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 Le, createElementVNode as Q, useSlots as pt, nextTick as Ct, inject as ot, useAttrs as Ne, 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
+ import { FullScreen as qt, Remove as St } from "@element-plus/icons-vue";
4
+ import gt from "sortablejs";
5
+ import { Dexie as Ot } from "dexie";
6
+ var xt = {
7
7
  name: "zh-cn",
8
8
  el: {
9
9
  breadcrumb: {
@@ -180,321 +180,321 @@ var Ot = {
180
180
  indicator: "幻灯片切换至索引 {index}"
181
181
  }
182
182
  }
183
- }, xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
184
- function At(m) {
185
- return m && m.__esModule && Object.prototype.hasOwnProperty.call(m, "default") ? m.default : m;
183
+ }, At = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
184
+ function Bt(c) {
185
+ return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
186
186
  }
187
- var gt = { exports: {} };
188
- (function(m, f) {
187
+ var bt = { exports: {} };
188
+ (function(c, f) {
189
189
  (function(t, e) {
190
- m.exports = e();
191
- })(xt, function() {
192
- var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", F = "second", T = "minute", q = "hour", E = "day", _ = "week", z = "month", ne = "quarter", V = "year", u = "date", A = "Invalid Date", K = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ee = /\[([^\]]+)]|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(k) {
193
- var $ = ["th", "st", "nd", "rd"], b = k % 100;
194
- return "[" + k + ($[(b - 20) % 10] || $[b] || $[0]) + "]";
195
- } }, ce = function(k, $, b) {
196
- var c = String(k);
197
- return !c || c.length >= $ ? k : "" + Array($ + 1 - c.length).join(b) + k;
198
- }, ie = { s: ce, z: function(k) {
199
- var $ = -k.utcOffset(), b = Math.abs($), c = Math.floor(b / 60), i = b % 60;
200
- return ($ <= 0 ? "+" : "-") + ce(c, 2, "0") + ":" + ce(i, 2, "0");
201
- }, m: function k($, b) {
202
- if ($.date() < b.date()) return -k(b, $);
203
- var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), i = $.clone().add(c, z), w = b - i < 0, M = $.clone().add(c + (w ? -1 : 1), z);
204
- return +(-(c + (b - i) / (w ? i - M : M - i)) || 0);
205
- }, a: function(k) {
206
- return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
207
- }, p: function(k) {
208
- return { M: z, y: V, w: _, d: E, D: u, h: q, m: T, s: F, ms: v, Q: ne }[k] || String(k || "").toLowerCase().replace(/s$/, "");
209
- }, u: function(k) {
210
- return k === void 0;
211
- } }, re = "en", d = {};
212
- d[re] = se;
213
- var D = "$isDayjsObject", I = function(k) {
214
- return k instanceof te || !(!k || !k[D]);
215
- }, y = function k($, b, c) {
190
+ c.exports = e();
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", 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
+ var h = ["th", "st", "nd", "rd"], $ = M % 100;
194
+ return "[" + M + (h[($ - 20) % 10] || h[$] || h[0]) + "]";
195
+ } }, ce = function(M, h, $) {
196
+ var m = String(M);
197
+ return !m || m.length >= h ? M : "" + Array(h + 1 - m.length).join($) + M;
198
+ }, ie = { s: ce, z: function(M) {
199
+ var h = -M.utcOffset(), $ = Math.abs(h), m = Math.floor($ / 60), i = $ % 60;
200
+ return (h <= 0 ? "+" : "-") + ce(m, 2, "0") + ":" + ce(i, 2, "0");
201
+ }, m: function M(h, $) {
202
+ if (h.date() < $.date()) return -M($, h);
203
+ var m = 12 * ($.year() - h.year()) + ($.month() - h.month()), i = h.clone().add(m, P), _ = $ - i < 0, T = h.clone().add(m + (_ ? -1 : 1), P);
204
+ return +(-(m + ($ - i) / (_ ? i - T : T - i)) || 0);
205
+ }, a: function(M) {
206
+ return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
207
+ }, p: function(M) {
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
+ }, u: function(M) {
210
+ return M === void 0;
211
+ } }, se = "en", d = {};
212
+ d[se] = ae;
213
+ var k = "$isDayjsObject", I = function(M) {
214
+ return M instanceof J || !(!M || !M[k]);
215
+ }, y = function M(h, $, m) {
216
216
  var i;
217
- if (!$) return re;
218
- if (typeof $ == "string") {
219
- var w = $.toLowerCase();
220
- d[w] && (i = w), b && (d[w] = b, i = w);
221
- var M = $.split("-");
222
- if (!i && M.length > 1) return k(M[0]);
217
+ if (!h) return se;
218
+ if (typeof h == "string") {
219
+ var _ = h.toLowerCase();
220
+ d[_] && (i = _), $ && (d[_] = $, i = _);
221
+ var T = h.split("-");
222
+ if (!i && T.length > 1) return M(T[0]);
223
223
  } else {
224
- var P = $.name;
225
- d[P] = $, i = P;
224
+ var N = h.name;
225
+ d[N] = h, i = N;
226
226
  }
227
- return !c && i && (re = i), i || !c && re;
228
- }, L = function(k, $) {
229
- if (I(k)) return k.clone();
230
- var b = typeof $ == "object" ? $ : {};
231
- return b.date = k, b.args = arguments, new te(b);
227
+ return !m && i && (se = i), i || !m && se;
228
+ }, L = function(M, h) {
229
+ if (I(M)) return M.clone();
230
+ var $ = typeof h == "object" ? h : {};
231
+ return $.date = M, $.args = arguments, new J($);
232
232
  }, O = ie;
233
- O.l = y, O.i = I, O.w = function(k, $) {
234
- return L(k, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
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 });
235
235
  };
236
- var te = function() {
237
- function k(b) {
238
- this.$L = y(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[D] = !0;
236
+ var J = function() {
237
+ function M($) {
238
+ this.$L = y($.locale, null, !0), this.parse($), this.$x = this.$x || $.x || {}, this[k] = !0;
239
239
  }
240
- var $ = k.prototype;
241
- return $.parse = function(b) {
242
- this.$d = function(c) {
243
- var i = c.date, w = c.utc;
240
+ var h = M.prototype;
241
+ return h.parse = function($) {
242
+ this.$d = function(m) {
243
+ var i = m.date, _ = m.utc;
244
244
  if (i === null) return /* @__PURE__ */ new Date(NaN);
245
245
  if (O.u(i)) return /* @__PURE__ */ new Date();
246
246
  if (i instanceof Date) return new Date(i);
247
247
  if (typeof i == "string" && !/Z$/i.test(i)) {
248
- var M = i.match(K);
249
- if (M) {
250
- var P = M[2] - 1 || 0, X = (M[7] || "0").substring(0, 3);
251
- return w ? new Date(Date.UTC(M[1], P, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, X)) : new Date(M[1], P, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, X);
248
+ var T = i.match(ee);
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);
252
252
  }
253
253
  }
254
254
  return new Date(i);
255
- }(b), this.init();
256
- }, $.init = function() {
257
- var b = this.$d;
258
- this.$y = b.getFullYear(), this.$M = b.getMonth(), this.$D = b.getDate(), this.$W = b.getDay(), this.$H = b.getHours(), this.$m = b.getMinutes(), this.$s = b.getSeconds(), this.$ms = b.getMilliseconds();
259
- }, $.$utils = function() {
255
+ }($), this.init();
256
+ }, h.init = function() {
257
+ var $ = this.$d;
258
+ this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();
259
+ }, h.$utils = function() {
260
260
  return O;
261
- }, $.isValid = function() {
261
+ }, h.isValid = function() {
262
262
  return this.$d.toString() !== A;
263
- }, $.isSame = function(b, c) {
264
- var i = L(b);
265
- return this.startOf(c) <= i && i <= this.endOf(c);
266
- }, $.isAfter = function(b, c) {
267
- return L(b) < this.startOf(c);
268
- }, $.isBefore = function(b, c) {
269
- return this.endOf(c) < L(b);
270
- }, $.$g = function(b, c, i) {
271
- return O.u(b) ? this[c] : this.set(i, b);
272
- }, $.unix = function() {
263
+ }, h.isSame = function($, m) {
264
+ var i = L($);
265
+ return this.startOf(m) <= i && i <= this.endOf(m);
266
+ }, h.isAfter = function($, m) {
267
+ return L($) < this.startOf(m);
268
+ }, h.isBefore = function($, m) {
269
+ return this.endOf(m) < L($);
270
+ }, h.$g = function($, m, i) {
271
+ return O.u($) ? this[m] : this.set(i, $);
272
+ }, h.unix = function() {
273
273
  return Math.floor(this.valueOf() / 1e3);
274
- }, $.valueOf = function() {
274
+ }, h.valueOf = function() {
275
275
  return this.$d.getTime();
276
- }, $.startOf = function(b, c) {
277
- var i = this, w = !!O.u(c) || c, M = O.p(b), P = function(Ce, l) {
278
- var r = O.w(i.$u ? Date.UTC(i.$y, l, Ce) : new Date(i.$y, l, Ce), i);
279
- return w ? r : r.endOf(E);
280
- }, X = function(Ce, l) {
281
- return O.w(i.toDate()[Ce].apply(i.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(l)), i);
282
- }, oe = this.$W, n = this.$M, H = this.$D, ae = "set" + (this.$u ? "UTC" : "");
283
- switch (M) {
284
- case V:
285
- return w ? P(1, 0) : P(31, 11);
286
- case z:
287
- return w ? P(1, n) : P(0, n + 1);
288
- case _:
289
- var ke = this.$locale().weekStart || 0, Te = (oe < ke ? oe + 7 : oe) - ke;
290
- return P(w ? H - Te : H + (6 - Te), n);
276
+ }, h.startOf = function($, m) {
277
+ var i = this, _ = !!O.u(m) || m, T = O.p($), N = function(De, he) {
278
+ var l = O.w(i.$u ? Date.UTC(i.$y, he, De) : new Date(i.$y, he, De), i);
279
+ return _ ? l : l.endOf(E);
280
+ }, X = function(De, he) {
281
+ return O.w(i.toDate()[De].apply(i.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(he)), i);
282
+ }, oe = this.$W, n = this.$M, z = this.$D, re = "set" + (this.$u ? "UTC" : "");
283
+ switch (T) {
284
+ case D:
285
+ return _ ? N(1, 0) : N(31, 11);
286
+ case P:
287
+ return _ ? N(1, n) : N(0, n + 1);
288
+ case w:
289
+ var Ce = this.$locale().weekStart || 0, Me = (oe < Ce ? oe + 7 : oe) - Ce;
290
+ return N(_ ? z - Me : z + (6 - Me), n);
291
291
  case E:
292
292
  case u:
293
- return X(ae + "Hours", 0);
293
+ return X(re + "Hours", 0);
294
294
  case q:
295
- return X(ae + "Minutes", 1);
296
- case T:
297
- return X(ae + "Seconds", 2);
295
+ return X(re + "Minutes", 1);
298
296
  case F:
299
- return X(ae + "Milliseconds", 3);
297
+ return X(re + "Seconds", 2);
298
+ case V:
299
+ return X(re + "Milliseconds", 3);
300
300
  default:
301
301
  return this.clone();
302
302
  }
303
- }, $.endOf = function(b) {
304
- return this.startOf(b, !1);
305
- }, $.$set = function(b, c) {
306
- var i, w = O.p(b), M = "set" + (this.$u ? "UTC" : ""), P = (i = {}, i[E] = M + "Date", i[u] = M + "Date", i[z] = M + "Month", i[V] = M + "FullYear", i[q] = M + "Hours", i[T] = M + "Minutes", i[F] = M + "Seconds", i[v] = M + "Milliseconds", i)[w], X = w === E ? this.$D + (c - this.$W) : c;
307
- if (w === z || w === V) {
303
+ }, h.endOf = function($) {
304
+ return this.startOf($, !1);
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;
307
+ if (_ === P || _ === D) {
308
308
  var oe = this.clone().set(u, 1);
309
- oe.$d[P](X), oe.init(), this.$d = oe.set(u, Math.min(this.$D, oe.daysInMonth())).$d;
310
- } else P && this.$d[P](X);
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);
311
311
  return this.init(), this;
312
- }, $.set = function(b, c) {
313
- return this.clone().$set(b, c);
314
- }, $.get = function(b) {
315
- return this[O.p(b)]();
316
- }, $.add = function(b, c) {
317
- var i, w = this;
318
- b = Number(b);
319
- var M = O.p(c), P = function(n) {
320
- var H = L(w);
321
- return O.w(H.date(H.date() + Math.round(n * b)), w);
312
+ }, h.set = function($, m) {
313
+ return this.clone().$set($, m);
314
+ }, h.get = function($) {
315
+ return this[O.p($)]();
316
+ }, h.add = function($, m) {
317
+ var i, _ = this;
318
+ $ = Number($);
319
+ var T = O.p(m), N = function(n) {
320
+ var z = L(_);
321
+ return O.w(z.date(z.date() + Math.round(n * $)), _);
322
322
  };
323
- if (M === z) return this.set(z, this.$M + b);
324
- if (M === V) return this.set(V, this.$y + b);
325
- if (M === E) return P(1);
326
- if (M === _) return P(7);
327
- var X = (i = {}, i[T] = e, i[q] = a, i[F] = t, i)[M] || 1, oe = this.$d.getTime() + b * X;
323
+ if (T === P) return this.set(P, this.$M + $);
324
+ if (T === D) return this.set(D, this.$y + $);
325
+ if (T === E) return N(1);
326
+ if (T === w) return N(7);
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
- }, $.subtract = function(b, c) {
330
- return this.add(-1 * b, c);
331
- }, $.format = function(b) {
332
- var c = this, i = this.$locale();
329
+ }, h.subtract = function($, m) {
330
+ return this.add(-1 * $, m);
331
+ }, h.format = function($) {
332
+ var m = this, i = this.$locale();
333
333
  if (!this.isValid()) return i.invalidDate || A;
334
- var w = b || "YYYY-MM-DDTHH:mm:ssZ", M = O.z(this), P = this.$H, X = this.$m, oe = this.$M, n = i.weekdays, H = i.months, ae = i.meridiem, ke = function(l, r, h, j) {
335
- return l && (l[r] || l(c, w)) || h[r].slice(0, j);
336
- }, Te = function(l) {
337
- return O.s(P % 12 || 12, l, "0");
338
- }, Ce = ae || function(l, r, h) {
339
- var j = l < 12 ? "AM" : "PM";
340
- return h ? j.toLowerCase() : j;
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) {
335
+ return he && (he[l] || he(m, _)) || r[l].slice(0, b);
336
+ }, Me = function(he) {
337
+ return O.s(N % 12 || 12, he, "0");
338
+ }, De = re || function(he, l, r) {
339
+ var b = he < 12 ? "AM" : "PM";
340
+ return r ? b.toLowerCase() : b;
341
341
  };
342
- return w.replace(ee, function(l, r) {
343
- return r || function(h) {
344
- switch (h) {
342
+ return _.replace(le, function(he, l) {
343
+ return l || function(r) {
344
+ switch (r) {
345
345
  case "YY":
346
- return String(c.$y).slice(-2);
346
+ return String(m.$y).slice(-2);
347
347
  case "YYYY":
348
- return O.s(c.$y, 4, "0");
348
+ return O.s(m.$y, 4, "0");
349
349
  case "M":
350
350
  return oe + 1;
351
351
  case "MM":
352
352
  return O.s(oe + 1, 2, "0");
353
353
  case "MMM":
354
- return ke(i.monthsShort, oe, H, 3);
354
+ return Ce(i.monthsShort, oe, z, 3);
355
355
  case "MMMM":
356
- return ke(H, oe);
356
+ return Ce(z, oe);
357
357
  case "D":
358
- return c.$D;
358
+ return m.$D;
359
359
  case "DD":
360
- return O.s(c.$D, 2, "0");
360
+ return O.s(m.$D, 2, "0");
361
361
  case "d":
362
- return String(c.$W);
362
+ return String(m.$W);
363
363
  case "dd":
364
- return ke(i.weekdaysMin, c.$W, n, 2);
364
+ return Ce(i.weekdaysMin, m.$W, n, 2);
365
365
  case "ddd":
366
- return ke(i.weekdaysShort, c.$W, n, 3);
366
+ return Ce(i.weekdaysShort, m.$W, n, 3);
367
367
  case "dddd":
368
- return n[c.$W];
368
+ return n[m.$W];
369
369
  case "H":
370
- return String(P);
370
+ return String(N);
371
371
  case "HH":
372
- return O.s(P, 2, "0");
372
+ return O.s(N, 2, "0");
373
373
  case "h":
374
- return Te(1);
374
+ return Me(1);
375
375
  case "hh":
376
- return Te(2);
376
+ return Me(2);
377
377
  case "a":
378
- return Ce(P, X, !0);
378
+ return De(N, X, !0);
379
379
  case "A":
380
- return Ce(P, X, !1);
380
+ return De(N, X, !1);
381
381
  case "m":
382
382
  return String(X);
383
383
  case "mm":
384
384
  return O.s(X, 2, "0");
385
385
  case "s":
386
- return String(c.$s);
386
+ return String(m.$s);
387
387
  case "ss":
388
- return O.s(c.$s, 2, "0");
388
+ return O.s(m.$s, 2, "0");
389
389
  case "SSS":
390
- return O.s(c.$ms, 3, "0");
390
+ return O.s(m.$ms, 3, "0");
391
391
  case "Z":
392
- return M;
392
+ return T;
393
393
  }
394
394
  return null;
395
- }(l) || M.replace(":", "");
395
+ }(he) || T.replace(":", "");
396
396
  });
397
- }, $.utcOffset = function() {
397
+ }, h.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
- }, $.diff = function(b, c, i) {
400
- var w, M = this, P = O.p(c), X = L(b), oe = (X.utcOffset() - this.utcOffset()) * e, n = this - X, H = function() {
401
- return O.m(M, X);
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() {
401
+ return O.m(T, X);
402
402
  };
403
- switch (P) {
404
- case V:
405
- w = H() / 12;
403
+ switch (N) {
404
+ case D:
405
+ _ = z() / 12;
406
406
  break;
407
- case z:
408
- w = H();
407
+ case P:
408
+ _ = z();
409
409
  break;
410
410
  case ne:
411
- w = H() / 3;
411
+ _ = z() / 3;
412
412
  break;
413
- case _:
414
- w = (n - oe) / 6048e5;
413
+ case w:
414
+ _ = (n - oe) / 6048e5;
415
415
  break;
416
416
  case E:
417
- w = (n - oe) / 864e5;
417
+ _ = (n - oe) / 864e5;
418
418
  break;
419
419
  case q:
420
- w = n / a;
421
- break;
422
- case T:
423
- w = n / e;
420
+ _ = n / a;
424
421
  break;
425
422
  case F:
426
- w = n / t;
423
+ _ = n / e;
424
+ break;
425
+ case V:
426
+ _ = n / t;
427
427
  break;
428
428
  default:
429
- w = n;
429
+ _ = n;
430
430
  }
431
- return i ? w : O.a(w);
432
- }, $.daysInMonth = function() {
433
- return this.endOf(z).$D;
434
- }, $.$locale = function() {
431
+ return i ? _ : O.a(_);
432
+ }, h.daysInMonth = function() {
433
+ return this.endOf(P).$D;
434
+ }, h.$locale = function() {
435
435
  return d[this.$L];
436
- }, $.locale = function(b, c) {
437
- if (!b) return this.$L;
438
- var i = this.clone(), w = y(b, c, !0);
439
- return w && (i.$L = w), i;
440
- }, $.clone = function() {
436
+ }, h.locale = function($, m) {
437
+ if (!$) return this.$L;
438
+ var i = this.clone(), _ = y($, m, !0);
439
+ return _ && (i.$L = _), i;
440
+ }, h.clone = function() {
441
441
  return O.w(this.$d, this);
442
- }, $.toDate = function() {
442
+ }, h.toDate = function() {
443
443
  return new Date(this.valueOf());
444
- }, $.toJSON = function() {
444
+ }, h.toJSON = function() {
445
445
  return this.isValid() ? this.toISOString() : null;
446
- }, $.toISOString = function() {
446
+ }, h.toISOString = function() {
447
447
  return this.$d.toISOString();
448
- }, $.toString = function() {
448
+ }, h.toString = function() {
449
449
  return this.$d.toUTCString();
450
- }, k;
451
- }(), be = te.prototype;
452
- return L.prototype = be, [["$ms", v], ["$s", F], ["$m", T], ["$H", q], ["$W", E], ["$M", z], ["$y", V], ["$D", u]].forEach(function(k) {
453
- be[k[1]] = function($) {
454
- return this.$g($, k[0], k[1]);
450
+ }, M;
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) {
453
+ $e[M[1]] = function(h) {
454
+ return this.$g(h, M[0], M[1]);
455
455
  };
456
- }), L.extend = function(k, $) {
457
- return k.$i || (k($, te, L), k.$i = !0), L;
458
- }, L.locale = y, L.isDayjs = I, L.unix = function(k) {
459
- return L(1e3 * k);
460
- }, L.en = d[re], L.Ls = d, L.p = {}, L;
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[se], L.Ls = d, L.p = {}, L;
461
461
  });
462
- })(gt);
463
- var Bt = gt.exports;
464
- const Je = /* @__PURE__ */ At(Bt), It = {
462
+ })(bt);
463
+ var It = bt.exports;
464
+ const Ze = /* @__PURE__ */ Bt(It), Ut = {
465
465
  style: { display: "flex", width: "100%" },
466
466
  class: "g-ctrl-container"
467
- }, Ut = {
467
+ }, Rt = {
468
468
  key: 20,
469
469
  style: { position: "relative" }
470
- }, Rt = ["title"], We = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
470
+ }, jt = ["title"], Ge = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
471
471
  __name: "g-ctrl",
472
- props: /* @__PURE__ */ Se(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
472
+ props: /* @__PURE__ */ Oe(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
473
473
  modelValue: { required: !0 },
474
474
  modelModifiers: {}
475
475
  }),
476
476
  emits: ["update:modelValue"],
477
- setup(m) {
478
- const f = Oe(m, "modelValue"), t = m, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, F = t.model, T = ye([]), q = ye([]), E = () => Object.keys(mt()).filter((V) => V.startsWith(`${t.t}-${a}-`)).map((V) => V.replace(`${t.t}-${a}-`, "")), _ = {
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(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
- }, z = (V) => {
483
- e["remote-method"](V, (u) => {
484
- kt(() => {
482
+ }, P = (D) => {
483
+ e["remote-method"](D, (u) => {
484
+ Ct(() => {
485
485
  q.value = u;
486
486
  });
487
487
  });
488
- }, ne = async (V = "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")
492
492
  q.value = [{ label: u, value: f.value }];
493
493
  else {
494
- const A = u == null ? void 0 : u.map((K, ee) => ({
495
- ...K,
496
- value: K.value ?? K.label ?? ee,
497
- label: K.label || "未知选项"
494
+ const A = u == null ? void 0 : u.map((ee, le) => ({
495
+ ...ee,
496
+ value: ee.value ?? ee.label ?? le,
497
+ label: ee.label || "未知选项"
498
498
  }));
499
499
  q.value = A || [];
500
500
  }
@@ -502,84 +502,84 @@ const Je = /* @__PURE__ */ At(Bt), It = {
502
502
  throw console.error("获取选项失败:", u), u;
503
503
  }
504
504
  };
505
- return Ne(async () => {
506
- var A, K;
507
- e && e["remote-method"] && (_["remote-method"] = z), (K = (A = F[a]) == null ? void 0 : A.options) != null && K.length && (q.value = F[a].options);
508
- const V = (ee, se = "options", ce = F[a]) => {
509
- typeof e.getDicts == "function" && ne(se).catch((ie) => {
510
- console.error(`Failed to load ${se} for ${ee}:`, ie);
505
+ return Pe(async () => {
506
+ var A, ee;
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
+ const D = (le, ae = "options", ce = V[a]) => {
509
+ typeof e.getDicts == "function" && ne(ae).catch((ie) => {
510
+ console.error(`Failed to load ${ae} for ${le}:`, ie);
511
511
  });
512
512
  };
513
- ["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(v) && V(v), v === "tree-select" && await (async () => {
513
+ ["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(v) && D(v), v === de.TREESELECT && await (async () => {
514
514
  try {
515
- typeof e.getDicts == "function" ? T.value = await e.getDicts(t.formInfo) : T.value = q.value;
516
- } catch (se) {
517
- console.error("Failed to load data for tree-select:", se);
515
+ typeof e.getDicts == "function" ? F.value = await e.getDicts(t.formInfo) : F.value = q.value;
516
+ } catch (ae) {
517
+ console.error("Failed to load data for tree-select:", ae);
518
518
  }
519
519
  })();
520
- }), ct(() => t.formInfo, () => {
521
- if (typeof e.getDicts == "function") {
520
+ }), mt(() => V.table.data.length, (D, u) => {
521
+ if (D !== u && typeof e.getDicts == "function") {
522
522
  if (e != null && e.multiple) return;
523
523
  ne();
524
524
  }
525
- }, { deep: !0 }), (V, u) => {
525
+ }, { deep: !0 }), (D, u) => {
526
526
  var X, oe;
527
- const A = R("el-radio"), K = R("el-radio-group"), ee = R("el-radio-button"), se = R("el-checkbox"), ce = R("el-checkbox-group"), ie = R("el-checkbox-button"), re = R("el-option"), d = R("el-select"), D = R("el-tree-select"), I = R("el-time-picker"), y = R("el-time-select"), L = R("el-date-picker"), O = R("el-color-picker"), te = R("el-rate"), be = R("el-slider"), k = R("el-switch"), $ = R("el-transfer"), b = R("el-cascader"), c = R("el-button"), i = R("el-upload"), w = R("el-autocomplete"), M = R("el-input-number"), P = R("el-input");
528
- return s(), B("div", It, [
529
- o(v) == o(fe).RADIO ? (s(), S(K, x({
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"), 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");
528
+ return s(), B("div", Ut, [
529
+ o(v) == o(de).RADIO ? (s(), S(ee, x({
530
530
  key: 0,
531
531
  modelValue: f.value,
532
532
  "onUpdate:modelValue": u[0] || (u[0] = (n) => f.value = n)
533
533
  }, o(e)), {
534
534
  default: g(() => [
535
- p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
536
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(A, x({ ref_for: !0 }, n), {
535
+ p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
536
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(A, x({ ref_for: !0 }, n), {
537
537
  default: g(() => [
538
- p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
538
+ p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
539
539
  ]),
540
540
  _: 2
541
541
  }, 1040))), 256))
542
542
  ])
543
543
  ]),
544
544
  _: 3
545
- }, 16, ["modelValue"])) : o(v) == o(fe).RADIOBUTTON ? (s(), S(K, x({
545
+ }, 16, ["modelValue"])) : o(v) == o(de).RADIOBUTTON ? (s(), S(ee, x({
546
546
  key: 1,
547
547
  modelValue: f.value,
548
548
  "onUpdate:modelValue": u[1] || (u[1] = (n) => f.value = n)
549
549
  }, o(e)), {
550
550
  default: g(() => [
551
- p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
552
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(ee, x({ ref_for: !0 }, n), {
551
+ p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
552
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(le, x({ ref_for: !0 }, n), {
553
553
  default: g(() => [
554
- p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
554
+ p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
555
555
  ]),
556
556
  _: 2
557
557
  }, 1040))), 256))
558
558
  ])
559
559
  ]),
560
560
  _: 3
561
- }, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOX ? (s(), S(se, x({
561
+ }, 16, ["modelValue"])) : o(v) == o(de).CHECKBOX ? (s(), S(ae, x({
562
562
  key: 2,
563
563
  modelValue: f.value,
564
564
  "onUpdate:modelValue": u[2] || (u[2] = (n) => f.value = n)
565
565
  }, o(e)), {
566
566
  default: g(() => [
567
- p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
568
- u[21] || (u[21] = ge(pe(" ")))
567
+ p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
568
+ u[21] || (u[21] = be(pe(" ")))
569
569
  ])
570
570
  ]),
571
571
  _: 3
572
- }, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOXGROUP ? (s(), S(ce, x({
572
+ }, 16, ["modelValue"])) : o(v) == o(de).CHECKBOXGROUP ? (s(), S(ce, x({
573
573
  key: 3,
574
574
  modelValue: f.value,
575
575
  "onUpdate:modelValue": u[3] || (u[3] = (n) => f.value = n)
576
576
  }, o(e)), {
577
577
  default: g(() => [
578
- p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
579
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(se, x({ ref_for: !0 }, n), {
578
+ p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
579
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(ae, x({ ref_for: !0 }, n), {
580
580
  default: g(() => [
581
- p(V.$slots, `${t.t}-${o(a)}-options`, { option: n }, () => [
582
- ge(pe(n.label), 1)
581
+ p(D.$slots, `${t.t}-${o(a)}-options`, { option: n }, () => [
582
+ be(pe(n.label), 1)
583
583
  ])
584
584
  ]),
585
585
  _: 2
@@ -587,49 +587,49 @@ const Je = /* @__PURE__ */ At(Bt), It = {
587
587
  ])
588
588
  ]),
589
589
  _: 3
590
- }, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOXGROUPBUTTON ? (s(), S(ce, x({
590
+ }, 16, ["modelValue"])) : o(v) == o(de).CHECKBOXGROUPBUTTON ? (s(), S(ce, x({
591
591
  key: 4,
592
592
  modelValue: f.value,
593
593
  "onUpdate:modelValue": u[4] || (u[4] = (n) => f.value = n)
594
594
  }, o(e)), {
595
595
  default: g(() => [
596
- p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
597
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(ie, x({ ref_for: !0 }, n), {
596
+ p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
597
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(ie, x({ ref_for: !0 }, n), {
598
598
  default: g(() => [
599
- p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
599
+ p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
600
600
  ]),
601
601
  _: 2
602
602
  }, 1040))), 256))
603
603
  ])
604
604
  ]),
605
605
  _: 3
606
- }, 16, ["modelValue"])) : o(v) === o(fe).SELECT ? (s(), S(d, x({
606
+ }, 16, ["modelValue"])) : o(v) === o(de).SELECT ? (s(), S(d, x({
607
607
  key: 5,
608
608
  modelValue: f.value,
609
609
  "onUpdate:modelValue": u[5] || (u[5] = (n) => f.value = n),
610
- placeholder: o(F)[o(a)].label
611
- }, _), de({
610
+ placeholder: o(V)[o(a)].label
611
+ }, w), fe({
612
612
  default: g(() => [
613
- p(V.$slots, `${t.t}-${o(a)}`, { options: q.value }, () => [
614
- (s(!0), B(W, null, U(q.value, (n) => (s(), B(W, {
613
+ p(D.$slots, `${t.t}-${o(a)}`, { options: q.value }, () => [
614
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), B(Y, {
615
615
  key: n.value
616
616
  }, [
617
- G(re, x({ ref_for: !0 }, n, {
618
- onClick: (H) => _.change && _.change(n)
617
+ G(se, x({ ref_for: !0 }, n, {
618
+ onClick: (z) => w.change && w.change(n)
619
619
  }), {
620
620
  default: g(() => [
621
- p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
621
+ p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
622
622
  ]),
623
623
  _: 2
624
624
  }, 1040, ["onClick"]),
625
- n.children && n.children.length ? (s(!0), B(W, { key: 0 }, U(n.children, (H) => (s(), S(re, x({
626
- key: H.value,
625
+ n.children && n.children.length ? (s(!0), B(Y, { key: 0 }, U(n.children, (z) => (s(), S(se, x({
626
+ key: z.value,
627
627
  ref_for: !0
628
- }, H, {
629
- onClick: (ae) => _.change && _.change(H)
628
+ }, z, {
629
+ onClick: (re) => w.change && w.change(z)
630
630
  }), {
631
631
  default: g(() => [
632
- p(V.$slots, `${t.t}-${o(a)}-options`, { option: H })
632
+ p(D.$slots, `${t.t}-${o(a)}-options`, { option: z })
633
633
  ]),
634
634
  _: 2
635
635
  }, 1040, ["onClick"]))), 128)) : ve("", !0)
@@ -640,191 +640,191 @@ const Je = /* @__PURE__ */ At(Bt), It = {
640
640
  }, [
641
641
  U(E(), (n) => ({
642
642
  name: n,
643
- fn: g((H) => [
644
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
643
+ fn: g((z) => [
644
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
645
645
  ])
646
646
  }))
647
- ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).TREESELECT ? (s(), S(D, x({
647
+ ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(de).TREESELECT ? (s(), S(k, x({
648
648
  key: 6,
649
649
  modelValue: f.value,
650
650
  "onUpdate:modelValue": u[6] || (u[6] = (n) => f.value = n),
651
- placeholder: o(F)[o(a)].label
652
- }, o(e), { data: T.value }), de({ _: 2 }, [
651
+ placeholder: o(V)[o(a)].label
652
+ }, o(e), { data: F.value }), fe({ _: 2 }, [
653
653
  U(E(), (n) => ({
654
654
  name: n,
655
- fn: g((H) => [
656
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
655
+ fn: g((z) => [
656
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
657
657
  ])
658
658
  }))
659
- ]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(fe).TIME ? (s(), S(I, x({
659
+ ]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(de).TIME ? (s(), S(I, x({
660
660
  key: 7,
661
661
  modelValue: f.value,
662
662
  "onUpdate:modelValue": u[7] || (u[7] = (n) => f.value = n),
663
663
  "arrow-control": ""
664
664
  }, o(e), {
665
- placeholder: o(F)[o(a)].label
666
- }), null, 16, ["modelValue", "placeholder"])) : o(v) == o(fe).TIMESELECT ? (s(), S(y, x({
665
+ placeholder: o(V)[o(a)].label
666
+ }), null, 16, ["modelValue", "placeholder"])) : o(v) == o(de).TIMESELECT ? (s(), S(y, x({
667
667
  key: 8,
668
668
  modelValue: f.value,
669
669
  "onUpdate:modelValue": u[8] || (u[8] = (n) => f.value = n),
670
670
  start: "06:30",
671
671
  step: "00:15",
672
672
  end: "23:30",
673
- placeholder: o(F)[o(a)].label
674
- }, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(fe).DATE ? (s(), S(L, x({
673
+ placeholder: o(V)[o(a)].label
674
+ }, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(de).DATE ? (s(), S(L, x({
675
675
  key: 9,
676
676
  modelValue: f.value,
677
677
  "onUpdate:modelValue": u[9] || (u[9] = (n) => f.value = n),
678
678
  type: "date",
679
- placeholder: o(F)[o(a)].label,
679
+ placeholder: o(V)[o(a)].label,
680
680
  "value-format": "YYYY-MM-DD"
681
- }, o(e)), de({ _: 2 }, [
681
+ }, o(e)), fe({ _: 2 }, [
682
682
  U(E(), (n) => ({
683
683
  name: n,
684
- fn: g((H) => [
685
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
684
+ fn: g((z) => [
685
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
686
686
  ])
687
687
  }))
688
- ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).DATETIME ? (s(), S(L, x({
688
+ ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(de).DATETIME ? (s(), S(L, x({
689
689
  key: 10,
690
690
  modelValue: f.value,
691
691
  "onUpdate:modelValue": u[10] || (u[10] = (n) => f.value = n),
692
- type: o(fe).DATETIME,
693
- placeholder: o(F)[o(a)].label,
692
+ type: o(de).DATETIME,
693
+ placeholder: o(V)[o(a)].label,
694
694
  "value-format": "YYYY-MM-DD HH:mm:ss"
695
- }, o(e)), de({ _: 2 }, [
695
+ }, o(e)), fe({ _: 2 }, [
696
696
  U(E(), (n) => ({
697
697
  name: n,
698
- fn: g((H) => [
699
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
698
+ fn: g((z) => [
699
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
700
700
  ])
701
701
  }))
702
- ]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(fe).COLOR ? (s(), S(O, x({
702
+ ]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(de).COLOR ? (s(), S(O, x({
703
703
  key: 11,
704
704
  modelValue: f.value,
705
705
  "onUpdate:modelValue": u[11] || (u[11] = (n) => f.value = n)
706
- }, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).RATE ? (s(), S(te, x({
706
+ }, o(e)), null, 16, ["modelValue"])) : o(v) == o(de).RATE ? (s(), S(J, x({
707
707
  key: 12,
708
708
  modelValue: f.value,
709
709
  "onUpdate:modelValue": u[12] || (u[12] = (n) => f.value = n)
710
- }, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).SLIDER ? (s(), S(be, x({
710
+ }, o(e)), null, 16, ["modelValue"])) : o(v) == o(de).SLIDER ? (s(), S($e, x({
711
711
  key: 13,
712
712
  modelValue: f.value,
713
713
  "onUpdate:modelValue": u[13] || (u[13] = (n) => f.value = n)
714
- }, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).SWITCH ? (s(), S(k, x({
714
+ }, o(e)), null, 16, ["modelValue"])) : o(v) == o(de).SWITCH ? (s(), S(M, x({
715
715
  key: 14,
716
716
  modelValue: f.value,
717
717
  "onUpdate:modelValue": u[14] || (u[14] = (n) => f.value = n)
718
- }, o(e)), de({ _: 2 }, [
718
+ }, o(e)), fe({ _: 2 }, [
719
719
  U(E(), (n) => ({
720
720
  name: n,
721
- fn: g((H) => [
722
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
721
+ fn: g((z) => [
722
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
723
723
  ])
724
724
  }))
725
- ]), 1040, ["modelValue"])) : o(v) == o(fe).TRANSFER ? (s(), S($, x({
725
+ ]), 1040, ["modelValue"])) : o(v) == o(de).TRANSFER ? (s(), S(h, x({
726
726
  key: 15,
727
727
  modelValue: f.value,
728
728
  "onUpdate:modelValue": u[15] || (u[15] = (n) => f.value = n)
729
- }, o(e)), de({ _: 2 }, [
729
+ }, o(e)), fe({ _: 2 }, [
730
730
  U(E(), (n) => ({
731
731
  name: n,
732
- fn: g((H) => [
733
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
732
+ fn: g((z) => [
733
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
734
734
  ])
735
735
  }))
736
- ]), 1040, ["modelValue"])) : o(v) == o(fe).CASCADER ? (s(), S(b, x({
736
+ ]), 1040, ["modelValue"])) : o(v) == o(de).CASCADER ? (s(), S($, x({
737
737
  key: 16,
738
738
  modelValue: f.value,
739
739
  "onUpdate:modelValue": u[16] || (u[16] = (n) => f.value = n)
740
- }, o(e), { options: q.value }), de({ _: 2 }, [
740
+ }, o(e), { options: q.value }), fe({ _: 2 }, [
741
741
  U(E(), (n) => ({
742
742
  name: n,
743
- fn: g((H) => [
744
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
743
+ fn: g((z) => [
744
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: z })
745
745
  ])
746
746
  }))
747
- ]), 1040, ["modelValue", "options"])) : o(v) == o(fe).IMAGE ? (s(), S(i, je(x({ key: 17 }, o(e))), de({
747
+ ]), 1040, ["modelValue", "options"])) : o(v) == o(de).IMAGE ? (s(), S(i, Le(x({ key: 17 }, o(e))), fe({
748
748
  default: g(() => [
749
- G(c, { type: "primary" }, {
749
+ G(m, { type: "primary" }, {
750
750
  default: g(() => u[22] || (u[22] = [
751
- ge("点击上传")
751
+ be("点击上传")
752
752
  ])),
753
753
  _: 1
754
754
  })
755
755
  ]),
756
756
  _: 2
757
757
  }, [
758
- U(E(), (n, H) => ({
758
+ U(E(), (n, z) => ({
759
759
  name: n,
760
- fn: g((ae) => [
761
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
760
+ fn: g((re) => [
761
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: re })
762
762
  ])
763
763
  }))
764
- ]), 1040)) : o(v) == o(fe).AUTOCOMPLETE ? (s(), S(w, x({
764
+ ]), 1040)) : o(v) == o(de).AUTOCOMPLETE ? (s(), S(_, x({
765
765
  key: 18,
766
766
  modelValue: f.value,
767
767
  "onUpdate:modelValue": u[17] || (u[17] = (n) => f.value = n)
768
768
  }, o(e), {
769
- placeholder: o(F)[o(a)].label
770
- }), de({ _: 2 }, [
771
- U(E(), (n, H) => ({
769
+ placeholder: o(V)[o(a)].label
770
+ }), fe({ _: 2 }, [
771
+ U(E(), (n, z) => ({
772
772
  name: n,
773
- fn: g((ae) => [
774
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
773
+ fn: g((re) => [
774
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: re })
775
775
  ])
776
776
  }))
777
- ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).INPUTNUMBER ? (s(), S(M, x({
777
+ ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(de).INPUTNUMBER ? (s(), S(T, x({
778
778
  key: 19,
779
779
  modelValue: f.value,
780
780
  "onUpdate:modelValue": u[18] || (u[18] = (n) => f.value = n),
781
781
  min: 0,
782
782
  max: 1e8,
783
- placeholder: o(F)[o(a)].label
784
- }, o(e)), de({ _: 2 }, [
785
- U(E(), (n, H) => ({
783
+ placeholder: o(V)[o(a)].label
784
+ }, o(e)), fe({ _: 2 }, [
785
+ U(E(), (n, z) => ({
786
786
  name: n,
787
- fn: g((ae) => [
788
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
787
+ fn: g((re) => [
788
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: re })
789
789
  ])
790
790
  }))
791
- ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).MONEY ? (s(), B("div", Ut, [
792
- G(P, x({
791
+ ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(de).MONEY ? (s(), B("div", Rt, [
792
+ G(N, x({
793
793
  modelValue: f.value,
794
794
  "onUpdate:modelValue": u[19] || (u[19] = (n) => f.value = n),
795
- placeholder: o(F)[o(a)].label,
796
- type: o(fe).NUMBER,
795
+ placeholder: o(V)[o(a)].label,
796
+ type: o(de).NUMBER,
797
797
  maxlength: ((X = o(e)) == null ? void 0 : X.max) || 25
798
- }, { ...o(e), type: o(v) }), de({ _: 2 }, [
798
+ }, { ...o(e), type: o(v) }), fe({ _: 2 }, [
799
799
  f.value ? {
800
800
  name: "suffix",
801
801
  fn: g(() => [
802
802
  Q("div", {
803
- title: o(tt)(f.value),
803
+ title: o(lt)(f.value),
804
804
  style: { "font-size": "10px", display: "block", width: "120px", overflow: "hidden", "text-overflow": "ellipsis" }
805
- }, pe(o(tt)(f.value)), 9, Rt)
805
+ }, pe(o(lt)(f.value)), 9, jt)
806
806
  ]),
807
807
  key: "0"
808
808
  } : void 0,
809
- U(E(), (n, H) => ({
809
+ U(E(), (n, z) => ({
810
810
  name: n,
811
- fn: g((ae) => [
812
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
811
+ fn: g((re) => [
812
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: re })
813
813
  ])
814
814
  }))
815
815
  ]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
816
- ])) : (s(), S(P, x({
816
+ ])) : (s(), S(N, x({
817
817
  key: 21,
818
818
  modelValue: f.value,
819
819
  "onUpdate:modelValue": u[20] || (u[20] = (n) => f.value = n),
820
- placeholder: o(F)[o(a)].label,
820
+ placeholder: o(V)[o(a)].label,
821
821
  maxlength: ((oe = o(e)) == null ? void 0 : oe.max) || 25,
822
822
  clearable: !0
823
- }, { ...o(e), type: o(v) }), de({ _: 2 }, [
824
- U(E(), (n, H) => ({
823
+ }, { ...o(e), type: o(v) }), fe({ _: 2 }, [
824
+ U(E(), (n, z) => ({
825
825
  name: n,
826
- fn: g((ae) => [
827
- p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
826
+ fn: g((re) => [
827
+ p(D.$slots, `${t.t}-${o(a)}-${n}`, { data: re })
828
828
  ])
829
829
  }))
830
830
  ]), 1040, ["modelValue", "placeholder", "maxlength"]))
@@ -840,10 +840,10 @@ const Je = /* @__PURE__ */ At(Bt), It = {
840
840
  modelValue: { required: !0 },
841
841
  modelModifiers: {}
842
842
  },
843
- emits: /* @__PURE__ */ Se(["submit", "reset"], ["update:modelValue"]),
844
- setup(m, { emit: f }) {
845
- var se, ce, ie, re;
846
- const t = Oe(m, "modelValue"), e = f, a = ye(null), v = lt("options"), F = {
843
+ emits: /* @__PURE__ */ Oe(["submit", "reset"], ["update:modelValue"]),
844
+ setup(c, { emit: f }) {
845
+ var ae, ce, ie, se;
846
+ const t = xe(c, "modelValue"), e = f, a = ye(null), v = ot("options"), V = {
847
847
  inline: !0,
848
848
  type: "hidden",
849
849
  "scroll-to-error": !0,
@@ -853,7 +853,7 @@ const Je = /* @__PURE__ */ At(Bt), It = {
853
853
  style: {
854
854
  display: "flex",
855
855
  flexWrap: "wrap",
856
- ...(se = He()) == null ? void 0 : se.style
856
+ ...(ae = Ne()) == null ? void 0 : ae.style
857
857
  },
858
858
  // 表单底部属性
859
859
  footer: {
@@ -873,9 +873,9 @@ const Je = /* @__PURE__ */ At(Bt), It = {
873
873
  label: "提交",
874
874
  plain: !0,
875
875
  hidden: !1,
876
- click: (d, D) => {
876
+ click: (d, k) => {
877
877
  a.value && a.value.validate((I, y) => {
878
- I ? e("submit", d, D) : console.log("表单验证不通过!", y);
878
+ I ? e("submit", d, k) : console.log("表单验证不通过!", y);
879
879
  });
880
880
  }
881
881
  },
@@ -888,8 +888,8 @@ const Je = /* @__PURE__ */ At(Bt), It = {
888
888
  click: () => {
889
889
  if (!a.value) return;
890
890
  let d = !0;
891
- e("reset", (D) => {
892
- d = D;
891
+ e("reset", (k) => {
892
+ d = k;
893
893
  }), d && a.value.resetFields();
894
894
  }
895
895
  },
@@ -899,20 +899,20 @@ const Je = /* @__PURE__ */ At(Bt), It = {
899
899
  editable: !1
900
900
  }
901
901
  };
902
- t.value.form = $e(
903
- F,
902
+ t.value.form = Ee(
903
+ V,
904
904
  v == null ? void 0 : v.form,
905
905
  (ce = t.value) == null ? void 0 : ce.form
906
906
  );
907
- const T = {
907
+ const F = {
908
908
  type: "hidden",
909
909
  labelPosition: "right",
910
910
  style: {
911
911
  width: "100%"
912
912
  }
913
913
  };
914
- t.value.formItems = $e(
915
- T,
914
+ t.value.formItems = Ee(
915
+ F,
916
916
  v == null ? void 0 : v.formItems,
917
917
  (ie = t == null ? void 0 : t.value) == null ? void 0 : ie.formItems
918
918
  );
@@ -920,15 +920,15 @@ const Je = /* @__PURE__ */ At(Bt), It = {
920
920
  span: 12,
921
921
  offset: 0
922
922
  };
923
- t.value.form.cols = $e(
923
+ t.value.form.cols = Ee(
924
924
  q,
925
- (re = v == null ? void 0 : v.form) == null ? void 0 : re.cols,
925
+ (se = v == null ? void 0 : v.form) == null ? void 0 : se.cols,
926
926
  t.value.form.cols
927
927
  );
928
928
  const E = (d) => {
929
- let D = [];
929
+ let k = [];
930
930
  if (d.rules)
931
- D = d.rules;
931
+ k = d.rules;
932
932
  else {
933
933
  const y = { ...{
934
934
  required: void 0,
@@ -939,72 +939,72 @@ const Je = /* @__PURE__ */ At(Bt), It = {
939
939
  pattern: void 0,
940
940
  validate: void 0
941
941
  }, ...d };
942
- y.required && D.push({ required: !0, message: `${y.label}不能为空!`, trigger: "blur" }), y.max && y.min && D.push({
943
- validator: (L, O, te) => {
944
- O && d.type == "number" && (O < y.min || O > y.max) ? te(new Error(`${y.label} 必须在 ${y.min} 和 ${y.max} 之间!`)) : O && d.type !== "number" && (O.toString().length < y.min || O.toString().length > y.max) ? te(new Error(`字符长度必须在 ${y.min} 和 ${y.max} 之间!`)) : te();
942
+ y.required && k.push({ required: !0, message: `${y.label}不能为空!`, trigger: "blur" }), y.max && y.min && k.push({
943
+ validator: (L, O, J) => {
944
+ 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();
945
945
  }
946
- }), y.max && !y.min && d.type == "number" && D.push({
947
- validator: (L, O, te) => {
948
- O && O > y.max ? te(new Error(`${y.label}不能大于${y.max}!`)) : te();
946
+ }), y.max && !y.min && d.type == "number" && k.push({
947
+ validator: (L, O, J) => {
948
+ O && O > y.max ? J(new Error(`${y.label}不能大于${y.max}!`)) : J();
949
949
  }
950
- }), y.min && !y.max && d.type == "number" && D.push({
951
- validator: (L, O, te) => {
952
- O && O < y.min ? te(new Error(`${y.label}不能小于${y.min}!`)) : te();
950
+ }), y.min && !y.max && d.type == "number" && k.push({
951
+ validator: (L, O, J) => {
952
+ O && O < y.min ? J(new Error(`${y.label}不能小于${y.min}!`)) : J();
953
953
  }
954
- }), y.type == "email" && D.push({ type: "email", message: "不是一个正确的邮箱地址!" }), y.type == "url" && D.push({ type: "url", message: "不是一个合正确的URL!" }), y.pattern && D.push({ pattern: y == null ? void 0 : y.pattern, message: (y == null ? void 0 : y.message) || "格式不正确!" }), y.validate && D.push({
955
- validator: (L, O, te) => y.validate(L, O, te)
954
+ }), 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({
955
+ validator: (L, O, J) => y.validate(L, O, J)
956
956
  });
957
957
  }
958
- return D;
959
- }, _ = (d, D = !1) => {
960
- var L, O, te, be, k;
961
- const I = D ? 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
+ return k;
959
+ }, w = (d, k = !1) => {
960
+ var L, O, J, $e, M;
961
+ 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) || {};
962
962
  if (((O = t.value.form) == null ? void 0 : O.modalState) === "edit") {
963
- const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (te = I.editor) == null ? void 0 : te.ep : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ep : {};
964
- return { ...y, ...$ };
963
+ 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 : {};
964
+ return { ...y, ...h };
965
965
  }
966
- if (((be = t.value.form) == null ? void 0 : be.modalState) === "add") {
967
- const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (k = I.editor) == null ? void 0 : k.ap : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ap : {};
968
- return { ...y, ...$ };
966
+ if ((($e = t.value.form) == null ? void 0 : $e.modalState) === "add") {
967
+ const h = typeof (I == null ? void 0 : I.editor) == "object" ? (M = I.editor) == null ? void 0 : M.ap : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ap : {};
968
+ return { ...y, ...h };
969
969
  }
970
970
  return y;
971
- }, z = (d) => {
972
- var I, y, L, O, te;
973
- const D = typeof d.editor == "function" ? d.editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d.editor;
974
- return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = D == null ? void 0 : D.ep) == null ? void 0 : L.type) ?? (D == null ? void 0 : D.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((te = D == null ? void 0 : D.ap) == null ? void 0 : te.type) ?? (D == null ? void 0 : D.type) ?? d.type : (D == null ? void 0 : D.type) ?? d.type;
971
+ }, P = (d) => {
972
+ var I, y, L, O, J;
973
+ const k = typeof d.editor == "function" ? d.editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d.editor;
974
+ 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;
975
975
  };
976
- Ne(() => {
976
+ Pe(() => {
977
977
  ne();
978
- }), Ct(() => {
978
+ }), Dt(() => {
979
979
  a.value = null;
980
980
  });
981
981
  const ne = () => {
982
- for (const [d, D] of Object.entries(V.value))
983
- t.value[d].formItem = { ...t.value[d].formItem, ...D.formItem }, t.value[d].formItem.style = { ...t.value[d].formItem.style, ...D.formItem.style };
984
- }, V = xe(() => 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) => {
982
+ for (const [d, k] of Object.entries(D.value))
983
+ t.value[d].formItem = { ...t.value[d].formItem, ...k.formItem }, t.value[d].formItem.style = { ...t.value[d].formItem.style, ...k.formItem.style };
984
+ }, 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) => {
985
985
  var I, y, L;
986
- const D = typeof d[1].editor == "function" ? d[1].editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d[1].editor;
987
- return t.value.form.modalState === "edit" ? ((y = D == null ? void 0 : D.ep) == null ? void 0 : y.editor) !== !1 : t.value.form.modalState === "add" ? ((L = D == null ? void 0 : D.ap) == null ? void 0 : L.editor) !== !1 : !0;
988
- }).map((d) => [d[0], d[1]]))), u = xe(() => 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 = xe(() => {
986
+ const k = typeof d[1].editor == "function" ? d[1].editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d[1].editor;
987
+ 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;
988
+ }).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(() => {
989
989
  const d = /* @__PURE__ */ new Map();
990
- return Object.entries(V.value).forEach(([D, I]) => {
990
+ return Object.entries(D.value).forEach(([k, I]) => {
991
991
  if (I.groupName) {
992
992
  const y = I.groupName;
993
993
  d.has(y) || d.set(y, {
994
994
  groupName: y,
995
995
  items: []
996
- }), d.get(y).items.push({ key: D, item: I });
996
+ }), d.get(y).items.push({ key: k, item: I });
997
997
  }
998
- }), d.forEach((D) => {
999
- D.tabPane = $e(...D.items.map(({ item: I }) => I.tabPane || {}));
998
+ }), d.forEach((k) => {
999
+ k.tabPane = Ee(...k.items.map(({ item: I }) => I.tabPane || {}));
1000
1000
  }), Array.from(d.values());
1001
- }), K = [
1001
+ }), ee = [
1002
1002
  {
1003
1003
  name: "f-submit",
1004
1004
  label: t.value.form.submit.label,
1005
1005
  click: t.value.form.submit.click,
1006
1006
  hidden: t.value.form.submit.hidden,
1007
- info: _e(t.value.form.submit, (d) => !["click"].includes(d)),
1007
+ info: ke(t.value.form.submit, (d) => !["click"].includes(d)),
1008
1008
  sort: t.value.form.submit.sort ?? 1,
1009
1009
  // 使用空值合并运算符
1010
1010
  originalOrder: 0
@@ -1014,70 +1014,70 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1014
1014
  name: "f-reset",
1015
1015
  label: t.value.form.reset.label,
1016
1016
  click: t.value.form.reset.click,
1017
- info: _e(t.value.form.reset, (d) => !["click"].includes(d)),
1017
+ info: ke(t.value.form.reset, (d) => !["click"].includes(d)),
1018
1018
  hidden: t.value.form.reset.hidden,
1019
1019
  sort: t.value.form.reset.sort ?? 2,
1020
1020
  // 使用空值合并运算符
1021
1021
  originalOrder: 1
1022
1022
  // 添加原始顺序标识
1023
1023
  }
1024
- ], ee = xe(() => K.filter((d) => !d.hidden).sort((d, D) => d.sort - D.sort || d.originalOrder - D.originalOrder));
1025
- return (d, D) => {
1026
- const I = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"), te = R("el-button"), be = R("el-form");
1027
- return s(), S(be, x({
1024
+ ], le = Ae(() => ee.filter((d) => !d.hidden).sort((d, k) => d.sort - k.sort || d.originalOrder - k.originalOrder));
1025
+ return (d, k) => {
1026
+ 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");
1027
+ return s(), S($e, x({
1028
1028
  ref_key: "gform",
1029
1029
  ref: a,
1030
1030
  model: t.value,
1031
1031
  style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
1032
- }, o(_e)(t.value.form, (k) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(k)), { class: "g-form-container" }), {
1032
+ }, o(ke)(t.value.form, (M) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(M)), { class: "g-form-container" }), {
1033
1033
  default: g(() => [
1034
1034
  A.value.length > 0 ? p(d.$slots, "default", { key: 0 }, () => {
1035
- var k, $, b;
1035
+ var M, h, $;
1036
1036
  return [
1037
1037
  G(O, x({
1038
1038
  class: "demo-tabs",
1039
1039
  modelValue: A.value[0].groupName,
1040
- "onUpdate:modelValue": D[0] || (D[0] = (c) => A.value[0].groupName = c),
1040
+ "onUpdate:modelValue": k[0] || (k[0] = (m) => A.value[0].groupName = m),
1041
1041
  style: { width: "100%" }
1042
1042
  }, t.value.form.tabs), {
1043
1043
  default: g(() => [
1044
- (s(!0), B(W, null, U(A.value, (c) => (s(), S(L, x({
1045
- key: c.groupName,
1046
- label: c.groupName,
1047
- name: c.groupName,
1044
+ (s(!0), B(Y, null, U(A.value, (m) => (s(), S(L, x({
1045
+ key: m.groupName,
1046
+ label: m.groupName,
1047
+ name: m.groupName,
1048
1048
  style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
1049
1049
  ref_for: !0
1050
- }, c.tabPane), {
1050
+ }, m.tabPane), {
1051
1051
  default: g(() => [
1052
- (s(!0), B(W, null, U(c.items, (i, w) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
1052
+ (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 }, {
1053
1053
  key: i.key,
1054
1054
  style: { width: "100%" }
1055
1055
  }), {
1056
1056
  default: g(() => {
1057
- var M, P;
1057
+ var T, N;
1058
1058
  return [
1059
1059
  G(I, x({
1060
1060
  label: i == null ? void 0 : i.item.label,
1061
1061
  prop: `${i.key}.value`,
1062
1062
  rules: E(i == null ? void 0 : i.item),
1063
1063
  ref_for: !0
1064
- }, { ...(M = t.value) == null ? void 0 : M.formItems, ...(P = i == null ? void 0 : i.item) == null ? void 0 : P.formItem }, { style: { width: "100%" } }), {
1064
+ }, { ...(T = t.value) == null ? void 0 : T.formItems, ...(N = i == null ? void 0 : i.item) == null ? void 0 : N.formItem }, { style: { width: "100%" } }), {
1065
1065
  default: g(() => [
1066
1066
  p(d.$slots, "f-" + i.key, {
1067
1067
  item: i == null ? void 0 : i.item,
1068
1068
  model: t.value
1069
1069
  }, () => [
1070
- G(We, {
1070
+ G(Ge, {
1071
1071
  modelValue: t.value[i.key].value,
1072
1072
  "onUpdate:modelValue": (X) => t.value[i.key].value = X,
1073
- item: _(i),
1073
+ item: w(i),
1074
1074
  ctrlKey: i.key,
1075
- ctrlType: z(i == null ? void 0 : i.item),
1075
+ ctrlType: P(i == null ? void 0 : i.item),
1076
1076
  model: t.value,
1077
1077
  class: "g-ctrl-container",
1078
1078
  t: "f",
1079
1079
  formInfo: u.value
1080
- }, de({ _: 2 }, [
1080
+ }, fe({ _: 2 }, [
1081
1081
  U(d.$slots, (X, oe) => ({
1082
1082
  name: oe,
1083
1083
  fn: g((n) => [
@@ -1103,76 +1103,76 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1103
1103
  ]),
1104
1104
  _: 3
1105
1105
  }, 16, ["modelValue"]),
1106
- (b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
1106
+ ($ = (h = (M = t.value) == null ? void 0 : M.form) == null ? void 0 : h.footer) != null && $.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
1107
1107
  Q("div", {
1108
- style: Fe(t.value.form.footer.style)
1108
+ style: Te(t.value.form.footer.style)
1109
1109
  }, [
1110
1110
  p(d.$slots, "f-footer-left"),
1111
- (s(!0), B(W, null, U(ee.value, (c) => (s(), B(W, null, [
1112
- p(d.$slots, c.name + "-left"),
1113
- p(d.$slots, c.name, {}, () => [
1114
- G(te, x({ ref_for: !0 }, c.info, {
1115
- onClick: st((i) => c.click(u.value, t.value), ["stop"])
1111
+ (s(!0), B(Y, null, U(le.value, (m) => (s(), B(Y, null, [
1112
+ p(d.$slots, m.name + "-left"),
1113
+ p(d.$slots, m.name, {}, () => [
1114
+ G(J, x({ ref_for: !0 }, m.info, {
1115
+ onClick: it((i) => m.click(u.value, t.value), ["stop"])
1116
1116
  }), {
1117
1117
  default: g(() => [
1118
- ge(pe(c == null ? void 0 : c.label), 1)
1118
+ be(pe(m == null ? void 0 : m.label), 1)
1119
1119
  ]),
1120
1120
  _: 2
1121
1121
  }, 1040, ["onClick"])
1122
1122
  ]),
1123
- p(d.$slots, c.name + "-right")
1123
+ p(d.$slots, m.name + "-right")
1124
1124
  ], 64))), 256)),
1125
1125
  p(d.$slots, "f-footer-right")
1126
1126
  ], 4)
1127
1127
  ])
1128
1128
  ];
1129
1129
  }) : p(d.$slots, "default", { key: 1 }, () => {
1130
- var k, $, b;
1130
+ var M, h, $;
1131
1131
  return [
1132
- (s(!0), B(W, null, U(V.value, (c, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...c.col }, {
1132
+ (s(!0), B(Y, null, U(D.value, (m, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...m.col }, {
1133
1133
  key: i,
1134
1134
  style: { width: "100%" }
1135
1135
  }), {
1136
1136
  default: g(() => {
1137
- var w;
1137
+ var _;
1138
1138
  return [
1139
1139
  G(I, x({
1140
- label: c.label,
1140
+ label: m.label,
1141
1141
  prop: `${i}.value`,
1142
- rules: E(c),
1142
+ rules: E(m),
1143
1143
  ref_for: !0
1144
- }, { ...(w = t.value) == null ? void 0 : w.formItems, ...c == null ? void 0 : c.formItem }, { style: { width: "100%" } }), {
1145
- label: g((M) => [
1144
+ }, { ...(_ = t.value) == null ? void 0 : _.formItems, ...m == null ? void 0 : m.formItem }, { style: { width: "100%" } }), {
1145
+ label: g((T) => [
1146
1146
  p(d.$slots, `f-${i}-label`, {
1147
- data: M,
1148
- item: c,
1147
+ data: T,
1148
+ item: m,
1149
1149
  model: t.value
1150
1150
  }, () => [
1151
- ge(pe(c.label), 1)
1151
+ be(pe(m.label), 1)
1152
1152
  ])
1153
1153
  ]),
1154
1154
  default: g(() => [
1155
1155
  p(d.$slots, "f-" + i, {
1156
- item: c,
1156
+ item: m,
1157
1157
  model: t.value
1158
1158
  }, () => [
1159
- G(We, {
1159
+ G(Ge, {
1160
1160
  modelValue: t.value[i].value,
1161
- "onUpdate:modelValue": (M) => t.value[i].value = M,
1162
- item: _(c, !0),
1161
+ "onUpdate:modelValue": (T) => t.value[i].value = T,
1162
+ item: w(m, !0),
1163
1163
  ctrlKey: i,
1164
- ctrlType: z(c),
1164
+ ctrlType: P(m),
1165
1165
  model: t.value,
1166
1166
  class: "g-ctrl-container",
1167
1167
  t: "f",
1168
1168
  formInfo: u.value
1169
- }, de({ _: 2 }, [
1170
- U(d.$slots, (M, P) => ({
1171
- name: P,
1169
+ }, fe({ _: 2 }, [
1170
+ U(d.$slots, (T, N) => ({
1171
+ name: N,
1172
1172
  fn: g((X) => [
1173
- p(d.$slots, P, {
1173
+ p(d.$slots, N, {
1174
1174
  data: X,
1175
- item: c,
1175
+ item: m,
1176
1176
  model: t.value
1177
1177
  })
1178
1178
  ])
@@ -1186,24 +1186,24 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1186
1186
  }),
1187
1187
  _: 2
1188
1188
  }, 1040))), 128)),
1189
- (b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
1189
+ ($ = (h = (M = t.value) == null ? void 0 : M.form) == null ? void 0 : h.footer) != null && $.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
1190
1190
  Q("div", {
1191
- style: Fe(t.value.form.footer.style)
1191
+ style: Te(t.value.form.footer.style)
1192
1192
  }, [
1193
1193
  p(d.$slots, "f-footer-left"),
1194
- (s(!0), B(W, null, U(ee.value, (c) => (s(), B(W, null, [
1195
- p(d.$slots, c.name + "-left"),
1196
- p(d.$slots, c.name, {}, () => [
1197
- G(te, x({ ref_for: !0 }, c.info, {
1198
- onClick: st((i) => c.click(u.value, t.value), ["stop"])
1194
+ (s(!0), B(Y, null, U(le.value, (m) => (s(), B(Y, null, [
1195
+ p(d.$slots, m.name + "-left"),
1196
+ p(d.$slots, m.name, {}, () => [
1197
+ G(J, x({ ref_for: !0 }, m.info, {
1198
+ onClick: it((i) => m.click(u.value, t.value), ["stop"])
1199
1199
  }), {
1200
1200
  default: g(() => [
1201
- ge(pe(c == null ? void 0 : c.label), 1)
1201
+ be(pe(m == null ? void 0 : m.label), 1)
1202
1202
  ]),
1203
1203
  _: 2
1204
1204
  }, 1040, ["onClick"])
1205
1205
  ]),
1206
- p(d.$slots, c.name + "-right")
1206
+ p(d.$slots, m.name + "-right")
1207
1207
  ], 64))), 256)),
1208
1208
  p(d.$slots, "f-footer-right")
1209
1209
  ], 4)
@@ -1215,54 +1215,54 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1215
1215
  }, 16, ["model"]);
1216
1216
  };
1217
1217
  }
1218
- }), it = {
1218
+ }), dt = {
1219
1219
  __name: "g-query-item",
1220
- props: /* @__PURE__ */ Se(["more"], {
1220
+ props: /* @__PURE__ */ Oe(["more"], {
1221
1221
  modelValue: { required: !0 },
1222
1222
  modelModifiers: {},
1223
1223
  info: { required: !0 },
1224
1224
  infoModifiers: {}
1225
1225
  }),
1226
1226
  emits: ["update:modelValue", "update:info"],
1227
- setup(m) {
1228
- const f = Oe(m, "modelValue"), t = m, e = Oe(m, "info"), a = (T) => xe(() => Object.fromEntries(Object.entries(f.value).filter((q) => q[1].search && q[1].search.more === T).map((q) => [q[0], q[1]]))).value, v = (T) => typeof T.search == "function" ? T.search(e.value) : T.search || {}, F = (T) => {
1229
- const q = v(T);
1230
- return (q == null ? void 0 : q.type) || T.type;
1227
+ setup(c) {
1228
+ const f = xe(c, "modelValue"), t = c, e = xe(c, "info"), a = (F) => Ae(() => Object.fromEntries(Object.entries(f.value).filter((q) => q[1].search && q[1].search.more === F).map((q) => [q[0], q[1]]))).value, v = (F) => typeof F.search == "function" ? F.search(e.value) : F.search || {}, V = (F) => {
1229
+ const q = v(F);
1230
+ return (q == null ? void 0 : q.type) || F.type;
1231
1231
  };
1232
- return (T, q) => {
1232
+ return (F, q) => {
1233
1233
  const E = R("el-form-item");
1234
- return s(!0), B(W, null, U(a(t.more), (_, z) => p(T.$slots, `q-${z}`, {
1235
- key: z,
1236
- item: _,
1234
+ return s(!0), B(Y, null, U(a(t.more), (w, P) => p(F.$slots, `q-${P}`, {
1235
+ key: P,
1236
+ item: w,
1237
1237
  model: f.value
1238
1238
  }, () => [
1239
1239
  G(E, x({
1240
- label: _.label,
1240
+ label: w.label,
1241
1241
  ref_for: !0
1242
- }, { ...f.value.queryItems, ...v(_) }), {
1242
+ }, { ...f.value.queryItems, ...v(w) }), {
1243
1243
  label: g(() => [
1244
- p(T.$slots, `q-${z}-label`, {
1245
- item: _,
1244
+ p(F.$slots, `q-${P}-label`, {
1245
+ item: w,
1246
1246
  model: f.value
1247
1247
  })
1248
1248
  ]),
1249
1249
  default: g(() => [
1250
- G(We, {
1251
- modelValue: e.value[z],
1252
- "onUpdate:modelValue": (ne) => e.value[z] = ne,
1253
- item: { ..._ == null ? void 0 : _.editor, ...v(_) },
1254
- ctrlKey: z,
1255
- ctrlType: F(_),
1250
+ G(Ge, {
1251
+ modelValue: e.value[P],
1252
+ "onUpdate:modelValue": (ne) => e.value[P] = ne,
1253
+ item: { ...w == null ? void 0 : w.editor, ...v(w) },
1254
+ ctrlKey: P,
1255
+ ctrlType: V(w),
1256
1256
  model: f.value,
1257
1257
  t: "q",
1258
1258
  formInfo: e.value
1259
- }, de({ _: 2 }, [
1260
- U(Object.keys(T.$slots), (ne) => ({
1259
+ }, fe({ _: 2 }, [
1260
+ U(Object.keys(F.$slots), (ne) => ({
1261
1261
  name: ne,
1262
- fn: g((V) => [
1263
- p(T.$slots, ne, {
1264
- data: V,
1265
- item: _,
1262
+ fn: g((D) => [
1263
+ p(F.$slots, ne, {
1264
+ data: D,
1265
+ item: w,
1266
1266
  model: f.value
1267
1267
  })
1268
1268
  ])
@@ -1274,25 +1274,25 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1274
1274
  ])), 128);
1275
1275
  };
1276
1276
  }
1277
- }, Ae = (m, f) => {
1278
- const t = m.__vccOpts || m;
1277
+ }, Be = (c, f) => {
1278
+ const t = c.__vccOpts || c;
1279
1279
  for (const [e, a] of f)
1280
1280
  t[e] = a;
1281
1281
  return t;
1282
- }, jt = {
1282
+ }, Lt = {
1283
1283
  key: 0,
1284
1284
  class: "outer"
1285
- }, Nt = { class: "inner" }, Lt = {
1285
+ }, Nt = { class: "inner" }, Pt = {
1286
1286
  __name: "g-query",
1287
1287
  props: {
1288
1288
  modelValue: { required: !0 },
1289
1289
  modelModifiers: {}
1290
1290
  },
1291
- emits: /* @__PURE__ */ Se(["query", "reset"], ["update:modelValue"]),
1292
- setup(m, { emit: f }) {
1293
- const t = Oe(m, "modelValue"), e = f, a = lt("options"), v = ye(!1);
1294
- let F = Object.fromEntries(Object.entries(t.value).filter((u) => u[1].search).map(([u, A]) => [u, A.value]));
1295
- const T = ye(F), q = {
1291
+ emits: /* @__PURE__ */ Oe(["query", "reset"], ["update:modelValue"]),
1292
+ setup(c, { emit: f }) {
1293
+ const t = xe(c, "modelValue"), e = f, a = ot("options"), v = ye(!1);
1294
+ let V = Object.fromEntries(Object.entries(t.value).filter((u) => u[1].search).map(([u, A]) => [u, A.value]));
1295
+ const F = ye(V), q = {
1296
1296
  hidden: !1,
1297
1297
  type: "hidden",
1298
1298
  labelWidth: 100,
@@ -1318,7 +1318,7 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1318
1318
  hidden: !1,
1319
1319
  plain: !1,
1320
1320
  click: () => {
1321
- T.value = ye(F), e("reset", T.value);
1321
+ F.value = ye(V), e("reset", F.value);
1322
1322
  }
1323
1323
  },
1324
1324
  query: {
@@ -1326,7 +1326,7 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1326
1326
  type: "primary",
1327
1327
  label: "查询",
1328
1328
  click: () => {
1329
- e("query", T.value), v.value = !1;
1329
+ e("query", F.value), v.value = !1;
1330
1330
  }
1331
1331
  },
1332
1332
  btns: {
@@ -1338,7 +1338,7 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1338
1338
  }
1339
1339
  }
1340
1340
  };
1341
- t.value.query = $e(q, a == null ? void 0 : a.query, t.value.query);
1341
+ t.value.query = Ee(q, a == null ? void 0 : a.query, t.value.query);
1342
1342
  const E = {
1343
1343
  2: {
1344
1344
  title: "更多查询",
@@ -1356,37 +1356,37 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1356
1356
  trigger: "click"
1357
1357
  }
1358
1358
  };
1359
- t.value.query.more.dialog = $e(
1359
+ t.value.query.more.dialog = Ee(
1360
1360
  E[t.value.query.more.mode] || {},
1361
1361
  t.value.query.more.dialog
1362
1362
  );
1363
- const _ = {
1363
+ const w = {
1364
1364
  type: "hidden",
1365
1365
  labelPosition: "right",
1366
1366
  style: {
1367
1367
  width: "280px"
1368
1368
  }
1369
1369
  };
1370
- t.value.queryItems = $e(_, a == null ? void 0 : a.queryItems, t.value.queryItems);
1371
- const z = (u, A) => {
1372
- const K = Object.keys(u.slots).filter((ee) => ee !== "default").reduce((ee, se) => (ee[se] = (ce) => u.slots[se]({
1370
+ t.value.queryItems = Ee(w, a == null ? void 0 : a.queryItems, t.value.queryItems);
1371
+ const P = (u, A) => {
1372
+ const ee = Object.keys(u.slots).filter((le) => le !== "default").reduce((le, ae) => (le[ae] = (ce) => u.slots[ae]({
1373
1373
  model: t.value
1374
1374
  // 传递当前模型数据
1375
- }), ee), {});
1376
- return De(it, {
1375
+ }), le), {});
1376
+ return Ve(dt, {
1377
1377
  modelValue: t.value,
1378
- "onUpdate:modelValue": (ee) => t.value = ee,
1379
- info: T.value,
1380
- "onUpdate:info": (ee) => T.value = ee,
1378
+ "onUpdate:modelValue": (le) => t.value = le,
1379
+ info: F.value,
1380
+ "onUpdate:info": (le) => F.value = le,
1381
1381
  more: A
1382
- }, K);
1383
- }, ne = mt(), V = () => {
1384
- var K, ee, se, ce, ie, re, d, D, I;
1382
+ }, ee);
1383
+ }, ne = pt(), D = () => {
1384
+ var ee, le, ae, ce, ie, se, d, k, I;
1385
1385
  const u = [
1386
1386
  {
1387
1387
  key: "query",
1388
- hidden: (se = (ee = (K = t.value) == null ? void 0 : K.query) == null ? void 0 : ee.query) == null ? void 0 : se.hidden,
1389
- component: he,
1388
+ hidden: (ae = (le = (ee = t.value) == null ? void 0 : ee.query) == null ? void 0 : le.query) == null ? void 0 : ae.hidden,
1389
+ component: ge,
1390
1390
  props: {
1391
1391
  ...t.value.query.query,
1392
1392
  onClick: t.value.query.query.click
@@ -1396,8 +1396,8 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1396
1396
  },
1397
1397
  {
1398
1398
  key: "reset",
1399
- hidden: (re = (ie = (ce = t.value) == null ? void 0 : ce.query) == null ? void 0 : ie.reset) == null ? void 0 : re.hidden,
1400
- component: he,
1399
+ hidden: (se = (ie = (ce = t.value) == null ? void 0 : ce.query) == null ? void 0 : ie.reset) == null ? void 0 : se.hidden,
1400
+ component: ge,
1401
1401
  props: {
1402
1402
  ...t.value.query.reset,
1403
1403
  onClick: t.value.query.reset.click
@@ -1407,62 +1407,62 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1407
1407
  },
1408
1408
  {
1409
1409
  key: "more",
1410
- hidden: (I = (D = (d = t.value) == null ? void 0 : d.query) == null ? void 0 : D.more) == null ? void 0 : I.hidden,
1411
- component: t.value.query.more.mode === 3 ? Xe : he,
1410
+ hidden: (I = (k = (d = t.value) == null ? void 0 : d.query) == null ? void 0 : k.more) == null ? void 0 : I.hidden,
1411
+ component: t.value.query.more.mode === 3 ? Je : ge,
1412
1412
  props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
1413
1413
  ...t.value.query.more,
1414
1414
  onClick: t.value.query.more.click
1415
1415
  },
1416
1416
  label: t.value.query.more.label,
1417
1417
  sort: t.value.query.more.sort || 0,
1418
- content: t.value.query.more.mode === 3 ? () => De(Pe, {
1418
+ content: t.value.query.more.mode === 3 ? () => Ve(We, {
1419
1419
  class: "query-form",
1420
- ..._e(t.value.query, (y) => !["query", "more", "reset"].includes(y))
1421
- }, () => z({ slots: ne }, !0)) : null
1420
+ ...ke(t.value.query, (y) => !["query", "more", "reset"].includes(y))
1421
+ }, () => P({ slots: ne }, !0)) : null
1422
1422
  }
1423
1423
  ];
1424
- return u.sort((y, L) => y.sort - L.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Xe ? De(Xe, y.props, {
1425
- reference: () => De(he, t.value.query.more, () => y.label),
1424
+ 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, {
1425
+ reference: () => Ve(ge, t.value.query.more, () => y.label),
1426
1426
  default: y.content
1427
- }) : (y.props.slot = "query-" + y.key, y.label ? De(y.component, y.props, () => y.label) : De(y.component, y.props)));
1427
+ }) : (y.props.slot = "query-" + y.key, y.label ? Ve(y.component, y.props, () => y.label) : Ve(y.component, y.props)));
1428
1428
  };
1429
1429
  return (u, A) => {
1430
- var se, ce, ie, re, d, D, I, y, L, O, te, be, k, $, b, c, i;
1431
- const K = R("el-form-item"), ee = R("el-drawer");
1430
+ var ae, ce, ie, se, d, k, I, y, L, O, J, $e, M, h, $, m, i;
1431
+ const ee = R("el-form-item"), le = R("el-drawer");
1432
1432
  return s(), B("div", {
1433
1433
  class: "g-query-container",
1434
- style: Fe((ce = (se = t.value.query) == null ? void 0 : se.container) == null ? void 0 : ce.style)
1434
+ style: Te((ce = (ae = t.value.query) == null ? void 0 : ae.container) == null ? void 0 : ce.style)
1435
1435
  }, [
1436
- G(o(Pe), je(Ze(o(_e)(t.value.query, (w) => !["query", "more", "reset", "btns"].includes(w)))), {
1436
+ G(o(We), Le(Ke(o(ke)(t.value.query, (_) => !["query", "more", "reset", "btns"].includes(_)))), {
1437
1437
  default: g(() => {
1438
- var w, M;
1438
+ var _, T;
1439
1439
  return [
1440
- (s(), S(qe(z({ slots: u.$slots }, void 0)))),
1441
- ((M = (w = t.value.query) == null ? void 0 : w.container) == null ? void 0 : M.inline) === !0 ? (s(), S(K, { key: 0 }, {
1440
+ (s(), S(Se(P({ slots: u.$slots }, void 0)))),
1441
+ ((T = (_ = t.value.query) == null ? void 0 : _.container) == null ? void 0 : T.inline) === !0 ? (s(), S(ee, { key: 0 }, {
1442
1442
  default: g(() => {
1443
- var P, X, oe, n, H;
1443
+ var N, X, oe, n, z;
1444
1444
  return [
1445
1445
  Q("div", {
1446
- style: Fe((X = (P = t.value.query) == null ? void 0 : P.btns) == null ? void 0 : X.style)
1446
+ style: Te((X = (N = t.value.query) == null ? void 0 : N.btns) == null ? void 0 : X.style)
1447
1447
  }, [
1448
- t.value.query.group ? (s(), S(o(ze), { key: 0 }, {
1448
+ t.value.query.group ? (s(), S(o(He), { key: 0 }, {
1449
1449
  default: g(() => [
1450
- (s(!0), B(W, null, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
1451
- (s(), S(qe(ae)))
1450
+ (s(!0), B(Y, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1451
+ (s(), S(Se(re)))
1452
1452
  ], !0)), 256)),
1453
1453
  p(u.$slots, "q-btns", {}, void 0, !0)
1454
1454
  ]),
1455
1455
  _: 3
1456
- })) : (s(), B(W, { key: 1 }, [
1457
- (H = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && H.group ? (s(), S(o(ze), { key: 0 }, {
1456
+ })) : (s(), B(Y, { key: 1 }, [
1457
+ (z = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && z.group ? (s(), S(o(He), { key: 0 }, {
1458
1458
  default: g(() => [
1459
- (s(!0), B(W, null, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
1460
- (s(), S(qe(ae)))
1459
+ (s(!0), B(Y, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1460
+ (s(), S(Se(re)))
1461
1461
  ], !0)), 256))
1462
1462
  ]),
1463
1463
  _: 3
1464
- })) : (s(!0), B(W, { key: 1 }, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
1465
- (s(), S(qe(ae)))
1464
+ })) : (s(!0), B(Y, { key: 1 }, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1465
+ (s(), S(Se(re)))
1466
1466
  ], !0)), 256)),
1467
1467
  p(u.$slots, "q-btns", {}, void 0, !0)
1468
1468
  ], 64))
@@ -1475,48 +1475,48 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1475
1475
  }),
1476
1476
  _: 3
1477
1477
  }, 16),
1478
- ((d = (re = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : re.container) == null ? void 0 : d.inline) === !1 ? (s(), B("div", {
1478
+ ((d = (se = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : se.container) == null ? void 0 : d.inline) === !1 ? (s(), B("div", {
1479
1479
  key: 0,
1480
- style: Fe((I = (D = t.value.query) == null ? void 0 : D.btns) == null ? void 0 : I.style)
1480
+ style: Te((I = (k = t.value.query) == null ? void 0 : k.btns) == null ? void 0 : I.style)
1481
1481
  }, [
1482
- t.value.query.group ? (s(), S(o(ze), { key: 0 }, {
1482
+ t.value.query.group ? (s(), S(o(He), { key: 0 }, {
1483
1483
  default: g(() => [
1484
- (s(!0), B(W, null, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
1485
- (s(), S(qe(w)))
1484
+ (s(!0), B(Y, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1485
+ (s(), S(Se(_)))
1486
1486
  ], !0)), 256)),
1487
1487
  p(u.$slots, "q-btns", {}, void 0, !0)
1488
1488
  ]),
1489
1489
  _: 3
1490
- })) : (s(), B(W, { key: 1 }, [
1491
- (L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (s(), S(o(ze), { key: 0 }, {
1490
+ })) : (s(), B(Y, { key: 1 }, [
1491
+ (L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (s(), S(o(He), { key: 0 }, {
1492
1492
  default: g(() => [
1493
- (s(!0), B(W, null, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
1494
- (s(), S(qe(w)))
1493
+ (s(!0), B(Y, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1494
+ (s(), S(Se(_)))
1495
1495
  ], !0)), 256))
1496
1496
  ]),
1497
1497
  _: 3
1498
- })) : (s(!0), B(W, { key: 1 }, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
1499
- (s(), S(qe(w)))
1498
+ })) : (s(!0), B(Y, { key: 1 }, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1499
+ (s(), S(Se(_)))
1500
1500
  ], !0)), 256)),
1501
1501
  p(u.$slots, "q-btns", {}, void 0, !0)
1502
1502
  ], 64))
1503
1503
  ], 4)) : ve("", !0),
1504
- G(Dt, {
1504
+ G(Vt, {
1505
1505
  duration: 300,
1506
1506
  name: "nested"
1507
1507
  }, {
1508
1508
  default: g(() => {
1509
- var w, M, P;
1509
+ var _, T, N;
1510
1510
  return [
1511
- v.value && !((P = (M = (w = t.value) == null ? void 0 : w.query) == null ? void 0 : M.more) != null && P.hidden) && t.value.query.more.mode == 1 ? (s(), B("div", jt, [
1511
+ 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, [
1512
1512
  Q("div", Nt, [
1513
- t.value.query.more.mode == 1 ? pt((s(), S(o(Pe), je(x({ key: 0 }, o(_e)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
1513
+ t.value.query.more.mode == 1 ? vt((s(), S(o(We), Le(x({ key: 0 }, o(ke)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
1514
1514
  default: g(() => [
1515
- (s(), S(qe(z({ slots: u.$slots }, !0))))
1515
+ (s(), S(Se(P({ slots: u.$slots }, !0))))
1516
1516
  ]),
1517
1517
  _: 1
1518
1518
  }, 16)), [
1519
- [vt, v.value]
1519
+ [yt, v.value]
1520
1520
  ]) : ve("", !0)
1521
1521
  ])
1522
1522
  ])) : ve("", !0)
@@ -1524,27 +1524,27 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1524
1524
  }),
1525
1525
  _: 1
1526
1526
  }),
1527
- v.value && !((be = (te = (O = t.value) == null ? void 0 : O.query) == null ? void 0 : te.more) != null && be.hidden) && t.value.query.more.mode == 2 ? (s(), S(ee, x({
1527
+ v.value && !(($e = (J = (O = t.value) == null ? void 0 : O.query) == null ? void 0 : J.more) != null && $e.hidden) && t.value.query.more.mode == 2 ? (s(), S(le, x({
1528
1528
  key: 1,
1529
1529
  modelValue: v.value,
1530
- "onUpdate:modelValue": A[4] || (A[4] = (w) => v.value = w),
1530
+ "onUpdate:modelValue": A[4] || (A[4] = (_) => v.value = _),
1531
1531
  title: "更多查询",
1532
1532
  "show-close": !1
1533
- }, t.value.query.more.dialog), de({
1533
+ }, t.value.query.more.dialog), fe({
1534
1534
  default: g(() => [
1535
- G(o(Pe), x(o(_e)(t.value.query, (w) => !["query", "more", "reset"].includes(w)), { style: { width: "98%" } }), {
1535
+ G(o(We), x(o(ke)(t.value.query, (_) => !["query", "more", "reset"].includes(_)), { style: { width: "98%" } }), {
1536
1536
  default: g(() => [
1537
- G(it, {
1537
+ G(dt, {
1538
1538
  modelValue: t.value,
1539
- "onUpdate:modelValue": A[0] || (A[0] = (w) => t.value = w),
1540
- info: T.value,
1541
- "onUpdate:info": A[1] || (A[1] = (w) => T.value = w),
1539
+ "onUpdate:modelValue": A[0] || (A[0] = (_) => t.value = _),
1540
+ info: F.value,
1541
+ "onUpdate:info": A[1] || (A[1] = (_) => F.value = _),
1542
1542
  more: !0
1543
- }, de({ _: 2 }, [
1544
- U(u.$slots, (w, M, P) => ({
1545
- name: M,
1543
+ }, fe({ _: 2 }, [
1544
+ U(u.$slots, (_, T, N) => ({
1545
+ name: T,
1546
1546
  fn: g((X) => [
1547
- p(u.$slots, M, { model: t.value }, void 0, !0)
1547
+ p(u.$slots, T, { model: t.value }, void 0, !0)
1548
1548
  ])
1549
1549
  }))
1550
1550
  ]), 1032, ["modelValue", "info"])
@@ -1554,23 +1554,23 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1554
1554
  ]),
1555
1555
  _: 2
1556
1556
  }, [
1557
- (i = (c = (b = ($ = (k = t.value) == null ? void 0 : k.query) == null ? void 0 : $.more) == null ? void 0 : b.dialog) == null ? void 0 : c.footer) != null && i.hidden ? void 0 : {
1557
+ (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 : {
1558
1558
  name: "footer",
1559
1559
  fn: g(() => [
1560
- Q("div", je(Ze(t.value.query.more.dialog.footer)), [
1561
- G(o(he), x(t.value.query.query, {
1562
- onClick: A[2] || (A[2] = (w) => t.value.query.query.click())
1560
+ Q("div", Le(Ke(t.value.query.more.dialog.footer)), [
1561
+ G(o(ge), x(t.value.query.query, {
1562
+ onClick: A[2] || (A[2] = (_) => t.value.query.query.click())
1563
1563
  }), {
1564
1564
  default: g(() => [
1565
- ge(pe(t.value.query.query.label), 1)
1565
+ be(pe(t.value.query.query.label), 1)
1566
1566
  ]),
1567
1567
  _: 1
1568
1568
  }, 16),
1569
- G(o(he), x(t.value.query.reset, {
1570
- onClick: A[3] || (A[3] = (w) => t.value.query.reset.click())
1569
+ G(o(ge), x(t.value.query.reset, {
1570
+ onClick: A[3] || (A[3] = (_) => t.value.query.reset.click())
1571
1571
  }), {
1572
1572
  default: g(() => [
1573
- ge(pe(t.value.query.reset.label), 1)
1573
+ be(pe(t.value.query.reset.label), 1)
1574
1574
  ]),
1575
1575
  _: 1
1576
1576
  }, 16)
@@ -1582,66 +1582,66 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1582
1582
  ], 4);
1583
1583
  };
1584
1584
  }
1585
- }, Pt = /* @__PURE__ */ Ae(Lt, [["__scopeId", "data-v-561bb961"]]), zt = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Ht = { style: { padding: "10px", "box-sizing": "border-box" } }, Yt = { style: { margin: "10px" } }, Wt = {
1585
+ }, 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 = {
1586
1586
  style: { display: "flex", "flex-wrap": "wrap" },
1587
1587
  id: "excelSortEl"
1588
- }, Gt = ["textContent"], Qt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Xt = {
1588
+ }, Qt = ["textContent"], Xt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Jt = {
1589
1589
  __name: "check-excel-item",
1590
1590
  props: {
1591
1591
  items: Array,
1592
1592
  commitText: String
1593
1593
  },
1594
1594
  emits: ["excel"],
1595
- setup(m, { emit: f }) {
1596
- const t = m, e = f, a = ye(t.items), v = () => {
1595
+ setup(c, { emit: f }) {
1596
+ const t = c, e = f, a = ye(t.items), v = () => {
1597
1597
  a.value.forEach((q) => {
1598
1598
  q.value = !0;
1599
1599
  });
1600
- }, F = () => {
1600
+ }, V = () => {
1601
1601
  a.value.forEach((q) => {
1602
1602
  q.value = !1;
1603
1603
  });
1604
- }, T = () => {
1604
+ }, F = () => {
1605
1605
  e("excel", a.value, (q, E = "excel.xls") => {
1606
1606
  if (!q) {
1607
1607
  console.error("下载链接无效");
1608
1608
  return;
1609
1609
  }
1610
1610
  try {
1611
- const _ = document.createElement("a");
1612
- _.href = q, _.download = E, _.style.display = "none", document.body.appendChild(_), _.click(), document.body.removeChild(_);
1613
- } catch (_) {
1614
- console.error("下载文件时出现错误:", _);
1611
+ const w = document.createElement("a");
1612
+ w.href = q, w.download = E, w.style.display = "none", document.body.appendChild(w), w.click(), document.body.removeChild(w);
1613
+ } catch (w) {
1614
+ console.error("下载文件时出现错误:", w);
1615
1615
  }
1616
1616
  });
1617
1617
  };
1618
- return Ne(() => {
1619
- const q = new ht(document.getElementById("excelSortEl"), {
1618
+ return Pe(() => {
1619
+ const q = new gt(document.getElementById("excelSortEl"), {
1620
1620
  animation: 150,
1621
1621
  onEnd: () => {
1622
- let _ = q.toArray();
1623
- console.log(_);
1622
+ let w = q.toArray();
1623
+ console.log(w);
1624
1624
  }
1625
1625
  }), E = q;
1626
- Vt(() => {
1626
+ Ft(() => {
1627
1627
  E && E.destroy();
1628
1628
  });
1629
1629
  }), (q, E) => {
1630
- const _ = R("el-divider"), z = R("el-alert"), ne = R("el-checkbox"), V = R("el-button");
1631
- return s(), B("div", zt, [
1630
+ const w = R("el-divider"), P = R("el-alert"), ne = R("el-checkbox"), D = R("el-button");
1631
+ return s(), B("div", Wt, [
1632
1632
  Q("div", Ht, [
1633
1633
  Q("div", Yt, [
1634
1634
  Q("a", {
1635
1635
  onClick: v,
1636
1636
  style: { cursor: "pointer" }
1637
1637
  }, "全选"),
1638
- G(_, { direction: "vertical" }),
1638
+ G(w, { direction: "vertical" }),
1639
1639
  Q("a", {
1640
- onClick: F,
1640
+ onClick: V,
1641
1641
  style: { cursor: "pointer" }
1642
1642
  }, "全不选")
1643
1643
  ]),
1644
- G(z, {
1644
+ G(P, {
1645
1645
  title: "拖动列标题可以改变表格列的生成顺序 !",
1646
1646
  type: "warning",
1647
1647
  "show-icon": "",
@@ -1649,8 +1649,8 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1649
1649
  style: { "margin-bottom": "10px" }
1650
1650
  }),
1651
1651
  E[0] || (E[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
1652
- Q("div", Wt, [
1653
- (s(!0), B(W, null, U(a.value, (u) => (s(), S(ne, {
1652
+ Q("div", Gt, [
1653
+ (s(!0), B(Y, null, U(a.value, (u) => (s(), S(ne, {
1654
1654
  class: "check-box-hover",
1655
1655
  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" },
1656
1656
  "data-id": u.key,
@@ -1663,20 +1663,20 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1663
1663
  Q("span", {
1664
1664
  textContent: pe(u.label),
1665
1665
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
1666
- }, null, 8, Gt)
1666
+ }, null, 8, Qt)
1667
1667
  ]),
1668
1668
  _: 2
1669
1669
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
1670
1670
  ])
1671
1671
  ]),
1672
- Q("div", Qt, [
1673
- G(V, {
1672
+ Q("div", Xt, [
1673
+ G(D, {
1674
1674
  type: "primary",
1675
- onClick: T,
1675
+ onClick: F,
1676
1676
  disabled: a.value.filter((u) => u.value).length < 1
1677
1677
  }, {
1678
1678
  default: g(() => [
1679
- ge(pe(t.commitText), 1)
1679
+ be(pe(t.commitText), 1)
1680
1680
  ]),
1681
1681
  _: 1
1682
1682
  }, 8, ["disabled"])
@@ -1684,46 +1684,46 @@ const Je = /* @__PURE__ */ At(Bt), It = {
1684
1684
  ]);
1685
1685
  };
1686
1686
  }
1687
- }, Jt = /* @__PURE__ */ Ae(Xt, [["__scopeId", "data-v-51dfb7ef"]]), Ve = new St("gyc");
1688
- Ve.version(1).stores({
1687
+ }, Zt = /* @__PURE__ */ Be(Jt, [["__scopeId", "data-v-51dfb7ef"]]), Fe = new Ot("gyc");
1688
+ Fe.version(1).stores({
1689
1689
  tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
1690
1690
  tableList: "++id,name"
1691
1691
  });
1692
- async function Re(m, f, t, e = {}) {
1693
- if (await Ve.tableInfo.where({ user: m, page: f, key: t }).count() > 0) {
1694
- let v = await Ve.tableInfo.where({ user: m, page: f, key: t }).first();
1695
- return await Ve.tableInfo.put({ ...v, ...e }), "update success";
1692
+ async function je(c, f, t, e = {}) {
1693
+ if (await Fe.tableInfo.where({ user: c, page: f, key: t }).count() > 0) {
1694
+ let v = await Fe.tableInfo.where({ user: c, page: f, key: t }).first();
1695
+ return await Fe.tableInfo.put({ ...v, ...e }), "update success";
1696
1696
  } else {
1697
1697
  let v = { showCol: !0, width: "auto", sort: 0, ...e };
1698
- return await Ve.tableInfo.add({ user: m, page: f, key: t, ...v }), "add success";
1698
+ return await Fe.tableInfo.add({ user: c, page: f, key: t, ...v }), "add success";
1699
1699
  }
1700
1700
  }
1701
- async function Zt(m, f) {
1702
- return await Ve.tableInfo.where({ user: m, page: f }).toArray();
1701
+ async function Kt(c, f) {
1702
+ return await Fe.tableInfo.where({ user: c, page: f }).toArray();
1703
1703
  }
1704
- async function Kt(m, f) {
1704
+ async function el(c, f) {
1705
1705
  try {
1706
- const t = await Ve.tableInfo.where({ user: m, page: f }).delete();
1706
+ const t = await Fe.tableInfo.where({ user: c, page: f }).delete();
1707
1707
  return console.log("删除了" + t + "条数据"), t;
1708
1708
  } catch (t) {
1709
1709
  throw console.error("删除表格项设置信息时出错:", t), t;
1710
1710
  }
1711
1711
  }
1712
- async function el(m) {
1713
- return await Ve.tableList.where({ name: m }).first();
1712
+ async function tl(c) {
1713
+ return await Fe.tableList.where({ name: c }).first();
1714
1714
  }
1715
- async function tl(m) {
1716
- return typeof m == "string" && (m = { name: m }), await Ve.tableList.add(m), "add success";
1715
+ async function ll(c) {
1716
+ return typeof c == "string" && (c = { name: c }), await Fe.tableList.add(c), "add success";
1717
1717
  }
1718
- const ll = {
1718
+ const ol = {
1719
1719
  style: { margin: "10px" },
1720
1720
  class: "allcheck"
1721
- }, ol = {
1721
+ }, rl = {
1722
1722
  id: "cols",
1723
1723
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
1724
- }, rl = ["textContent"], al = {
1724
+ }, al = ["textContent"], ul = {
1725
1725
  __name: "columns-setting",
1726
- props: /* @__PURE__ */ Se({
1726
+ props: /* @__PURE__ */ Oe({
1727
1727
  name: {
1728
1728
  type: String,
1729
1729
  required: !0
@@ -1733,14 +1733,14 @@ const ll = {
1733
1733
  modelModifiers: {}
1734
1734
  }),
1735
1735
  emits: ["update:modelValue"],
1736
- setup(m) {
1737
- const f = m, t = ye([]), e = Oe(m, "modelValue"), a = async (E, _) => {
1738
- E ? e.value[_].showCol = !0 : e.value[_].showCol = !1;
1736
+ setup(c) {
1737
+ const f = c, t = ye([]), e = xe(c, "modelValue"), a = async (E, w) => {
1738
+ E ? e.value[w].showCol = !0 : e.value[w].showCol = !1;
1739
1739
  try {
1740
- const z = await Re(e.value.table.user, f.name, _, { showCol: E });
1741
- console.log(z);
1742
- } catch (z) {
1743
- console.error("列显示状态保存信息时出错:", z), we({
1740
+ const P = await je(e.value.table.user, f.name, w, { showCol: E });
1741
+ console.log(P);
1742
+ } catch (P) {
1743
+ console.error("列显示状态保存信息时出错:", P), _e({
1744
1744
  type: "error",
1745
1745
  message: "列显示状态保存信息失败!"
1746
1746
  });
@@ -1748,20 +1748,20 @@ const ll = {
1748
1748
  }, v = () => {
1749
1749
  const E = document.getElementById("cols");
1750
1750
  if (E) {
1751
- let _ = ht.create(E, {
1751
+ let w = gt.create(E, {
1752
1752
  animation: 150,
1753
1753
  filter: ".filtered",
1754
1754
  //
1755
1755
  sort: !0,
1756
1756
  onEnd: () => {
1757
- _.toArray().forEach(async (ne, V) => {
1758
- e.value[ne].sort = V;
1757
+ w.toArray().forEach(async (ne, D) => {
1758
+ e.value[ne].sort = D;
1759
1759
  let u = e.value[ne].width || "auto";
1760
1760
  try {
1761
- const A = await Re(e.value.table.user, f.name, ne, { sort: V, width: u });
1761
+ const A = await je(e.value.table.user, f.name, ne, { sort: D, width: u });
1762
1762
  console.log(A);
1763
1763
  } catch (A) {
1764
- console.error("列排序和宽度保存信息时出错:", A), we({
1764
+ console.error("列排序和宽度保存信息时出错:", A), _e({
1765
1765
  type: "error",
1766
1766
  message: "列排序和宽度保存信息失败!"
1767
1767
  });
@@ -1770,74 +1770,74 @@ const ll = {
1770
1770
  }
1771
1771
  });
1772
1772
  }
1773
- }, F = async () => {
1773
+ }, V = async () => {
1774
1774
  try {
1775
1775
  for (const E of t.value) {
1776
1776
  E.showCol = !0, e.value[E.value].showCol = !0;
1777
- const _ = await Re(e.value.table.user, f.name, E.value, {
1777
+ const w = await je(e.value.table.user, f.name, E.value, {
1778
1778
  showCol: !0,
1779
1779
  width: E.width,
1780
1780
  sort: E.sort
1781
1781
  });
1782
- console.log(_);
1782
+ console.log(w);
1783
1783
  }
1784
1784
  } catch (E) {
1785
- console.error("全选列保存信息时出错:", E), we({
1785
+ console.error("全选列保存信息时出错:", E), _e({
1786
1786
  type: "error",
1787
1787
  message: "全选列保存信息失败!"
1788
1788
  });
1789
1789
  }
1790
- }, T = async () => {
1790
+ }, F = async () => {
1791
1791
  try {
1792
- const E = t.value.filter((_) => !_.alwaysShow);
1793
- for (const _ of E) {
1794
- _.showCol = !1, e.value[_.value].showCol = !1;
1795
- const z = await Re(e.value.table.user, f.name, _.value, {
1792
+ const E = t.value.filter((w) => !w.alwaysShow);
1793
+ for (const w of E) {
1794
+ w.showCol = !1, e.value[w.value].showCol = !1;
1795
+ const P = await je(e.value.table.user, f.name, w.value, {
1796
1796
  showCol: !1,
1797
- width: _.width,
1798
- sort: _.sort
1797
+ width: w.width,
1798
+ sort: w.sort
1799
1799
  });
1800
- console.log(z);
1800
+ console.log(P);
1801
1801
  }
1802
1802
  } catch (E) {
1803
- console.error("清除列保存信息时出错:", E), we({
1803
+ console.error("清除列保存信息时出错:", E), _e({
1804
1804
  type: "error",
1805
1805
  message: "清除列保存信息失败!"
1806
1806
  });
1807
1807
  }
1808
1808
  }, q = () => {
1809
- ft.confirm("确定要复位吗?", "提示", {
1809
+ ct.confirm("确定要复位吗?", "提示", {
1810
1810
  confirmButtonText: "确定",
1811
1811
  cancelButtonText: "取消",
1812
1812
  type: "warning"
1813
1813
  }).then(() => {
1814
- Kt(e.value.table.user, f.name).then((E) => {
1814
+ el(e.value.table.user, f.name).then((E) => {
1815
1815
  console.log(E), window.location.reload();
1816
1816
  }).catch((E) => {
1817
- console.error("复位操作出错:", E), we({
1817
+ console.error("复位操作出错:", E), _e({
1818
1818
  type: "info",
1819
1819
  message: "复位失败!"
1820
1820
  });
1821
1821
  });
1822
1822
  });
1823
1823
  };
1824
- return Ne(async () => {
1825
- t.value = Object.entries(e.value).filter(([, E]) => E.visible !== !1).filter(([, E]) => E.type != "hidden").map(([E, _]) => ({
1826
- label: _.label,
1824
+ return Pe(async () => {
1825
+ t.value = Object.entries(e.value).filter(([, E]) => E.visible !== !1).filter(([, E]) => E.type != "hidden").map(([E, w]) => ({
1826
+ label: w.label,
1827
1827
  value: E,
1828
- alwaysShow: _.alwaysShow,
1829
- showCol: _.showCol !== !1,
1830
- sort: _.sort || 0,
1831
- width: _.width || "auto"
1832
- })).sort((E, _) => E.sort - _.sort), v();
1833
- }), (E, _) => {
1834
- const z = R("el-divider"), ne = R("el-alert"), V = R("el-checkbox");
1828
+ alwaysShow: w.alwaysShow,
1829
+ showCol: w.showCol !== !1,
1830
+ sort: w.sort || 0,
1831
+ width: w.width || "auto"
1832
+ })).sort((E, w) => E.sort - w.sort), v();
1833
+ }), (E, w) => {
1834
+ const P = R("el-divider"), ne = R("el-alert"), D = R("el-checkbox");
1835
1835
  return s(), B("div", null, [
1836
- Q("div", ll, [
1837
- Q("a", { onClick: F }, "全选"),
1838
- G(z, { direction: "vertical" }),
1839
- Q("a", { onClick: T }, "全不选"),
1840
- G(z, { direction: "vertical" }),
1836
+ Q("div", ol, [
1837
+ Q("a", { onClick: V }, "全选"),
1838
+ G(P, { direction: "vertical" }),
1839
+ Q("a", { onClick: F }, "全不选"),
1840
+ G(P, { direction: "vertical" }),
1841
1841
  Q("a", { onClick: q }, "复位")
1842
1842
  ]),
1843
1843
  G(ne, {
@@ -1848,12 +1848,12 @@ const ll = {
1848
1848
  style: { "margin-bottom": "10px" }
1849
1849
  }),
1850
1850
  Q("div", null, [
1851
- Q("div", ol, [
1852
- (s(!0), B(W, null, U(t.value, (u) => (s(), S(V, {
1851
+ Q("div", rl, [
1852
+ (s(!0), B(Y, null, U(t.value, (u) => (s(), S(D, {
1853
1853
  modelValue: u.showCol,
1854
1854
  "onUpdate:modelValue": (A) => u.showCol = A,
1855
1855
  "data-id": u.value,
1856
- class: yt(["check-box-hover", u.value == "control" ? "filtered" : ""]),
1856
+ class: ht(["check-box-hover", u.value == "control" ? "filtered" : ""]),
1857
1857
  onChange: (A) => a(A, u.value),
1858
1858
  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" },
1859
1859
  value: u.value,
@@ -1865,7 +1865,7 @@ const ll = {
1865
1865
  Q("span", {
1866
1866
  textContent: pe(u.label),
1867
1867
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
1868
- }, null, 8, rl)
1868
+ }, null, 8, al)
1869
1869
  ]),
1870
1870
  _: 2
1871
1871
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -1874,28 +1874,29 @@ const ll = {
1874
1874
  ]);
1875
1875
  };
1876
1876
  }
1877
- }, ul = /* @__PURE__ */ Ae(al, [["__scopeId", "data-v-c423ede0"]]), nl = { class: "g-table-container" }, sl = {
1877
+ }, nl = /* @__PURE__ */ Be(ul, [["__scopeId", "data-v-c423ede0"]]), sl = { class: "g-table-container" }, il = {
1878
1878
  key: 0,
1879
1879
  class: "table-query-container"
1880
- }, il = { class: "table-container" }, dl = ["src"], fl = ["innerHTML"], cl = { key: 0 }, ml = { style: { display: "flex", "margin-top": "-2px" } }, pl = { style: { display: "flex", flex: "1" } }, vl = {
1880
+ }, dl = { class: "table-container" }, fl = ["src"], cl = ["innerHTML"], ml = { key: 0 }, pl = { style: { display: "flex", "margin-top": "-2px" } }, vl = { style: { display: "flex", flex: "1" } }, yl = {
1881
1881
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
1882
1882
  id: "table-form"
1883
- }, yl = { key: 1 }, hl = { style: { display: "flex" } }, gl = { style: { display: "flex", flex: "1" } }, bl = /* @__PURE__ */ Object.assign({
1883
+ }, hl = { key: 1 }, gl = { style: { display: "flex" } }, bl = { style: { display: "flex", flex: "1" } }, $l = /* @__PURE__ */ Object.assign({
1884
1884
  name: "g-table",
1885
1885
  inheritAttrs: !1
1886
1886
  }, {
1887
1887
  __name: "g-table",
1888
- props: /* @__PURE__ */ Se({
1888
+ props: /* @__PURE__ */ Oe({
1889
1889
  name: String,
1890
1890
  require: !0
1891
1891
  }, {
1892
1892
  modelValue: { required: !0 },
1893
1893
  modelModifiers: {}
1894
1894
  }),
1895
- emits: /* @__PURE__ */ Se(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
1896
- setup(m, { emit: f }) {
1897
- var oe, n, H, ae, ke, Te, Ce;
1898
- const t = f, e = Oe(m, "modelValue"), a = lt("options"), v = ye({}), F = ye(!1), T = 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([]), _ = m, z = {
1895
+ emits: /* @__PURE__ */ Oe(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
1896
+ setup(c, { emit: f }) {
1897
+ var n, z, re, Ce, Me, De, he;
1898
+ 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(), ne = {
1899
+ autoWatch: !0,
1899
1900
  data: [],
1900
1901
  border: !0,
1901
1902
  stripe: !0,
@@ -1905,27 +1906,28 @@ const ll = {
1905
1906
  load: () => {
1906
1907
  let { currentPage: l, pageSize: r } = e.value.table.page;
1907
1908
  try {
1908
- t("load", { currentPage: l, pageSize: r, ...v.value }, (h, j) => {
1909
- if (!Array.isArray(h)) {
1910
- console.error("从 load 事件回调中接收到的数据不是数组格式。"), we.error("数据加载失败,请检查数据格式。");
1909
+ t("load", { currentPage: l, pageSize: r, ...v.value }, (b, W) => {
1910
+ if (!Array.isArray(b)) {
1911
+ console.error("从 load 事件回调中接收到的数据不是数组格式。"), _e.error("数据加载失败,请检查数据格式。");
1911
1912
  return;
1912
1913
  }
1913
- if (typeof j != "number") {
1914
- console.error("从 load 事件回调中接收到的 total 不是数字格式。"), we.error("数据加载失败,请检查数据格式。");
1914
+ if (typeof W != "number") {
1915
+ console.error("从 load 事件回调中接收到的 total 不是数字格式。"), _e.error("数据加载失败,请检查数据格式。");
1915
1916
  return;
1916
1917
  }
1917
- e.value.table.data = h, e.value.table.page.total = j, P();
1918
+ e.value.table.data = b, e.value.table.page.total = W, X();
1918
1919
  });
1919
- } catch (h) {
1920
- console.error("触发 load 事件时出现错误:", h), we.error("数据加载时出现错误,请稍后重试。");
1920
+ } catch (b) {
1921
+ console.error("触发 load 事件时出现错误:", b), _e.error("数据加载时出现错误,请稍后重试。");
1921
1922
  }
1923
+ console.log("---");
1922
1924
  },
1923
- onHeaderDragend: (l, r, h) => {
1924
- var j;
1925
- Re((j = e.value.table) == null ? void 0 : j.user, _.name, h.property, { width: l });
1925
+ onHeaderDragend: (l, r, b) => {
1926
+ var W;
1927
+ je((W = e.value.table) == null ? void 0 : W.user, w.name, b.property, { width: l });
1926
1928
  },
1927
- onRowDblclick: (l, r, h) => {
1928
- e.value.table.dblclickType == "edit" ? d(l, r, h, e) : e.value.table.dblclickType == "view" && I(l, r, h, e);
1929
+ onRowDblclick: (l, r, b) => {
1930
+ e.value.table.dblclickType == "edit" ? k(l, r, b, e) : e.value.table.dblclickType == "view" && y(l, r, b, e);
1929
1931
  },
1930
1932
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
1931
1933
  page: {
@@ -1944,17 +1946,19 @@ const ll = {
1944
1946
  },
1945
1947
  dblclickType: "edit"
1946
1948
  };
1947
- e.value.table = $e(
1948
- z,
1949
+ e.value.table = Ee(
1950
+ ne,
1949
1951
  a == null ? void 0 : a.table,
1950
- e.value.table
1952
+ e.value.table,
1953
+ P
1954
+ // 继承父组件的属性
1951
1955
  );
1952
- const ne = {
1956
+ const D = {
1953
1957
  type: "control",
1954
1958
  label: "操作",
1955
1959
  width: 250,
1956
1960
  fixed: "right",
1957
- style: { ...(n = (oe = e.value) == null ? void 0 : oe.control) == null ? void 0 : n.style },
1961
+ style: { ...(z = (n = e.value) == null ? void 0 : n.control) == null ? void 0 : z.style },
1958
1962
  add: {
1959
1963
  label: "新增",
1960
1964
  text: !1,
@@ -1968,20 +1972,20 @@ const ll = {
1968
1972
  text: !0,
1969
1973
  type: "success",
1970
1974
  mode: "dialog",
1971
- auth: (l, r, h) => !1
1975
+ auth: (l, r, b) => !1
1972
1976
  },
1973
1977
  edit: {
1974
1978
  label: "编辑",
1975
1979
  text: !0,
1976
1980
  type: "primary",
1977
1981
  mode: "dialog",
1978
- auth: (l, r, h) => !0
1982
+ auth: (l, r, b) => !0
1979
1983
  },
1980
1984
  delete: {
1981
1985
  text: !0,
1982
1986
  label: "删除",
1983
1987
  type: "danger",
1984
- auth: (l, r, h) => !0,
1988
+ auth: (l, r, b) => !0,
1985
1989
  dialog: {
1986
1990
  message: "此操作将永久删除该文件, 是否继续?",
1987
1991
  title: "提示",
@@ -2011,46 +2015,46 @@ const ll = {
2011
2015
  auth: () => !1
2012
2016
  }
2013
2017
  };
2014
- e.value.control = $e(
2015
- ne,
2018
+ e.value.control = Ee(
2019
+ D,
2016
2020
  a == null ? void 0 : a.control,
2017
- (H = e.value) == null ? void 0 : H.control
2021
+ (re = e.value) == null ? void 0 : re.control
2018
2022
  );
2019
- const V = {
2023
+ const u = {
2020
2024
  type: "hidden",
2021
2025
  minWidth: 120,
2022
2026
  align: "center",
2023
- formatter: (l, r, h, j) => h
2027
+ formatter: (l, r, b, W) => b
2024
2028
  };
2025
- e.value.tableColumns = $e(
2026
- V,
2029
+ e.value.tableColumns = Ee(
2030
+ u,
2027
2031
  a == null ? void 0 : a.tableColumns,
2028
- (ae = e.value) == null ? void 0 : ae.tableColumns
2032
+ (Ce = e.value) == null ? void 0 : Ce.tableColumns
2029
2033
  );
2030
- const u = {
2034
+ const A = {
2031
2035
  type: "hidden",
2032
2036
  disabled: void 0,
2033
2037
  footer: { hidden: !1 },
2034
2038
  modalState: void 0
2035
2039
  };
2036
- e.value.form = $e(
2037
- u,
2040
+ e.value.form = Ee(
2041
+ A,
2038
2042
  a == null ? void 0 : a.form,
2039
- (ke = e.value) == null ? void 0 : ke.form
2043
+ (Me = e.value) == null ? void 0 : Me.form
2040
2044
  );
2041
- const A = {
2045
+ const ee = {
2042
2046
  type: "hidden",
2043
2047
  labelPosition: "right",
2044
2048
  style: {
2045
2049
  width: "100%"
2046
2050
  }
2047
2051
  };
2048
- e.value.formItems = $e(
2049
- A,
2052
+ e.value.formItems = Ee(
2053
+ ee,
2050
2054
  a == null ? void 0 : a.formItems,
2051
- (Te = e == null ? void 0 : e.value) == null ? void 0 : Te.formItems
2055
+ (De = e == null ? void 0 : e.value) == null ? void 0 : De.formItems
2052
2056
  );
2053
- const K = {
2057
+ const le = {
2054
2058
  title: "编辑",
2055
2059
  mode: "drawer",
2056
2060
  type: "hidden",
@@ -2058,252 +2062,253 @@ const ll = {
2058
2062
  size: 700,
2059
2063
  fullScreen: !1
2060
2064
  };
2061
- e.value.dialog = $e(
2062
- K,
2065
+ e.value.dialog = Ee(
2066
+ le,
2063
2067
  a == null ? void 0 : a.dialog,
2064
- (Ce = e.value) == null ? void 0 : Ce.dialog
2068
+ (he = e.value) == null ? void 0 : he.dialog
2065
2069
  );
2066
- const ee = Object.fromEntries(Object.entries(_e(e.value, (l, r) => r.type != "control" && r.editor !== !1 && r.type != "hidden")).map(([l, r]) => [l, r.value])), se = (l, r) => {
2067
- let h = r;
2068
- if (l.decimals && !isNaN(r) && (typeof l.decimals == "number" ? h = parseFloat(h).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? h = parseFloat(h).toFixed(l.decimals.num) : h = parseFloat(parseFloat(h).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Je(r).isValid()) {
2069
- const J = {
2070
+ const ae = Object.fromEntries(Object.entries(ke(e.value, (l, r) => r.type != "control" && r.editor !== !1 && r.type != "hidden")).map(([l, r]) => [l, r.value])), ce = (l, r) => {
2071
+ let b = r;
2072
+ if (l.decimals && !isNaN(r) && (typeof l.decimals == "number" ? b = parseFloat(b).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? b = parseFloat(b).toFixed(l.decimals.num) : b = parseFloat(parseFloat(b).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Ze(r).isValid()) {
2073
+ const Z = {
2070
2074
  date: "YYYY-MM-DD",
2071
2075
  datetime: "YYYY-MM-DD HH:mm:ss",
2072
2076
  time: "HH:mm:ss"
2073
2077
  };
2074
- h = l.format ? Je(h).format(l.format) : Je(h).format(J[l.type]);
2078
+ b = l.format ? Ze(b).format(l.format) : Ze(b).format(Z[l.type]);
2075
2079
  }
2076
- return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, h = `<span title="${tt(parseFloat(h))}">${Ol(parseFloat(h))}</span>`), l.prefix && h && (h = `<span>${l.prefix}${h}</span>`), l.suffix && h && (h = `${h}<span>${l.suffix}</span>`), h;
2077
- }, ce = (l) => {
2078
- v.value = l.value;
2080
+ 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;
2079
2081
  }, ie = (l) => {
2082
+ v.value = l.value;
2083
+ }, se = (l) => {
2080
2084
  console.log(l), v.value = l, e.value.table.load();
2081
- }, re = (l) => {
2085
+ }, d = (l) => {
2082
2086
  var r;
2083
- 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(ee), T.value = !0, t("open", ee, T.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(ee).forEach((h) => {
2084
- e.value[h] && (e.value[h].value = ee[h]);
2085
- }), F.value = !0, t("open", l, "add"));
2086
- }, d = (l, r, h, j) => {
2087
- var J;
2088
- e.value.form.modalState = "edit", (J = e.value.control.edit) != null && J.click ? e.value.control.edit.click(l, r, h, j) : (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((Z) => {
2089
- e.value[Z] && (e.value[Z].value = l[Z]);
2090
- }), F.value = !0, t("open", j, "edit", l, r, h));
2091
- }, D = (l, r, h, j) => {
2092
- var J;
2093
- if ((J = e.value.control.delete) != null && J.click)
2094
- e.value.control.delete.click(l, r, h, j);
2087
+ 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) => {
2088
+ e.value[b] && (e.value[b].value = ae[b]);
2089
+ }), V.value = !0, t("open", l, "add"));
2090
+ }, k = (l, r, b, W) => {
2091
+ var Z;
2092
+ 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) => {
2093
+ e.value[K] && (e.value[K].value = l[K]);
2094
+ }), V.value = !0, t("open", W, "edit", l, r, b));
2095
+ }, I = (l, r, b, W) => {
2096
+ var Z;
2097
+ if ((Z = e.value.control.delete) != null && Z.click)
2098
+ e.value.control.delete.click(l, r, b, W);
2095
2099
  else {
2096
- let { message: Z, title: Ee, options: Me } = e.value.control.delete.dialog;
2097
- ft.confirm(Z, Ee, Me).then(() => {
2098
- t("delete", { row: l, column: r, $index: h }, (Le) => {
2099
- Le && (e.value.table.data.splice(h, 1), e.value.table.page.total--);
2100
+ let { message: K, title: we, options: qe } = e.value.control.delete.dialog;
2101
+ ct.confirm(K, we, qe).then(() => {
2102
+ t("delete", { row: l, column: r, $index: b }, (ze) => {
2103
+ ze && (e.value.table.data.splice(b, 1), e.value.table.page.total--);
2100
2104
  });
2101
2105
  }).catch(() => {
2102
2106
  });
2103
2107
  }
2104
- }, I = (l, r, h, j) => {
2105
- var J;
2106
- e.value.form.modalState = void 0, (J = e.value.control.view) != null && J.click ? e.value.control.view.click(l, r, h, j) : (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((Z) => {
2107
- e.value[Z] && (e.value[Z].value = l[Z]);
2108
- }), F.value = !0, t("open", j, "view", l, r, h));
2109
- }, y = (l, r, h, j) => {
2110
- var J;
2111
- (J = e.value.control.save) != null && J.click ? e.value.control.save.click(l, r, h, j) : t("row-save", { row: l, column: r, $index: h, data: e.value.table.data }, (Z) => {
2112
- Z && (e.value.table.load(), T.value = !1);
2108
+ }, y = (l, r, b, W) => {
2109
+ var Z;
2110
+ 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) => {
2111
+ e.value[K] && (e.value[K].value = l[K]);
2112
+ }), V.value = !0, t("open", W, "view", l, r, b));
2113
+ }, L = (l, r, b, W) => {
2114
+ var Z;
2115
+ (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) => {
2116
+ K && (e.value.table.load(), F.value = !1);
2113
2117
  });
2114
- }, L = (l, r) => {
2115
- t("submit", e.value.form.modalState, l, r, (h) => {
2116
- h && (F.value = !1, r.table.load());
2118
+ }, O = (l, r) => {
2119
+ t("submit", e.value.form.modalState, l, r, (b) => {
2120
+ b && (V.value = !1, r.table.load());
2117
2121
  });
2118
- }, O = (l) => {
2122
+ }, J = (l) => {
2119
2123
  t("reset", l);
2120
- }, te = (l, r) => {
2121
- var h;
2122
- if ((h = l.control.download) != null && h.click)
2124
+ }, $e = (l, r) => {
2125
+ var b;
2126
+ if ((b = l.control.download) != null && b.click)
2123
2127
  l.control.download.click(l, r);
2124
2128
  else {
2125
- let j = et({
2129
+ let W = tt({
2126
2130
  title: l.control.download.label,
2127
2131
  size: 480,
2128
2132
  width: 600,
2129
2133
  slots: {
2130
- default: () => De(Jt, {
2134
+ default: () => Ve(Zt, {
2131
2135
  items: r,
2132
2136
  commitText: l.control.download.excelLabel,
2133
- onExcel: (J, Z) => {
2134
- t("download", J, Z), j();
2137
+ onExcel: (Z, K) => {
2138
+ t("download", Z, K), W();
2135
2139
  }
2136
2140
  })
2137
2141
  }
2138
2142
  }, l.control.download.mode);
2139
2143
  }
2140
- }, be = (l) => {
2144
+ }, M = (l) => {
2141
2145
  var r;
2142
- (r = l.control.setting) != null && r.click ? l.control.setting.click(l) : et({
2146
+ (r = l.control.setting) != null && r.click ? l.control.setting.click(l) : tt({
2143
2147
  title: l.control.setting.label,
2144
2148
  size: 470,
2145
2149
  width: 600,
2146
2150
  slots: {
2147
- default: () => De(ul, {
2151
+ default: () => Ve(nl, {
2148
2152
  modelValue: l,
2149
- name: _.name
2153
+ name: w.name
2150
2154
  })
2151
2155
  }
2152
2156
  }, l.control.setting.mode);
2153
- }, k = e.value.control, $ = [
2154
- { type: "add", func: re },
2155
- { type: "download", func: te },
2156
- { type: "setting", func: be },
2157
- { type: "view", func: I },
2158
- { type: "edit", func: d },
2159
- { type: "delete", func: D },
2160
- { type: "save", func: y }
2161
- ], b = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func: h }) => {
2162
- var j, J, Z;
2157
+ }, h = e.value.control, $ = [
2158
+ { type: "add", func: d },
2159
+ { type: "download", func: $e },
2160
+ { type: "setting", func: M },
2161
+ { type: "view", func: y },
2162
+ { type: "edit", func: k },
2163
+ { type: "delete", func: I },
2164
+ { type: "save", func: L }
2165
+ ], m = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func: b }) => {
2166
+ var W, Z, K;
2163
2167
  return {
2164
2168
  name: `control-${r}`,
2165
- attr: k == null ? void 0 : k[r],
2166
- func: h,
2167
- label: (j = k == null ? void 0 : k[r]) == null ? void 0 : j.label,
2168
- sort: ((J = k == null ? void 0 : k[r]) == null ? void 0 : J.sort) || 0,
2169
- groupName: ((Z = k == null ? void 0 : k[r]) == null ? void 0 : Z.groupName) || "default"
2169
+ attr: h == null ? void 0 : h[r],
2170
+ func: b,
2171
+ label: (W = h == null ? void 0 : h[r]) == null ? void 0 : W.label,
2172
+ sort: ((Z = h == null ? void 0 : h[r]) == null ? void 0 : Z.sort) || 0,
2173
+ groupName: ((K = h == null ? void 0 : h[r]) == null ? void 0 : K.groupName) || "default"
2170
2174
  };
2171
- }).sort((r, h) => r.sort - h.sort), c = (l) => b(l).reduce((r, h) => {
2172
- const j = h.groupName || "default";
2173
- return r[j] || (r[j] = []), r[j].push(h), r;
2174
- }, {}), i = xe(() => Object.fromEntries(
2175
+ }).sort((r, b) => r.sort - b.sort), i = (l) => m(l).reduce((r, b) => {
2176
+ const W = b.groupName || "default";
2177
+ return r[W] || (r[W] = []), r[W].push(b), r;
2178
+ }, {}), _ = Ae(() => Object.fromEntries(
2175
2179
  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)
2176
- )), w = ye({}), M = (l, r) => {
2177
- const h = (j, J) => {
2178
- for (const Z of j) {
2179
- if (Z.value == J) return Z.label;
2180
- if (Z.children) {
2181
- const Ee = h(Z.children, J);
2182
- if (Ee) return Ee;
2180
+ )), T = ye({}), N = (l, r) => {
2181
+ const b = (W, Z) => {
2182
+ for (const K of W) {
2183
+ if (K.value == Z) return K.label;
2184
+ if (K.children) {
2185
+ const we = b(K.children, Z);
2186
+ if (we) return we;
2183
2187
  }
2184
2188
  }
2185
2189
  return null;
2186
2190
  };
2187
2191
  if (l.getDicts) {
2188
- const j = r.toString();
2189
- return w.value[j] ? (l.options = w.value[j], l.formatter || (l.formatter = (J, Z, Ee, Me) => l.options && h(l.options, Ee) || Ee), Promise.resolve()) : l.getDicts(e.value.table.data).then((J) => {
2190
- w.value[j] = J, l.options = J, l.formatter || (l.formatter = (Z, Ee, Me, Le) => l.options && h(l.options, Me) || Me);
2192
+ const W = r.toString();
2193
+ 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) => {
2194
+ T.value[W] = Z, l.options = Z, l.formatter || (l.formatter = (K, we, qe, ze) => l.options && b(l.options, qe) || qe);
2191
2195
  });
2192
2196
  }
2193
2197
  return Promise.resolve();
2194
- }, P = () => {
2198
+ }, X = () => {
2195
2199
  const l = [];
2196
2200
  Object.keys(e.value).forEach((r) => {
2197
2201
  if (e.value[r].getDicts) {
2198
- const h = M(e.value[r], r).then(() => {
2199
- e.value.table.data.forEach((j) => {
2200
- var J;
2201
- if (e.value[r].getDicts && ((J = e.value[r]) == null ? void 0 : J.forceString) !== !1) {
2202
- const Z = j[r];
2203
- j[r] = Z != null ? Z.toString() : Z;
2202
+ const b = N(e.value[r], r).then(() => {
2203
+ e.value.table.data.forEach((W) => {
2204
+ var Z;
2205
+ if (e.value[r].getDicts && ((Z = e.value[r]) == null ? void 0 : Z.forceString) !== !1) {
2206
+ const K = W[r];
2207
+ W[r] = K != null ? K.toString() : K;
2204
2208
  }
2205
2209
  });
2206
- }).catch((j) => {
2207
- console.error(`加载字典${r}出错:`, j);
2210
+ }).catch((W) => {
2211
+ console.error(`加载字典${r}出错:`, W);
2208
2212
  });
2209
- l.push(h);
2213
+ l.push(b);
2210
2214
  }
2211
2215
  }), Promise.all(l).catch((r) => {
2212
2216
  console.error("字典加载过程中发生错误:", r);
2213
2217
  });
2214
- }, X = (l, r, h, j) => {
2215
- var J, Z;
2216
- return l.table ? (J = l.table(r, h, j)) != null && J.auth ? (Z = l.table(r, h, j)) == null ? void 0 : Z.auth(r, h, j) : !0 : !1;
2218
+ }, oe = (l, r, b, W) => {
2219
+ var Z, K;
2220
+ 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;
2217
2221
  };
2218
- return Ft(() => {
2219
- e.value.table.load();
2220
- }), Ne(async () => {
2222
+ return Tt(() => {
2223
+ e.value.table.autoWatch && e.value.table.load();
2224
+ }), Pe(async () => {
2221
2225
  var l;
2222
2226
  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)) {
2223
- we.error("必须给使用此表格的用户一个名字!");
2227
+ _e.error("必须给使用此表格的用户一个名字!");
2224
2228
  return;
2225
2229
  }
2226
- if (!_.name) {
2227
- we.error("必须给表格一个唯一的name属性");
2230
+ if (!w.name) {
2231
+ _e.error("必须给表格一个唯一的name属性");
2228
2232
  return;
2229
2233
  }
2230
2234
  try {
2231
- let r = await el(_.name);
2235
+ let r = await tl(w.name);
2232
2236
  if (r) {
2233
- if (_.name !== r.name) {
2234
- we.error("此表格已经存在,请换一个名字!");
2237
+ if (w.name !== r.name) {
2238
+ _e.error("此表格已经存在,请换一个名字!");
2235
2239
  return;
2236
2240
  }
2237
2241
  } else
2238
- await tl({ name: _.name });
2242
+ await ll({ name: w.name });
2239
2243
  } catch (r) {
2240
- console.error("检查表格名称时出现错误:", r), we.error("检查表格名称时出现错误,请稍后重试。");
2244
+ console.error("检查表格名称时出现错误:", r), _e.error("检查表格名称时出现错误,请稍后重试。");
2241
2245
  }
2242
2246
  try {
2243
- const r = await Zt(e.value.table.user, _.name);
2244
- r && r.forEach((h) => {
2245
- e.value[h.key] && (e.value[h.key].width = h.width, e.value[h.key].showCol = h.showCol, e.value[h.key].sort = h.sort);
2247
+ const r = await Kt(e.value.table.user, w.name);
2248
+ r && r.forEach((b) => {
2249
+ e.value[b.key] && (e.value[b.key].width = b.width, e.value[b.key].showCol = b.showCol, e.value[b.key].sort = b.sort);
2246
2250
  });
2247
2251
  } catch (r) {
2248
2252
  console.error("Error fetching table column settings:", r);
2249
2253
  }
2254
+ e.value.table.autoWatch || e.value.table.load();
2250
2255
  }), (l, r) => {
2251
- var ot, rt, at, ut, nt;
2252
- const h = R("el-button-group"), j = R("el-table-column"), J = R("el-table"), Z = R("el-pagination"), Ee = R("el-icon"), Me = R("el-dialog"), Le = R("el-drawer");
2253
- return s(), B(W, null, [
2254
- Q("div", nl, [
2255
- ((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (s(), B("div", sl, [
2256
+ var rt, at, ut, nt, st;
2257
+ 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");
2258
+ return s(), B(Y, null, [
2259
+ Q("div", sl, [
2260
+ ((at = (rt = e.value) == null ? void 0 : rt.query) == null ? void 0 : at.hidden) != !0 ? (s(), B("div", il, [
2256
2261
  p(l.$slots, "query", {}, () => [
2257
- G(Pt, {
2262
+ G(zt, {
2258
2263
  modelValue: e.value,
2259
- "onUpdate:modelValue": r[0] || (r[0] = (N) => e.value = N),
2260
- onQuery: ie,
2261
- onReset: ce
2262
- }, de({
2264
+ "onUpdate:modelValue": r[0] || (r[0] = (j) => e.value = j),
2265
+ onQuery: se,
2266
+ onReset: ie
2267
+ }, fe({
2263
2268
  "q-btns": g(() => [
2264
2269
  p(l.$slots, "q-btns", {}, () => [
2265
- (s(!0), B(W, null, U(c(["add", "download", "setting"]), (N, ue) => (s(), B(W, null, [
2266
- ue == "default" ? (s(!0), B(W, { key: 0 }, U(N, (C) => (s(), B(W, null, [
2270
+ (s(!0), B(Y, null, U(i(["add", "download", "setting"]), (j, ue) => (s(), B(Y, null, [
2271
+ ue == "default" ? (s(!0), B(Y, { key: 0 }, U(j, (C) => (s(), B(Y, null, [
2267
2272
  p(l.$slots, C.name + "-left", {}, void 0, !0),
2268
2273
  (C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
2269
- C.label ? (s(), S(o(he), x({
2274
+ C.label ? (s(), S(o(ge), x({
2270
2275
  key: 0,
2271
2276
  ref_for: !0
2272
2277
  }, C.attr, {
2273
- onClick: (Y) => C.func(e.value, E.value)
2278
+ onClick: (H) => C.func(e.value, E.value)
2274
2279
  }), {
2275
2280
  default: g(() => [
2276
- ge(pe(C.label), 1)
2281
+ be(pe(C.label), 1)
2277
2282
  ]),
2278
2283
  _: 2
2279
- }, 1040, ["onClick"])) : (s(), S(o(he), x({
2284
+ }, 1040, ["onClick"])) : (s(), S(o(ge), x({
2280
2285
  key: 1,
2281
2286
  ref_for: !0
2282
2287
  }, C.attr, {
2283
- onClick: (Y) => C.func(e.value, E.value)
2288
+ onClick: (H) => C.func(e.value, E.value)
2284
2289
  }), null, 16, ["onClick"]))
2285
2290
  ], !0) : ve("", !0),
2286
2291
  p(l.$slots, C.name + "-right", {}, void 0, !0)
2287
- ], 64))), 256)) : (s(), S(h, { key: 1 }, {
2292
+ ], 64))), 256)) : (s(), S(b, { key: 1 }, {
2288
2293
  default: g(() => [
2289
- (s(!0), B(W, null, U(N, (C) => (s(), B(W, null, [
2294
+ (s(!0), B(Y, null, U(j, (C) => (s(), B(Y, null, [
2290
2295
  p(l.$slots, C.name + "-left", {}, void 0, !0),
2291
2296
  (C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
2292
- C.label ? (s(), S(o(he), x({
2297
+ C.label ? (s(), S(o(ge), x({
2293
2298
  key: 0,
2294
2299
  ref_for: !0
2295
2300
  }, C.attr, {
2296
- onClick: (Y) => C.func(e.value, E.value)
2301
+ onClick: (H) => C.func(e.value, E.value)
2297
2302
  }), {
2298
2303
  default: g(() => [
2299
- ge(pe(C.label), 1)
2304
+ be(pe(C.label), 1)
2300
2305
  ]),
2301
2306
  _: 2
2302
- }, 1040, ["onClick"])) : (s(), S(o(he), x({
2307
+ }, 1040, ["onClick"])) : (s(), S(o(ge), x({
2303
2308
  key: 1,
2304
2309
  ref_for: !0
2305
2310
  }, C.attr, {
2306
- onClick: (Y) => C.func(e.value, E.value)
2311
+ onClick: (H) => C.func(e.value, E.value)
2307
2312
  }), null, 16, ["onClick"]))
2308
2313
  ], !0) : ve("", !0),
2309
2314
  p(l.$slots, C.name + "-right", {}, void 0, !0)
@@ -2316,17 +2321,17 @@ const ll = {
2316
2321
  ]),
2317
2322
  _: 2
2318
2323
  }, [
2319
- U(l.$slots, (N, ue, C) => ({
2324
+ U(l.$slots, (j, ue, C) => ({
2320
2325
  name: ue,
2321
- fn: g((Y) => [
2326
+ fn: g((H) => [
2322
2327
  p(l.$slots, ue, { model: e.value }, void 0, !0)
2323
2328
  ])
2324
2329
  }))
2325
2330
  ]), 1032, ["modelValue"])
2326
2331
  ], !0)
2327
2332
  ])) : ve("", !0),
2328
- Q("div", il, [
2329
- G(J, je(Ze({ ...l.$attrs, ...o(_e)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) })), {
2333
+ Q("div", dl, [
2334
+ G(Z, Le(Ke({ ...l.$attrs, ...o(ke)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) })), {
2330
2335
  append: g(() => [
2331
2336
  p(l.$slots, "append", {}, void 0, !0)
2332
2337
  ]),
@@ -2335,44 +2340,44 @@ const ll = {
2335
2340
  ]),
2336
2341
  default: g(() => [
2337
2342
  p(l.$slots, "default", {}, () => [
2338
- (s(!0), B(W, null, U(i.value, (N, ue) => (s(), S(j, x({
2343
+ (s(!0), B(Y, null, U(_.value, (j, ue) => (s(), S(W, x({
2339
2344
  prop: ue,
2340
2345
  key: ue,
2341
2346
  ref_for: !0
2342
- }, { ...e.value.tableColumns, ...o(_e)(N, (C) => q.includes(C)) }, { "header-align": "center" }), de({
2343
- header: g(({ column: C, $index: Y }) => [
2347
+ }, { ...e.value.tableColumns, ...o(ke)(j, (C) => q.includes(C)) }, { "header-align": "center" }), fe({
2348
+ header: g(({ column: C, $index: H }) => [
2344
2349
  ue == "control" ? p(l.$slots, `${ue}-header`, {
2345
2350
  key: 0,
2346
2351
  column: C,
2347
- $index: Y
2352
+ $index: H
2348
2353
  }, () => [
2349
2354
  r[12] || (r[12] = Q("span", null, "操作", -1)),
2350
- e.value.control.add.inline === !0 && !T.value ? (s(), B(W, { key: 0 }, [
2351
- e.value.control.add.label ? (s(), S(o(he), x({
2355
+ e.value.control.add.inline === !0 && !F.value ? (s(), B(Y, { key: 0 }, [
2356
+ e.value.control.add.label ? (s(), S(o(ge), x({
2352
2357
  key: 0,
2353
2358
  title: "新增",
2354
2359
  size: "small",
2355
2360
  ref_for: !0
2356
2361
  }, e.value.control.add, {
2357
- onClick: r[1] || (r[1] = (le) => re(e.value))
2362
+ onClick: r[1] || (r[1] = (te) => d(e.value))
2358
2363
  }), {
2359
2364
  default: g(() => [
2360
- ge(pe(e.value.control.add.label), 1)
2365
+ be(pe(e.value.control.add.label), 1)
2361
2366
  ]),
2362
2367
  _: 1
2363
- }, 16)) : (s(), S(o(he), x({
2368
+ }, 16)) : (s(), S(o(ge), x({
2364
2369
  key: 1,
2365
2370
  title: "新增",
2366
2371
  size: "small",
2367
2372
  ref_for: !0
2368
2373
  }, e.value.control.add, {
2369
- onClick: r[2] || (r[2] = (le) => re(e.value))
2374
+ onClick: r[2] || (r[2] = (te) => d(e.value))
2370
2375
  }), null, 16))
2371
2376
  ], 64)) : ve("", !0)
2372
2377
  ], !0) : p(l.$slots, `${ue}-header`, {
2373
2378
  key: 1,
2374
2379
  column: C,
2375
- $index: Y
2380
+ $index: H
2376
2381
  }, void 0, !0)
2377
2382
  ]),
2378
2383
  "filter-icon": g((C) => [
@@ -2380,117 +2385,117 @@ const ll = {
2380
2385
  ]),
2381
2386
  _: 2
2382
2387
  }, [
2383
- N.type === "image" ? {
2388
+ j.type === "image" ? {
2384
2389
  name: "default",
2385
- fn: g(({ row: C, column: Y, $index: le }) => [
2390
+ fn: g(({ row: C, column: H, $index: te }) => [
2386
2391
  p(l.$slots, `${ue}`, {
2387
2392
  row: C,
2388
- column: Y,
2389
- $index: le
2393
+ column: H,
2394
+ $index: te
2390
2395
  }, () => [
2391
2396
  Q("img", x({
2392
2397
  style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
2393
- src: N.value,
2398
+ src: j.value,
2394
2399
  ref_for: !0
2395
- }, N), null, 16, dl)
2400
+ }, j), null, 16, fl)
2396
2401
  ], !0)
2397
2402
  ]),
2398
2403
  key: "0"
2399
- } : N.type === "expand" ? {
2404
+ } : j.type === "expand" ? {
2400
2405
  name: "default",
2401
- fn: g(({ row: C, column: Y, $index: le }) => [
2406
+ fn: g(({ row: C, column: H, $index: te }) => [
2402
2407
  p(l.$slots, `${ue}`, {
2403
2408
  row: C,
2404
- column: Y,
2405
- $index: le
2409
+ column: H,
2410
+ $index: te
2406
2411
  }, void 0, !0)
2407
2412
  ]),
2408
2413
  key: "1"
2409
- } : N.type == "control" ? {
2414
+ } : j.type == "control" ? {
2410
2415
  name: "default",
2411
- fn: g(({ row: C, column: Y, $index: le }) => {
2412
- var Be, Ie;
2416
+ fn: g(({ row: C, column: H, $index: te }) => {
2417
+ var Ie, Ue;
2413
2418
  return [
2414
2419
  Q("div", {
2415
- class: yt(["control", (Be = e.value.control) == null ? void 0 : Be.class]),
2416
- style: Fe((Ie = e.value.control) == null ? void 0 : Ie.style)
2420
+ class: ht(["control", (Ie = e.value.control) == null ? void 0 : Ie.class]),
2421
+ style: Te((Ue = e.value.control) == null ? void 0 : Ue.style)
2417
2422
  }, [
2418
2423
  p(l.$slots, "control", {}, () => [
2419
2424
  p(l.$slots, "control-left", {
2420
2425
  row: C,
2421
- column: Y,
2422
- $index: le
2426
+ column: H,
2427
+ $index: te
2423
2428
  }, void 0, !0),
2424
- (s(!0), B(W, null, U(c(["view", "edit", "delete", "save"]), (Ue, Ge) => (s(), B(W, null, [
2425
- Ge == "default" ? (s(!0), B(W, { key: 0 }, U(Ue, (me) => (s(), B(W, null, [
2429
+ (s(!0), B(Y, null, U(i(["view", "edit", "delete", "save"]), (Re, Qe) => (s(), B(Y, null, [
2430
+ Qe == "default" ? (s(!0), B(Y, { key: 0 }, U(Re, (me) => (s(), B(Y, null, [
2426
2431
  p(l.$slots, me.name + "-left", {
2427
2432
  row: C,
2428
- column: Y,
2429
- $index: le
2433
+ column: H,
2434
+ $index: te
2430
2435
  }, void 0, !0),
2431
- me.attr.auth(C, Y, le) ? p(l.$slots, me.name, {
2436
+ me.attr.auth(C, H, te) ? p(l.$slots, me.name, {
2432
2437
  key: 0,
2433
2438
  row: C,
2434
- column: Y,
2435
- $index: le
2439
+ column: H,
2440
+ $index: te
2436
2441
  }, () => [
2437
- me.label ? (s(), S(o(he), x({
2442
+ me.label ? (s(), S(o(ge), x({
2438
2443
  key: 0,
2439
2444
  ref_for: !0
2440
2445
  }, me.attr, {
2441
- onClick: (Qe) => me.func(C, Y, le, e.value)
2446
+ onClick: (Xe) => me.func(C, H, te, e.value)
2442
2447
  }), {
2443
2448
  default: g(() => [
2444
- ge(pe(me.label), 1)
2449
+ be(pe(me.label), 1)
2445
2450
  ]),
2446
2451
  _: 2
2447
- }, 1040, ["onClick"])) : (s(), S(o(he), x({
2452
+ }, 1040, ["onClick"])) : (s(), S(o(ge), x({
2448
2453
  key: 1,
2449
2454
  ref_for: !0
2450
2455
  }, me.attr, {
2451
- onClick: (Qe) => me.func(C, Y, le, e.value)
2456
+ onClick: (Xe) => me.func(C, H, te, e.value)
2452
2457
  }), null, 16, ["onClick"]))
2453
2458
  ], !0) : ve("", !0),
2454
2459
  p(l.$slots, me.name + "-right", {
2455
2460
  row: C,
2456
- column: Y,
2457
- $index: le
2461
+ column: H,
2462
+ $index: te
2458
2463
  }, void 0, !0)
2459
- ], 64))), 256)) : (s(), S(h, { key: 1 }, {
2464
+ ], 64))), 256)) : (s(), S(b, { key: 1 }, {
2460
2465
  default: g(() => [
2461
- (s(!0), B(W, null, U(Ue, (me) => (s(), B(W, null, [
2466
+ (s(!0), B(Y, null, U(Re, (me) => (s(), B(Y, null, [
2462
2467
  p(l.$slots, me.name + "-left", {
2463
2468
  row: C,
2464
- column: Y,
2465
- $index: le
2469
+ column: H,
2470
+ $index: te
2466
2471
  }, void 0, !0),
2467
- me.attr.auth(C, Y, le) ? p(l.$slots, me.name, {
2472
+ me.attr.auth(C, H, te) ? p(l.$slots, me.name, {
2468
2473
  key: 0,
2469
2474
  row: C,
2470
- column: Y,
2471
- $index: le
2475
+ column: H,
2476
+ $index: te
2472
2477
  }, () => [
2473
- me.label ? (s(), S(o(he), x({
2478
+ me.label ? (s(), S(o(ge), x({
2474
2479
  key: 0,
2475
2480
  ref_for: !0
2476
2481
  }, me.attr, {
2477
- onClick: (Qe) => me.func(C, Y, le, e.value)
2482
+ onClick: (Xe) => me.func(C, H, te, e.value)
2478
2483
  }), {
2479
2484
  default: g(() => [
2480
- ge(pe(me.label), 1)
2485
+ be(pe(me.label), 1)
2481
2486
  ]),
2482
2487
  _: 2
2483
- }, 1040, ["onClick"])) : (s(), S(o(he), x({
2488
+ }, 1040, ["onClick"])) : (s(), S(o(ge), x({
2484
2489
  key: 1,
2485
2490
  ref_for: !0
2486
2491
  }, me.attr, {
2487
- onClick: (Qe) => me.func(C, Y, le, e.value)
2492
+ onClick: (Xe) => me.func(C, H, te, e.value)
2488
2493
  }), null, 16, ["onClick"]))
2489
2494
  ], !0) : ve("", !0),
2490
2495
  p(l.$slots, me.name + "-right", {
2491
2496
  row: C,
2492
- column: Y,
2493
- $index: le
2497
+ column: H,
2498
+ $index: te
2494
2499
  }, void 0, !0)
2495
2500
  ], 64))), 256))
2496
2501
  ]),
@@ -2499,42 +2504,42 @@ const ll = {
2499
2504
  ], 64))), 256)),
2500
2505
  p(l.$slots, "control-right", {
2501
2506
  row: C,
2502
- column: Y,
2503
- $index: le
2507
+ column: H,
2508
+ $index: te
2504
2509
  }, void 0, !0)
2505
2510
  ], !0)
2506
2511
  ], 6)
2507
2512
  ];
2508
2513
  }),
2509
2514
  key: "2"
2510
- } : N.type != "selection" && N.type != "index" ? {
2515
+ } : j.type != "selection" && j.type != "index" ? {
2511
2516
  name: "default",
2512
- fn: g(({ row: C, column: Y, $index: le }) => [
2513
- X(N, C, Y, le) && le != -1 ? p(l.$slots, `${ue}`, {
2517
+ fn: g(({ row: C, column: H, $index: te }) => [
2518
+ oe(j, C, H, te) && te != -1 ? p(l.$slots, `${ue}`, {
2514
2519
  key: 0,
2515
2520
  row: C,
2516
- column: Y,
2517
- $index: le
2521
+ column: H,
2522
+ $index: te
2518
2523
  }, () => {
2519
- var Be;
2524
+ var Ie;
2520
2525
  return [
2521
- G(We, {
2526
+ G(Ge, {
2522
2527
  modelValue: C[ue],
2523
- "onUpdate:modelValue": (Ie) => C[ue] = Ie,
2524
- item: N == null ? void 0 : N.table(C, Y, le, T.value),
2528
+ "onUpdate:modelValue": (Ue) => C[ue] = Ue,
2529
+ item: j == null ? void 0 : j.table(C, H, te, F.value),
2525
2530
  ctrlKey: ue,
2526
- ctrlType: (Be = N.table(C, Y, le, T.value)) != null && Be.type ? N.table(C, Y, le, T.value).type : N.type,
2531
+ ctrlType: (Ie = j.table(C, H, te, F.value)) != null && Ie.type ? j.table(C, H, te, F.value).type : j.type,
2527
2532
  model: e.value,
2528
2533
  class: "g-ctrl-container",
2529
2534
  t: "t",
2530
2535
  formInfo: C
2531
- }, de({ _: 2 }, [
2532
- U(l.$slots, (Ie, Ue) => ({
2533
- name: Ue,
2534
- fn: g((Ge) => [
2535
- p(l.$slots, Ue, {
2536
- data: Ge,
2537
- item: N,
2536
+ }, fe({ _: 2 }, [
2537
+ U(l.$slots, (Ue, Re) => ({
2538
+ name: Re,
2539
+ fn: g((Qe) => [
2540
+ p(l.$slots, Re, {
2541
+ data: Qe,
2542
+ item: j,
2538
2543
  model: e.value
2539
2544
  }, void 0, !0)
2540
2545
  ])
@@ -2544,12 +2549,12 @@ const ll = {
2544
2549
  }, !0) : p(l.$slots, `${ue}`, {
2545
2550
  key: 1,
2546
2551
  row: C,
2547
- column: Y,
2548
- $index: le
2552
+ column: H,
2553
+ $index: te
2549
2554
  }, () => [
2550
2555
  Q("div", {
2551
- innerHTML: se(N, Y.formatter(C, Y, C[ue], le))
2552
- }, null, 8, fl)
2556
+ innerHTML: ce(j, H.formatter(C, H, C[ue], te))
2557
+ }, null, 8, cl)
2553
2558
  ], !0)
2554
2559
  ]),
2555
2560
  key: "3"
@@ -2559,12 +2564,12 @@ const ll = {
2559
2564
  ]),
2560
2565
  _: 3
2561
2566
  }, 16),
2562
- (nt = (ut = (at = e.value) == null ? void 0 : at.table) == null ? void 0 : ut.page) != null && nt.hidden ? ve("", !0) : p(l.$slots, "page", { key: 0 }, () => [
2563
- G(Z, x({
2567
+ (st = (nt = (ut = e.value) == null ? void 0 : ut.table) == null ? void 0 : nt.page) != null && st.hidden ? ve("", !0) : p(l.$slots, "page", { key: 0 }, () => [
2568
+ G(K, x({
2564
2569
  "page-size": e.value.table.page.pageSize,
2565
- "onUpdate:pageSize": r[3] || (r[3] = (N) => e.value.table.page.pageSize = N),
2570
+ "onUpdate:pageSize": r[3] || (r[3] = (j) => e.value.table.page.pageSize = j),
2566
2571
  "current-page": e.value.table.page.currentPage,
2567
- "onUpdate:currentPage": r[4] || (r[4] = (N) => e.value.table.page.currentPage = N)
2572
+ "onUpdate:currentPage": r[4] || (r[4] = (j) => e.value.table.page.currentPage = j)
2568
2573
  }, e.value.table.page), {
2569
2574
  default: g(() => [
2570
2575
  p(l.$slots, "table-page", {}, void 0, !0)
@@ -2574,47 +2579,47 @@ const ll = {
2574
2579
  ], !0)
2575
2580
  ])
2576
2581
  ]),
2577
- e.value.dialog.mode == "dialog" && F.value ? (s(), B("div", cl, [
2578
- G(Me, x({
2579
- modelValue: F.value,
2580
- "onUpdate:modelValue": r[8] || (r[8] = (N) => F.value = N),
2582
+ e.value.dialog.mode == "dialog" && V.value ? (s(), B("div", ml, [
2583
+ G(qe, x({
2584
+ modelValue: V.value,
2585
+ "onUpdate:modelValue": r[8] || (r[8] = (j) => V.value = j),
2581
2586
  fullscreen: e.value.dialog.fullScreen
2582
- }, o(_e)(e.value.dialog, (N) => !["size"].includes(N)), {
2583
- width: o($t)(e.value.dialog.width) + 35
2587
+ }, o(ke)(e.value.dialog, (j) => !["size"].includes(j)), {
2588
+ width: o(Et)(e.value.dialog.width) + 35
2584
2589
  }), {
2585
2590
  header: g(() => {
2586
- var N, ue, C, Y;
2591
+ var j, ue, C, H;
2587
2592
  return [
2588
- Q("div", ml, [
2589
- Q("div", pl, [
2593
+ Q("div", pl, [
2594
+ Q("div", vl, [
2590
2595
  p(l.$slots, "f-header", {}, () => [
2591
2596
  Q("div", null, pe(e.value.dialog.title), 1)
2592
2597
  ], !0)
2593
2598
  ]),
2594
- ((ue = (N = e.value) == null ? void 0 : N.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (s(), B("div", {
2599
+ ((ue = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (s(), B("div", {
2595
2600
  key: 0,
2596
- onClick: r[5] || (r[5] = (le) => {
2601
+ onClick: r[5] || (r[5] = (te) => {
2597
2602
  e.value.dialog.fullScreen = !0;
2598
2603
  }),
2599
2604
  class: "max"
2600
2605
  }, [
2601
- G(Ee, null, {
2606
+ G(we, null, {
2602
2607
  default: g(() => [
2603
- G(o(Mt))
2608
+ G(o(qt))
2604
2609
  ]),
2605
2610
  _: 1
2606
2611
  })
2607
2612
  ])) : ve("", !0),
2608
- ((Y = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Y.fullScreen) === !0 ? (s(), B("div", {
2613
+ ((H = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : H.fullScreen) === !0 ? (s(), B("div", {
2609
2614
  key: 1,
2610
- onClick: r[6] || (r[6] = (le) => {
2615
+ onClick: r[6] || (r[6] = (te) => {
2611
2616
  e.value.dialog.fullScreen = !1;
2612
2617
  }),
2613
2618
  class: "max"
2614
2619
  }, [
2615
- G(Ee, null, {
2620
+ G(we, null, {
2616
2621
  default: g(() => [
2617
- G(o(qt))
2622
+ G(o(St))
2618
2623
  ]),
2619
2624
  _: 1
2620
2625
  })
@@ -2623,18 +2628,18 @@ const ll = {
2623
2628
  ];
2624
2629
  }),
2625
2630
  default: g(() => [
2626
- Q("div", vl, [
2631
+ Q("div", yl, [
2627
2632
  p(l.$slots, "table-dialog-form", { model: e.value }, () => [
2628
2633
  G(Ye, {
2629
2634
  modelValue: e.value,
2630
- "onUpdate:modelValue": r[7] || (r[7] = (N) => e.value = N),
2631
- onSubmit: L,
2632
- onReset: O
2633
- }, de({ _: 2 }, [
2634
- U(l.$slots, (N, ue, C) => ({
2635
+ "onUpdate:modelValue": r[7] || (r[7] = (j) => e.value = j),
2636
+ onSubmit: O,
2637
+ onReset: J
2638
+ }, fe({ _: 2 }, [
2639
+ U(l.$slots, (j, ue, C) => ({
2635
2640
  name: ue,
2636
- fn: g((Y) => [
2637
- p(l.$slots, ue, { model: Y }, void 0, !0)
2641
+ fn: g((H) => [
2642
+ p(l.$slots, ue, { model: H }, void 0, !0)
2638
2643
  ])
2639
2644
  }))
2640
2645
  ]), 1032, ["modelValue"])
@@ -2644,14 +2649,14 @@ const ll = {
2644
2649
  _: 3
2645
2650
  }, 16, ["modelValue", "fullscreen", "width"])
2646
2651
  ])) : ve("", !0),
2647
- e.value.dialog.mode == "drawer" && F.value ? (s(), B("div", yl, [
2648
- G(Le, x({
2649
- modelValue: F.value,
2650
- "onUpdate:modelValue": r[10] || (r[10] = (N) => F.value = N)
2651
- }, o(_e)(e.value.dialog, (N) => !["width"].includes(N))), {
2652
+ e.value.dialog.mode == "drawer" && V.value ? (s(), B("div", hl, [
2653
+ G(ze, x({
2654
+ modelValue: V.value,
2655
+ "onUpdate:modelValue": r[10] || (r[10] = (j) => V.value = j)
2656
+ }, o(ke)(e.value.dialog, (j) => !["width"].includes(j))), {
2652
2657
  header: g(() => [
2653
- Q("div", hl, [
2654
- Q("div", gl, [
2658
+ Q("div", gl, [
2659
+ Q("div", bl, [
2655
2660
  p(l.$slots, "f-header", {}, () => [
2656
2661
  Q("div", null, pe(e.value.dialog.title), 1)
2657
2662
  ], !0)
@@ -2662,14 +2667,14 @@ const ll = {
2662
2667
  p(l.$slots, "table-drawer-form", { model: e.value }, () => [
2663
2668
  G(Ye, {
2664
2669
  modelValue: e.value,
2665
- "onUpdate:modelValue": r[9] || (r[9] = (N) => e.value = N),
2666
- onSubmit: L,
2667
- onReset: O
2668
- }, de({ _: 2 }, [
2669
- U(l.$slots, (N, ue, C) => ({
2670
+ "onUpdate:modelValue": r[9] || (r[9] = (j) => e.value = j),
2671
+ onSubmit: O,
2672
+ onReset: J
2673
+ }, fe({ _: 2 }, [
2674
+ U(l.$slots, (j, ue, C) => ({
2670
2675
  name: ue,
2671
- fn: g((Y) => [
2672
- p(l.$slots, ue, { model: Y }, void 0, !0)
2676
+ fn: g((H) => [
2677
+ p(l.$slots, ue, { model: H }, void 0, !0)
2673
2678
  ])
2674
2679
  }))
2675
2680
  ]), 1032, ["modelValue"])
@@ -2678,18 +2683,18 @@ const ll = {
2678
2683
  _: 3
2679
2684
  }, 16, ["modelValue"])
2680
2685
  ])) : ve("", !0),
2681
- pt(G(Ye, {
2686
+ vt(G(Ye, {
2682
2687
  modelValue: e.value,
2683
- "onUpdate:modelValue": r[11] || (r[11] = (N) => e.value = N),
2684
- onSubmit: L,
2685
- onReset: O
2688
+ "onUpdate:modelValue": r[11] || (r[11] = (j) => e.value = j),
2689
+ onSubmit: O,
2690
+ onReset: J
2686
2691
  }, null, 8, ["modelValue"]), [
2687
- [vt, !1]
2692
+ [yt, !1]
2688
2693
  ])
2689
2694
  ], 64);
2690
2695
  };
2691
2696
  }
2692
- }), $l = /* @__PURE__ */ Ae(bl, [["__scopeId", "data-v-23ac23e4"]]), El = { class: "g-tree-table" }, wl = { class: "g-tree-container" }, _l = { class: "g-tree-table-container" }, kl = /* @__PURE__ */ Object.assign({
2697
+ }), 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({
2693
2698
  name: "g-tree-table",
2694
2699
  inheritAttrs: !1
2695
2700
  }, {
@@ -2698,68 +2703,68 @@ const ll = {
2698
2703
  modelValue: { required: !0 },
2699
2704
  modelModifiers: {}
2700
2705
  },
2701
- emits: /* @__PURE__ */ Se(["load"], ["update:modelValue"]),
2702
- setup(m, { emit: f }) {
2703
- var ne, V, u;
2704
- const t = f, e = Oe(m, "modelValue"), a = ye(((ne = He()) == null ? void 0 : ne.width) || "180px"), v = ye(((V = He()) == null ? void 0 : V.search) === void 0 ? !0 : (u = He()) == null ? void 0 : u.search), F = ye({}), T = ye(""), q = ye(null), E = (A, K) => A ? K.label.includes(A) : !0, _ = (A, K) => {
2705
- t("load", F.value, A, K);
2706
- }, z = (A) => {
2707
- F.value = A, e.value.table.load();
2706
+ emits: /* @__PURE__ */ Oe(["load"], ["update:modelValue"]),
2707
+ setup(c, { emit: f }) {
2708
+ var ne, D, u;
2709
+ const t = f, e = xe(c, "modelValue"), a = ye(((ne = Ne()) == null ? void 0 : ne.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) => {
2710
+ t("load", V.value, A, ee);
2711
+ }, P = (A) => {
2712
+ V.value = A, e.value.table.load();
2708
2713
  };
2709
- return ct(T, (A) => {
2714
+ return mt(F, (A) => {
2710
2715
  q.value.filter(A);
2711
- }), (A, K) => {
2712
- const ee = R("el-input"), se = R("el-tree"), ce = R("g-table");
2713
- return s(), B("div", El, [
2716
+ }), (A, ee) => {
2717
+ const le = R("el-input"), ae = R("el-tree"), ce = R("g-table");
2718
+ return s(), B("div", wl, [
2714
2719
  Q("div", {
2715
2720
  class: "g-tree-left",
2716
- style: Fe({ width: a.value })
2721
+ style: Te({ width: a.value })
2717
2722
  }, [
2718
- v.value ? (s(), S(ee, {
2723
+ v.value ? (s(), S(le, {
2719
2724
  key: 0,
2720
- modelValue: T.value,
2721
- "onUpdate:modelValue": K[0] || (K[0] = (ie) => T.value = ie),
2725
+ modelValue: F.value,
2726
+ "onUpdate:modelValue": ee[0] || (ee[0] = (ie) => F.value = ie),
2722
2727
  style: { width: "100%" },
2723
2728
  placeholder: "输入节点查询",
2724
2729
  clearable: ""
2725
2730
  }, null, 8, ["modelValue"])) : ve("", !0),
2726
- Q("div", wl, [
2727
- G(se, x({
2731
+ Q("div", _l, [
2732
+ G(ae, x({
2728
2733
  style: { width: a.value },
2729
2734
  "filter-node-method": E,
2730
2735
  "expand-on-click-node": !1,
2731
2736
  ref_key: "treeRef",
2732
2737
  ref: q,
2733
- onNodeClick: z
2734
- }, A.$attrs), de({
2735
- default: g(({ node: ie, data: re }) => [
2738
+ onNodeClick: P
2739
+ }, A.$attrs), fe({
2740
+ default: g(({ node: ie, data: se }) => [
2736
2741
  p(A.$slots, "tree", {
2737
2742
  node: ie,
2738
- data: re
2743
+ data: se
2739
2744
  }, () => [
2740
2745
  Q("span", null, pe(ie.label), 1)
2741
2746
  ], !0)
2742
2747
  ]),
2743
2748
  _: 2
2744
2749
  }, [
2745
- U(A.$slots, (ie, re, d) => ({
2746
- name: re,
2747
- fn: g((D) => [
2748
- p(A.$slots, re, { data: D }, void 0, !0)
2750
+ U(A.$slots, (ie, se, d) => ({
2751
+ name: se,
2752
+ fn: g((k) => [
2753
+ p(A.$slots, se, { data: k }, void 0, !0)
2749
2754
  ])
2750
2755
  }))
2751
2756
  ]), 1040, ["style"])
2752
2757
  ])
2753
2758
  ], 4),
2754
- Q("div", _l, [
2759
+ Q("div", kl, [
2755
2760
  G(ce, x({
2756
2761
  modelValue: e.value,
2757
- "onUpdate:modelValue": K[1] || (K[1] = (ie) => e.value = ie)
2758
- }, A.$attrs, { onLoad: _ }), de({ _: 2 }, [
2759
- U(A.$slots, (ie, re, d) => ({
2760
- name: re,
2761
- fn: g((D) => [
2762
- p(A.$slots, re, { data: D }, void 0, !0)
2762
+ "onUpdate:modelValue": ee[1] || (ee[1] = (ie) => e.value = ie)
2763
+ }, A.$attrs, { onLoad: w }), fe({ _: 2 }, [
2764
+ U(A.$slots, (ie, se, d) => ({
2765
+ name: se,
2766
+ fn: g((k) => [
2767
+ p(A.$slots, se, { data: k }, void 0, !0)
2763
2768
  ])
2764
2769
  }))
2765
2770
  ]), 1040, ["modelValue"])
@@ -2767,13 +2772,13 @@ const ll = {
2767
2772
  ]);
2768
2773
  };
2769
2774
  }
2770
- }), Cl = /* @__PURE__ */ Ae(kl, [["__scopeId", "data-v-c07fe107"]]), Dl = {
2775
+ }), Dl = /* @__PURE__ */ Be(Cl, [["__scopeId", "data-v-c07fe107"]]), Vl = {
2771
2776
  key: 0,
2772
2777
  class: "op-group"
2773
- }, Vl = {
2778
+ }, Fl = {
2774
2779
  key: 1,
2775
2780
  class: "op-items"
2776
- }, dt = "100px", Fl = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
2781
+ }, ft = "100px", Tl = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
2777
2782
  __name: "g-select-option",
2778
2783
  props: {
2779
2784
  columns: {
@@ -2789,146 +2794,146 @@ const ll = {
2789
2794
  default: !1
2790
2795
  }
2791
2796
  },
2792
- setup(m) {
2793
- const f = m;
2794
- return (t, e) => f.title ? (s(), B("div", Dl, [
2795
- (s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
2796
- style: Fe({ width: (a == null ? void 0 : a.width) || dt, ...a == null ? void 0 : a.titleStyle }),
2797
+ setup(c) {
2798
+ const f = c;
2799
+ return (t, e) => f.title ? (s(), B("div", Vl, [
2800
+ (s(!0), B(Y, null, U(f.columns, (a) => (s(), B("span", {
2801
+ style: Te({ width: (a == null ? void 0 : a.width) || ft, ...a == null ? void 0 : a.titleStyle }),
2797
2802
  key: a.key
2798
2803
  }, [
2799
2804
  p(t.$slots, a.key + "-title", { col: a }, () => [
2800
- ge(pe(a.label), 1)
2805
+ be(pe(a.label), 1)
2801
2806
  ], !0)
2802
2807
  ], 4))), 128))
2803
- ])) : (s(), B("div", Vl, [
2804
- (s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
2805
- style: Fe({ width: (a == null ? void 0 : a.width) || dt, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
2808
+ ])) : (s(), B("div", Fl, [
2809
+ (s(!0), B(Y, null, U(f.columns, (a) => (s(), B("span", {
2810
+ style: Te({ width: (a == null ? void 0 : a.width) || ft, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
2806
2811
  key: a.key
2807
2812
  }, [
2808
2813
  p(t.$slots, a.key, { col: a }, () => [
2809
- ge(pe(m.data.option[a.key]), 1)
2814
+ be(pe(c.data.option[a.key]), 1)
2810
2815
  ], !0)
2811
2816
  ], 4))), 128))
2812
2817
  ]));
2813
2818
  }
2814
- }), Tl = /* @__PURE__ */ Ae(Fl, [["__scopeId", "data-v-422d5210"]]), Ml = Object.freeze({}), bt = [$l, Ye, Cl, Tl];
2815
- let Ke = {};
2816
- const Rl = {
2817
- install: (m, f = {}) => {
2818
- Ke = Object.freeze({ ...Ml, ...f }), bt.forEach((t) => {
2819
- m.component(t.name, t);
2820
- }), m.provide("options", Ke), m.config.globalProperties.$openModal = et;
2819
+ }), Ml = /* @__PURE__ */ Be(Tl, [["__scopeId", "data-v-422d5210"]]), ql = Object.freeze({}), $t = [El, Ye, Dl, Ml];
2820
+ let et = {};
2821
+ const jl = {
2822
+ install: (c, f = {}) => {
2823
+ et = Object.freeze({ ...ql, ...f }), $t.forEach((t) => {
2824
+ c.component(t.name, t);
2825
+ }), c.provide("options", et), c.config.globalProperties.$openModal = tt;
2821
2826
  }
2822
- }, ql = (m) => ({ dialog: wt, drawer: _t })[m] || null, et = (m = {}, f = "dialog") => {
2827
+ }, Sl = (c) => ({ dialog: _t, drawer: kt })[c] || null, tt = (c = {}, f = "dialog") => {
2823
2828
  if (typeof document > "u") return () => {
2824
2829
  };
2825
2830
  const t = document.createElement("div");
2826
2831
  let e = () => {
2827
2832
  };
2828
- const a = ql(f);
2833
+ const a = Sl(f);
2829
2834
  if (!a) return () => {
2830
2835
  };
2831
- const v = ye(!0), F = Tt({
2836
+ const v = ye(!0), V = Mt({
2832
2837
  setup() {
2833
2838
  return e = () => {
2834
2839
  v.value = !1, setTimeout(() => {
2835
- F.unmount(), t.remove();
2840
+ V.unmount(), t.remove();
2836
2841
  }, 300);
2837
2842
  }, () => {
2838
- var T, q, E;
2839
- return De(a, {
2843
+ var F, q, E;
2844
+ return Ve(a, {
2840
2845
  modelValue: v.value,
2841
- "onUpdate:modelValue": (_) => v.value = _,
2842
- ...m,
2846
+ "onUpdate:modelValue": (w) => v.value = w,
2847
+ ...c,
2843
2848
  appendToBody: !0,
2844
2849
  destroyOnClose: !0
2845
2850
  }, {
2846
- default: (T = m.slots) == null ? void 0 : T.default,
2847
- header: (q = m.slots) == null ? void 0 : q.header,
2848
- footer: (E = m.slots) == null ? void 0 : E.footer
2851
+ default: (F = c.slots) == null ? void 0 : F.default,
2852
+ header: (q = c.slots) == null ? void 0 : q.header,
2853
+ footer: (E = c.slots) == null ? void 0 : E.footer
2849
2854
  });
2850
2855
  };
2851
2856
  }
2852
2857
  });
2853
- return bt.forEach((T) => {
2854
- F.component(T.name, T);
2855
- }), F.provide("options", Ke), F.use(Et, { locale: Ot }), document.body.appendChild(t), F.mount(t), e;
2858
+ return $t.forEach((F) => {
2859
+ V.component(F.name, F);
2860
+ }), V.provide("options", et), V.use(wt, { locale: xt }), document.body.appendChild(t), V.mount(t), e;
2856
2861
  };
2857
- function $t(m, f = window.innerWidth) {
2858
- if (typeof m == "number")
2859
- return m;
2860
- if (m.endsWith("px"))
2861
- return parseFloat(m);
2862
+ function Et(c, f = window.innerWidth) {
2863
+ if (typeof c == "number")
2864
+ return c;
2865
+ if (c.endsWith("px"))
2866
+ return parseFloat(c);
2862
2867
  const t = window.innerHeight, e = window.innerWidth;
2863
- if (m.endsWith("vh"))
2864
- return t * parseFloat(m) / 100;
2865
- if (m.endsWith("vw"))
2866
- return e * parseFloat(m) / 100;
2867
- if (m.endsWith("%")) {
2868
+ if (c.endsWith("vh"))
2869
+ return t * parseFloat(c) / 100;
2870
+ if (c.endsWith("vw"))
2871
+ return e * parseFloat(c) / 100;
2872
+ if (c.endsWith("%")) {
2868
2873
  if (typeof f != "number")
2869
2874
  throw new Error("Reference size is required to convert % to px");
2870
- return f * parseFloat(m) / 100;
2875
+ return f * parseFloat(c) / 100;
2871
2876
  }
2872
- if (m.startsWith("calc(") && m.endsWith(")")) {
2873
- let v = function(T) {
2874
- if (/[0-9+\-*/().\s]+$/.test(T))
2875
- return new Function("return " + T)();
2877
+ if (c.startsWith("calc(") && c.endsWith(")")) {
2878
+ let v = function(F) {
2879
+ if (/[0-9+\-*/().\s]+$/.test(F))
2880
+ return new Function("return " + F)();
2876
2881
  throw new Error("Invalid calc expression");
2877
2882
  };
2878
- const a = m.slice(5, -1).trim();
2879
- return v(a.replace(/([0-9.]+)([a-z%]+)/g, (T, q, E) => $t(q + E, f)));
2883
+ const a = c.slice(5, -1).trim();
2884
+ return v(a.replace(/([0-9.]+)([a-z%]+)/g, (F, q, E) => Et(q + E, f)));
2880
2885
  }
2881
- throw new Error("Unsupported unit in value: " + m);
2886
+ throw new Error("Unsupported unit in value: " + c);
2882
2887
  }
2883
- const $e = (...m) => {
2888
+ const Ee = (...c) => {
2884
2889
  const f = {}, t = (e, a) => (Object.keys(a).forEach((v) => {
2885
2890
  e[v] = typeof a[v] == "object" && !Array.isArray(a[v]) ? t(e[v] || {}, a[v]) : a[v];
2886
2891
  }), e);
2887
- return m.forEach((e = {}) => t(f, e)), f;
2892
+ return c.forEach((e = {}) => t(f, e)), f;
2888
2893
  };
2889
- function _e(m, f = (t, e) => f(t, e)) {
2894
+ function ke(c, f = (t, e) => f(t, e)) {
2890
2895
  const t = {};
2891
- for (const e in m)
2892
- m.hasOwnProperty(e) && f(e, m[e]) && (t[e] = m[e]);
2896
+ for (const e in c)
2897
+ c.hasOwnProperty(e) && f(e, c[e]) && (t[e] = c[e]);
2893
2898
  return t;
2894
2899
  }
2895
- function Sl(m, f, t = "value", e = "label", a = "children") {
2896
- for (const v of m) {
2900
+ function Ol(c, f, t = "value", e = "label", a = "children") {
2901
+ for (const v of c) {
2897
2902
  if (v[t] === f)
2898
2903
  return v[e];
2899
2904
  if (v[a] && v[a].length > 0) {
2900
- const F = Sl(v[a], f, t, e, a);
2901
- if (F)
2902
- return F;
2905
+ const V = Ol(v[a], f, t, e, a);
2906
+ if (V)
2907
+ return V;
2903
2908
  }
2904
2909
  }
2905
2910
  return null;
2906
2911
  }
2907
- function tt(m) {
2912
+ function lt(c) {
2908
2913
  const f = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], e = [
2909
2914
  ["元", "万", "亿"],
2910
2915
  ["", "拾", "佰", "仟"]
2911
- ], a = m < 0 ? "欠" : "";
2912
- m = Math.abs(m);
2916
+ ], a = c < 0 ? "欠" : "";
2917
+ c = Math.abs(c);
2913
2918
  let v = "";
2914
- for (let F = 0; F < f.length; F++)
2915
- v += (t[Math.floor(m * 10 * Math.pow(10, F)) % 10] + f[F]).replace(/零./, "");
2916
- v = v || "整", m = Math.floor(m);
2917
- for (let F = 0; F < e[0].length && m > 0; F++) {
2918
- let T = "";
2919
- for (let q = 0; q < e[1].length && m > 0; q++)
2920
- T = t[m % 10] + e[1][q] + T, m = Math.floor(m / 10);
2921
- v = T.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][F] + v;
2919
+ for (let V = 0; V < f.length; V++)
2920
+ v += (t[Math.floor(c * 10 * Math.pow(10, V)) % 10] + f[V]).replace(/零./, "");
2921
+ v = v || "整", c = Math.floor(c);
2922
+ for (let V = 0; V < e[0].length && c > 0; V++) {
2923
+ let F = "";
2924
+ for (let q = 0; q < e[1].length && c > 0; q++)
2925
+ F = t[c % 10] + e[1][q] + F, c = Math.floor(c / 10);
2926
+ v = F.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][V] + v;
2922
2927
  }
2923
2928
  return a + v.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
2924
2929
  }
2925
- function Ol(m) {
2926
- if (typeof m != "number")
2930
+ function xl(c) {
2931
+ if (typeof c != "number")
2927
2932
  return "0.00";
2928
- const f = m.toFixed(2), [t, e] = f.split(".");
2933
+ const f = c.toFixed(2), [t, e] = f.split(".");
2929
2934
  return `${t.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${e}`;
2930
2935
  }
2931
- const fe = {
2936
+ const de = {
2932
2937
  RADIO: "radio",
2933
2938
  RADIOBUTTON: "radio-button",
2934
2939
  CHECKBOX: "checkbox",
@@ -2958,13 +2963,13 @@ const fe = {
2958
2963
  TEL: "tel"
2959
2964
  };
2960
2965
  export {
2961
- fe as CT,
2962
- $t as convertToPx,
2963
- Rl as default,
2964
- _e as filterObject,
2965
- Sl as findTreeLabelByValue,
2966
- Ol as formatAmount,
2967
- $e as mergeObjects,
2968
- tt as moneyToChinese,
2969
- et as openModal
2966
+ de as CT,
2967
+ Et as convertToPx,
2968
+ jl as default,
2969
+ ke as filterObject,
2970
+ Ol as findTreeLabelByValue,
2971
+ xl as formatAmount,
2972
+ Ee as mergeObjects,
2973
+ lt as moneyToChinese,
2974
+ tt as openModal
2970
2975
  };