vue-2024-ui 0.0.79 → 0.0.80

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