vue-2024-ui 0.0.70 → 0.0.71

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