vue-2024-ui 0.1.12 → 0.1.13

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