vue-2024-ui 0.2.9 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import Zt, { ElForm as vt, ElButtonGroup as mt, ElButton as Be, ElPopover as bt, ElMessage as Ge, ElMessageBox as At, ElDialog as Jt, ElDrawer as Kt } from "element-plus";
2
- import { h as _e, mergeModels as Xe, useModel as Qe, ref as ae, nextTick as at, onMounted as ut, computed as Je, resolveComponent as z, openBlock as p, createElementBlock as I, Fragment as J, createElementVNode as Q, createBlock as A, createCommentVNode as ye, unref as P, mergeProps as O, withCtx as D, renderSlot as M, renderList as j, createTextVNode as Ie, toDisplayString as Ce, createSlots as he, createVNode as K, normalizeStyle as qe, normalizeProps as wt, useSlots as Bt, inject as Tt, useAttrs as Mt, onUnmounted as el, withModifiers as ht, resolveDynamicComponent as We, guardReactiveProps as tl, Transition as ll, withDirectives as rl, vShow as al, onBeforeUnmount as ol, normalizeClass as Ot, watchEffect as nl, onBeforeMount as ul, watch as sl, createApp as il } from "vue";
3
- import { CircleCheck as It, Refresh as Ut, Plus as dl, ZoomIn as cl, Delete as Yt, More as fl, Search as pl, Download as Rt, DocumentCopy as vl, View as ml, Edit as hl, CirclePlus as yl, Setting as gl, FullScreen as bl, CopyDocument as $l } from "@element-plus/icons-vue";
4
- import Lt from "sortablejs";
5
- import { Dexie as wl } from "dexie";
6
- var El = {
1
+ import Qt, { ElForm as vt, ElButtonGroup as mt, ElButton as Be, ElPopover as $t, ElMessage as Ge, ElMessageBox as qt, ElDialog as Zt, ElDrawer as Jt } from "element-plus";
2
+ import { h as ke, mergeModels as Xe, useModel as Qe, ref as oe, nextTick as at, onMounted as ut, computed as Je, resolveComponent as H, openBlock as p, createElementBlock as I, Fragment as J, createElementVNode as Q, createBlock as B, createCommentVNode as ge, unref as P, mergeProps as O, withCtx as D, renderSlot as M, renderList as N, createTextVNode as Ie, toDisplayString as De, createSlots as ye, createVNode as K, normalizeStyle as qe, normalizeProps as Et, useSlots as At, inject as Mt, useAttrs as Tt, onUnmounted as Kt, withModifiers as yt, resolveDynamicComponent as We, guardReactiveProps as el, Transition as tl, withDirectives as ll, vShow as rl, onBeforeUnmount as al, normalizeClass as Bt, watchEffect as ol, onBeforeMount as nl, watch as ul, createApp as sl } from "vue";
3
+ import { CircleCheck as Ot, Refresh as It, Plus as il, ZoomIn as dl, Delete as Ut, More as cl, Search as fl, Download as Yt, DocumentCopy as pl, View as vl, Edit as ml, CirclePlus as hl, Setting as yl, FullScreen as gl, CopyDocument as bl } from "@element-plus/icons-vue";
4
+ import Rt from "sortablejs";
5
+ import { Dexie as $l } from "dexie";
6
+ var wl = {
7
7
  name: "zh-cn",
8
8
  el: {
9
9
  breadcrumb: {
@@ -180,265 +180,265 @@ var El = {
180
180
  indicator: "幻灯片切换至索引 {index}"
181
181
  }
182
182
  }
183
- }, _l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
184
- function zt(a) {
183
+ }, El = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
184
+ function Lt(a) {
185
185
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
186
186
  }
187
187
  var Ht = { exports: {} };
188
- (function(a, s) {
188
+ (function(a, n) {
189
189
  (function(r, t) {
190
190
  a.exports = t();
191
- })(_l, function() {
192
- var r = 1e3, t = 6e4, e = 36e5, o = "millisecond", _ = "second", v = "minute", F = "hour", f = "day", i = "week", u = "month", c = "quarter", $ = "year", V = "date", N = "Invalid Date", Y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|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, oe = { 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(b) {
193
- var g = ["th", "st", "nd", "rd"], n = b % 100;
194
- return "[" + b + (g[(n - 20) % 10] || g[n] || g[0]) + "]";
195
- } }, ve = function(b, g, n) {
196
- var q = String(b);
197
- return !q || q.length >= g ? b : "" + Array(g + 1 - q.length).join(n) + b;
198
- }, ie = { s: ve, z: function(b) {
199
- var g = -b.utcOffset(), n = Math.abs(g), q = Math.floor(n / 60), C = n % 60;
200
- return (g <= 0 ? "+" : "-") + ve(q, 2, "0") + ":" + ve(C, 2, "0");
201
- }, m: function b(g, n) {
202
- if (g.date() < n.date()) return -b(n, g);
203
- var q = 12 * (n.year() - g.year()) + (n.month() - g.month()), C = g.clone().add(q, u), k = n - C < 0, U = g.clone().add(q + (k ? -1 : 1), u);
204
- return +(-(q + (n - C) / (k ? C - U : U - C)) || 0);
205
- }, a: function(b) {
206
- return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
207
- }, p: function(b) {
208
- return { M: u, y: $, w: i, d: f, D: V, h: F, m: v, s: _, ms: o, Q: c }[b] || String(b || "").toLowerCase().replace(/s$/, "");
209
- }, u: function(b) {
210
- return b === void 0;
191
+ })(El, function() {
192
+ var r = 1e3, t = 6e4, e = 36e5, o = "millisecond", E = "second", v = "minute", F = "hour", f = "day", i = "week", s = "month", c = "quarter", _ = "year", V = "date", j = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|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, te = { 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($) {
193
+ var g = ["th", "st", "nd", "rd"], u = $ % 100;
194
+ return "[" + $ + (g[(u - 20) % 10] || g[u] || g[0]) + "]";
195
+ } }, me = function($, g, u) {
196
+ var q = String($);
197
+ return !q || q.length >= g ? $ : "" + Array(g + 1 - q.length).join(u) + $;
198
+ }, ie = { s: me, z: function($) {
199
+ var g = -$.utcOffset(), u = Math.abs(g), q = Math.floor(u / 60), C = u % 60;
200
+ return (g <= 0 ? "+" : "-") + me(q, 2, "0") + ":" + me(C, 2, "0");
201
+ }, m: function $(g, u) {
202
+ if (g.date() < u.date()) return -$(u, g);
203
+ var q = 12 * (u.year() - g.year()) + (u.month() - g.month()), C = g.clone().add(q, s), k = u - C < 0, U = g.clone().add(q + (k ? -1 : 1), s);
204
+ return +(-(q + (u - C) / (k ? C - U : U - C)) || 0);
205
+ }, a: function($) {
206
+ return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
207
+ }, p: function($) {
208
+ return { M: s, y: _, w: i, d: f, D: V, h: F, m: v, s: E, ms: o, Q: c }[$] || String($ || "").toLowerCase().replace(/s$/, "");
209
+ }, u: function($) {
210
+ return $ === void 0;
211
211
  } }, ce = "en", de = {};
212
- de[ce] = oe;
213
- var ke = "$isDayjsObject", Se = function(b) {
214
- return b instanceof Oe || !(!b || !b[ke]);
215
- }, te = function b(g, n, q) {
212
+ de[ce] = te;
213
+ var Ce = "$isDayjsObject", Te = function($) {
214
+ return $ instanceof Oe || !(!$ || !$[Ce]);
215
+ }, le = function $(g, u, q) {
216
216
  var C;
217
217
  if (!g) return ce;
218
218
  if (typeof g == "string") {
219
219
  var k = g.toLowerCase();
220
- de[k] && (C = k), n && (de[k] = n, C = k);
220
+ de[k] && (C = k), u && (de[k] = u, C = k);
221
221
  var U = g.split("-");
222
- if (!C && U.length > 1) return b(U[0]);
222
+ if (!C && U.length > 1) return $(U[0]);
223
223
  } else {
224
224
  var Z = g.name;
225
225
  de[Z] = g, C = Z;
226
226
  }
227
227
  return !q && C && (ce = C), C || !q && ce;
228
- }, ne = function(b, g) {
229
- if (Se(b)) return b.clone();
230
- var n = typeof g == "object" ? g : {};
231
- return n.date = b, n.args = arguments, new Oe(n);
232
- }, le = ie;
233
- le.l = te, le.i = Se, le.w = function(b, g) {
234
- return ne(b, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
228
+ }, ne = function($, g) {
229
+ if (Te($)) return $.clone();
230
+ var u = typeof g == "object" ? g : {};
231
+ return u.date = $, u.args = arguments, new Oe(u);
232
+ }, re = ie;
233
+ re.l = le, re.i = Te, re.w = function($, g) {
234
+ return ne($, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
235
235
  };
236
236
  var Oe = function() {
237
- function b(n) {
238
- this.$L = te(n.locale, null, !0), this.parse(n), this.$x = this.$x || n.x || {}, this[ke] = !0;
237
+ function $(u) {
238
+ this.$L = le(u.locale, null, !0), this.parse(u), this.$x = this.$x || u.x || {}, this[Ce] = !0;
239
239
  }
240
- var g = b.prototype;
241
- return g.parse = function(n) {
240
+ var g = $.prototype;
241
+ return g.parse = function(u) {
242
242
  this.$d = function(q) {
243
243
  var C = q.date, k = q.utc;
244
244
  if (C === null) return /* @__PURE__ */ new Date(NaN);
245
- if (le.u(C)) return /* @__PURE__ */ new Date();
245
+ if (re.u(C)) return /* @__PURE__ */ new Date();
246
246
  if (C instanceof Date) return new Date(C);
247
247
  if (typeof C == "string" && !/Z$/i.test(C)) {
248
- var U = C.match(Y);
248
+ var U = C.match(R);
249
249
  if (U) {
250
250
  var Z = U[2] - 1 || 0, G = (U[7] || "0").substring(0, 3);
251
251
  return k ? new Date(Date.UTC(U[1], Z, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G)) : new Date(U[1], Z, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G);
252
252
  }
253
253
  }
254
254
  return new Date(C);
255
- }(n), this.init();
255
+ }(u), this.init();
256
256
  }, g.init = function() {
257
- var n = this.$d;
258
- this.$y = n.getFullYear(), this.$M = n.getMonth(), this.$D = n.getDate(), this.$W = n.getDay(), this.$H = n.getHours(), this.$m = n.getMinutes(), this.$s = n.getSeconds(), this.$ms = n.getMilliseconds();
257
+ var u = this.$d;
258
+ this.$y = u.getFullYear(), this.$M = u.getMonth(), this.$D = u.getDate(), this.$W = u.getDay(), this.$H = u.getHours(), this.$m = u.getMinutes(), this.$s = u.getSeconds(), this.$ms = u.getMilliseconds();
259
259
  }, g.$utils = function() {
260
- return le;
260
+ return re;
261
261
  }, g.isValid = function() {
262
- return this.$d.toString() !== N;
263
- }, g.isSame = function(n, q) {
264
- var C = ne(n);
262
+ return this.$d.toString() !== j;
263
+ }, g.isSame = function(u, q) {
264
+ var C = ne(u);
265
265
  return this.startOf(q) <= C && C <= this.endOf(q);
266
- }, g.isAfter = function(n, q) {
267
- return ne(n) < this.startOf(q);
268
- }, g.isBefore = function(n, q) {
269
- return this.endOf(q) < ne(n);
270
- }, g.$g = function(n, q, C) {
271
- return le.u(n) ? this[q] : this.set(C, n);
266
+ }, g.isAfter = function(u, q) {
267
+ return ne(u) < this.startOf(q);
268
+ }, g.isBefore = function(u, q) {
269
+ return this.endOf(q) < ne(u);
270
+ }, g.$g = function(u, q, C) {
271
+ return re.u(u) ? this[q] : this.set(C, u);
272
272
  }, g.unix = function() {
273
273
  return Math.floor(this.valueOf() / 1e3);
274
274
  }, g.valueOf = function() {
275
275
  return this.$d.getTime();
276
- }, g.startOf = function(n, q) {
277
- var C = this, k = !!le.u(q) || q, U = le.p(n), Z = function(be, $e) {
278
- var we = le.w(C.$u ? Date.UTC(C.$y, $e, be) : new Date(C.$y, $e, be), C);
279
- return k ? we : we.endOf(f);
280
- }, G = function(be, $e) {
281
- return le.w(C.toDate()[be].apply(C.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($e)), C);
282
- }, pe = this.$W, E = this.$M, y = this.$D, re = "set" + (this.$u ? "UTC" : "");
276
+ }, g.startOf = function(u, q) {
277
+ var C = this, k = !!re.u(q) || q, U = re.p(u), Z = function($e, we) {
278
+ var Ee = re.w(C.$u ? Date.UTC(C.$y, we, $e) : new Date(C.$y, we, $e), C);
279
+ return k ? Ee : Ee.endOf(f);
280
+ }, G = function($e, we) {
281
+ return re.w(C.toDate()[$e].apply(C.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), C);
282
+ }, ve = this.$W, w = this.$M, y = this.$D, ae = "set" + (this.$u ? "UTC" : "");
283
283
  switch (U) {
284
- case $:
284
+ case _:
285
285
  return k ? Z(1, 0) : Z(31, 11);
286
- case u:
287
- return k ? Z(1, E) : Z(0, E + 1);
286
+ case s:
287
+ return k ? Z(1, w) : Z(0, w + 1);
288
288
  case i:
289
- var me = this.$locale().weekStart || 0, ge = (pe < me ? pe + 7 : pe) - me;
290
- return Z(k ? y - ge : y + (6 - ge), E);
289
+ var he = this.$locale().weekStart || 0, be = (ve < he ? ve + 7 : ve) - he;
290
+ return Z(k ? y - be : y + (6 - be), w);
291
291
  case f:
292
292
  case V:
293
- return G(re + "Hours", 0);
293
+ return G(ae + "Hours", 0);
294
294
  case F:
295
- return G(re + "Minutes", 1);
295
+ return G(ae + "Minutes", 1);
296
296
  case v:
297
- return G(re + "Seconds", 2);
298
- case _:
299
- return G(re + "Milliseconds", 3);
297
+ return G(ae + "Seconds", 2);
298
+ case E:
299
+ return G(ae + "Milliseconds", 3);
300
300
  default:
301
301
  return this.clone();
302
302
  }
303
- }, g.endOf = function(n) {
304
- return this.startOf(n, !1);
305
- }, g.$set = function(n, q) {
306
- var C, k = le.p(n), U = "set" + (this.$u ? "UTC" : ""), Z = (C = {}, C[f] = U + "Date", C[V] = U + "Date", C[u] = U + "Month", C[$] = U + "FullYear", C[F] = U + "Hours", C[v] = U + "Minutes", C[_] = U + "Seconds", C[o] = U + "Milliseconds", C)[k], G = k === f ? this.$D + (q - this.$W) : q;
307
- if (k === u || k === $) {
308
- var pe = this.clone().set(V, 1);
309
- pe.$d[Z](G), pe.init(), this.$d = pe.set(V, Math.min(this.$D, pe.daysInMonth())).$d;
303
+ }, g.endOf = function(u) {
304
+ return this.startOf(u, !1);
305
+ }, g.$set = function(u, q) {
306
+ var C, k = re.p(u), U = "set" + (this.$u ? "UTC" : ""), Z = (C = {}, C[f] = U + "Date", C[V] = U + "Date", C[s] = U + "Month", C[_] = U + "FullYear", C[F] = U + "Hours", C[v] = U + "Minutes", C[E] = U + "Seconds", C[o] = U + "Milliseconds", C)[k], G = k === f ? this.$D + (q - this.$W) : q;
307
+ if (k === s || k === _) {
308
+ var ve = this.clone().set(V, 1);
309
+ ve.$d[Z](G), ve.init(), this.$d = ve.set(V, Math.min(this.$D, ve.daysInMonth())).$d;
310
310
  } else Z && this.$d[Z](G);
311
311
  return this.init(), this;
312
- }, g.set = function(n, q) {
313
- return this.clone().$set(n, q);
314
- }, g.get = function(n) {
315
- return this[le.p(n)]();
316
- }, g.add = function(n, q) {
312
+ }, g.set = function(u, q) {
313
+ return this.clone().$set(u, q);
314
+ }, g.get = function(u) {
315
+ return this[re.p(u)]();
316
+ }, g.add = function(u, q) {
317
317
  var C, k = this;
318
- n = Number(n);
319
- var U = le.p(q), Z = function(E) {
318
+ u = Number(u);
319
+ var U = re.p(q), Z = function(w) {
320
320
  var y = ne(k);
321
- return le.w(y.date(y.date() + Math.round(E * n)), k);
321
+ return re.w(y.date(y.date() + Math.round(w * u)), k);
322
322
  };
323
- if (U === u) return this.set(u, this.$M + n);
324
- if (U === $) return this.set($, this.$y + n);
323
+ if (U === s) return this.set(s, this.$M + u);
324
+ if (U === _) return this.set(_, this.$y + u);
325
325
  if (U === f) return Z(1);
326
326
  if (U === i) return Z(7);
327
- var G = (C = {}, C[v] = t, C[F] = e, C[_] = r, C)[U] || 1, pe = this.$d.getTime() + n * G;
328
- return le.w(pe, this);
329
- }, g.subtract = function(n, q) {
330
- return this.add(-1 * n, q);
331
- }, g.format = function(n) {
327
+ var G = (C = {}, C[v] = t, C[F] = e, C[E] = r, C)[U] || 1, ve = this.$d.getTime() + u * G;
328
+ return re.w(ve, this);
329
+ }, g.subtract = function(u, q) {
330
+ return this.add(-1 * u, q);
331
+ }, g.format = function(u) {
332
332
  var q = this, C = this.$locale();
333
- if (!this.isValid()) return C.invalidDate || N;
334
- var k = n || "YYYY-MM-DDTHH:mm:ssZ", U = le.z(this), Z = this.$H, G = this.$m, pe = this.$M, E = C.weekdays, y = C.months, re = C.meridiem, me = function($e, we, Me, xe) {
335
- return $e && ($e[we] || $e(q, k)) || Me[we].slice(0, xe);
336
- }, ge = function($e) {
337
- return le.s(Z % 12 || 12, $e, "0");
338
- }, be = re || function($e, we, Me) {
339
- var xe = $e < 12 ? "AM" : "PM";
333
+ if (!this.isValid()) return C.invalidDate || j;
334
+ var k = u || "YYYY-MM-DDTHH:mm:ssZ", U = re.z(this), Z = this.$H, G = this.$m, ve = this.$M, w = C.weekdays, y = C.months, ae = C.meridiem, he = function(we, Ee, Me, xe) {
335
+ return we && (we[Ee] || we(q, k)) || Me[Ee].slice(0, xe);
336
+ }, be = function(we) {
337
+ return re.s(Z % 12 || 12, we, "0");
338
+ }, $e = ae || function(we, Ee, Me) {
339
+ var xe = we < 12 ? "AM" : "PM";
340
340
  return Me ? xe.toLowerCase() : xe;
341
341
  };
342
- return k.replace(L, function($e, we) {
343
- return we || function(Me) {
342
+ return k.replace(L, function(we, Ee) {
343
+ return Ee || function(Me) {
344
344
  switch (Me) {
345
345
  case "YY":
346
346
  return String(q.$y).slice(-2);
347
347
  case "YYYY":
348
- return le.s(q.$y, 4, "0");
348
+ return re.s(q.$y, 4, "0");
349
349
  case "M":
350
- return pe + 1;
350
+ return ve + 1;
351
351
  case "MM":
352
- return le.s(pe + 1, 2, "0");
352
+ return re.s(ve + 1, 2, "0");
353
353
  case "MMM":
354
- return me(C.monthsShort, pe, y, 3);
354
+ return he(C.monthsShort, ve, y, 3);
355
355
  case "MMMM":
356
- return me(y, pe);
356
+ return he(y, ve);
357
357
  case "D":
358
358
  return q.$D;
359
359
  case "DD":
360
- return le.s(q.$D, 2, "0");
360
+ return re.s(q.$D, 2, "0");
361
361
  case "d":
362
362
  return String(q.$W);
363
363
  case "dd":
364
- return me(C.weekdaysMin, q.$W, E, 2);
364
+ return he(C.weekdaysMin, q.$W, w, 2);
365
365
  case "ddd":
366
- return me(C.weekdaysShort, q.$W, E, 3);
366
+ return he(C.weekdaysShort, q.$W, w, 3);
367
367
  case "dddd":
368
- return E[q.$W];
368
+ return w[q.$W];
369
369
  case "H":
370
370
  return String(Z);
371
371
  case "HH":
372
- return le.s(Z, 2, "0");
372
+ return re.s(Z, 2, "0");
373
373
  case "h":
374
- return ge(1);
374
+ return be(1);
375
375
  case "hh":
376
- return ge(2);
376
+ return be(2);
377
377
  case "a":
378
- return be(Z, G, !0);
378
+ return $e(Z, G, !0);
379
379
  case "A":
380
- return be(Z, G, !1);
380
+ return $e(Z, G, !1);
381
381
  case "m":
382
382
  return String(G);
383
383
  case "mm":
384
- return le.s(G, 2, "0");
384
+ return re.s(G, 2, "0");
385
385
  case "s":
386
386
  return String(q.$s);
387
387
  case "ss":
388
- return le.s(q.$s, 2, "0");
388
+ return re.s(q.$s, 2, "0");
389
389
  case "SSS":
390
- return le.s(q.$ms, 3, "0");
390
+ return re.s(q.$ms, 3, "0");
391
391
  case "Z":
392
392
  return U;
393
393
  }
394
394
  return null;
395
- }($e) || U.replace(":", "");
395
+ }(we) || U.replace(":", "");
396
396
  });
397
397
  }, g.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
- }, g.diff = function(n, q, C) {
400
- var k, U = this, Z = le.p(q), G = ne(n), pe = (G.utcOffset() - this.utcOffset()) * t, E = this - G, y = function() {
401
- return le.m(U, G);
399
+ }, g.diff = function(u, q, C) {
400
+ var k, U = this, Z = re.p(q), G = ne(u), ve = (G.utcOffset() - this.utcOffset()) * t, w = this - G, y = function() {
401
+ return re.m(U, G);
402
402
  };
403
403
  switch (Z) {
404
- case $:
404
+ case _:
405
405
  k = y() / 12;
406
406
  break;
407
- case u:
407
+ case s:
408
408
  k = y();
409
409
  break;
410
410
  case c:
411
411
  k = y() / 3;
412
412
  break;
413
413
  case i:
414
- k = (E - pe) / 6048e5;
414
+ k = (w - ve) / 6048e5;
415
415
  break;
416
416
  case f:
417
- k = (E - pe) / 864e5;
417
+ k = (w - ve) / 864e5;
418
418
  break;
419
419
  case F:
420
- k = E / e;
420
+ k = w / e;
421
421
  break;
422
422
  case v:
423
- k = E / t;
423
+ k = w / t;
424
424
  break;
425
- case _:
426
- k = E / r;
425
+ case E:
426
+ k = w / r;
427
427
  break;
428
428
  default:
429
- k = E;
429
+ k = w;
430
430
  }
431
- return C ? k : le.a(k);
431
+ return C ? k : re.a(k);
432
432
  }, g.daysInMonth = function() {
433
- return this.endOf(u).$D;
433
+ return this.endOf(s).$D;
434
434
  }, g.$locale = function() {
435
435
  return de[this.$L];
436
- }, g.locale = function(n, q) {
437
- if (!n) return this.$L;
438
- var C = this.clone(), k = te(n, q, !0);
436
+ }, g.locale = function(u, q) {
437
+ if (!u) return this.$L;
438
+ var C = this.clone(), k = le(u, q, !0);
439
439
  return k && (C.$L = k), C;
440
440
  }, g.clone = function() {
441
- return le.w(this.$d, this);
441
+ return re.w(this.$d, this);
442
442
  }, g.toDate = function() {
443
443
  return new Date(this.valueOf());
444
444
  }, g.toJSON = function() {
@@ -447,21 +447,21 @@ var Ht = { exports: {} };
447
447
  return this.$d.toISOString();
448
448
  }, g.toString = function() {
449
449
  return this.$d.toUTCString();
450
- }, b;
451
- }(), S = Oe.prototype;
452
- return ne.prototype = S, [["$ms", o], ["$s", _], ["$m", v], ["$H", F], ["$W", f], ["$M", u], ["$y", $], ["$D", V]].forEach(function(b) {
453
- S[b[1]] = function(g) {
454
- return this.$g(g, b[0], b[1]);
450
+ }, $;
451
+ }(), T = Oe.prototype;
452
+ return ne.prototype = T, [["$ms", o], ["$s", E], ["$m", v], ["$H", F], ["$W", f], ["$M", s], ["$y", _], ["$D", V]].forEach(function($) {
453
+ T[$[1]] = function(g) {
454
+ return this.$g(g, $[0], $[1]);
455
455
  };
456
- }), ne.extend = function(b, g) {
457
- return b.$i || (b(g, Oe, ne), b.$i = !0), ne;
458
- }, ne.locale = te, ne.isDayjs = Se, ne.unix = function(b) {
459
- return ne(1e3 * b);
456
+ }), ne.extend = function($, g) {
457
+ return $.$i || ($(g, Oe, ne), $.$i = !0), ne;
458
+ }, ne.locale = le, ne.isDayjs = Te, ne.unix = function($) {
459
+ return ne(1e3 * $);
460
460
  }, ne.en = de[ce], ne.Ls = de, ne.p = {}, ne;
461
461
  });
462
462
  })(Ht);
463
- var kl = Ht.exports;
464
- const $t = /* @__PURE__ */ zt(kl), Pt = {
463
+ var _l = Ht.exports;
464
+ const wt = /* @__PURE__ */ Lt(_l), zt = {
465
465
  inline: !0,
466
466
  type: "hidden",
467
467
  "scroll-to-error": !0,
@@ -490,7 +490,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
490
490
  label: "提交",
491
491
  plain: !0,
492
492
  hidden: !1,
493
- icon: () => _e(It)
493
+ icon: () => ke(Ot)
494
494
  },
495
495
  //表单重置按钮属性
496
496
  reset: {
@@ -498,22 +498,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
498
498
  label: "重置",
499
499
  hidden: !1,
500
500
  plain: !0,
501
- icon: () => _e(Ut)
501
+ icon: () => ke(It)
502
502
  },
503
503
  slots: {},
504
504
  tabs: {
505
505
  type: "card",
506
506
  editable: !1
507
507
  }
508
- }, Ze = (a, s) => {
508
+ }, Ze = (a, n) => {
509
509
  const r = a.__vccOpts || a;
510
- for (const [t, e] of s)
510
+ for (const [t, e] of n)
511
511
  r[t] = e;
512
512
  return r;
513
- }, Cl = {
513
+ }, kl = {
514
514
  style: { display: "flex", width: "100%" },
515
515
  class: "g-ctrl-container"
516
- }, Dl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Tl = ["title"], Ml = ["innerHTML"], Sl = ["innerHTML"], Fl = ["innerHTML"], xl = ["innerHTML"], Vl = ["innerHTML"], ql = ["innerHTML"], Al = ["innerHTML"], Bl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
516
+ }, Cl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Dl = ["title"], Sl = ["innerHTML"], Ml = ["innerHTML"], Tl = ["innerHTML"], Fl = ["innerHTML"], xl = ["innerHTML"], Vl = ["innerHTML"], ql = ["innerHTML"], Al = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
517
517
  __name: "g-ctrl",
518
518
  props: /* @__PURE__ */ Xe(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
519
519
  modelValue: { required: !0 },
@@ -521,20 +521,20 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
521
521
  }),
522
522
  emits: ["update:modelValue"],
523
523
  setup(a) {
524
- var Oe, S, b, g, n, q, C, k, U, Z, G, pe;
525
- const s = Qe(a, "modelValue"), r = a, t = ae(r.item || {}), e = ae(r.ctrlKey), o = ae(r.ctrlType), _ = ae(r.model), v = ae([]), F = ae([]), f = ae(!1), i = ae(!1);
526
- !((Oe = o.value) != null && Oe.startsWith("text")) && !((S = o.value) != null && S.startsWith("link")) && !((b = o.value) != null && b.startsWith("tag")) && !((g = o.value) != null && g.startsWith("div")) && !((n = o.value) != null && n.startsWith("span")) && !((q = o.value) != null && q.startsWith("avatar")) && ((C = t.value) != null && C.style || (t.value.style = { width: ((U = (k = t.value) == null ? void 0 : k.style) == null ? void 0 : U.width) || "100%" }));
527
- const u = ae({ display: "flex", flex: 1 }), c = r.t === "t" ? "center" : "flex-start", $ = ((Z = t.value) == null ? void 0 : Z.style) || {};
528
- u.value = { ...u.value, justifyContent: c, ...$ };
524
+ var Oe, T, $, g, u, q, C, k, U, Z, G, ve;
525
+ const n = Qe(a, "modelValue"), r = a, t = oe(r.item || {}), e = oe(r.ctrlKey), o = oe(r.ctrlType), E = oe(r.model), v = oe([]), F = oe([]), f = oe(!1), i = oe(!1);
526
+ !((Oe = o.value) != null && Oe.startsWith("text")) && !((T = o.value) != null && T.startsWith("link")) && !(($ = o.value) != null && $.startsWith("tag")) && !((g = o.value) != null && g.startsWith("div")) && !((u = o.value) != null && u.startsWith("span")) && !((q = o.value) != null && q.startsWith("avatar")) && ((C = t.value) != null && C.style || (t.value.style = { width: ((U = (k = t.value) == null ? void 0 : k.style) == null ? void 0 : U.width) || "100%" }));
527
+ const s = oe({ display: "flex", flex: 1 }), c = r.t === "t" ? "center" : "flex-start", _ = ((Z = t.value) == null ? void 0 : Z.style) || {};
528
+ s.value = { ...s.value, justifyContent: c, ..._ };
529
529
  const V = () => {
530
- const E = Bt(), y = Object.keys(E), re = `${r.t}-${e.value}-`;
531
- return y.filter((be) => be.startsWith(re)).map((be) => be.replace(re, ""));
532
- }, N = ae({
530
+ const w = At(), y = Object.keys(w), ae = `${r.t}-${e.value}-`;
531
+ return y.filter(($e) => $e.startsWith(ae)).map(($e) => $e.replace(ae, ""));
532
+ }, j = oe({
533
533
  multiple: !1,
534
534
  "show-file-list": !1,
535
535
  "file-list": [],
536
- showDel: (G = t.value) != null && G.showDel ? (pe = t.value) == null ? void 0 : pe.showDel : r.t !== "t"
537
- }), Y = ae(t.value.innerHtml), L = (E) => [
536
+ showDel: (G = t.value) != null && G.showDel ? (ve = t.value) == null ? void 0 : ve.showDel : r.t !== "t"
537
+ }), R = oe(t.value.innerHtml), L = (w) => [
538
538
  "year",
539
539
  "years",
540
540
  "month",
@@ -547,7 +547,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
547
547
  "daterange",
548
548
  "monthrange",
549
549
  "yearrange"
550
- ].includes(E), oe = (E) => ({
550
+ ].includes(w), te = (w) => ({
551
551
  year: "YYYY",
552
552
  years: "YYYY",
553
553
  month: "YYYY-MM",
@@ -561,62 +561,62 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
561
561
  daterange: "YYYY-MM-DD",
562
562
  monthrange: "YYYY-MM",
563
563
  yearrange: "YYYY"
564
- })[E] || "YYYY-MM-DD", ve = ae({
564
+ })[w] || "YYYY-MM-DD", me = oe({
565
565
  filterable: !0,
566
566
  remote: !!(t.value && t.value["remote-method"]),
567
567
  ...t.value
568
- }), ie = ae((E) => {
569
- t.value["remote-method"](E, (y) => {
568
+ }), ie = oe((w) => {
569
+ t.value["remote-method"](w, (y) => {
570
570
  at(() => {
571
571
  F.value = y;
572
572
  });
573
573
  });
574
- }), ce = async (E = "options") => {
574
+ }), ce = async (w = "options") => {
575
575
  var y;
576
576
  try {
577
- const re = await ((y = t.value) == null ? void 0 : y.getDicts(r.formInfo));
578
- if (typeof re == "string")
579
- F.value = [{ label: re, value: s.value }];
577
+ const ae = await ((y = t.value) == null ? void 0 : y.getDicts(r.formInfo));
578
+ if (typeof ae == "string")
579
+ F.value = [{ label: ae, value: n.value }];
580
580
  else {
581
- const me = re == null ? void 0 : re.map((ge, be) => ({
582
- ...ge,
583
- value: ge.value ?? ge.label ?? be,
584
- label: ge.label || "未知选项"
581
+ const he = ae == null ? void 0 : ae.map((be, $e) => ({
582
+ ...be,
583
+ value: be.value ?? be.label ?? $e,
584
+ label: be.label || "未知选项"
585
585
  }));
586
- F.value = me || [];
586
+ F.value = he || [];
587
587
  }
588
- } catch (re) {
589
- throw console.error("获取选项失败:", re), re;
588
+ } catch (ae) {
589
+ throw console.error("获取选项失败:", ae), ae;
590
590
  }
591
591
  }, de = () => {
592
- var E, y;
593
- t.value.noSearch !== !0 && r.t === "q" && ((y = (E = _.value) == null ? void 0 : E.table) == null || y.load());
594
- }, ke = (E) => {
595
- E.preventDefault(), E.stopPropagation(), s.value = "";
596
- }, Se = (E) => {
592
+ var w, y;
593
+ t.value.noSearch !== !0 && r.t === "q" && ((y = (w = E.value) == null ? void 0 : w.table) == null || y.load());
594
+ }, Ce = (w) => {
595
+ w.preventDefault(), w.stopPropagation(), n.value = "";
596
+ }, Te = (w) => {
597
597
  f.value = !0;
598
- }, te = (E) => {
599
- E.preventDefault(), E.stopPropagation(), f.value = !0;
600
- }, ne = ae(null);
598
+ }, le = (w) => {
599
+ w.preventDefault(), w.stopPropagation(), f.value = !0;
600
+ }, ne = oe(null);
601
601
  ut(async () => {
602
- var re, me, ge, be, $e;
603
- t.value && t.value["remote-method"] && (ve.value["remote-method"] = ie), (me = (re = _.value[e.value]) == null ? void 0 : re.options) != null && me.length && (F.value = _.value[e.value].options);
604
- const E = (we, Me = "options", xe = _.value[e.value]) => {
602
+ var ae, he, be, $e, we;
603
+ t.value && t.value["remote-method"] && (me.value["remote-method"] = ie), (he = (ae = E.value[e.value]) == null ? void 0 : ae.options) != null && he.length && (F.value = E.value[e.value].options);
604
+ const w = (Ee, Me = "options", xe = E.value[e.value]) => {
605
605
  typeof t.value.getDicts == "function" && ce(Me).catch((Ye) => {
606
- console.error(`Failed to load ${Me} for ${we}:`, Ye);
606
+ console.error(`Failed to load ${Me} for ${Ee}:`, Ye);
607
607
  });
608
608
  };
609
- if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) && E(o.value), o.value === De.TREESELECT && await (async () => {
609
+ if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) && w(o.value), o.value === Se.TREESELECT && await (async () => {
610
610
  try {
611
611
  typeof t.value.getDicts == "function" ? v.value = await t.value.getDicts(r.formInfo) : v.value = F.value;
612
612
  } catch (Me) {
613
613
  console.error("Failed to load data for tree-select:", Me);
614
614
  }
615
615
  })(), r.t == "q") {
616
- let we = t.value.type || o.value;
617
- (we === void 0 || o.value === "input" || we == De.NUMBER || we == De.EMAIL || we == "url" || we == "text") && t.value.onKeyup == null && (t.value.onKeyup = (Me) => {
616
+ let Ee = t.value.type || o.value;
617
+ (Ee === void 0 || o.value === "input" || Ee == Se.NUMBER || Ee == Se.EMAIL || Ee == "url" || Ee == "text") && t.value.onKeyup == null && (t.value.onKeyup = (Me) => {
618
618
  var xe, Ye;
619
- (Me.keyCode === 13 || Me.key === "Enter") && ((Ye = (xe = _.value) == null ? void 0 : xe.table) == null || Ye.load());
619
+ (Me.keyCode === 13 || Me.key === "Enter") && ((Ye = (xe = E.value) == null ? void 0 : xe.table) == null || Ye.load());
620
620
  }), [
621
621
  "radio",
622
622
  "switch",
@@ -633,84 +633,84 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
633
633
  "datetime",
634
634
  "datetimerange",
635
635
  "week"
636
- ].includes(we) && t.value.onChange === void 0 && (t.value.onChange = (Me) => {
636
+ ].includes(Ee) && t.value.onChange === void 0 && (t.value.onChange = (Me) => {
637
637
  var xe, Ye;
638
- (Ye = (xe = _.value) == null ? void 0 : xe.table) == null || Ye.load();
638
+ (Ye = (xe = E.value) == null ? void 0 : xe.table) == null || Ye.load();
639
639
  });
640
640
  }
641
- o.value == "image" && (t.value.width && ((ge = ne.value) != null && ge.$el) && ne.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((be = ne.value) != null && be.$el) && ne.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && (($e = ne.value) != null && $e.$el) && ne.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
641
+ o.value == "image" && (t.value.width && ((be = ne.value) != null && be.$el) && ne.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && (($e = ne.value) != null && $e.$el) && ne.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((we = ne.value) != null && we.$el) && ne.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
642
642
  });
643
- const le = Je(() => {
644
- var E;
645
- return t.value["file-list"] && t.value["file-list"].length ? (E = t.value["file-list"]) == null ? void 0 : E.map((y) => y == null ? void 0 : y.url) : [s.value];
643
+ const re = Je(() => {
644
+ var w;
645
+ return t.value["file-list"] && t.value["file-list"].length ? (w = t.value["file-list"]) == null ? void 0 : w.map((y) => y == null ? void 0 : y.url) : [n.value];
646
646
  });
647
- return (E, y) => {
648
- var nt, H, se, x, X, ee, Ne, je, He, Pe;
649
- const re = z("el-image-viewer"), me = z("el-radio"), ge = z("el-radio-group"), be = z("el-radio-button"), $e = z("el-checkbox"), we = z("el-checkbox-group"), Me = z("el-checkbox-button"), xe = z("g-select-option"), Ye = z("el-option"), st = z("el-select"), it = z("el-tree-select"), dt = z("el-time-picker"), ct = z("el-time-select"), ft = z("el-date-picker"), pt = z("el-color-picker"), l = z("el-rate"), d = z("el-slider"), m = z("el-switch"), w = z("el-transfer"), B = z("el-cascader"), R = z("el-icon"), W = z("el-image"), fe = z("el-tooltip"), Ee = z("el-upload"), Fe = z("el-autocomplete"), Re = z("el-input-number"), Le = z("el-input"), ze = z("el-link"), et = z("el-text"), ot = z("el-avatar"), tt = z("el-tag");
647
+ return (w, y) => {
648
+ var nt, z, se, x, X, ee, je, Ne, ze, Pe;
649
+ const ae = H("el-image-viewer"), he = H("el-radio"), be = H("el-radio-group"), $e = H("el-radio-button"), we = H("el-checkbox"), Ee = H("el-checkbox-group"), Me = H("el-checkbox-button"), xe = H("g-select-option"), Ye = H("el-option"), st = H("el-select"), it = H("el-tree-select"), dt = H("el-time-picker"), ct = H("el-time-select"), ft = H("el-date-picker"), pt = H("el-color-picker"), l = H("el-rate"), d = H("el-slider"), m = H("el-switch"), b = H("el-transfer"), A = H("el-cascader"), Y = H("el-icon"), W = H("el-image"), fe = H("el-tooltip"), _e = H("el-upload"), Fe = H("el-autocomplete"), Re = H("el-input-number"), Le = H("el-input"), He = H("el-link"), et = H("el-text"), ot = H("el-avatar"), tt = H("el-tag");
650
650
  return p(), I(J, null, [
651
651
  Q("div", null, [
652
- f.value ? (p(), A(re, {
652
+ f.value ? (p(), B(ae, {
653
653
  key: 0,
654
654
  teleported: !0,
655
- "url-list": le.value,
655
+ "url-list": re.value,
656
656
  onClose: y[0] || (y[0] = (h) => f.value = !1)
657
- }, null, 8, ["url-list"])) : ye("", !0)
657
+ }, null, 8, ["url-list"])) : ge("", !0)
658
658
  ]),
659
- Q("div", Cl, [
660
- o.value == P(De).RADIO ? (p(), A(ge, O({
659
+ Q("div", kl, [
660
+ o.value == P(Se).RADIO ? (p(), B(be, O({
661
661
  key: 0,
662
- modelValue: s.value,
663
- "onUpdate:modelValue": y[1] || (y[1] = (h) => s.value = h)
662
+ modelValue: n.value,
663
+ "onUpdate:modelValue": y[1] || (y[1] = (h) => n.value = h)
664
664
  }, t.value), {
665
665
  default: D(() => [
666
- M(E.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
667
- (p(!0), I(J, null, j(F.value, (h) => (p(), A(me, O({ ref_for: !0 }, h), {
666
+ M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
667
+ (p(!0), I(J, null, N(F.value, (h) => (p(), B(he, O({ ref_for: !0 }, h), {
668
668
  default: D(() => [
669
- M(E.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
669
+ M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
670
670
  ]),
671
671
  _: 2
672
672
  }, 1040))), 256))
673
673
  ], !0)
674
674
  ]),
675
675
  _: 3
676
- }, 16, ["modelValue"])) : o.value == P(De).RADIOBUTTON ? (p(), A(ge, O({
676
+ }, 16, ["modelValue"])) : o.value == P(Se).RADIOBUTTON ? (p(), B(be, O({
677
677
  key: 1,
678
- modelValue: s.value,
679
- "onUpdate:modelValue": y[2] || (y[2] = (h) => s.value = h)
678
+ modelValue: n.value,
679
+ "onUpdate:modelValue": y[2] || (y[2] = (h) => n.value = h)
680
680
  }, t.value), {
681
681
  default: D(() => [
682
- M(E.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
683
- (p(!0), I(J, null, j(F.value, (h) => (p(), A(be, O({ ref_for: !0 }, h), {
682
+ M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
683
+ (p(!0), I(J, null, N(F.value, (h) => (p(), B($e, O({ ref_for: !0 }, h), {
684
684
  default: D(() => [
685
- M(E.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
685
+ M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
686
686
  ]),
687
687
  _: 2
688
688
  }, 1040))), 256))
689
689
  ], !0)
690
690
  ]),
691
691
  _: 3
692
- }, 16, ["modelValue"])) : o.value == P(De).CHECKBOX ? (p(), A($e, O({
692
+ }, 16, ["modelValue"])) : o.value == P(Se).CHECKBOX ? (p(), B(we, O({
693
693
  key: 2,
694
- modelValue: s.value,
695
- "onUpdate:modelValue": y[3] || (y[3] = (h) => s.value = h)
694
+ modelValue: n.value,
695
+ "onUpdate:modelValue": y[3] || (y[3] = (h) => n.value = h)
696
696
  }, t.value), {
697
697
  default: D(() => [
698
- M(E.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
699
- y[27] || (y[27] = Ie(Ce(" ")))
698
+ M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
699
+ y[27] || (y[27] = Ie(De(" ")))
700
700
  ], !0)
701
701
  ]),
702
702
  _: 3
703
- }, 16, ["modelValue"])) : o.value == P(De).CHECKBOXGROUP ? (p(), A(we, O({
703
+ }, 16, ["modelValue"])) : o.value == P(Se).CHECKBOXGROUP ? (p(), B(Ee, O({
704
704
  key: 3,
705
- modelValue: s.value,
706
- "onUpdate:modelValue": y[4] || (y[4] = (h) => s.value = h)
705
+ modelValue: n.value,
706
+ "onUpdate:modelValue": y[4] || (y[4] = (h) => n.value = h)
707
707
  }, t.value), {
708
708
  default: D(() => [
709
- M(E.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
710
- (p(!0), I(J, null, j(F.value, (h) => (p(), A($e, O({ ref_for: !0 }, h), {
709
+ M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
710
+ (p(!0), I(J, null, N(F.value, (h) => (p(), B(we, O({ ref_for: !0 }, h), {
711
711
  default: D(() => [
712
- M(E.$slots, `${r.t}-${e.value}-options`, { option: h }, () => [
713
- Ie(Ce(h.label), 1)
712
+ M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, () => [
713
+ Ie(De(h.label), 1)
714
714
  ], !0)
715
715
  ]),
716
716
  _: 2
@@ -718,46 +718,46 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
718
718
  ], !0)
719
719
  ]),
720
720
  _: 3
721
- }, 16, ["modelValue"])) : o.value == P(De).CHECKBOXGROUPBUTTON ? (p(), A(we, O({
721
+ }, 16, ["modelValue"])) : o.value == P(Se).CHECKBOXGROUPBUTTON ? (p(), B(Ee, O({
722
722
  key: 4,
723
- modelValue: s.value,
724
- "onUpdate:modelValue": y[5] || (y[5] = (h) => s.value = h)
723
+ modelValue: n.value,
724
+ "onUpdate:modelValue": y[5] || (y[5] = (h) => n.value = h)
725
725
  }, t.value), {
726
726
  default: D(() => [
727
- M(E.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
728
- (p(!0), I(J, null, j(F.value, (h) => (p(), A(Me, O({ ref_for: !0 }, h), {
727
+ M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
728
+ (p(!0), I(J, null, N(F.value, (h) => (p(), B(Me, O({ ref_for: !0 }, h), {
729
729
  default: D(() => [
730
- M(E.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
730
+ M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
731
731
  ]),
732
732
  _: 2
733
733
  }, 1040))), 256))
734
734
  ], !0)
735
735
  ]),
736
736
  _: 3
737
- }, 16, ["modelValue"])) : o.value === P(De).SELECT ? (p(), A(st, O({
737
+ }, 16, ["modelValue"])) : o.value === P(Se).SELECT ? (p(), B(st, O({
738
738
  key: 5,
739
- modelValue: s.value,
740
- "onUpdate:modelValue": y[6] || (y[6] = (h) => s.value = h),
741
- placeholder: _.value[e.value].label,
739
+ modelValue: n.value,
740
+ "onUpdate:modelValue": y[6] || (y[6] = (h) => n.value = h),
741
+ placeholder: E.value[e.value].label,
742
742
  clearable: !0,
743
743
  onClear: y[7] || (y[7] = () => {
744
- r.t == "q" && _.value.table.load();
744
+ r.t == "q" && E.value.table.load();
745
745
  })
746
- }, ve.value), he({
746
+ }, me.value), ye({
747
747
  default: D(() => [
748
- M(E.$slots, `${r.t}-${e.value}`, { options: F.value }, () => [
749
- (p(!0), I(J, null, j(F.value, (h) => (p(), I(J, {
748
+ M(w.$slots, `${r.t}-${e.value}`, { options: F.value }, () => [
749
+ (p(!0), I(J, null, N(F.value, (h) => (p(), I(J, {
750
750
  key: h.value
751
751
  }, [
752
- K(Ye, O({ ref_for: !0 }, P(Ue)(h, (T) => T != "children"), {
753
- onClick: (T) => {
754
- ve.value.change && ve.value.change(h), de();
752
+ K(Ye, O({ ref_for: !0 }, P(Ue)(h, (S) => S != "children"), {
753
+ onClick: (S) => {
754
+ me.value.change && me.value.change(h), de();
755
755
  }
756
756
  }), {
757
757
  default: D(() => {
758
- var T;
758
+ var S;
759
759
  return [
760
- (T = t.value) != null && T.columns ? M(E.$slots, `${r.t}-${e.value}-options`, {
760
+ (S = t.value) != null && S.columns ? M(w.$slots, `${r.t}-${e.value}-options`, {
761
761
  key: 0,
762
762
  option: h
763
763
  }, () => {
@@ -767,11 +767,11 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
767
767
  columns: (ue = t.value) == null ? void 0 : ue.columns,
768
768
  data: h,
769
769
  t: r.t
770
- }, he({ _: 2 }, [
771
- j(E.$slots, (Ae, lt) => ({
770
+ }, ye({ _: 2 }, [
771
+ N(w.$slots, (Ae, lt) => ({
772
772
  name: lt,
773
773
  fn: D((rt) => [
774
- M(E.$slots, lt, {
774
+ M(w.$slots, lt, {
775
775
  option: h,
776
776
  data: rt
777
777
  }, void 0, !0)
@@ -779,50 +779,50 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
779
779
  }))
780
780
  ]), 1032, ["columns", "data", "t"])
781
781
  ];
782
- }, !0) : ye("", !0)
782
+ }, !0) : ge("", !0)
783
783
  ];
784
784
  }),
785
785
  _: 2
786
786
  }, 1040, ["onClick"]),
787
- h.children && h.children.length ? (p(!0), I(J, { key: 0 }, j(h.children, (T) => (p(), A(Ye, O({
787
+ h.children && h.children.length ? (p(!0), I(J, { key: 0 }, N(h.children, (S) => (p(), B(Ye, O({
788
788
  style: { "margin-left": "20px" },
789
- key: T.value,
789
+ key: S.value,
790
790
  ref_for: !0
791
- }, P(Ue)(T, (ue) => ue != "children"), {
791
+ }, P(Ue)(S, (ue) => ue != "children"), {
792
792
  onClick: (ue) => {
793
- ve.value.change && ve.value.change(T), de();
793
+ me.value.change && me.value.change(S), de();
794
794
  }
795
795
  }), {
796
796
  default: D(() => {
797
797
  var ue;
798
798
  return [
799
- (ue = t.value) != null && ue.columns ? M(E.$slots, `${r.t}-${e.value}-options`, {
799
+ (ue = t.value) != null && ue.columns ? M(w.$slots, `${r.t}-${e.value}-options`, {
800
800
  key: 0,
801
- option: T
801
+ option: S
802
802
  }, () => {
803
803
  var Ae;
804
804
  return [
805
805
  K(xe, {
806
806
  columns: (Ae = t.value) == null ? void 0 : Ae.columns,
807
- data: T,
807
+ data: S,
808
808
  t: r.t
809
- }, he({ _: 2 }, [
810
- j(E.$slots, (lt, rt) => ({
809
+ }, ye({ _: 2 }, [
810
+ N(w.$slots, (lt, rt) => ({
811
811
  name: rt,
812
- fn: D((Qt) => [
813
- M(E.$slots, rt, {
814
- option: T,
815
- data: Qt
812
+ fn: D((Xt) => [
813
+ M(w.$slots, rt, {
814
+ option: S,
815
+ data: Xt
816
816
  }, void 0, !0)
817
817
  ])
818
818
  }))
819
819
  ]), 1032, ["columns", "data", "t"])
820
820
  ];
821
- }, !0) : ye("", !0)
821
+ }, !0) : ge("", !0)
822
822
  ];
823
823
  }),
824
824
  _: 2
825
- }, 1040, ["onClick"]))), 128)) : ye("", !0)
825
+ }, 1040, ["onClick"]))), 128)) : ge("", !0)
826
826
  ], 64))), 128))
827
827
  ], !0)
828
828
  ]),
@@ -837,11 +837,11 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
837
837
  columns: (h = t.value) == null ? void 0 : h.columns,
838
838
  title: !0,
839
839
  t: r.t
840
- }, he({ _: 2 }, [
841
- j(E.$slots, (T, ue) => ({
840
+ }, ye({ _: 2 }, [
841
+ N(w.$slots, (S, ue) => ({
842
842
  name: ue,
843
843
  fn: D((Ae) => [
844
- M(E.$slots, ue, { data: Ae }, void 0, !0)
844
+ M(w.$slots, ue, { data: Ae }, void 0, !0)
845
845
  ])
846
846
  }))
847
847
  ]), 1032, ["columns", "t"])
@@ -849,169 +849,169 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
849
849
  }),
850
850
  key: "0"
851
851
  } : void 0,
852
- j(V(), (h) => ({
852
+ N(V(), (h) => ({
853
853
  name: h,
854
- fn: D((T) => [
855
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
854
+ fn: D((S) => [
855
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
856
856
  ])
857
857
  }))
858
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(De).TREESELECT ? (p(), A(it, O({
858
+ ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).TREESELECT ? (p(), B(it, O({
859
859
  key: 6,
860
- modelValue: s.value,
861
- "onUpdate:modelValue": y[8] || (y[8] = (h) => s.value = h),
862
- placeholder: _.value[e.value].label
863
- }, t.value, { data: v.value }), he({ _: 2 }, [
864
- j(V(), (h) => ({
860
+ modelValue: n.value,
861
+ "onUpdate:modelValue": y[8] || (y[8] = (h) => n.value = h),
862
+ placeholder: E.value[e.value].label
863
+ }, t.value, { data: v.value }), ye({ _: 2 }, [
864
+ N(V(), (h) => ({
865
865
  name: h,
866
- fn: D((T) => [
867
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
866
+ fn: D((S) => [
867
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
868
868
  ])
869
869
  }))
870
- ]), 1040, ["modelValue", "placeholder", "data"])) : o.value == P(De).TIME ? (p(), A(dt, O({
870
+ ]), 1040, ["modelValue", "placeholder", "data"])) : o.value == P(Se).TIME ? (p(), B(dt, O({
871
871
  key: 7,
872
- modelValue: s.value,
873
- "onUpdate:modelValue": y[9] || (y[9] = (h) => s.value = h),
872
+ modelValue: n.value,
873
+ "onUpdate:modelValue": y[9] || (y[9] = (h) => n.value = h),
874
874
  "arrow-control": ""
875
875
  }, t.value, {
876
- placeholder: _.value[e.value].label
877
- }), null, 16, ["modelValue", "placeholder"])) : o.value == P(De).TIMESELECT ? (p(), A(ct, O({
876
+ placeholder: E.value[e.value].label
877
+ }), null, 16, ["modelValue", "placeholder"])) : o.value == P(Se).TIMESELECT ? (p(), B(ct, O({
878
878
  key: 8,
879
- modelValue: s.value,
880
- "onUpdate:modelValue": y[10] || (y[10] = (h) => s.value = h),
879
+ modelValue: n.value,
880
+ "onUpdate:modelValue": y[10] || (y[10] = (h) => n.value = h),
881
881
  start: "06:30",
882
882
  step: "00:15",
883
883
  end: "23:30",
884
- placeholder: _.value[e.value].label
885
- }, t.value), null, 16, ["modelValue", "placeholder"])) : L(o.value) ? (p(), A(ft, O({
884
+ placeholder: E.value[e.value].label
885
+ }, t.value), null, 16, ["modelValue", "placeholder"])) : L(o.value) ? (p(), B(ft, O({
886
886
  key: 9,
887
- modelValue: s.value,
888
- "onUpdate:modelValue": y[11] || (y[11] = (h) => s.value = h),
887
+ modelValue: n.value,
888
+ "onUpdate:modelValue": y[11] || (y[11] = (h) => n.value = h),
889
889
  type: o.value,
890
- placeholder: _.value[e.value].label,
891
- "value-format": oe(o.value)
892
- }, t.value), he({ _: 2 }, [
893
- j(V(), (h) => ({
890
+ placeholder: E.value[e.value].label,
891
+ "value-format": te(o.value)
892
+ }, t.value), ye({ _: 2 }, [
893
+ N(V(), (h) => ({
894
894
  name: h,
895
- fn: D((T) => [
896
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
895
+ fn: D((S) => [
896
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
897
897
  ])
898
898
  }))
899
- ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o.value == P(De).COLOR ? (p(), A(pt, O({
899
+ ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o.value == P(Se).COLOR ? (p(), B(pt, O({
900
900
  key: 10,
901
- modelValue: s.value,
902
- "onUpdate:modelValue": y[12] || (y[12] = (h) => s.value = h)
903
- }, t.value), null, 16, ["modelValue"])) : o.value == P(De).RATE ? (p(), A(l, O({
901
+ modelValue: n.value,
902
+ "onUpdate:modelValue": y[12] || (y[12] = (h) => n.value = h)
903
+ }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).RATE ? (p(), B(l, O({
904
904
  key: 11,
905
- modelValue: s.value,
906
- "onUpdate:modelValue": y[13] || (y[13] = (h) => s.value = h)
907
- }, t.value), null, 16, ["modelValue"])) : o.value == P(De).SLIDER ? (p(), A(d, O({
905
+ modelValue: n.value,
906
+ "onUpdate:modelValue": y[13] || (y[13] = (h) => n.value = h)
907
+ }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).SLIDER ? (p(), B(d, O({
908
908
  key: 12,
909
- modelValue: s.value,
910
- "onUpdate:modelValue": y[14] || (y[14] = (h) => s.value = h)
911
- }, t.value), null, 16, ["modelValue"])) : o.value == P(De).SWITCH ? (p(), A(m, O({
909
+ modelValue: n.value,
910
+ "onUpdate:modelValue": y[14] || (y[14] = (h) => n.value = h)
911
+ }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).SWITCH ? (p(), B(m, O({
912
912
  key: 13,
913
- modelValue: s.value,
914
- "onUpdate:modelValue": y[15] || (y[15] = (h) => s.value = h),
913
+ modelValue: n.value,
914
+ "onUpdate:modelValue": y[15] || (y[15] = (h) => n.value = h),
915
915
  inlinePrompt: !0
916
- }, t.value), he({ _: 2 }, [
917
- j(V(), (h) => ({
916
+ }, t.value), ye({ _: 2 }, [
917
+ N(V(), (h) => ({
918
918
  name: h,
919
- fn: D((T) => [
920
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
919
+ fn: D((S) => [
920
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
921
921
  ])
922
922
  }))
923
- ]), 1040, ["modelValue"])) : o.value == P(De).TRANSFER ? (p(), A(w, O({
923
+ ]), 1040, ["modelValue"])) : o.value == P(Se).TRANSFER ? (p(), B(b, O({
924
924
  key: 14,
925
- modelValue: s.value,
926
- "onUpdate:modelValue": y[16] || (y[16] = (h) => s.value = h)
927
- }, t.value), he({ _: 2 }, [
928
- j(V(), (h) => ({
925
+ modelValue: n.value,
926
+ "onUpdate:modelValue": y[16] || (y[16] = (h) => n.value = h)
927
+ }, t.value), ye({ _: 2 }, [
928
+ N(V(), (h) => ({
929
929
  name: h,
930
- fn: D((T) => [
931
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
930
+ fn: D((S) => [
931
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
932
932
  ])
933
933
  }))
934
- ]), 1040, ["modelValue"])) : o.value == P(De).CASCADER ? (p(), A(B, O({
934
+ ]), 1040, ["modelValue"])) : o.value == P(Se).CASCADER ? (p(), B(A, O({
935
935
  key: 15,
936
- modelValue: s.value,
937
- "onUpdate:modelValue": y[17] || (y[17] = (h) => s.value = h)
938
- }, t.value, { options: F.value }), he({ _: 2 }, [
939
- j(V(), (h) => ({
936
+ modelValue: n.value,
937
+ "onUpdate:modelValue": y[17] || (y[17] = (h) => n.value = h)
938
+ }, t.value, { options: F.value }), ye({ _: 2 }, [
939
+ N(V(), (h) => ({
940
940
  name: h,
941
- fn: D((T) => [
942
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
941
+ fn: D((S) => [
942
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
943
943
  ])
944
944
  }))
945
- ]), 1040, ["modelValue", "options"])) : o.value == P(De).IMAGE ? (p(), A(Ee, O({
945
+ ]), 1040, ["modelValue", "options"])) : o.value == P(Se).IMAGE ? (p(), B(_e, O({
946
946
  key: 16,
947
947
  "file-list": t.value["file-list"],
948
948
  "onUpdate:fileList": y[21] || (y[21] = (h) => t.value["file-list"] = h),
949
949
  "list-type": "picture-card",
950
950
  class: "custom-upload",
951
- "on-preview": Se
952
- }, { ...N.value, ...t.value }, {
951
+ "on-preview": Te
952
+ }, { ...j.value, ...t.value }, {
953
953
  ref_key: "uploadRef",
954
954
  ref: ne
955
- }), he({
955
+ }), ye({
956
956
  default: D(() => {
957
957
  var h;
958
958
  return [
959
- s.value ? (p(), I("div", {
959
+ n.value ? (p(), I("div", {
960
960
  key: 1,
961
- onClick: y[20] || (y[20] = (T) => T.stopPropagation()),
961
+ onClick: y[20] || (y[20] = (S) => S.stopPropagation()),
962
962
  style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
963
963
  }, [
964
- Q("div", Dl, [
964
+ Q("div", Cl, [
965
965
  K(W, O({
966
966
  style: { width: "var(--up-width)", height: "var(--up-height)" },
967
- src: s.value
968
- }, { fit: "cover", lazy: !0, ...(h = t.value) == null ? void 0 : h.img }), he({ _: 2 }, [
969
- j(V(), (T, ue) => ({
970
- name: T,
967
+ src: n.value
968
+ }, { fit: "cover", lazy: !0, ...(h = t.value) == null ? void 0 : h.img }), ye({ _: 2 }, [
969
+ N(V(), (S, ue) => ({
970
+ name: S,
971
971
  fn: D((Ae) => [
972
- M(E.$slots, `${r.t}-${e.value}-${T}`, { data: Ae }, void 0, !0)
972
+ M(w.$slots, `${r.t}-${e.value}-${S}`, { data: Ae }, void 0, !0)
973
973
  ])
974
974
  }))
975
975
  ]), 1040, ["src"])
976
976
  ]),
977
977
  Q("div", {
978
978
  style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
979
- onMouseenter: y[18] || (y[18] = (T) => i.value = !0),
980
- onMouseleave: y[19] || (y[19] = (T) => i.value = !1),
979
+ onMouseenter: y[18] || (y[18] = (S) => i.value = !0),
980
+ onMouseleave: y[19] || (y[19] = (S) => i.value = !1),
981
981
  class: "up-view"
982
982
  }, [
983
- i.value ? (p(), A(fe, {
983
+ i.value ? (p(), B(fe, {
984
984
  key: 0,
985
985
  content: "查看大图",
986
986
  placement: "top"
987
987
  }, {
988
988
  default: D(() => [
989
- K(P(cl), {
989
+ K(P(dl), {
990
990
  style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
991
991
  color: "white",
992
- onClick: te
992
+ onClick: le
993
993
  })
994
994
  ]),
995
995
  _: 1
996
- })) : ye("", !0),
997
- N.value.showDel && i.value ? (p(), A(fe, {
996
+ })) : ge("", !0),
997
+ j.value.showDel && i.value ? (p(), B(fe, {
998
998
  key: 1,
999
999
  content: "删除",
1000
1000
  placement: "top"
1001
1001
  }, {
1002
1002
  default: D(() => [
1003
- K(P(Yt), {
1003
+ K(P(Ut), {
1004
1004
  style: { width: "1.5em", height: "1.5em" },
1005
1005
  color: "white",
1006
- onClick: ke
1006
+ onClick: Ce
1007
1007
  })
1008
1008
  ]),
1009
1009
  _: 1
1010
- })) : ye("", !0)
1010
+ })) : ge("", !0)
1011
1011
  ], 32)
1012
- ])) : (p(), A(R, { key: 0 }, {
1012
+ ])) : (p(), B(Y, { key: 0 }, {
1013
1013
  default: D(() => [
1014
- K(P(dl))
1014
+ K(P(il))
1015
1015
  ]),
1016
1016
  _: 1
1017
1017
  }))
@@ -1019,103 +1019,103 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1019
1019
  }),
1020
1020
  _: 2
1021
1021
  }, [
1022
- j(V(), (h, T) => ({
1022
+ N(V(), (h, S) => ({
1023
1023
  name: h,
1024
1024
  fn: D((ue) => [
1025
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1025
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1026
1026
  ])
1027
1027
  }))
1028
- ]), 1040, ["file-list"])) : o.value == P(De).AUTOCOMPLETE ? (p(), A(Fe, O({
1028
+ ]), 1040, ["file-list"])) : o.value == P(Se).AUTOCOMPLETE ? (p(), B(Fe, O({
1029
1029
  key: 17,
1030
- modelValue: s.value,
1031
- "onUpdate:modelValue": y[22] || (y[22] = (h) => s.value = h)
1030
+ modelValue: n.value,
1031
+ "onUpdate:modelValue": y[22] || (y[22] = (h) => n.value = h)
1032
1032
  }, t.value, {
1033
- placeholder: _.value[e.value].label
1034
- }), he({ _: 2 }, [
1035
- j(V(), (h, T) => ({
1033
+ placeholder: E.value[e.value].label
1034
+ }), ye({ _: 2 }, [
1035
+ N(V(), (h, S) => ({
1036
1036
  name: h,
1037
1037
  fn: D((ue) => [
1038
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1038
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1039
1039
  ])
1040
1040
  }))
1041
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(De).INPUTNUMBER ? (p(), A(Re, O({
1041
+ ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).INPUTNUMBER ? (p(), B(Re, O({
1042
1042
  key: 18,
1043
- modelValue: s.value,
1044
- "onUpdate:modelValue": y[23] || (y[23] = (h) => s.value = h),
1043
+ modelValue: n.value,
1044
+ "onUpdate:modelValue": y[23] || (y[23] = (h) => n.value = h),
1045
1045
  min: 0,
1046
1046
  max: 1e8,
1047
- placeholder: _.value[e.value].label
1048
- }, t.value), he({ _: 2 }, [
1049
- j(V(), (h, T) => ({
1047
+ placeholder: E.value[e.value].label
1048
+ }, t.value), ye({ _: 2 }, [
1049
+ N(V(), (h, S) => ({
1050
1050
  name: h,
1051
1051
  fn: D((ue) => [
1052
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1052
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1053
1053
  ])
1054
1054
  }))
1055
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(De).MONEY ? (p(), I("div", {
1055
+ ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).MONEY ? (p(), I("div", {
1056
1056
  key: 19,
1057
- style: qe([{ position: "relative" }, u.value])
1057
+ style: qe([{ position: "relative" }, s.value])
1058
1058
  }, [
1059
1059
  K(Le, O({
1060
- modelValue: s.value,
1061
- "onUpdate:modelValue": y[24] || (y[24] = (h) => s.value = h),
1062
- placeholder: _.value[e.value].label,
1060
+ modelValue: n.value,
1061
+ "onUpdate:modelValue": y[24] || (y[24] = (h) => n.value = h),
1062
+ placeholder: E.value[e.value].label,
1063
1063
  type: "number",
1064
- maxlength: ((H = t.value) == null ? void 0 : H.max) || 25
1065
- }, { ...t.value, type: o.value }), he({
1064
+ maxlength: ((z = t.value) == null ? void 0 : z.max) || 25
1065
+ }, { ...t.value, type: o.value }), ye({
1066
1066
  suffix: D(() => [
1067
1067
  Q("div", {
1068
- title: P(Dt)(s.value),
1068
+ title: P(St)(n.value),
1069
1069
  style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
1070
- }, Ce(P(Dt)(s.value)), 9, Tl)
1070
+ }, De(P(St)(n.value)), 9, Dl)
1071
1071
  ]),
1072
1072
  _: 2
1073
1073
  }, [
1074
- j(V(), (h, T) => ({
1074
+ N(V(), (h, S) => ({
1075
1075
  name: h,
1076
1076
  fn: D((ue) => [
1077
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1077
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1078
1078
  ])
1079
1079
  }))
1080
1080
  ]), 1040, ["modelValue", "placeholder", "maxlength"])
1081
1081
  ], 4)) : (se = o.value) != null && se.startsWith("link") ? (p(), I("div", {
1082
1082
  key: 20,
1083
- style: qe(u.value)
1083
+ style: qe(s.value)
1084
1084
  }, [
1085
- K(ze, O(t.value, {
1085
+ K(He, O(t.value, {
1086
1086
  type: o.value.replace("link-", ""),
1087
- innerHTML: Y.value || s.value
1087
+ innerHTML: R.value || n.value
1088
1088
  }), null, 16, ["type", "innerHTML"])
1089
1089
  ], 4)) : o.value != "textarea" && ((x = o.value) != null && x.startsWith("text")) ? (p(), I("div", {
1090
1090
  key: 21,
1091
- style: qe(u.value)
1091
+ style: qe(s.value)
1092
1092
  }, [
1093
1093
  K(et, O(t.value, {
1094
1094
  type: o.value.replace("text-", ""),
1095
- innerHTML: Y.value || s.value
1095
+ innerHTML: R.value || n.value
1096
1096
  }), null, 16, ["type", "innerHTML"])
1097
1097
  ], 4)) : o.value == "avatar" ? (p(), I("div", {
1098
1098
  key: 22,
1099
- style: qe(u.value)
1099
+ style: qe(s.value)
1100
1100
  }, [
1101
- Y.value ? (p(), A(ot, wt(O({ key: 0 }, t.value)), {
1101
+ R.value ? (p(), B(ot, Et(O({ key: 0 }, t.value)), {
1102
1102
  default: D(() => [
1103
- Q("div", { innerHTML: Y.value }, null, 8, Ml)
1103
+ Q("div", { innerHTML: R.value }, null, 8, Sl)
1104
1104
  ]),
1105
1105
  _: 1
1106
- }, 16)) : (p(), A(ot, wt(O({ key: 1 }, t.value)), null, 16))
1106
+ }, 16)) : (p(), B(ot, Et(O({ key: 1 }, t.value)), null, 16))
1107
1107
  ], 4)) : (X = o.value) != null && X.startsWith("tag") ? (p(), I("div", {
1108
1108
  key: 23,
1109
- style: qe(u.value)
1109
+ style: qe(s.value)
1110
1110
  }, [
1111
- Array.isArray(Y.value) && Y.value.length > 0 ? (p(!0), I(J, { key: 0 }, j(Y.value, (h, T) => (p(), I(J, { key: T }, [
1112
- typeof h == "object" ? (p(), A(tt, O({
1111
+ Array.isArray(R.value) && R.value.length > 0 ? (p(!0), I(J, { key: 0 }, N(R.value, (h, S) => (p(), I(J, { key: S }, [
1112
+ typeof h == "object" ? (p(), B(tt, O({
1113
1113
  key: 0,
1114
1114
  ref_for: !0
1115
1115
  }, h, {
1116
1116
  innerHTML: h == null ? void 0 : h.value,
1117
1117
  style: { "margin-right": "3px" }
1118
- }), null, 16, ["innerHTML"])) : (p(), A(tt, O({
1118
+ }), null, 16, ["innerHTML"])) : (p(), B(tt, O({
1119
1119
  key: 1,
1120
1120
  ref_for: !0
1121
1121
  }, t.value, {
@@ -1123,59 +1123,59 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1123
1123
  innerHTML: h,
1124
1124
  style: { "margin-right": "3px" }
1125
1125
  }), null, 16, ["type", "innerHTML"]))
1126
- ], 64))), 128)) : (p(), A(tt, O({ key: 1 }, t.value, {
1126
+ ], 64))), 128)) : (p(), B(tt, O({ key: 1 }, t.value, {
1127
1127
  type: o.value.replace("tag-", ""),
1128
- innerHTML: Y.value || s.value
1128
+ innerHTML: R.value || n.value
1129
1129
  }), null, 16, ["type", "innerHTML"]))
1130
1130
  ], 4)) : o.value == "div" ? (p(), I("div", O({ key: 24 }, t.value, {
1131
- innerHTML: Y.value || s.value,
1132
- style: u.value
1133
- }), null, 16, Sl)) : o.value == "span" ? (p(), I("span", O({ key: 25 }, t.value, {
1134
- innerHTML: Y.value || s.value,
1135
- style: u.value
1136
- }), null, 16, Fl)) : (p(), A(Le, O({
1131
+ innerHTML: R.value || n.value,
1132
+ style: s.value
1133
+ }), null, 16, Ml)) : o.value == "span" ? (p(), I("span", O({ key: 25 }, t.value, {
1134
+ innerHTML: R.value || n.value,
1135
+ style: s.value
1136
+ }), null, 16, Tl)) : (p(), B(Le, O({
1137
1137
  key: 26,
1138
- modelValue: s.value,
1139
- "onUpdate:modelValue": y[25] || (y[25] = (h) => s.value = h),
1140
- placeholder: _.value[e.value].label,
1138
+ modelValue: n.value,
1139
+ "onUpdate:modelValue": y[25] || (y[25] = (h) => n.value = h),
1140
+ placeholder: E.value[e.value].label,
1141
1141
  maxlength: ((ee = t.value) == null ? void 0 : ee.max) || 25,
1142
1142
  clearable: !0,
1143
1143
  onClear: y[26] || (y[26] = () => {
1144
- r.t == "q" && _.value.table.load();
1144
+ r.t == "q" && E.value.table.load();
1145
1145
  })
1146
- }, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), he({ _: 2 }, [
1147
- (Ne = t.value) != null && Ne.suffix ? {
1146
+ }, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), ye({ _: 2 }, [
1147
+ (je = t.value) != null && je.suffix ? {
1148
1148
  name: "suffix",
1149
1149
  fn: D(() => {
1150
1150
  var h;
1151
1151
  return [
1152
1152
  Q("div", {
1153
1153
  innerHTML: ((h = t.value) == null ? void 0 : h.suffix) || ""
1154
- }, null, 8, xl)
1154
+ }, null, 8, Fl)
1155
1155
  ];
1156
1156
  }),
1157
1157
  key: "0"
1158
1158
  } : void 0,
1159
- (je = t.value) != null && je.prefix ? {
1159
+ (Ne = t.value) != null && Ne.prefix ? {
1160
1160
  name: "prefix",
1161
1161
  fn: D(() => {
1162
1162
  var h;
1163
1163
  return [
1164
1164
  Q("div", {
1165
1165
  innerHTML: ((h = t.value) == null ? void 0 : h.prefix) || ""
1166
- }, null, 8, Vl)
1166
+ }, null, 8, xl)
1167
1167
  ];
1168
1168
  }),
1169
1169
  key: "1"
1170
1170
  } : void 0,
1171
- (He = t.value) != null && He.append ? {
1171
+ (ze = t.value) != null && ze.append ? {
1172
1172
  name: "append",
1173
1173
  fn: D(() => {
1174
1174
  var h;
1175
1175
  return [
1176
1176
  Q("div", {
1177
1177
  innerHTML: ((h = t.value) == null ? void 0 : h.append) || ""
1178
- }, null, 8, ql)
1178
+ }, null, 8, Vl)
1179
1179
  ];
1180
1180
  }),
1181
1181
  key: "2"
@@ -1187,15 +1187,15 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1187
1187
  return [
1188
1188
  Q("div", {
1189
1189
  innerHTML: ((h = t.value) == null ? void 0 : h.prepend) || ""
1190
- }, null, 8, Al)
1190
+ }, null, 8, ql)
1191
1191
  ];
1192
1192
  }),
1193
1193
  key: "3"
1194
1194
  } : void 0,
1195
- j(V(), (h, T) => ({
1195
+ N(V(), (h, S) => ({
1196
1196
  name: h,
1197
1197
  fn: D((ue) => [
1198
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1198
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1199
1199
  ])
1200
1200
  }))
1201
1201
  ]), 1040, ["modelValue", "placeholder", "maxlength"]))
@@ -1203,7 +1203,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1203
1203
  ], 64);
1204
1204
  };
1205
1205
  }
1206
- }), gt = /* @__PURE__ */ Ze(Bl, [["__scopeId", "data-v-667ddbae"]]), Ol = { class: "g-form-container" }, Il = /* @__PURE__ */ Object.assign({
1206
+ }), bt = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-667ddbae"]]), Bl = { class: "g-form-container" }, Ol = /* @__PURE__ */ Object.assign({
1207
1207
  name: "g-form",
1208
1208
  inheritAttrs: !1
1209
1209
  }, {
@@ -1213,48 +1213,48 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1213
1213
  modelModifiers: {}
1214
1214
  }),
1215
1215
  emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
1216
- setup(a, { expose: s, emit: r }) {
1217
- var ke, Se, te, ne, le, Oe;
1218
- const t = Qe(a, "modelValue"), e = r, o = ae(null), _ = Tt("options"), v = ae({}), F = ae(""), f = a;
1216
+ setup(a, { expose: n, emit: r }) {
1217
+ var Ce, Te, le, ne, re, Oe;
1218
+ const t = Qe(a, "modelValue"), e = r, o = oe(null), E = Mt("options"), v = oe({}), F = oe(""), f = a;
1219
1219
  t.value.form = Ve(
1220
- Pt,
1221
- _ == null ? void 0 : _.form,
1222
- (ke = t.value) == null ? void 0 : ke.form
1220
+ zt,
1221
+ E == null ? void 0 : E.form,
1222
+ (Ce = t.value) == null ? void 0 : Ce.form
1223
1223
  ), t.value.form.style = Ve(
1224
- (te = (Se = t.value) == null ? void 0 : Se.form) == null ? void 0 : te.style,
1225
- { ...(ne = Mt()) == null ? void 0 : ne.style }
1224
+ (le = (Te = t.value) == null ? void 0 : Te.form) == null ? void 0 : le.style,
1225
+ { ...(ne = Tt()) == null ? void 0 : ne.style }
1226
1226
  );
1227
- const i = async (S, b) => {
1227
+ const i = async (T, $) => {
1228
1228
  let g = 5;
1229
1229
  for (; g > 0; ) {
1230
1230
  if (await at(), o.value) {
1231
- o.value.validate((n, q) => {
1232
- n ? e("submit", S, b) : console.error("表单验证不通过!", q);
1231
+ o.value.validate((u, q) => {
1232
+ u ? e("submit", T, $) : console.error("表单验证不通过!", q);
1233
1233
  });
1234
1234
  return;
1235
1235
  }
1236
- g--, await new Promise((n) => setTimeout(n, 50));
1236
+ g--, await new Promise((u) => setTimeout(u, 50));
1237
1237
  }
1238
1238
  console.error("表单实例获取失败,请检查组件状态");
1239
- }, u = async () => {
1240
- let S = 5;
1241
- for (; S > 0; ) {
1239
+ }, s = async () => {
1240
+ let T = 5;
1241
+ for (; T > 0; ) {
1242
1242
  if (await at(), !o.value) {
1243
- S--, await new Promise((g) => setTimeout(g, 50));
1243
+ T--, await new Promise((g) => setTimeout(g, 50));
1244
1244
  continue;
1245
1245
  }
1246
- let b = !0;
1246
+ let $ = !0;
1247
1247
  if (e("reset", (g) => {
1248
- b = g;
1249
- }), b) {
1248
+ $ = g;
1249
+ }), $) {
1250
1250
  o.value.resetFields();
1251
1251
  return;
1252
1252
  }
1253
- S--, await new Promise((g) => setTimeout(g, 50));
1253
+ T--, await new Promise((g) => setTimeout(g, 50));
1254
1254
  }
1255
1255
  console.error("表单实例获取失败,请检查组件状态");
1256
1256
  };
1257
- t.value.form.submit.click = i, t.value.form.reset.click = u;
1257
+ t.value.form.submit.click = i, t.value.form.reset.click = s;
1258
1258
  const c = {
1259
1259
  type: "hidden",
1260
1260
  labelPosition: "right",
@@ -1264,24 +1264,24 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1264
1264
  };
1265
1265
  t.value.formItems = Ve(
1266
1266
  c,
1267
- _ == null ? void 0 : _.formItems,
1268
- (le = t == null ? void 0 : t.value) == null ? void 0 : le.formItems
1267
+ E == null ? void 0 : E.formItems,
1268
+ (re = t == null ? void 0 : t.value) == null ? void 0 : re.formItems
1269
1269
  );
1270
- const $ = {
1270
+ const _ = {
1271
1271
  span: 12,
1272
1272
  offset: 0
1273
1273
  };
1274
1274
  t.value.form.cols = Ve(
1275
- $,
1276
- (Oe = _ == null ? void 0 : _.form) == null ? void 0 : Oe.cols,
1275
+ _,
1276
+ (Oe = E == null ? void 0 : E.form) == null ? void 0 : Oe.cols,
1277
1277
  t.value.form.cols
1278
1278
  );
1279
- const V = (S) => {
1280
- let b = [];
1281
- if (S.rules)
1282
- b = S.rules;
1279
+ const V = (T) => {
1280
+ let $ = [];
1281
+ if (T.rules)
1282
+ $ = T.rules;
1283
1283
  else {
1284
- const n = { ...{
1284
+ const u = { ...{
1285
1285
  required: void 0,
1286
1286
  max: void 0,
1287
1287
  min: void 0,
@@ -1289,119 +1289,119 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1289
1289
  url: void 0,
1290
1290
  pattern: void 0,
1291
1291
  validate: void 0
1292
- }, ...S };
1293
- n.required && b.push({
1292
+ }, ...T };
1293
+ u.required && $.push({
1294
1294
  required: !0,
1295
- message: `${n.label}不能为空!`,
1295
+ message: `${u.label}不能为空!`,
1296
1296
  trigger: "blur"
1297
- }), n.max !== void 0 && n.max !== null && n.max !== "" && (n.min === void 0 || n.min === null || n.min === "") && b.push({
1297
+ }), u.max !== void 0 && u.max !== null && u.max !== "" && (u.min === void 0 || u.min === null || u.min === "") && $.push({
1298
1298
  validator: (q, C, k) => {
1299
1299
  if (C == null || C === "") return k();
1300
- n.type !== "number" && n.type !== "input-number" ? ((C == null ? void 0 : C.toString()) || "").length > Number(n.max) ? k(
1301
- new Error(`${n.label}长度不能超过${n.max}个字符!`)
1302
- ) : k() : Number(C) > Number(n.max) ? k(new Error(`${n.label}不能大于${n.max}!`)) : k();
1300
+ u.type !== "number" && u.type !== "input-number" ? ((C == null ? void 0 : C.toString()) || "").length > Number(u.max) ? k(
1301
+ new Error(`${u.label}长度不能超过${u.max}个字符!`)
1302
+ ) : k() : Number(C) > Number(u.max) ? k(new Error(`${u.label}不能大于${u.max}!`)) : k();
1303
1303
  }
1304
- }), n.min !== void 0 && n.min !== null && n.min !== "" && (n.max === void 0 || n.max === null || n.max === "") && b.push({
1304
+ }), u.min !== void 0 && u.min !== null && u.min !== "" && (u.max === void 0 || u.max === null || u.max === "") && $.push({
1305
1305
  validator: (q, C, k) => {
1306
1306
  if (C == null || C === "") return k();
1307
- n.type !== "number" && n.type !== "input-number" ? Number(n.min) < 1 ? k(
1307
+ u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
1308
1308
  new Error(
1309
- `${n.label}长度最小值${n.min}设置错误!`
1309
+ `${u.label}长度最小值${u.min}设置错误!`
1310
1310
  )
1311
- ) : C.toString().length < Number(n.min) ? k(
1311
+ ) : C.toString().length < Number(u.min) ? k(
1312
1312
  new Error(
1313
- `${n.label}长度不能少于${n.min}个字符!`
1313
+ `${u.label}长度不能少于${u.min}个字符!`
1314
1314
  )
1315
- ) : k() : Number(C) < Number(n.min) ? k(new Error(`${n.label}不能小于${n.min}!`)) : k();
1315
+ ) : k() : Number(C) < Number(u.min) ? k(new Error(`${u.label}不能小于${u.min}!`)) : k();
1316
1316
  }
1317
- }), n.min !== void 0 && n.min !== null && n.min !== "" && n.max !== void 0 && n.max !== null && n.max !== "" && b.push({
1317
+ }), u.min !== void 0 && u.min !== null && u.min !== "" && u.max !== void 0 && u.max !== null && u.max !== "" && $.push({
1318
1318
  validator: (q, C, k) => {
1319
1319
  if (C == null || C === "") return k();
1320
- const U = Number(n.min), Z = Number(n.max);
1321
- n.type !== "number" && n.type !== "input-number" ? Number(n.min) < 1 ? k(
1320
+ const U = Number(u.min), Z = Number(u.max);
1321
+ u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
1322
1322
  new Error(
1323
- `${n.label}长度最小值${n.min}设置错误!`
1323
+ `${u.label}长度最小值${u.min}设置错误!`
1324
1324
  )
1325
1325
  ) : C.toString().length < U || C.toString().length > Z ? k(
1326
1326
  new Error(
1327
- `${n.label}长度必须在${U}-${Z}个字符之间!`
1327
+ `${u.label}长度必须在${U}-${Z}个字符之间!`
1328
1328
  )
1329
- ) : k() : Number(C) < U || C > Z ? k(new Error(`${n.label}必须在${U}-${Z}之间!`)) : k();
1329
+ ) : k() : Number(C) < U || C > Z ? k(new Error(`${u.label}必须在${U}-${Z}之间!`)) : k();
1330
1330
  }
1331
- }), n.type == "email" && b.push({ type: "email", message: "不是一个正确的邮箱地址!" }), n.type == "url" && b.push({ type: "url", message: "不是一个合正确的URL!" }), n.pattern && b.push({
1332
- pattern: n == null ? void 0 : n.pattern,
1333
- message: (n == null ? void 0 : n.message) || "格式不正确!"
1334
- }), n.validate && b.push({
1335
- validator: (q, C, k) => n.validate(q, C, k)
1331
+ }), u.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), u.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), u.pattern && $.push({
1332
+ pattern: u == null ? void 0 : u.pattern,
1333
+ message: (u == null ? void 0 : u.message) || "格式不正确!"
1334
+ }), u.validate && $.push({
1335
+ validator: (q, C, k) => u.validate(q, C, k)
1336
1336
  });
1337
1337
  }
1338
- return b;
1339
- }, N = (S, b = !1) => {
1338
+ return $;
1339
+ }, j = (T, $ = !1) => {
1340
1340
  var q, C, k, U, Z;
1341
- const g = b ? S : S == null ? void 0 : S.item, n = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(v.value, (q = t.value.form) == null ? void 0 : q.modalState) : (g == null ? void 0 : g.editor) || {};
1341
+ const g = $ ? T : T == null ? void 0 : T.item, u = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(v.value, (q = t.value.form) == null ? void 0 : q.modalState) : (g == null ? void 0 : g.editor) || {};
1342
1342
  if (((C = t.value.form) == null ? void 0 : C.modalState) === "edit") {
1343
- const G = typeof (g == null ? void 0 : g.editor) == "object" ? (k = g.editor) == null ? void 0 : k.ep : typeof (g == null ? void 0 : g.editor) == "function" ? n == null ? void 0 : n.ep : {};
1344
- return { ...n, ...G };
1343
+ const G = typeof (g == null ? void 0 : g.editor) == "object" ? (k = g.editor) == null ? void 0 : k.ep : typeof (g == null ? void 0 : g.editor) == "function" ? u == null ? void 0 : u.ep : {};
1344
+ return { ...u, ...G };
1345
1345
  }
1346
1346
  if (((U = t.value.form) == null ? void 0 : U.modalState) === "add") {
1347
- const G = typeof (g == null ? void 0 : g.editor) == "object" ? (Z = g.editor) == null ? void 0 : Z.ap : typeof (g == null ? void 0 : g.editor) == "function" ? n == null ? void 0 : n.ap : {};
1348
- return { ...n, ...G };
1347
+ const G = typeof (g == null ? void 0 : g.editor) == "object" ? (Z = g.editor) == null ? void 0 : Z.ap : typeof (g == null ? void 0 : g.editor) == "function" ? u == null ? void 0 : u.ap : {};
1348
+ return { ...u, ...G };
1349
1349
  }
1350
- return n;
1351
- }, Y = (S) => {
1352
- var g, n, q, C, k;
1353
- const b = typeof S.editor == "function" ? S.editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : S.editor;
1354
- return ((n = t.value.form) == null ? void 0 : n.modalState) === "edit" ? ((q = b == null ? void 0 : b.ep) == null ? void 0 : q.type) ?? (b == null ? void 0 : b.type) ?? S.type : ((C = t.value.form) == null ? void 0 : C.modalState) === "add" ? ((k = b == null ? void 0 : b.ap) == null ? void 0 : k.type) ?? (b == null ? void 0 : b.type) ?? S.type : (b == null ? void 0 : b.type) ?? S.type;
1350
+ return u;
1351
+ }, R = (T) => {
1352
+ var g, u, q, C, k;
1353
+ const $ = typeof T.editor == "function" ? T.editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T.editor;
1354
+ return ((u = t.value.form) == null ? void 0 : u.modalState) === "edit" ? ((q = $ == null ? void 0 : $.ep) == null ? void 0 : q.type) ?? ($ == null ? void 0 : $.type) ?? T.type : ((C = t.value.form) == null ? void 0 : C.modalState) === "add" ? ((k = $ == null ? void 0 : $.ap) == null ? void 0 : k.type) ?? ($ == null ? void 0 : $.type) ?? T.type : ($ == null ? void 0 : $.type) ?? T.type;
1355
1355
  };
1356
1356
  ut(() => {
1357
- L(), f != null && f.editForm ? v.value = f.editForm : v.value = ve.value;
1358
- }), el(() => {
1357
+ L(), f != null && f.editForm ? v.value = f.editForm : v.value = me.value;
1358
+ }), Kt(() => {
1359
1359
  o.value = null;
1360
1360
  });
1361
1361
  const L = () => {
1362
1362
  F.value = Math.random().toString(36).substring(2);
1363
- for (const [S, b] of Object.entries(oe.value))
1364
- t.value[S].formItem = {
1365
- ...t.value[S].formItem,
1366
- ...b.formItem
1367
- }, t.value[S].formItem.style = {
1368
- ...t.value[S].formItem.style,
1369
- ...b.formItem.style
1363
+ for (const [T, $] of Object.entries(te.value))
1364
+ t.value[T].formItem = {
1365
+ ...t.value[T].formItem,
1366
+ ...$.formItem
1367
+ }, t.value[T].formItem.style = {
1368
+ ...t.value[T].formItem.style,
1369
+ ...$.formItem.style
1370
1370
  };
1371
- }, oe = Je(
1371
+ }, te = Je(
1372
1372
  () => Object.fromEntries(
1373
- Object.entries(t.value).filter((S) => S[1].type != "hidden").filter((S) => S[1].hidden !== !0).filter((S) => S[1].edit !== !1).filter((S) => S[1].editor !== !1).filter((S) => S[1].type !== "control").filter((S) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(S[0])).filter((S) => {
1374
- var g, n, q;
1375
- const b = typeof S[1].editor == "function" ? S[1].editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : S[1].editor;
1376
- return t.value.form.modalState === "edit" ? ((n = b == null ? void 0 : b.ep) == null ? void 0 : n.editor) !== !1 : t.value.form.modalState === "add" ? ((q = b == null ? void 0 : b.ap) == null ? void 0 : q.editor) !== !1 : !0;
1377
- }).map((S) => [S[0], S[1]])
1373
+ Object.entries(t.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].hidden !== !0).filter((T) => T[1].edit !== !1).filter((T) => T[1].editor !== !1).filter((T) => T[1].type !== "control").filter((T) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(T[0])).filter((T) => {
1374
+ var g, u, q;
1375
+ const $ = typeof T[1].editor == "function" ? T[1].editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T[1].editor;
1376
+ return t.value.form.modalState === "edit" ? ((u = $ == null ? void 0 : $.ep) == null ? void 0 : u.editor) !== !1 : t.value.form.modalState === "add" ? ((q = $ == null ? void 0 : $.ap) == null ? void 0 : q.editor) !== !1 : !0;
1377
+ }).map((T) => [T[0], T[1]])
1378
1378
  )
1379
- ), ve = Je(
1379
+ ), me = Je(
1380
1380
  () => Object.fromEntries(
1381
- Object.entries(t.value).filter((S) => S[1].type != "hidden").filter((S) => S[1].type != "control").map((S) => [S[0], S[1].value])
1381
+ Object.entries(t.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].type != "control").map((T) => [T[0], T[1].value])
1382
1382
  )
1383
1383
  ), ie = Je(() => {
1384
- const S = /* @__PURE__ */ new Map();
1385
- return Object.entries(oe.value).forEach(([b, g]) => {
1384
+ const T = /* @__PURE__ */ new Map();
1385
+ return Object.entries(te.value).forEach(([$, g]) => {
1386
1386
  if (g.groupName) {
1387
- const n = g.groupName;
1388
- S.has(n) || S.set(n, {
1389
- groupName: n,
1387
+ const u = g.groupName;
1388
+ T.has(u) || T.set(u, {
1389
+ groupName: u,
1390
1390
  items: []
1391
- }), S.get(n).items.push({ key: b, item: g });
1391
+ }), T.get(u).items.push({ key: $, item: g });
1392
1392
  }
1393
- }), S.forEach((b) => {
1394
- b.tabPane = Ve(
1395
- ...b.items.map(({ item: g }) => g.tabPane || {})
1393
+ }), T.forEach(($) => {
1394
+ $.tabPane = Ve(
1395
+ ...$.items.map(({ item: g }) => g.tabPane || {})
1396
1396
  );
1397
- }), Array.from(S.values());
1397
+ }), Array.from(T.values());
1398
1398
  }), ce = [
1399
1399
  {
1400
1400
  name: "f-submit",
1401
1401
  label: t.value.form.submit.label,
1402
1402
  click: t.value.form.submit.click,
1403
1403
  hidden: t.value.form.submit.hidden,
1404
- info: Ue(t.value.form.submit, (S) => !["click"].includes(S)),
1404
+ info: Ue(t.value.form.submit, (T) => !["click"].includes(T)),
1405
1405
  sort: t.value.form.submit.sort ?? 1,
1406
1406
  // 使用空值合并运算符
1407
1407
  originalOrder: 0
@@ -1411,22 +1411,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1411
1411
  name: "f-reset",
1412
1412
  label: t.value.form.reset.label,
1413
1413
  click: t.value.form.reset.click,
1414
- info: Ue(t.value.form.reset, (S) => !["click"].includes(S)),
1414
+ info: Ue(t.value.form.reset, (T) => !["click"].includes(T)),
1415
1415
  hidden: t.value.form.reset.hidden,
1416
1416
  sort: t.value.form.reset.sort ?? 2,
1417
1417
  // 使用空值合并运算符
1418
1418
  originalOrder: 1
1419
1419
  // 添加原始顺序标识
1420
1420
  }
1421
- ], de = Je(() => ce.filter((S) => !S.hidden).sort((S, b) => S.sort - b.sort || S.originalOrder - b.originalOrder));
1422
- return s({
1421
+ ], de = Je(() => ce.filter((T) => !T.hidden).sort((T, $) => T.sort - $.sort || T.originalOrder - $.originalOrder));
1422
+ return n({
1423
1423
  submit: i,
1424
- reset: u,
1424
+ reset: s,
1425
1425
  formData: v
1426
- }), (S, b) => {
1427
- var Z, G, pe;
1428
- const g = z("el-form-item"), n = z("el-col"), q = z("el-tab-pane"), C = z("el-tabs"), k = z("el-form"), U = z("el-button");
1429
- return p(), I("div", Ol, [
1426
+ }), (T, $) => {
1427
+ var Z, G, ve;
1428
+ const g = H("el-form-item"), u = H("el-col"), q = H("el-tab-pane"), C = H("el-tabs"), k = H("el-form"), U = H("el-button");
1429
+ return p(), I("div", Bl, [
1430
1430
  K(k, O(
1431
1431
  {
1432
1432
  ref_key: "gform",
@@ -1441,62 +1441,62 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1441
1441
  },
1442
1442
  P(Ue)(
1443
1443
  t.value.form,
1444
- (E) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(E)
1444
+ (w) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(w)
1445
1445
  )
1446
1446
  ), {
1447
1447
  default: D(() => [
1448
- ie.value.length > 0 ? M(S.$slots, "default", { key: 0 }, () => [
1448
+ ie.value.length > 0 ? M(T.$slots, "default", { key: 0 }, () => [
1449
1449
  K(C, O({
1450
1450
  class: "demo-tabs",
1451
1451
  modelValue: ie.value[0].groupName,
1452
- "onUpdate:modelValue": b[0] || (b[0] = (E) => ie.value[0].groupName = E),
1452
+ "onUpdate:modelValue": $[0] || ($[0] = (w) => ie.value[0].groupName = w),
1453
1453
  style: { width: "100%" }
1454
1454
  }, t.value.form.tabs), {
1455
1455
  default: D(() => [
1456
- (p(!0), I(J, null, j(ie.value, (E) => (p(), A(q, O({
1457
- key: E.groupName,
1458
- label: E.groupName,
1459
- name: E.groupName,
1456
+ (p(!0), I(J, null, N(ie.value, (w) => (p(), B(q, O({
1457
+ key: w.groupName,
1458
+ label: w.groupName,
1459
+ name: w.groupName,
1460
1460
  style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
1461
1461
  ref_for: !0
1462
- }, E.tabPane), {
1462
+ }, w.tabPane), {
1463
1463
  default: D(() => [
1464
- (p(!0), I(J, null, j(E.items, (y, re) => (p(), A(n, O({ ref_for: !0 }, { ...t.value.form.cols, ...y == null ? void 0 : y.item.col }, {
1464
+ (p(!0), I(J, null, N(w.items, (y, ae) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...y == null ? void 0 : y.item.col }, {
1465
1465
  key: y.key,
1466
1466
  style: { width: "100%" }
1467
1467
  }), {
1468
1468
  default: D(() => {
1469
- var me, ge;
1469
+ var he, be;
1470
1470
  return [
1471
1471
  K(g, O({
1472
1472
  label: y == null ? void 0 : y.item.label,
1473
1473
  prop: y.key,
1474
1474
  rules: V(y == null ? void 0 : y.item),
1475
1475
  ref_for: !0
1476
- }, { ...(me = t.value) == null ? void 0 : me.formItems, ...(ge = y == null ? void 0 : y.item) == null ? void 0 : ge.formItem }, { style: { width: "100%" } }), {
1476
+ }, { ...(he = t.value) == null ? void 0 : he.formItems, ...(be = y == null ? void 0 : y.item) == null ? void 0 : be.formItem }, { style: { width: "100%" } }), {
1477
1477
  default: D(() => [
1478
- M(S.$slots, "f-" + y.key, {
1478
+ M(T.$slots, "f-" + y.key, {
1479
1479
  item: y == null ? void 0 : y.item,
1480
1480
  formInfo: v.value,
1481
1481
  model: t.value
1482
1482
  }, () => [
1483
- (p(), A(gt, {
1483
+ (p(), B(bt, {
1484
1484
  modelValue: v.value[y.key],
1485
- "onUpdate:modelValue": (be) => v.value[y.key] = be,
1486
- item: N(y),
1485
+ "onUpdate:modelValue": ($e) => v.value[y.key] = $e,
1486
+ item: j(y),
1487
1487
  ctrlKey: y.key,
1488
- ctrlType: Y(y == null ? void 0 : y.item),
1488
+ ctrlType: R(y == null ? void 0 : y.item),
1489
1489
  model: t.value,
1490
1490
  key: `${y.key}-${F.value}`,
1491
1491
  class: "g-ctrl-container",
1492
1492
  t: "f",
1493
1493
  formInfo: v.value
1494
- }, he({ _: 2 }, [
1495
- j(S.$slots, (be, $e) => ({
1496
- name: $e,
1497
- fn: D((we) => [
1498
- M(S.$slots, $e, {
1499
- data: we,
1494
+ }, ye({ _: 2 }, [
1495
+ N(T.$slots, ($e, we) => ({
1496
+ name: we,
1497
+ fn: D((Ee) => [
1498
+ M(T.$slots, we, {
1499
+ data: Ee,
1500
1500
  item: y.item,
1501
1501
  model: t.value
1502
1502
  }, void 0, !0)
@@ -1517,53 +1517,53 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1517
1517
  ]),
1518
1518
  _: 3
1519
1519
  }, 16, ["modelValue"])
1520
- ], !0) : M(S.$slots, "default", { key: 1 }, () => [
1521
- (p(!0), I(J, null, j(oe.value, (E, y) => (p(), A(n, O({ ref_for: !0 }, { ...t.value.form.cols, ...E.col }, {
1520
+ ], !0) : M(T.$slots, "default", { key: 1 }, () => [
1521
+ (p(!0), I(J, null, N(te.value, (w, y) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...w.col }, {
1522
1522
  key: y,
1523
1523
  style: { width: "100%" }
1524
1524
  }), {
1525
1525
  default: D(() => {
1526
- var re;
1526
+ var ae;
1527
1527
  return [
1528
1528
  K(g, O({
1529
- label: E.label,
1529
+ label: w.label,
1530
1530
  prop: y,
1531
- rules: V(E),
1531
+ rules: V(w),
1532
1532
  ref_for: !0
1533
- }, { ...(re = t.value) == null ? void 0 : re.formItems, ...E == null ? void 0 : E.formItem }, { style: { width: "100%" } }), {
1534
- label: D((me) => [
1535
- M(S.$slots, `f-${y}-label`, {
1536
- data: me,
1537
- item: E,
1533
+ }, { ...(ae = t.value) == null ? void 0 : ae.formItems, ...w == null ? void 0 : w.formItem }, { style: { width: "100%" } }), {
1534
+ label: D((he) => [
1535
+ M(T.$slots, `f-${y}-label`, {
1536
+ data: he,
1537
+ item: w,
1538
1538
  model: t.value
1539
1539
  }, () => [
1540
- Ie(Ce(E.label), 1)
1540
+ Ie(De(w.label), 1)
1541
1541
  ], !0)
1542
1542
  ]),
1543
1543
  default: D(() => [
1544
- M(S.$slots, "f-" + y, {
1545
- item: E,
1544
+ M(T.$slots, "f-" + y, {
1545
+ item: w,
1546
1546
  formInfo: v.value,
1547
1547
  model: t.value
1548
1548
  }, () => [
1549
- (p(), A(gt, {
1549
+ (p(), B(bt, {
1550
1550
  modelValue: v.value[y],
1551
- "onUpdate:modelValue": (me) => v.value[y] = me,
1552
- item: N(E, !0),
1551
+ "onUpdate:modelValue": (he) => v.value[y] = he,
1552
+ item: j(w, !0),
1553
1553
  ctrlKey: y,
1554
- ctrlType: Y(E),
1554
+ ctrlType: R(w),
1555
1555
  key: `${y}-${F.value}`,
1556
1556
  model: t.value,
1557
1557
  class: "g-ctrl-container",
1558
1558
  t: "f",
1559
1559
  formInfo: v.value
1560
- }, he({ _: 2 }, [
1561
- j(S.$slots, (me, ge) => ({
1562
- name: ge,
1563
- fn: D((be) => [
1564
- M(S.$slots, ge, {
1565
- data: be,
1566
- item: E,
1560
+ }, ye({ _: 2 }, [
1561
+ N(T.$slots, (he, be) => ({
1562
+ name: be,
1563
+ fn: D(($e) => [
1564
+ M(T.$slots, be, {
1565
+ data: $e,
1566
+ item: w,
1567
1567
  model: t.value
1568
1568
  }, void 0, !0)
1569
1569
  ])
@@ -1581,32 +1581,32 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1581
1581
  ]),
1582
1582
  _: 3
1583
1583
  }, 16, ["model"]),
1584
- (pe = (G = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : G.footer) != null && pe.hidden ? ye("", !0) : M(S.$slots, "f-footer", { key: 0 }, () => [
1584
+ (ve = (G = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : G.footer) != null && ve.hidden ? ge("", !0) : M(T.$slots, "f-footer", { key: 0 }, () => [
1585
1585
  Q("div", {
1586
1586
  style: qe(t.value.form.footer.style)
1587
1587
  }, [
1588
- M(S.$slots, "f-footer-left", {}, void 0, !0),
1589
- (p(!0), I(J, null, j(de.value, (E) => (p(), I(J, null, [
1590
- M(S.$slots, E.name + "-left", {}, void 0, !0),
1591
- M(S.$slots, E.name, {}, () => [
1592
- K(U, O({ ref_for: !0 }, E.info, {
1593
- onClick: ht((y) => E.click(v.value, t.value), ["stop"])
1588
+ M(T.$slots, "f-footer-left", {}, void 0, !0),
1589
+ (p(!0), I(J, null, N(de.value, (w) => (p(), I(J, null, [
1590
+ M(T.$slots, w.name + "-left", {}, void 0, !0),
1591
+ M(T.$slots, w.name, {}, () => [
1592
+ K(U, O({ ref_for: !0 }, w.info, {
1593
+ onClick: yt((y) => w.click(v.value, t.value), ["stop"])
1594
1594
  }), {
1595
1595
  default: D(() => [
1596
- Ie(Ce(E == null ? void 0 : E.label), 1)
1596
+ Ie(De(w == null ? void 0 : w.label), 1)
1597
1597
  ]),
1598
1598
  _: 2
1599
1599
  }, 1040, ["onClick"])
1600
1600
  ], !0),
1601
- M(S.$slots, E.name + "-right", {}, void 0, !0)
1601
+ M(T.$slots, w.name + "-right", {}, void 0, !0)
1602
1602
  ], 64))), 256)),
1603
- M(S.$slots, "f-footer-right", {}, void 0, !0)
1603
+ M(T.$slots, "f-footer-right", {}, void 0, !0)
1604
1604
  ], 4)
1605
1605
  ], !0)
1606
1606
  ]);
1607
1607
  };
1608
1608
  }
1609
- }), Et = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-68883be7"]]), Ft = {
1609
+ }), _t = /* @__PURE__ */ Ze(Ol, [["__scopeId", "data-v-68883be7"]]), Ft = {
1610
1610
  __name: "g-query-item",
1611
1611
  props: /* @__PURE__ */ Xe(["more"], {
1612
1612
  modelValue: { required: !0 },
@@ -1616,55 +1616,55 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1616
1616
  }),
1617
1617
  emits: ["update:modelValue", "update:info"],
1618
1618
  setup(a) {
1619
- const s = Qe(a, "modelValue"), r = a, t = Qe(a, "info"), e = (F) => Je(() => Object.fromEntries(Object.entries(s.value).filter((f) => {
1619
+ const n = Qe(a, "modelValue"), r = a, t = Qe(a, "info"), e = (F) => Je(() => Object.fromEntries(Object.entries(n.value).filter((f) => {
1620
1620
  var i;
1621
- return typeof f[1].search == "function" ? f[1].search && ((i = f[1].search(t.value, s.value.table)) == null ? void 0 : i.more) === F : f[1].search && f[1].search.more === F;
1622
- }).map((f) => [f[0], f[1]]))).value, o = (F) => typeof F.search == "function" ? F.search(t.value, s.value.table) : F.search || {}, _ = (F) => {
1621
+ return typeof f[1].search == "function" ? f[1].search && ((i = f[1].search(t.value, n.value.table)) == null ? void 0 : i.more) === F : f[1].search && f[1].search.more === F;
1622
+ }).map((f) => [f[0], f[1]]))).value, o = (F) => typeof F.search == "function" ? F.search(t.value, n.value.table) : F.search || {}, E = (F) => {
1623
1623
  const f = o(F);
1624
1624
  return (f == null ? void 0 : f.type) || F.type;
1625
1625
  }, v = (F) => {
1626
- var u;
1626
+ var s;
1627
1627
  const f = o(F);
1628
- let i = (f == null ? void 0 : f.width) || ((u = s.value.queryItems) == null ? void 0 : u.width) || "100%";
1628
+ let i = (f == null ? void 0 : f.width) || ((s = n.value.queryItems) == null ? void 0 : s.width) || "100%";
1629
1629
  return isNaN(i) || (i += "px"), i;
1630
1630
  };
1631
1631
  return (F, f) => {
1632
- const i = z("el-form-item");
1633
- return p(!0), I(J, null, j(e(r.more), (u, c) => M(F.$slots, `q-${c}`, {
1632
+ const i = H("el-form-item");
1633
+ return p(!0), I(J, null, N(e(r.more), (s, c) => M(F.$slots, `q-${c}`, {
1634
1634
  key: c,
1635
- item: u,
1635
+ item: s,
1636
1636
  queryModel: t.value,
1637
- model: s.value
1637
+ model: n.value
1638
1638
  }, () => [
1639
1639
  K(i, O({
1640
- label: u.label,
1641
- style: { width: v(u) },
1640
+ label: s.label,
1641
+ style: { width: v(s) },
1642
1642
  ref_for: !0
1643
- }, { ...s.value.queryItems, ...o(u) }), {
1643
+ }, { ...n.value.queryItems, ...o(s) }), {
1644
1644
  label: D(() => [
1645
1645
  M(F.$slots, `q-${c}-label`, {
1646
- item: u,
1647
- model: s.value
1646
+ item: s,
1647
+ model: n.value
1648
1648
  })
1649
1649
  ]),
1650
1650
  default: D(() => [
1651
- K(gt, {
1651
+ K(bt, {
1652
1652
  modelValue: t.value[c],
1653
- "onUpdate:modelValue": ($) => t.value[c] = $,
1654
- item: { ...u == null ? void 0 : u.editor, ...o(u) },
1653
+ "onUpdate:modelValue": (_) => t.value[c] = _,
1654
+ item: { ...s == null ? void 0 : s.editor, ...o(s) },
1655
1655
  ctrlKey: c,
1656
- ctrlType: _(u),
1657
- model: s.value,
1656
+ ctrlType: E(s),
1657
+ model: n.value,
1658
1658
  t: "q",
1659
1659
  formInfo: t.value
1660
- }, he({ _: 2 }, [
1661
- j(Object.keys(F.$slots), ($) => ({
1662
- name: $,
1660
+ }, ye({ _: 2 }, [
1661
+ N(Object.keys(F.$slots), (_) => ({
1662
+ name: _,
1663
1663
  fn: D((V) => [
1664
- M(F.$slots, $, {
1664
+ M(F.$slots, _, {
1665
1665
  data: V,
1666
- item: u,
1667
- model: s.value
1666
+ item: s,
1667
+ model: n.value
1668
1668
  })
1669
1669
  ])
1670
1670
  }))
@@ -1675,10 +1675,10 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1675
1675
  ])), 128);
1676
1676
  };
1677
1677
  }
1678
- }, Ul = {
1678
+ }, Il = {
1679
1679
  key: 0,
1680
1680
  class: "outer"
1681
- }, Yl = { class: "inner" }, Rl = {
1681
+ }, Ul = { class: "inner" }, Yl = {
1682
1682
  __name: "g-query",
1683
1683
  props: {
1684
1684
  modelValue: { required: !0 },
@@ -1687,8 +1687,8 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1687
1687
  infoModifiers: {}
1688
1688
  },
1689
1689
  emits: /* @__PURE__ */ Xe(["query", "reset"], ["update:modelValue", "update:info"]),
1690
- setup(a, { emit: s }) {
1691
- const r = Qe(a, "modelValue"), t = s, e = Tt("options"), o = ae(!1), _ = Qe(a, "info"), v = {
1690
+ setup(a, { emit: n }) {
1691
+ const r = Qe(a, "modelValue"), t = n, e = Mt("options"), o = oe(!1), E = Qe(a, "info"), v = {
1692
1692
  hidden: !1,
1693
1693
  type: "hidden",
1694
1694
  labelWidth: 100,
@@ -1705,7 +1705,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1705
1705
  hidden: !0,
1706
1706
  type: "primary",
1707
1707
  label: "更多",
1708
- icon: () => _e(fl),
1708
+ icon: () => ke(cl),
1709
1709
  click: () => {
1710
1710
  o.value = !o.value;
1711
1711
  }
@@ -1715,18 +1715,18 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1715
1715
  type: "primary",
1716
1716
  hidden: !1,
1717
1717
  plain: !1,
1718
- icon: () => _e(Ut),
1718
+ icon: () => ke(It),
1719
1719
  click: () => {
1720
- t("reset", _.value);
1720
+ t("reset", E.value);
1721
1721
  }
1722
1722
  },
1723
1723
  query: {
1724
1724
  hidden: !1,
1725
1725
  type: "primary",
1726
1726
  label: "查询",
1727
- icon: () => _e(pl),
1727
+ icon: () => ke(fl),
1728
1728
  click: () => {
1729
- t("query", _.value), o.value = !1;
1729
+ t("query", E.value), o.value = !1;
1730
1730
  }
1731
1731
  },
1732
1732
  btns: {
@@ -1772,24 +1772,24 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1772
1772
  }
1773
1773
  };
1774
1774
  r.value.queryItems = Ve(f, e == null ? void 0 : e.queryItems, r.value.queryItems);
1775
- const i = (V, N) => {
1776
- const Y = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, oe) => (L[oe] = (ve) => V.slots[oe]({
1775
+ const i = (V, j) => {
1776
+ const R = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (me) => V.slots[te]({
1777
1777
  model: r.value
1778
1778
  // 传递当前模型数据
1779
1779
  }), L), {});
1780
- return _e(Ft, {
1780
+ return ke(Ft, {
1781
1781
  modelValue: r.value,
1782
1782
  "onUpdate:modelValue": (L) => r.value = L,
1783
- info: _.value,
1784
- "onUpdate:info": (L) => _.value = L,
1785
- more: N
1786
- }, Y);
1787
- }, u = Bt(), c = () => {
1788
- var Y, L, oe, ve, ie, ce, de, ke, Se;
1783
+ info: E.value,
1784
+ "onUpdate:info": (L) => E.value = L,
1785
+ more: j
1786
+ }, R);
1787
+ }, s = At(), c = () => {
1788
+ var R, L, te, me, ie, ce, de, Ce, Te;
1789
1789
  const V = [
1790
1790
  {
1791
1791
  key: "query",
1792
- hidden: (oe = (L = (Y = r.value) == null ? void 0 : Y.query) == null ? void 0 : L.query) == null ? void 0 : oe.hidden,
1792
+ hidden: (te = (L = (R = r.value) == null ? void 0 : R.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
1793
1793
  component: Be,
1794
1794
  props: {
1795
1795
  ...r.value.query.query,
@@ -1800,7 +1800,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1800
1800
  },
1801
1801
  {
1802
1802
  key: "reset",
1803
- hidden: (ce = (ie = (ve = r.value) == null ? void 0 : ve.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1803
+ hidden: (ce = (ie = (me = r.value) == null ? void 0 : me.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1804
1804
  component: Be,
1805
1805
  props: {
1806
1806
  ...r.value.query.reset,
@@ -1811,69 +1811,69 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1811
1811
  },
1812
1812
  {
1813
1813
  key: "more",
1814
- hidden: (Se = (ke = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : ke.more) == null ? void 0 : Se.hidden,
1815
- component: r.value.query.more.mode === 3 ? bt : Be,
1814
+ hidden: (Te = (Ce = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : Ce.more) == null ? void 0 : Te.hidden,
1815
+ component: r.value.query.more.mode === 3 ? $t : Be,
1816
1816
  props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
1817
1817
  ...r.value.query.more,
1818
1818
  onClick: r.value.query.more.click
1819
1819
  },
1820
1820
  label: r.value.query.more.label,
1821
1821
  sort: r.value.query.more.sort || 0,
1822
- content: r.value.query.more.mode === 3 ? () => _e(vt, {
1822
+ content: r.value.query.more.mode === 3 ? () => ke(vt, {
1823
1823
  class: "query-form",
1824
- ...Ue(r.value.query, (te) => !["query", "more", "reset"].includes(te))
1825
- }, () => i({ slots: u }, !0)) : null
1824
+ ...Ue(r.value.query, (le) => !["query", "more", "reset"].includes(le))
1825
+ }, () => i({ slots: s }, !0)) : null
1826
1826
  }
1827
1827
  ];
1828
- return V.sort((te, ne) => te.sort - ne.sort), V.filter((te) => !te.hidden).map((te) => te.key === "more" && te.component === bt ? _e(bt, te.props, {
1829
- reference: () => _e(Be, r.value.query.more, () => te.label),
1830
- default: te.content
1831
- }) : (te.props.slot = "query-" + te.key, te.label ? _e(te.component, te.props, () => te.label) : _e(te.component, te.props)));
1832
- }, $ = Je(() => ({
1828
+ return V.sort((le, ne) => le.sort - ne.sort), V.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === $t ? ke($t, le.props, {
1829
+ reference: () => ke(Be, r.value.query.more, () => le.label),
1830
+ default: le.content
1831
+ }) : (le.props.slot = "query-" + le.key, le.label ? ke(le.component, le.props, () => le.label) : ke(le.component, le.props)));
1832
+ }, _ = Je(() => ({
1833
1833
  diplay: "flex",
1834
1834
  flexDirection: r.value.query.container.mode === "row" ? "row" : "column"
1835
1835
  }));
1836
- return (V, N) => {
1837
- var oe, ve, ie, ce, de, ke, Se, te, ne, le, Oe, S, b, g, n, q, C;
1838
- const Y = z("el-form-item"), L = z("el-drawer");
1836
+ return (V, j) => {
1837
+ var te, me, ie, ce, de, Ce, Te, le, ne, re, Oe, T, $, g, u, q, C;
1838
+ const R = H("el-form-item"), L = H("el-drawer");
1839
1839
  return p(), I(J, null, [
1840
1840
  Q("div", {
1841
1841
  class: "g-query-container",
1842
- style: qe({ ...$.value, ...((ve = (oe = r.value.query) == null ? void 0 : oe.container) == null ? void 0 : ve.style) || {} })
1842
+ style: qe({ ..._.value, ...((me = (te = r.value.query) == null ? void 0 : te.container) == null ? void 0 : me.style) || {} })
1843
1843
  }, [
1844
1844
  K(P(vt), O({
1845
- onSubmit: N[0] || (N[0] = ht(() => {
1845
+ onSubmit: j[0] || (j[0] = yt(() => {
1846
1846
  }, ["prevent"]))
1847
1847
  }, P(Ue)(r.value.query, (k) => !["query", "more", "reset", "btns"].includes(k))), {
1848
1848
  default: D(() => {
1849
1849
  var k, U;
1850
1850
  return [
1851
- (p(), A(We(i({ slots: V.$slots }, void 0)))),
1852
- ((U = (k = r.value.query) == null ? void 0 : k.container) == null ? void 0 : U.inline) === !0 ? (p(), A(Y, { key: 0 }, {
1851
+ (p(), B(We(i({ slots: V.$slots }, void 0)))),
1852
+ ((U = (k = r.value.query) == null ? void 0 : k.container) == null ? void 0 : U.inline) === !0 ? (p(), B(R, { key: 0 }, {
1853
1853
  default: D(() => {
1854
- var Z, G, pe, E, y;
1854
+ var Z, G, ve, w, y;
1855
1855
  return [
1856
1856
  Q("div", {
1857
1857
  style: qe((G = (Z = r.value.query) == null ? void 0 : Z.btns) == null ? void 0 : G.style)
1858
1858
  }, [
1859
- r.value.query.group ? (p(), A(P(mt), { key: 0 }, {
1859
+ r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1860
1860
  default: D(() => [
1861
- (p(!0), I(J, null, j(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1862
- (p(), A(We(re)))
1861
+ (p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1862
+ (p(), B(We(ae)))
1863
1863
  ], !0)), 256)),
1864
1864
  M(V.$slots, "q-btns", {}, void 0, !0)
1865
1865
  ]),
1866
1866
  _: 3
1867
1867
  })) : (p(), I(J, { key: 1 }, [
1868
- (y = (E = (pe = r.value) == null ? void 0 : pe.query) == null ? void 0 : E.btns) != null && y.group ? (p(), A(P(mt), { key: 0 }, {
1868
+ (y = (w = (ve = r.value) == null ? void 0 : ve.query) == null ? void 0 : w.btns) != null && y.group ? (p(), B(P(mt), { key: 0 }, {
1869
1869
  default: D(() => [
1870
- (p(!0), I(J, null, j(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1871
- (p(), A(We(re)))
1870
+ (p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1871
+ (p(), B(We(ae)))
1872
1872
  ], !0)), 256))
1873
1873
  ]),
1874
1874
  _: 3
1875
- })) : (p(!0), I(J, { key: 1 }, j(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1876
- (p(), A(We(re)))
1875
+ })) : (p(!0), I(J, { key: 1 }, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1876
+ (p(), B(We(ae)))
1877
1877
  ], !0)), 256)),
1878
1878
  M(V.$slots, "q-btns", {}, void 0, !0)
1879
1879
  ], 64))
@@ -1881,59 +1881,59 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1881
1881
  ];
1882
1882
  }),
1883
1883
  _: 3
1884
- })) : ye("", !0)
1884
+ })) : ge("", !0)
1885
1885
  ];
1886
1886
  }),
1887
1887
  _: 3
1888
1888
  }, 16),
1889
1889
  ((de = (ce = (ie = r.value) == null ? void 0 : ie.query) == null ? void 0 : ce.container) == null ? void 0 : de.inline) === !1 ? (p(), I("div", {
1890
1890
  key: 0,
1891
- style: qe((Se = (ke = r.value.query) == null ? void 0 : ke.btns) == null ? void 0 : Se.style)
1891
+ style: qe((Te = (Ce = r.value.query) == null ? void 0 : Ce.btns) == null ? void 0 : Te.style)
1892
1892
  }, [
1893
- r.value.query.group ? (p(), A(P(mt), { key: 0 }, {
1893
+ r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1894
1894
  default: D(() => [
1895
- (p(!0), I(J, null, j(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1896
- (p(), A(We(k)))
1895
+ (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1896
+ (p(), B(We(k)))
1897
1897
  ], !0)), 256)),
1898
1898
  M(V.$slots, "q-btns", {}, void 0, !0)
1899
1899
  ]),
1900
1900
  _: 3
1901
1901
  })) : (p(), I(J, { key: 1 }, [
1902
- (ne = (te = r.value.query) == null ? void 0 : te.btns) != null && ne.group ? (p(), A(P(mt), { key: 0 }, {
1902
+ (ne = (le = r.value.query) == null ? void 0 : le.btns) != null && ne.group ? (p(), B(P(mt), { key: 0 }, {
1903
1903
  default: D(() => [
1904
- (p(!0), I(J, null, j(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1905
- (p(), A(We(k)))
1904
+ (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1905
+ (p(), B(We(k)))
1906
1906
  ], !0)), 256))
1907
1907
  ]),
1908
1908
  _: 3
1909
- })) : (p(!0), I(J, { key: 1 }, j(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1910
- (p(), A(We(k)))
1909
+ })) : (p(!0), I(J, { key: 1 }, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1910
+ (p(), B(We(k)))
1911
1911
  ], !0)), 256)),
1912
1912
  M(V.$slots, "q-btns", {}, void 0, !0)
1913
1913
  ], 64))
1914
- ], 4)) : ye("", !0)
1914
+ ], 4)) : ge("", !0)
1915
1915
  ], 4),
1916
- o.value && !((S = (Oe = (le = r.value) == null ? void 0 : le.query) == null ? void 0 : Oe.more) != null && S.hidden) && r.value.query.more.mode == 2 ? (p(), A(L, O({
1916
+ o.value && !((T = (Oe = (re = r.value) == null ? void 0 : re.query) == null ? void 0 : Oe.more) != null && T.hidden) && r.value.query.more.mode == 2 ? (p(), B(L, O({
1917
1917
  key: 0,
1918
1918
  modelValue: o.value,
1919
- "onUpdate:modelValue": N[6] || (N[6] = (k) => o.value = k),
1919
+ "onUpdate:modelValue": j[6] || (j[6] = (k) => o.value = k),
1920
1920
  title: "更多查询",
1921
1921
  "show-close": !1
1922
- }, r.value.query.more.dialog), he({
1922
+ }, r.value.query.more.dialog), ye({
1923
1923
  default: D(() => [
1924
1924
  K(P(vt), O({
1925
- onSubmit: N[3] || (N[3] = ht(() => {
1925
+ onSubmit: j[3] || (j[3] = yt(() => {
1926
1926
  }, ["prevent"]))
1927
1927
  }, P(Ue)(r.value.query, (k) => !["query", "more", "reset"].includes(k)), { style: { width: "98%" } }), {
1928
1928
  default: D(() => [
1929
1929
  K(Ft, {
1930
1930
  modelValue: r.value,
1931
- "onUpdate:modelValue": N[1] || (N[1] = (k) => r.value = k),
1932
- info: _.value,
1933
- "onUpdate:info": N[2] || (N[2] = (k) => _.value = k),
1931
+ "onUpdate:modelValue": j[1] || (j[1] = (k) => r.value = k),
1932
+ info: E.value,
1933
+ "onUpdate:info": j[2] || (j[2] = (k) => E.value = k),
1934
1934
  more: !0
1935
- }, he({ _: 2 }, [
1936
- j(V.$slots, (k, U, Z) => ({
1935
+ }, ye({ _: 2 }, [
1936
+ N(V.$slots, (k, U, Z) => ({
1937
1937
  name: U,
1938
1938
  fn: D((G) => [
1939
1939
  M(V.$slots, U, { model: r.value }, void 0, !0)
@@ -1946,23 +1946,23 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1946
1946
  ]),
1947
1947
  _: 2
1948
1948
  }, [
1949
- (C = (q = (n = (g = (b = r.value) == null ? void 0 : b.query) == null ? void 0 : g.more) == null ? void 0 : n.dialog) == null ? void 0 : q.footer) != null && C.hidden ? void 0 : {
1949
+ (C = (q = (u = (g = ($ = r.value) == null ? void 0 : $.query) == null ? void 0 : g.more) == null ? void 0 : u.dialog) == null ? void 0 : q.footer) != null && C.hidden ? void 0 : {
1950
1950
  name: "footer",
1951
1951
  fn: D(() => [
1952
- Q("div", wt(tl(r.value.query.more.dialog.footer)), [
1952
+ Q("div", Et(el(r.value.query.more.dialog.footer)), [
1953
1953
  K(P(Be), O(r.value.query.query, {
1954
- onClick: N[4] || (N[4] = (k) => r.value.query.query.click())
1954
+ onClick: j[4] || (j[4] = (k) => r.value.query.query.click())
1955
1955
  }), {
1956
1956
  default: D(() => [
1957
- Ie(Ce(r.value.query.query.label), 1)
1957
+ Ie(De(r.value.query.query.label), 1)
1958
1958
  ]),
1959
1959
  _: 1
1960
1960
  }, 16),
1961
1961
  K(P(Be), O(r.value.query.reset, {
1962
- onClick: N[5] || (N[5] = (k) => r.value.query.reset.click())
1962
+ onClick: j[5] || (j[5] = (k) => r.value.query.reset.click())
1963
1963
  }), {
1964
1964
  default: D(() => [
1965
- Ie(Ce(r.value.query.reset.label), 1)
1965
+ Ie(De(r.value.query.reset.label), 1)
1966
1966
  ]),
1967
1967
  _: 1
1968
1968
  }, 16)
@@ -1970,8 +1970,8 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1970
1970
  ]),
1971
1971
  key: "0"
1972
1972
  }
1973
- ]), 1040, ["modelValue"])) : ye("", !0),
1974
- K(ll, {
1973
+ ]), 1040, ["modelValue"])) : ge("", !0),
1974
+ K(tl, {
1975
1975
  duration: 300,
1976
1976
  name: "nested",
1977
1977
  style: { padding: "10px" }
@@ -1979,22 +1979,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1979
1979
  default: D(() => {
1980
1980
  var k, U, Z;
1981
1981
  return [
1982
- o.value && !((Z = (U = (k = r.value) == null ? void 0 : k.query) == null ? void 0 : U.more) != null && Z.hidden) && r.value.query.more.mode == 1 ? (p(), I("div", Ul, [
1983
- Q("div", Yl, [
1984
- r.value.query.more.mode == 1 ? rl((p(), A(P(vt), O({
1982
+ o.value && !((Z = (U = (k = r.value) == null ? void 0 : k.query) == null ? void 0 : U.more) != null && Z.hidden) && r.value.query.more.mode == 1 ? (p(), I("div", Il, [
1983
+ Q("div", Ul, [
1984
+ r.value.query.more.mode == 1 ? ll((p(), B(P(vt), O({
1985
1985
  key: 0,
1986
- onSubmit: N[7] || (N[7] = ht(() => {
1986
+ onSubmit: j[7] || (j[7] = yt(() => {
1987
1987
  }, ["prevent"]))
1988
1988
  }, P(Ue)(r.value.query, (G) => !["query", "more", "reset"].includes(G))), {
1989
1989
  default: D(() => [
1990
- (p(), A(We(i({ slots: V.$slots }, !0))))
1990
+ (p(), B(We(i({ slots: V.$slots }, !0))))
1991
1991
  ]),
1992
1992
  _: 1
1993
1993
  }, 16)), [
1994
- [al, o.value]
1995
- ]) : ye("", !0)
1994
+ [rl, o.value]
1995
+ ]) : ge("", !0)
1996
1996
  ])
1997
- ])) : ye("", !0)
1997
+ ])) : ge("", !0)
1998
1998
  ];
1999
1999
  }),
2000
2000
  _: 1
@@ -2002,22 +2002,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2002
2002
  ], 64);
2003
2003
  };
2004
2004
  }
2005
- }, Ll = /* @__PURE__ */ Ze(Rl, [["__scopeId", "data-v-3f2b77d6"]]), zl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Hl = { style: { padding: "10px", "box-sizing": "border-box" } }, Pl = { style: { margin: "10px" } }, Nl = {
2005
+ }, Rl = /* @__PURE__ */ Ze(Yl, [["__scopeId", "data-v-3f2b77d6"]]), Ll = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Hl = { style: { padding: "10px", "box-sizing": "border-box" } }, zl = { style: { margin: "10px" } }, Pl = {
2006
2006
  style: { display: "flex", "flex-wrap": "wrap" },
2007
2007
  id: "excelSortEl"
2008
- }, jl = ["textContent"], Wl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Gl = {
2008
+ }, jl = ["textContent"], Nl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Wl = {
2009
2009
  __name: "check-excel-item",
2010
2010
  props: {
2011
2011
  items: Array,
2012
2012
  commitText: String
2013
2013
  },
2014
2014
  emits: ["excel"],
2015
- setup(a, { emit: s }) {
2016
- const r = a, t = s, e = ae(r.items), o = () => {
2015
+ setup(a, { emit: n }) {
2016
+ const r = a, t = n, e = oe(r.items), o = () => {
2017
2017
  e.value.forEach((F) => {
2018
2018
  F.value = !0;
2019
2019
  });
2020
- }, _ = () => {
2020
+ }, E = () => {
2021
2021
  e.value.forEach((F) => {
2022
2022
  F.value = !1;
2023
2023
  });
@@ -2036,31 +2036,31 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2036
2036
  });
2037
2037
  };
2038
2038
  return ut(() => {
2039
- const F = new Lt(document.getElementById("excelSortEl"), {
2039
+ const F = new Rt(document.getElementById("excelSortEl"), {
2040
2040
  animation: 150,
2041
2041
  onEnd: () => {
2042
2042
  F.toArray();
2043
2043
  }
2044
2044
  }), f = F;
2045
- ol(() => {
2045
+ al(() => {
2046
2046
  f && f.destroy();
2047
2047
  });
2048
2048
  }), (F, f) => {
2049
- const i = z("el-divider"), u = z("el-alert"), c = z("el-checkbox"), $ = z("el-button");
2050
- return p(), I("div", zl, [
2049
+ const i = H("el-divider"), s = H("el-alert"), c = H("el-checkbox"), _ = H("el-button");
2050
+ return p(), I("div", Ll, [
2051
2051
  Q("div", Hl, [
2052
- Q("div", Pl, [
2052
+ Q("div", zl, [
2053
2053
  Q("a", {
2054
2054
  onClick: o,
2055
2055
  style: { cursor: "pointer" }
2056
2056
  }, "全选"),
2057
2057
  K(i, { direction: "vertical" }),
2058
2058
  Q("a", {
2059
- onClick: _,
2059
+ onClick: E,
2060
2060
  style: { cursor: "pointer" }
2061
2061
  }, "全不选")
2062
2062
  ]),
2063
- K(u, {
2063
+ K(s, {
2064
2064
  title: "拖动列标题可以改变表格列的生成顺序 !",
2065
2065
  type: "warning",
2066
2066
  "show-icon": "",
@@ -2068,19 +2068,19 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2068
2068
  style: { "margin-bottom": "10px" }
2069
2069
  }),
2070
2070
  f[0] || (f[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
2071
- Q("div", Nl, [
2072
- (p(!0), I(J, null, j(e.value, (V) => (p(), A(c, {
2071
+ Q("div", Pl, [
2072
+ (p(!0), I(J, null, N(e.value, (V) => (p(), B(c, {
2073
2073
  class: "check-box-hover",
2074
2074
  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" },
2075
2075
  "data-id": V.key,
2076
2076
  modelValue: V.value,
2077
- "onUpdate:modelValue": (N) => V.value = N,
2077
+ "onUpdate:modelValue": (j) => V.value = j,
2078
2078
  key: V.key,
2079
2079
  title: V.label
2080
2080
  }, {
2081
2081
  default: D(() => [
2082
2082
  Q("span", {
2083
- textContent: Ce(V.label),
2083
+ textContent: De(V.label),
2084
2084
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2085
2085
  }, null, 8, jl)
2086
2086
  ]),
@@ -2088,15 +2088,15 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2088
2088
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
2089
2089
  ])
2090
2090
  ]),
2091
- Q("div", Wl, [
2092
- K($, {
2091
+ Q("div", Nl, [
2092
+ K(_, {
2093
2093
  type: "primary",
2094
2094
  onClick: v,
2095
- icon: P(Rt),
2095
+ icon: P(Yt),
2096
2096
  disabled: e.value.filter((V) => V.value).length < 1
2097
2097
  }, {
2098
2098
  default: D(() => [
2099
- Ie(Ce(r.commitText), 1)
2099
+ Ie(De(r.commitText), 1)
2100
2100
  ]),
2101
2101
  _: 1
2102
2102
  }, 8, ["icon", "disabled"])
@@ -2104,120 +2104,113 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2104
2104
  ]);
2105
2105
  };
2106
2106
  }
2107
- }, Xl = /* @__PURE__ */ Ze(Gl, [["__scopeId", "data-v-630c4ced"]]), Ql = "gyc", Zl = 1, Te = new wl(Ql);
2108
- Te.version(Zl).stores({
2107
+ }, Gl = /* @__PURE__ */ Ze(Wl, [["__scopeId", "data-v-630c4ced"]]), Xl = "vue-gyc-ui", Ql = 1, pe = new $l(Xl);
2108
+ pe.version(Ql).stores({
2109
2109
  // 记录表格项设置信息
2110
- tableInfo: "++id, [page+key], page, key, showCol, width, sort",
2110
+ tableWidths: "++id, [page+key], page, key,width",
2111
2111
  // 记录表格分页条数
2112
- pagesize: "++id, page, size",
2112
+ pageInfo: "++id, page, size",
2113
2113
  // 记录表格字段顺序
2114
- sorts: "++id, page, keys"
2114
+ sorts: "++id, page, keys",
2115
+ // 记录表格列显示状态
2116
+ tableColsState: "++id,[page+key], page, key"
2115
2117
  });
2116
- const Jl = {
2117
- showCol: !0,
2118
- sort: 0
2119
- }, Kl = 20, er = [], Ke = (a, s) => {
2118
+ const Ke = (a, n) => {
2120
2119
  if (!a || typeof a != "string")
2121
2120
  throw new Error("page参数必须是非空字符串");
2122
- if (s && typeof s != "string")
2123
- throw new Error("key参数必须是字符串");
2124
2121
  };
2125
- async function St(a, s, r = {}) {
2126
- Ke(a, s);
2122
+ async function ht(a, n, r) {
2127
2123
  try {
2128
- const t = await Te.tableInfo.where({ page: a, key: s }).first();
2129
- if (t)
2130
- return await Te.tableInfo.put({ ...t, ...r }), "update success";
2131
- {
2132
- const e = { ...Jl, ...r };
2133
- return await Te.tableInfo.add({ page: a, key: s, ...e }), "add success";
2134
- }
2124
+ const t = await pe.tableColsState.where({ page: a }).first();
2125
+ t ? r === "add" ? t.keys.includes(n) || (t.keys.push(n), await pe.tableColsState.put(t)) : r === "del" ? (t.keys = t.keys.filter((e) => e !== n), await pe.tableColsState.put(t)) : r === "delAll" ? (t.keys = n, await pe.tableColsState.put(t)) : r === "selectAll" && await pe.tableColsState.where({ page: a }).delete() : r === "add" ? await pe.tableColsState.add({ page: a, keys: [n] }) : r === "delAll" && await pe.tableColsState.add({ page: a, keys: n });
2135
2126
  } catch (t) {
2136
- throw console.error(`保存表格项设置信息时出错 (page: ${a}, key: ${s}):`, t), t;
2127
+ throw console.error(`处理表格列状态时出错 (page: ${a}, key: ${n}, state: ${r}):`, t), t;
2137
2128
  }
2138
2129
  }
2139
- async function xt(a, s, r = {}) {
2130
+ async function Zl(a, n, r) {
2140
2131
  Ke(a);
2141
2132
  try {
2142
- const t = s.map(
2143
- (e) => St(a, e.value, { ...e, ...r })
2144
- );
2145
- return await Promise.all(t), "batch update success";
2133
+ const t = await pe.tableWidths.where({ page: a, key: n }).first();
2134
+ return t ? (await pe.tableWidths.put({ ...t, width: r }), "update success") : (await pe.tableWidths.add({ page: a, key: n, width: r }), "add success");
2146
2135
  } catch (t) {
2147
- throw console.error(`批量保存表格项设置信息时出错 (page: ${a}):`, t), t;
2136
+ throw console.error(`保存表格项设置信息时出错 (page: ${a}, key: ${n}):`, t), t;
2148
2137
  }
2149
2138
  }
2150
- async function tr(a) {
2139
+ async function Jl(a) {
2151
2140
  Ke(a);
2152
2141
  try {
2153
- return await Te.tableInfo.where({ page: a }).toArray();
2154
- } catch (s) {
2155
- throw console.error(`获取表格项设置信息时出错 (page: ${a}):`, s), s;
2142
+ return await pe.tableWidths.where({ page: a }).toArray();
2143
+ } catch (n) {
2144
+ throw console.error(`获取表格项设置信息时出错 (page: ${a}):`, n), n;
2156
2145
  }
2157
2146
  }
2158
- async function lr(a) {
2147
+ async function Kl(a) {
2159
2148
  Ke(a);
2160
2149
  try {
2161
- return await Te.transaction("rw", Te.tableInfo, Te.pagesize, Te.sorts, async () => {
2162
- const [s, r, t] = await Promise.all([
2163
- Te.tableInfo.where({ page: a }).delete(),
2164
- Te.pagesize.where({ page: a }).delete(),
2165
- Te.sorts.where({ page: a }).delete()
2166
- ]), e = s + r + t;
2167
- return e > 0 ? console.log(`成功删除页面"${a}"的相关数据: ${s}条表格项, ${r}条分页设置, ${t}条排序设置`) : console.log(`页面"${a}"没有找到相关数据`), {
2168
- tableInfoCount: s,
2169
- pagesizeCount: r,
2170
- sortsCount: t,
2171
- totalCount: e
2172
- };
2150
+ const n = await pe.tableColsState.where({ page: a }).toArray();
2151
+ return !n || n.length === 0 ? [] : n[0].keys;
2152
+ } catch (n) {
2153
+ throw console.error(`获取表格列状态时出错 (page: ${a}):`, n), n;
2154
+ }
2155
+ }
2156
+ async function er(a) {
2157
+ Ke(a);
2158
+ try {
2159
+ return await pe.transaction("rw", pe.tableWidths, pe.pageInfo, pe.sorts, pe.tableColsState, async () => {
2160
+ await Promise.all([
2161
+ pe.tableWidths.where({ page: a }).delete(),
2162
+ pe.pageInfo.where({ page: a }).delete(),
2163
+ pe.sorts.where({ page: a }).delete(),
2164
+ pe.tableColsState.where({ page: a }).delete()
2165
+ ]);
2173
2166
  });
2174
- } catch (s) {
2175
- throw console.error(`删除页面"${a}"的表格设置信息时出错:`, s), s;
2167
+ } catch (n) {
2168
+ throw console.error(`删除页面"${a}"的表格设置信息时出错:`, n), n;
2176
2169
  }
2177
2170
  }
2178
- async function rr(a, s) {
2171
+ async function tr({ page: a, size: n }) {
2179
2172
  Ke(a);
2180
2173
  try {
2181
- const r = await Te.pagesize.where({ page: a }).first();
2182
- return r ? (await Te.pagesize.put({ ...r, size: s }), "update success") : (await Te.pagesize.add({ page: a, size: s }), "add success");
2174
+ const r = await pe.pageInfo.where({ page: a }).first();
2175
+ return r ? (await pe.pageInfo.put({ ...r, size: n }), "update success") : (await pe.pageInfo.add({ page: a, size: n }), "add success");
2183
2176
  } catch (r) {
2184
- throw console.error(`保存分页条数时出错 (page: ${a}, size: ${s}):`, r), r;
2177
+ throw console.error(`保存分页条数时出错 (page: ${a}):`, r), r;
2185
2178
  }
2186
2179
  }
2187
- async function ar(a) {
2180
+ async function lr(a) {
2188
2181
  Ke(a);
2189
2182
  try {
2190
- const s = await Te.pagesize.where({ page: a }).first();
2191
- return (s == null ? void 0 : s.size) || Kl;
2192
- } catch (s) {
2193
- throw console.error(`获取分页条数时出错 (page: ${a}):`, s), s;
2183
+ const n = await pe.pageInfo.where({ page: a }).first();
2184
+ return (n == null ? void 0 : n.size) || 20;
2185
+ } catch (n) {
2186
+ throw console.error(`获取分页条数时出错 (page: ${a}):`, n), n;
2194
2187
  }
2195
2188
  }
2196
- async function or(a, s) {
2189
+ async function rr(a, n) {
2197
2190
  Ke(a);
2198
2191
  try {
2199
- const r = await Te.sorts.where({ page: a }).first();
2200
- return r ? (await Te.sorts.put({ ...r, keys: s }), "update success") : (await Te.sorts.add({ page: a, keys: s }), "add success");
2192
+ const r = await pe.sorts.where({ page: a }).first();
2193
+ return r ? (await pe.sorts.put({ ...r, keys: n }), "update success") : (await pe.sorts.add({ page: a, keys: n }), "add success");
2201
2194
  } catch (r) {
2202
2195
  throw console.error(`保存表格字段顺序时出错 (page: ${a}):`, r), r;
2203
2196
  }
2204
2197
  }
2205
- async function nr(a) {
2198
+ async function ar(a) {
2206
2199
  Ke(a);
2207
2200
  try {
2208
- const s = await Te.sorts.where({ page: a }).first();
2209
- return (s == null ? void 0 : s.keys) || er;
2210
- } catch (s) {
2211
- throw console.error(`获取表格字段顺序时出错 (page: ${a}):`, s), s;
2201
+ const n = await pe.sorts.where({ page: a }).first();
2202
+ return (n == null ? void 0 : n.keys) || [];
2203
+ } catch (n) {
2204
+ throw console.error(`获取表格字段顺序时出错 (page: ${a}):`, n), n;
2212
2205
  }
2213
2206
  }
2214
- const ur = {
2207
+ const or = {
2215
2208
  style: { margin: "10px" },
2216
2209
  class: "allcheck"
2217
- }, sr = {
2210
+ }, nr = {
2218
2211
  id: "cols",
2219
2212
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
2220
- }, ir = ["textContent"], dr = {
2213
+ }, ur = ["textContent"], sr = {
2221
2214
  __name: "columns-setting",
2222
2215
  props: /* @__PURE__ */ Xe({
2223
2216
  tuid: {
@@ -2228,30 +2221,23 @@ const ur = {
2228
2221
  modelValue: { required: !0 },
2229
2222
  modelModifiers: {}
2230
2223
  }),
2231
- emits: /* @__PURE__ */ Xe(["setting-drag-end"], ["update:modelValue"]),
2232
- setup(a, { emit: s }) {
2233
- const r = a, t = s, e = ae([]), o = Qe(a, "modelValue"), _ = async (u, c) => {
2234
- u ? o.value[c].showCol = !0 : o.value[c].showCol = !1;
2235
- try {
2236
- await St(r.tuid, c, { showCol: u });
2237
- } catch ($) {
2238
- console.error("列显示状态保存信息时出错:", $), Ge({
2239
- type: "error",
2240
- message: "列显示状态保存信息失败!"
2241
- });
2242
- }
2224
+ emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
2225
+ setup(a, { emit: n }) {
2226
+ const r = a, t = n, e = oe([]), o = Qe(a, "modelValue"), E = async (s, c) => {
2227
+ s ? (o.value[c].showCol = !0, await ht(r.tuid, c, "del")) : (o.value[c].showCol = !1, await ht(r.tuid, c, "add"));
2243
2228
  }, v = () => {
2244
- const u = document.getElementById("cols");
2245
- if (u) {
2246
- let c = Lt.create(u, {
2229
+ const s = document.getElementById("cols");
2230
+ if (s) {
2231
+ let c = Rt.create(s, {
2247
2232
  animation: 150,
2248
2233
  filter: ".filtered",
2249
2234
  sort: !0,
2250
2235
  onEnd: async () => {
2251
- let $ = c.toArray();
2252
- console.log($);
2236
+ let _ = c.toArray();
2253
2237
  try {
2254
- await or(r.tuid, $), t("setting-drag-end");
2238
+ rr(r.tuid, _).then((V) => {
2239
+ t("setting-drag-end");
2240
+ });
2255
2241
  } catch (V) {
2256
2242
  console.error("列排序保存信息时出错:", V), Ge({
2257
2243
  type: "error",
@@ -2263,36 +2249,41 @@ const ur = {
2263
2249
  }
2264
2250
  }, F = async () => {
2265
2251
  try {
2266
- const u = e.value.map((c) => (c.showCol = !0, o.value[c.value].showCol = !0, c));
2267
- await xt(r.tuid, u, { showCol: !0 });
2268
- } catch (u) {
2269
- console.error("全选列保存信息时出错:", u), Ge({
2252
+ e.value.forEach((s) => {
2253
+ s.showCol = !0;
2254
+ }), ht(r.tuid, [], "selectAll").then((s) => {
2255
+ t("select-all");
2256
+ });
2257
+ } catch (s) {
2258
+ console.error("全选列保存信息时出错:", s), Ge({
2270
2259
  type: "error",
2271
2260
  message: "全选列保存信息失败!"
2272
2261
  });
2273
2262
  }
2274
2263
  }, f = async () => {
2275
2264
  try {
2276
- const u = e.value.filter((c) => !c.alwaysShow && c.value != "control");
2277
- u.forEach((c) => {
2278
- c.showCol = !1, o.value[c.value].showCol = !1;
2279
- }), await xt(r.tuid, u, { showCol: !1 });
2280
- } catch (u) {
2281
- console.error("清除列保存信息时出错:", u), Ge({
2265
+ let s = e.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
2266
+ s.forEach((c) => {
2267
+ c.showCol = !1;
2268
+ }), ht(r.tuid, s.map((c) => c.value), "delAll").then((c) => {
2269
+ t("select-all");
2270
+ });
2271
+ } catch (s) {
2272
+ console.error("清除列保存信息时出错:", s), Ge({
2282
2273
  type: "error",
2283
2274
  message: "清除列保存信息失败!"
2284
2275
  });
2285
2276
  }
2286
2277
  }, i = () => {
2287
- At.confirm("确定要复位吗?", "提示", {
2278
+ qt.confirm("确定要复位吗?", "提示", {
2288
2279
  confirmButtonText: "确定",
2289
2280
  cancelButtonText: "取消",
2290
2281
  type: "warning"
2291
2282
  }).then(() => {
2292
- lr(r.tuid).then((u) => {
2283
+ er(r.tuid).then((s) => {
2293
2284
  window.location.reload();
2294
- }).catch((u) => {
2295
- console.error("复位操作出错:", u), Ge({
2285
+ }).catch((s) => {
2286
+ console.error("复位操作出错:", s), Ge({
2296
2287
  type: "info",
2297
2288
  message: "复位失败!"
2298
2289
  });
@@ -2300,22 +2291,22 @@ const ur = {
2300
2291
  });
2301
2292
  };
2302
2293
  return ut(async () => {
2303
- e.value = Object.entries(o.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u, c]) => ({
2294
+ e.value = Object.entries(o.value).filter(([, s]) => s.visible !== !1).filter(([, s]) => s.type != "hidden").map(([s, c]) => ({
2304
2295
  label: c.label,
2305
- value: u,
2296
+ value: s,
2306
2297
  alwaysShow: c.alwaysShow,
2307
2298
  showCol: c.showCol !== !1,
2308
2299
  sort: c.sort || 0,
2309
2300
  width: c == null ? void 0 : c.width
2310
- })).sort((u, c) => u.sort - c.sort), v();
2311
- }), (u, c) => {
2312
- const $ = z("el-divider"), V = z("el-alert"), N = z("el-checkbox");
2301
+ })).sort((s, c) => s.sort - c.sort), v();
2302
+ }), (s, c) => {
2303
+ const _ = H("el-divider"), V = H("el-alert"), j = H("el-checkbox");
2313
2304
  return p(), I("div", null, [
2314
- Q("div", ur, [
2305
+ Q("div", or, [
2315
2306
  Q("a", { onClick: F }, "全选"),
2316
- K($, { direction: "vertical" }),
2307
+ K(_, { direction: "vertical" }),
2317
2308
  Q("a", { onClick: f }, "全不选"),
2318
- K($, { direction: "vertical" }),
2309
+ K(_, { direction: "vertical" }),
2319
2310
  Q("a", { onClick: i }, "复位")
2320
2311
  ]),
2321
2312
  K(V, {
@@ -2326,24 +2317,24 @@ const ur = {
2326
2317
  style: { "margin-bottom": "10px" }
2327
2318
  }),
2328
2319
  Q("div", null, [
2329
- Q("div", sr, [
2330
- (p(!0), I(J, null, j(e.value, (Y) => (p(), A(N, {
2331
- modelValue: Y.showCol,
2332
- "onUpdate:modelValue": (L) => Y.showCol = L,
2333
- "data-id": Y.value,
2334
- class: Ot(["check-box-hover", Y.value == "control" ? "filtered" : ""]),
2335
- onChange: (L) => _(L, Y.value),
2320
+ Q("div", nr, [
2321
+ (p(!0), I(J, null, N(e.value, (R) => (p(), B(j, {
2322
+ modelValue: R.showCol,
2323
+ "onUpdate:modelValue": (L) => R.showCol = L,
2324
+ "data-id": R.value,
2325
+ class: Bt(["check-box-hover", R.value == "control" ? "filtered" : ""]),
2326
+ onChange: (L) => E(L, R.value),
2336
2327
  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" },
2337
- value: Y.value,
2338
- title: Y.label,
2339
- disabled: Y.alwaysShow,
2340
- key: Y.value
2328
+ value: R.value,
2329
+ title: R.label,
2330
+ disabled: R.alwaysShow,
2331
+ key: R.value
2341
2332
  }, {
2342
2333
  default: D(() => [
2343
2334
  Q("span", {
2344
- textContent: Ce(Y.label),
2335
+ textContent: De(R.label),
2345
2336
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2346
- }, null, 8, ir)
2337
+ }, null, 8, ur)
2347
2338
  ]),
2348
2339
  _: 2
2349
2340
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -2352,7 +2343,7 @@ const ur = {
2352
2343
  ]);
2353
2344
  };
2354
2345
  }
2355
- }, cr = /* @__PURE__ */ Ze(dr, [["__scopeId", "data-v-229120ee"]]), fr = { class: "title" }, pr = { class: "content" }, vr = {
2346
+ }, ir = /* @__PURE__ */ Ze(sr, [["__scopeId", "data-v-adb08f30"]]), dr = { class: "title" }, cr = { class: "content" }, fr = {
2356
2347
  __name: "g-cell-toopTip",
2357
2348
  props: {
2358
2349
  content: {
@@ -2365,30 +2356,30 @@ const ur = {
2365
2356
  }
2366
2357
  },
2367
2358
  setup(a) {
2368
- const s = a, r = () => {
2369
- s.content ? (navigator.clipboard.writeText(s.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
2359
+ const n = a, r = () => {
2360
+ n.content ? (navigator.clipboard.writeText(n.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
2370
2361
  };
2371
2362
  return (t, e) => (p(), I("div", {
2372
2363
  class: "g-cell-toopTip",
2373
- style: qe({ width: s.column.width + "px" })
2364
+ style: qe({ width: n.column.width + "px" })
2374
2365
  }, [
2375
- Q("div", fr, [
2366
+ Q("div", dr, [
2376
2367
  e[0] || (e[0] = Q("span", { class: "title-text" }, "内容", -1)),
2377
2368
  Q("span", {
2378
2369
  class: "copy-btn",
2379
2370
  onClick: r,
2380
2371
  title: "复制内容"
2381
2372
  }, [
2382
- K(P(vl))
2373
+ K(P(pl))
2383
2374
  ])
2384
2375
  ]),
2385
- Q("div", pr, Ce(s.content), 1)
2376
+ Q("div", cr, De(n.content), 1)
2386
2377
  ], 4));
2387
2378
  }
2388
- }, mr = /* @__PURE__ */ Ze(vr, [["__scopeId", "data-v-f28912da"]]);
2389
- var Nt = { exports: {} }, jt = { exports: {} };
2379
+ }, pr = /* @__PURE__ */ Ze(fr, [["__scopeId", "data-v-f28912da"]]);
2380
+ var Pt = { exports: {} }, jt = { exports: {} };
2390
2381
  (function() {
2391
- var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
2382
+ var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
2392
2383
  // Bit-wise rotation left
2393
2384
  rotl: function(r, t) {
2394
2385
  return r << t | r >>> 32 - t;
@@ -2400,9 +2391,9 @@ var Nt = { exports: {} }, jt = { exports: {} };
2400
2391
  // Swap big-endian to little-endian and vice versa
2401
2392
  endian: function(r) {
2402
2393
  if (r.constructor == Number)
2403
- return s.rotl(r, 8) & 16711935 | s.rotl(r, 24) & 4278255360;
2394
+ return n.rotl(r, 8) & 16711935 | n.rotl(r, 24) & 4278255360;
2404
2395
  for (var t = 0; t < r.length; t++)
2405
- r[t] = s.endian(r[t]);
2396
+ r[t] = n.endian(r[t]);
2406
2397
  return r;
2407
2398
  },
2408
2399
  // Generate an array of any length of random bytes
@@ -2438,8 +2429,8 @@ var Nt = { exports: {} }, jt = { exports: {} };
2438
2429
  // Convert a byte array to a base-64 string
2439
2430
  bytesToBase64: function(r) {
2440
2431
  for (var t = [], e = 0; e < r.length; e += 3)
2441
- for (var o = r[e] << 16 | r[e + 1] << 8 | r[e + 2], _ = 0; _ < 4; _++)
2442
- e * 8 + _ * 6 <= r.length * 8 ? t.push(a.charAt(o >>> 6 * (3 - _) & 63)) : t.push("=");
2432
+ for (var o = r[e] << 16 | r[e + 1] << 8 | r[e + 2], E = 0; E < 4; E++)
2433
+ e * 8 + E * 6 <= r.length * 8 ? t.push(a.charAt(o >>> 6 * (3 - E) & 63)) : t.push("=");
2443
2434
  return t.join("");
2444
2435
  },
2445
2436
  // Convert a base-64 string to a byte array
@@ -2450,90 +2441,90 @@ var Nt = { exports: {} }, jt = { exports: {} };
2450
2441
  return t;
2451
2442
  }
2452
2443
  };
2453
- jt.exports = s;
2444
+ jt.exports = n;
2454
2445
  })();
2455
- var hr = jt.exports, _t = {
2446
+ var vr = jt.exports, kt = {
2456
2447
  // UTF-8 encoding
2457
2448
  utf8: {
2458
2449
  // Convert a string to a byte array
2459
2450
  stringToBytes: function(a) {
2460
- return _t.bin.stringToBytes(unescape(encodeURIComponent(a)));
2451
+ return kt.bin.stringToBytes(unescape(encodeURIComponent(a)));
2461
2452
  },
2462
2453
  // Convert a byte array to a string
2463
2454
  bytesToString: function(a) {
2464
- return decodeURIComponent(escape(_t.bin.bytesToString(a)));
2455
+ return decodeURIComponent(escape(kt.bin.bytesToString(a)));
2465
2456
  }
2466
2457
  },
2467
2458
  // Binary encoding
2468
2459
  bin: {
2469
2460
  // Convert a string to a byte array
2470
2461
  stringToBytes: function(a) {
2471
- for (var s = [], r = 0; r < a.length; r++)
2472
- s.push(a.charCodeAt(r) & 255);
2473
- return s;
2462
+ for (var n = [], r = 0; r < a.length; r++)
2463
+ n.push(a.charCodeAt(r) & 255);
2464
+ return n;
2474
2465
  },
2475
2466
  // Convert a byte array to a string
2476
2467
  bytesToString: function(a) {
2477
- for (var s = [], r = 0; r < a.length; r++)
2478
- s.push(String.fromCharCode(a[r]));
2479
- return s.join("");
2468
+ for (var n = [], r = 0; r < a.length; r++)
2469
+ n.push(String.fromCharCode(a[r]));
2470
+ return n.join("");
2480
2471
  }
2481
2472
  }
2482
- }, Vt = _t;
2473
+ }, xt = kt;
2483
2474
  /*!
2484
2475
  * Determine if an object is a Buffer
2485
2476
  *
2486
2477
  * @author Feross Aboukhadijeh <https://feross.org>
2487
2478
  * @license MIT
2488
2479
  */
2489
- var yr = function(a) {
2490
- return a != null && (Wt(a) || gr(a) || !!a._isBuffer);
2480
+ var mr = function(a) {
2481
+ return a != null && (Nt(a) || hr(a) || !!a._isBuffer);
2491
2482
  };
2492
- function Wt(a) {
2483
+ function Nt(a) {
2493
2484
  return !!a.constructor && typeof a.constructor.isBuffer == "function" && a.constructor.isBuffer(a);
2494
2485
  }
2495
- function gr(a) {
2496
- return typeof a.readFloatLE == "function" && typeof a.slice == "function" && Wt(a.slice(0, 0));
2486
+ function hr(a) {
2487
+ return typeof a.readFloatLE == "function" && typeof a.slice == "function" && Nt(a.slice(0, 0));
2497
2488
  }
2498
2489
  (function() {
2499
- var a = hr, s = Vt.utf8, r = yr, t = Vt.bin, e = function(o, _) {
2500
- o.constructor == String ? _ && _.encoding === "binary" ? o = t.stringToBytes(o) : o = s.stringToBytes(o) : r(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
2501
- for (var v = a.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, u = -1732584194, c = 271733878, $ = 0; $ < v.length; $++)
2502
- v[$] = (v[$] << 8 | v[$] >>> 24) & 16711935 | (v[$] << 24 | v[$] >>> 8) & 4278255360;
2490
+ var a = vr, n = xt.utf8, r = mr, t = xt.bin, e = function(o, E) {
2491
+ o.constructor == String ? E && E.encoding === "binary" ? o = t.stringToBytes(o) : o = n.stringToBytes(o) : r(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
2492
+ for (var v = a.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, s = -1732584194, c = 271733878, _ = 0; _ < v.length; _++)
2493
+ v[_] = (v[_] << 8 | v[_] >>> 24) & 16711935 | (v[_] << 24 | v[_] >>> 8) & 4278255360;
2503
2494
  v[F >>> 5] |= 128 << F % 32, v[(F + 64 >>> 9 << 4) + 14] = F;
2504
- for (var V = e._ff, N = e._gg, Y = e._hh, L = e._ii, $ = 0; $ < v.length; $ += 16) {
2505
- var oe = f, ve = i, ie = u, ce = c;
2506
- f = V(f, i, u, c, v[$ + 0], 7, -680876936), c = V(c, f, i, u, v[$ + 1], 12, -389564586), u = V(u, c, f, i, v[$ + 2], 17, 606105819), i = V(i, u, c, f, v[$ + 3], 22, -1044525330), f = V(f, i, u, c, v[$ + 4], 7, -176418897), c = V(c, f, i, u, v[$ + 5], 12, 1200080426), u = V(u, c, f, i, v[$ + 6], 17, -1473231341), i = V(i, u, c, f, v[$ + 7], 22, -45705983), f = V(f, i, u, c, v[$ + 8], 7, 1770035416), c = V(c, f, i, u, v[$ + 9], 12, -1958414417), u = V(u, c, f, i, v[$ + 10], 17, -42063), i = V(i, u, c, f, v[$ + 11], 22, -1990404162), f = V(f, i, u, c, v[$ + 12], 7, 1804603682), c = V(c, f, i, u, v[$ + 13], 12, -40341101), u = V(u, c, f, i, v[$ + 14], 17, -1502002290), i = V(i, u, c, f, v[$ + 15], 22, 1236535329), f = N(f, i, u, c, v[$ + 1], 5, -165796510), c = N(c, f, i, u, v[$ + 6], 9, -1069501632), u = N(u, c, f, i, v[$ + 11], 14, 643717713), i = N(i, u, c, f, v[$ + 0], 20, -373897302), f = N(f, i, u, c, v[$ + 5], 5, -701558691), c = N(c, f, i, u, v[$ + 10], 9, 38016083), u = N(u, c, f, i, v[$ + 15], 14, -660478335), i = N(i, u, c, f, v[$ + 4], 20, -405537848), f = N(f, i, u, c, v[$ + 9], 5, 568446438), c = N(c, f, i, u, v[$ + 14], 9, -1019803690), u = N(u, c, f, i, v[$ + 3], 14, -187363961), i = N(i, u, c, f, v[$ + 8], 20, 1163531501), f = N(f, i, u, c, v[$ + 13], 5, -1444681467), c = N(c, f, i, u, v[$ + 2], 9, -51403784), u = N(u, c, f, i, v[$ + 7], 14, 1735328473), i = N(i, u, c, f, v[$ + 12], 20, -1926607734), f = Y(f, i, u, c, v[$ + 5], 4, -378558), c = Y(c, f, i, u, v[$ + 8], 11, -2022574463), u = Y(u, c, f, i, v[$ + 11], 16, 1839030562), i = Y(i, u, c, f, v[$ + 14], 23, -35309556), f = Y(f, i, u, c, v[$ + 1], 4, -1530992060), c = Y(c, f, i, u, v[$ + 4], 11, 1272893353), u = Y(u, c, f, i, v[$ + 7], 16, -155497632), i = Y(i, u, c, f, v[$ + 10], 23, -1094730640), f = Y(f, i, u, c, v[$ + 13], 4, 681279174), c = Y(c, f, i, u, v[$ + 0], 11, -358537222), u = Y(u, c, f, i, v[$ + 3], 16, -722521979), i = Y(i, u, c, f, v[$ + 6], 23, 76029189), f = Y(f, i, u, c, v[$ + 9], 4, -640364487), c = Y(c, f, i, u, v[$ + 12], 11, -421815835), u = Y(u, c, f, i, v[$ + 15], 16, 530742520), i = Y(i, u, c, f, v[$ + 2], 23, -995338651), f = L(f, i, u, c, v[$ + 0], 6, -198630844), c = L(c, f, i, u, v[$ + 7], 10, 1126891415), u = L(u, c, f, i, v[$ + 14], 15, -1416354905), i = L(i, u, c, f, v[$ + 5], 21, -57434055), f = L(f, i, u, c, v[$ + 12], 6, 1700485571), c = L(c, f, i, u, v[$ + 3], 10, -1894986606), u = L(u, c, f, i, v[$ + 10], 15, -1051523), i = L(i, u, c, f, v[$ + 1], 21, -2054922799), f = L(f, i, u, c, v[$ + 8], 6, 1873313359), c = L(c, f, i, u, v[$ + 15], 10, -30611744), u = L(u, c, f, i, v[$ + 6], 15, -1560198380), i = L(i, u, c, f, v[$ + 13], 21, 1309151649), f = L(f, i, u, c, v[$ + 4], 6, -145523070), c = L(c, f, i, u, v[$ + 11], 10, -1120210379), u = L(u, c, f, i, v[$ + 2], 15, 718787259), i = L(i, u, c, f, v[$ + 9], 21, -343485551), f = f + oe >>> 0, i = i + ve >>> 0, u = u + ie >>> 0, c = c + ce >>> 0;
2495
+ for (var V = e._ff, j = e._gg, R = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
2496
+ var te = f, me = i, ie = s, ce = c;
2497
+ f = V(f, i, s, c, v[_ + 0], 7, -680876936), c = V(c, f, i, s, v[_ + 1], 12, -389564586), s = V(s, c, f, i, v[_ + 2], 17, 606105819), i = V(i, s, c, f, v[_ + 3], 22, -1044525330), f = V(f, i, s, c, v[_ + 4], 7, -176418897), c = V(c, f, i, s, v[_ + 5], 12, 1200080426), s = V(s, c, f, i, v[_ + 6], 17, -1473231341), i = V(i, s, c, f, v[_ + 7], 22, -45705983), f = V(f, i, s, c, v[_ + 8], 7, 1770035416), c = V(c, f, i, s, v[_ + 9], 12, -1958414417), s = V(s, c, f, i, v[_ + 10], 17, -42063), i = V(i, s, c, f, v[_ + 11], 22, -1990404162), f = V(f, i, s, c, v[_ + 12], 7, 1804603682), c = V(c, f, i, s, v[_ + 13], 12, -40341101), s = V(s, c, f, i, v[_ + 14], 17, -1502002290), i = V(i, s, c, f, v[_ + 15], 22, 1236535329), f = j(f, i, s, c, v[_ + 1], 5, -165796510), c = j(c, f, i, s, v[_ + 6], 9, -1069501632), s = j(s, c, f, i, v[_ + 11], 14, 643717713), i = j(i, s, c, f, v[_ + 0], 20, -373897302), f = j(f, i, s, c, v[_ + 5], 5, -701558691), c = j(c, f, i, s, v[_ + 10], 9, 38016083), s = j(s, c, f, i, v[_ + 15], 14, -660478335), i = j(i, s, c, f, v[_ + 4], 20, -405537848), f = j(f, i, s, c, v[_ + 9], 5, 568446438), c = j(c, f, i, s, v[_ + 14], 9, -1019803690), s = j(s, c, f, i, v[_ + 3], 14, -187363961), i = j(i, s, c, f, v[_ + 8], 20, 1163531501), f = j(f, i, s, c, v[_ + 13], 5, -1444681467), c = j(c, f, i, s, v[_ + 2], 9, -51403784), s = j(s, c, f, i, v[_ + 7], 14, 1735328473), i = j(i, s, c, f, v[_ + 12], 20, -1926607734), f = R(f, i, s, c, v[_ + 5], 4, -378558), c = R(c, f, i, s, v[_ + 8], 11, -2022574463), s = R(s, c, f, i, v[_ + 11], 16, 1839030562), i = R(i, s, c, f, v[_ + 14], 23, -35309556), f = R(f, i, s, c, v[_ + 1], 4, -1530992060), c = R(c, f, i, s, v[_ + 4], 11, 1272893353), s = R(s, c, f, i, v[_ + 7], 16, -155497632), i = R(i, s, c, f, v[_ + 10], 23, -1094730640), f = R(f, i, s, c, v[_ + 13], 4, 681279174), c = R(c, f, i, s, v[_ + 0], 11, -358537222), s = R(s, c, f, i, v[_ + 3], 16, -722521979), i = R(i, s, c, f, v[_ + 6], 23, 76029189), f = R(f, i, s, c, v[_ + 9], 4, -640364487), c = R(c, f, i, s, v[_ + 12], 11, -421815835), s = R(s, c, f, i, v[_ + 15], 16, 530742520), i = R(i, s, c, f, v[_ + 2], 23, -995338651), f = L(f, i, s, c, v[_ + 0], 6, -198630844), c = L(c, f, i, s, v[_ + 7], 10, 1126891415), s = L(s, c, f, i, v[_ + 14], 15, -1416354905), i = L(i, s, c, f, v[_ + 5], 21, -57434055), f = L(f, i, s, c, v[_ + 12], 6, 1700485571), c = L(c, f, i, s, v[_ + 3], 10, -1894986606), s = L(s, c, f, i, v[_ + 10], 15, -1051523), i = L(i, s, c, f, v[_ + 1], 21, -2054922799), f = L(f, i, s, c, v[_ + 8], 6, 1873313359), c = L(c, f, i, s, v[_ + 15], 10, -30611744), s = L(s, c, f, i, v[_ + 6], 15, -1560198380), i = L(i, s, c, f, v[_ + 13], 21, 1309151649), f = L(f, i, s, c, v[_ + 4], 6, -145523070), c = L(c, f, i, s, v[_ + 11], 10, -1120210379), s = L(s, c, f, i, v[_ + 2], 15, 718787259), i = L(i, s, c, f, v[_ + 9], 21, -343485551), f = f + te >>> 0, i = i + me >>> 0, s = s + ie >>> 0, c = c + ce >>> 0;
2507
2498
  }
2508
- return a.endian([f, i, u, c]);
2499
+ return a.endian([f, i, s, c]);
2509
2500
  };
2510
- e._ff = function(o, _, v, F, f, i, u) {
2511
- var c = o + (_ & v | ~_ & F) + (f >>> 0) + u;
2512
- return (c << i | c >>> 32 - i) + _;
2513
- }, e._gg = function(o, _, v, F, f, i, u) {
2514
- var c = o + (_ & F | v & ~F) + (f >>> 0) + u;
2515
- return (c << i | c >>> 32 - i) + _;
2516
- }, e._hh = function(o, _, v, F, f, i, u) {
2517
- var c = o + (_ ^ v ^ F) + (f >>> 0) + u;
2518
- return (c << i | c >>> 32 - i) + _;
2519
- }, e._ii = function(o, _, v, F, f, i, u) {
2520
- var c = o + (v ^ (_ | ~F)) + (f >>> 0) + u;
2521
- return (c << i | c >>> 32 - i) + _;
2522
- }, e._blocksize = 16, e._digestsize = 16, Nt.exports = function(o, _) {
2501
+ e._ff = function(o, E, v, F, f, i, s) {
2502
+ var c = o + (E & v | ~E & F) + (f >>> 0) + s;
2503
+ return (c << i | c >>> 32 - i) + E;
2504
+ }, e._gg = function(o, E, v, F, f, i, s) {
2505
+ var c = o + (E & F | v & ~F) + (f >>> 0) + s;
2506
+ return (c << i | c >>> 32 - i) + E;
2507
+ }, e._hh = function(o, E, v, F, f, i, s) {
2508
+ var c = o + (E ^ v ^ F) + (f >>> 0) + s;
2509
+ return (c << i | c >>> 32 - i) + E;
2510
+ }, e._ii = function(o, E, v, F, f, i, s) {
2511
+ var c = o + (v ^ (E | ~F)) + (f >>> 0) + s;
2512
+ return (c << i | c >>> 32 - i) + E;
2513
+ }, e._blocksize = 16, e._digestsize = 16, Pt.exports = function(o, E) {
2523
2514
  if (o == null)
2524
2515
  throw new Error("Illegal argument " + o);
2525
- var v = a.wordsToBytes(e(o, _));
2526
- return _ && _.asBytes ? v : _ && _.asString ? t.bytesToString(v) : a.bytesToHex(v);
2516
+ var v = a.wordsToBytes(e(o, E));
2517
+ return E && E.asBytes ? v : E && E.asString ? t.bytesToString(v) : a.bytesToHex(v);
2527
2518
  };
2528
2519
  })();
2529
- var br = Nt.exports;
2530
- const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "flex", "margin-top": "-2px" } }, _r = { style: { display: "flex", flex: "1" } }, kr = {
2520
+ var yr = Pt.exports;
2521
+ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "flex", "margin-top": "-2px" } }, wr = { style: { display: "flex", flex: "1" } }, Er = {
2531
2522
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
2532
2523
  id: "table-form"
2533
- }, Cr = { key: 1 }, Dr = { style: { display: "flex" } }, Tr = { style: { display: "flex", flex: "1" } }, Mr = { class: "g-table-container" }, Sr = {
2524
+ }, _r = { key: 1 }, kr = { style: { display: "flex" } }, Cr = { style: { display: "flex", flex: "1" } }, Dr = { class: "g-table-container" }, Sr = {
2534
2525
  key: 0,
2535
2526
  class: "table-query-container"
2536
- }, Fr = { class: "table-container" }, xr = ["innerHTML"], Vr = /* @__PURE__ */ Object.assign({
2527
+ }, Mr = { class: "table-container" }, Tr = ["innerHTML"], Fr = /* @__PURE__ */ Object.assign({
2537
2528
  name: "g-table",
2538
2529
  inheritAttrs: !1
2539
2530
  }, {
@@ -2551,11 +2542,11 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2551
2542
  "download",
2552
2543
  "row-save"
2553
2544
  ], ["update:modelValue"]),
2554
- setup(a, { expose: s, emit: r }) {
2545
+ setup(a, { expose: n, emit: r }) {
2555
2546
  var Ye, st, it, dt, ct, ft, pt;
2556
- const t = r, e = Qe(a, "modelValue"), o = Tt("options"), _ = ae({}), v = ae(null), F = ae(null), f = Object.entries(e.value).filter(([l, d]) => (d == null ? void 0 : d.search) !== void 0).map(([l, d]) => [l, d.value]);
2557
- _.value = Object.fromEntries(f);
2558
- const i = ae(!1), u = [
2547
+ const t = r, e = Qe(a, "modelValue"), o = Mt("options"), E = oe({}), v = oe(null), F = oe(null), f = Object.entries(e.value).filter(([l, d]) => (d == null ? void 0 : d.search) !== void 0).map(([l, d]) => [l, d.value]);
2548
+ E.value = Object.fromEntries(f);
2549
+ const i = oe(!1), s = [
2559
2550
  "type",
2560
2551
  "index",
2561
2552
  "label",
@@ -2584,7 +2575,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2584
2575
  "filter-multiple",
2585
2576
  "filter-method",
2586
2577
  "filtered-value"
2587
- ], c = ae([]), $ = Mt(), V = ae({}), N = ae([]), Y = ae(null), L = ae(""), oe = ae("/"), ve = ae({
2578
+ ], c = oe([]), _ = Tt(), V = oe({}), j = oe([]), R = oe(null), L = oe(""), te = oe("/"), me = oe({
2588
2579
  autoWatch: !1,
2589
2580
  data: [],
2590
2581
  border: !0,
@@ -2593,37 +2584,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2593
2584
  fit: !1,
2594
2585
  type: "hidden",
2595
2586
  load: async () => {
2596
- e.value.table.page.pageSize = await ar(oe.value);
2587
+ e.value.table.page.pageSize = await lr(te.value);
2597
2588
  let { currentPage: l, pageSize: d } = e.value.table.page;
2598
2589
  try {
2599
2590
  t(
2600
2591
  "load",
2601
- { currentPage: l, pageSize: d, ..._.value },
2602
- (m = [], w = 0, { fields: B = [], sums: R = {} } = {}) => {
2592
+ { currentPage: l, pageSize: d, ...E.value },
2593
+ (m = [], b = 0, { fields: A = [], sums: Y = {} } = {}) => {
2603
2594
  var W;
2604
2595
  if (!Array.isArray(m)) {
2605
2596
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
2606
2597
  return;
2607
2598
  }
2608
- if (typeof w != "number") {
2599
+ if (typeof b != "number") {
2609
2600
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
2610
2601
  return;
2611
2602
  }
2612
- e.value.table.data = m, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(Y.value), e.value.table.page.total = w, N.value = B, V.value = R, be(), L.value = Math.random().toString(36).substring(2);
2603
+ e.value.table.data = m, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(R.value), e.value.table.page.total = b, j.value = A, V.value = Y, $e(), L.value = Math.random().toString(36).substring(2);
2613
2604
  },
2614
- Y.value
2605
+ R.value
2615
2606
  );
2616
2607
  } catch (m) {
2617
2608
  console.error("触发 load 事件时出现错误:", m), Ge.error("数据加载时出现错误,请稍后重试。");
2618
2609
  }
2619
2610
  },
2620
2611
  onHeaderDragend: (l, d, m) => {
2621
- St(oe.value, m.property, {
2622
- width: l
2623
- });
2612
+ Zl(te.value, m.property, l);
2624
2613
  },
2625
2614
  onRowDblclick: (l, d, m) => {
2626
- e.value.table.dblclickType == "edit" ? b(l, d, m, e) : e.value.table.dblclickType == "view" ? n(l, d, m, e) : e.value.table.dblclickType == "delete" ? g(l, d, m, e) : e.value.table.dblclickType(l, d, m, e);
2615
+ e.value.table.dblclickType == "edit" ? $(l, d, m, e) : e.value.table.dblclickType == "view" ? u(l, d, m, e) : e.value.table.dblclickType == "delete" ? g(l, d, m, e) : e.value.table.dblclickType(l, d, m, e);
2627
2616
  },
2628
2617
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2629
2618
  page: {
@@ -2643,21 +2632,21 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2643
2632
  e.value.table.page.currentPage = l, e.value.table.load();
2644
2633
  },
2645
2634
  onSizeChange: (l) => {
2646
- rr(oe.value, l).then(() => {
2635
+ tr({ page: te.value, size: l }).then(() => {
2647
2636
  e.value.table.page.pageSize = l, e.value.table.load();
2648
2637
  });
2649
2638
  }
2650
2639
  },
2651
2640
  dblclickType: "edit",
2652
2641
  "summary-method": ({ columns: l, data: d }, m) => m,
2653
- onSortChange: ({ column: l, prop: d, order: m }, w) => {
2642
+ onSortChange: ({ column: l, prop: d, order: m }, b) => {
2654
2643
  }
2655
2644
  });
2656
2645
  e.value.table = Ve(
2657
- ve.value,
2646
+ me.value,
2658
2647
  o == null ? void 0 : o.table,
2659
2648
  e.value.table,
2660
- $
2649
+ _
2661
2650
  // 继承父组件的属性
2662
2651
  );
2663
2652
  const ie = {
@@ -2669,36 +2658,36 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2669
2658
  fixed: "right",
2670
2659
  style: { ...(st = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : st.style },
2671
2660
  validate: async (l) => await !0,
2672
- view: (l, d, m, w) => ({
2661
+ view: (l, d, m, b) => ({
2673
2662
  label: "查看",
2674
2663
  text: !0,
2675
2664
  type: "success",
2676
2665
  mode: "dialog",
2677
- icon: () => _e(ml),
2666
+ icon: () => ke(vl),
2678
2667
  auth: () => {
2679
- var B;
2680
- return !(((B = w == null ? void 0 : w.control) == null ? void 0 : B.add(w).inline) === !0 && m === 0);
2668
+ var A;
2669
+ return !(((A = b == null ? void 0 : b.control) == null ? void 0 : A.add(b).inline) === !0 && m === 0);
2681
2670
  }
2682
2671
  }),
2683
- edit: (l, d, m, w) => ({
2672
+ edit: (l, d, m, b) => ({
2684
2673
  label: "编辑",
2685
2674
  text: !0,
2686
2675
  type: "primary",
2687
2676
  mode: "dialog",
2688
- icon: () => _e(hl),
2677
+ icon: () => ke(ml),
2689
2678
  auth: () => {
2690
- var B;
2691
- return ((B = w == null ? void 0 : w.control) == null ? void 0 : B.add(w).inline) !== !0;
2679
+ var A;
2680
+ return ((A = b == null ? void 0 : b.control) == null ? void 0 : A.add(b).inline) !== !0;
2692
2681
  }
2693
2682
  }),
2694
- delete: (l, d, m, w) => ({
2683
+ delete: (l, d, m, b) => ({
2695
2684
  text: !0,
2696
2685
  label: "删除",
2697
2686
  type: "danger",
2698
- icon: () => _e(Yt),
2687
+ icon: () => ke(Ut),
2699
2688
  auth: () => {
2700
- var B;
2701
- return !(((B = w.control) == null ? void 0 : B.add(w).inline) === !0 && m === 0);
2689
+ var A;
2690
+ return !(((A = b.control) == null ? void 0 : A.add(b).inline) === !0 && m === 0);
2702
2691
  },
2703
2692
  dialog: {
2704
2693
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2710,15 +2699,15 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2710
2699
  }
2711
2700
  }
2712
2701
  }),
2713
- save: (l, d, m, w) => ({
2714
- label: w.control.add(w).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2702
+ save: (l, d, m, b) => ({
2703
+ label: b.control.add(b).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2715
2704
  text: !0,
2716
- icon: () => _e(It),
2717
- type: w.control.add(w).inline !== !0 || m === 0 ? "primary" : "success",
2705
+ icon: () => ke(Ot),
2706
+ type: b.control.add(b).inline !== !0 || m === 0 ? "primary" : "success",
2718
2707
  sort: -1,
2719
2708
  auth: () => {
2720
- var B;
2721
- return ((B = w.control) == null ? void 0 : B.add(w).inline) === !0;
2709
+ var A;
2710
+ return ((A = b.control) == null ? void 0 : A.add(b).inline) === !0;
2722
2711
  }
2723
2712
  }),
2724
2713
  add: (l) => ({
@@ -2727,7 +2716,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2727
2716
  type: "primary",
2728
2717
  mode: "dialog",
2729
2718
  inline: !1,
2730
- icon: () => _e(yl),
2719
+ icon: () => ke(hl),
2731
2720
  auth: () => !0
2732
2721
  }),
2733
2722
  download: (l) => ({
@@ -2735,7 +2724,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2735
2724
  text: !1,
2736
2725
  type: "primary",
2737
2726
  mode: "dialog",
2738
- icon: () => _e(Rt),
2727
+ icon: () => ke(Yt),
2739
2728
  excelLabel: "下载EXCEL",
2740
2729
  auth: () => !0
2741
2730
  }),
@@ -2744,20 +2733,20 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2744
2733
  text: !1,
2745
2734
  type: "primary",
2746
2735
  mode: "dialog",
2747
- icon: () => _e(gl),
2736
+ icon: () => ke(yl),
2748
2737
  auth: () => !0
2749
2738
  }),
2750
- dropdown: (l, d, m, w) => ({
2739
+ dropdown: (l, d, m, b) => ({
2751
2740
  label: "编辑",
2752
2741
  operate: "edit",
2753
2742
  "split-button": !0,
2754
2743
  type: "primary",
2755
2744
  size: "small",
2756
- auth: () => !(w.control.add(w).inline === !0 && m == 0),
2745
+ auth: () => !(b.control.add(b).inline === !0 && m == 0),
2757
2746
  onClick: () => {
2758
- var R;
2759
- let B = (R = de(l, d, m, w)) == null ? void 0 : R.operate;
2760
- B === "edit" ? b(l, d, m, w) : B === "delete" ? g(l, d, m, w) : B === "view" && n(l, d, m, w);
2747
+ var Y;
2748
+ let A = (Y = de(l, d, m, b)) == null ? void 0 : Y.operate;
2749
+ A === "edit" ? $(l, d, m, b) : A === "delete" ? g(l, d, m, b) : A === "view" && u(l, d, m, b);
2761
2750
  },
2762
2751
  "button-props": { round: !0, plain: !0 }
2763
2752
  })
@@ -2768,43 +2757,43 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2768
2757
  (it = e.value) == null ? void 0 : it.control
2769
2758
  );
2770
2759
  const ce = (l, d = !0) => {
2771
- const m = e.value.control[l], w = d ? (B, R, W, fe) => {
2772
- var Le, ze, et;
2773
- if (!B || !R || W == null)
2760
+ const m = e.value.control[l], b = d ? (A, Y, W, fe) => {
2761
+ var Le, He, et;
2762
+ if (!A || !Y || W == null)
2774
2763
  return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
2775
- const Ee = ((Le = ie[l]) == null ? void 0 : Le.call(ie, B, R, W, fe)) || {}, Fe = ((et = (ze = o == null ? void 0 : o.control) == null ? void 0 : ze[l]) == null ? void 0 : et.call(ze, B, R, W, fe)) || {}, Re = (m == null ? void 0 : m(B, R, W, fe)) || {};
2776
- return Ve(Ee, Fe, Re) || {};
2777
- } : (B) => {
2778
- var Ee, Fe, Re;
2779
- const R = ((Ee = ie[l]) == null ? void 0 : Ee.call(ie, B)) || {}, W = ((Re = (Fe = o == null ? void 0 : o.control) == null ? void 0 : Fe[l]) == null ? void 0 : Re.call(Fe, B)) || {}, fe = (m == null ? void 0 : m(B)) || {};
2780
- return Ve(R, W, fe) || {};
2764
+ const _e = ((Le = ie[l]) == null ? void 0 : Le.call(ie, A, Y, W, fe)) || {}, Fe = ((et = (He = o == null ? void 0 : o.control) == null ? void 0 : He[l]) == null ? void 0 : et.call(He, A, Y, W, fe)) || {}, Re = (m == null ? void 0 : m(A, Y, W, fe)) || {};
2765
+ return Ve(_e, Fe, Re) || {};
2766
+ } : (A) => {
2767
+ var _e, Fe, Re;
2768
+ const Y = ((_e = ie[l]) == null ? void 0 : _e.call(ie, A)) || {}, W = ((Re = (Fe = o == null ? void 0 : o.control) == null ? void 0 : Fe[l]) == null ? void 0 : Re.call(Fe, A)) || {}, fe = (m == null ? void 0 : m(A)) || {};
2769
+ return Ve(Y, W, fe) || {};
2781
2770
  };
2782
- e.value.control[l] = w;
2771
+ e.value.control[l] = b;
2783
2772
  };
2784
2773
  ce("edit"), ce("delete"), ce("view"), ce("save"), ce("add", !1), ce("download", !1), ce("setting", !1);
2785
- const de = (l, d, m, w) => {
2786
- var fe, Ee, Fe, Re, Le, ze;
2774
+ const de = (l, d, m, b) => {
2775
+ var fe, _e, Fe, Re, Le, He;
2787
2776
  if (!l || !d || m == null)
2788
2777
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
2789
- const B = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, m, w)) || {}, R = ((Fe = (Ee = o == null ? void 0 : o.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : Fe.call(Ee, l, d, m, w)) || {}, W = ((ze = (Le = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Le.dropdown) == null ? void 0 : ze.call(Le, l, d, m, w)) || {};
2790
- return Ve(B, R, W) || {};
2791
- }, ke = {
2778
+ const A = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, m, b)) || {}, Y = ((Fe = (_e = o == null ? void 0 : o.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Fe.call(_e, l, d, m, b)) || {}, W = ((He = (Le = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Le.dropdown) == null ? void 0 : He.call(Le, l, d, m, b)) || {};
2779
+ return Ve(A, Y, W) || {};
2780
+ }, Ce = {
2792
2781
  type: "hidden",
2793
2782
  "min-width": 100,
2794
2783
  align: "center",
2795
- formatter: (l, d, m, w) => m,
2796
- "tooltip-formatter": ({ row: l, column: d, cellValue: m }) => _e(mr, { content: m, column: d })
2784
+ formatter: (l, d, m, b) => m,
2785
+ "tooltip-formatter": ({ row: l, column: d, cellValue: m }) => ke(pr, { content: m, column: d })
2797
2786
  };
2798
2787
  e.value.tableColumns = Ve(
2799
- ke,
2788
+ Ce,
2800
2789
  o == null ? void 0 : o.tableColumns,
2801
2790
  (dt = e.value) == null ? void 0 : dt.tableColumns
2802
2791
  ), e.value.form = Ve(
2803
- Pt,
2792
+ zt,
2804
2793
  o == null ? void 0 : o.form,
2805
2794
  (ct = e.value) == null ? void 0 : ct.form
2806
2795
  );
2807
- const Se = {
2796
+ const Te = {
2808
2797
  type: "hidden",
2809
2798
  labelPosition: "right",
2810
2799
  style: {
@@ -2812,11 +2801,11 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2812
2801
  }
2813
2802
  };
2814
2803
  e.value.formItems = Ve(
2815
- Se,
2804
+ Te,
2816
2805
  o == null ? void 0 : o.formItems,
2817
2806
  (ft = e == null ? void 0 : e.value) == null ? void 0 : ft.formItems
2818
2807
  );
2819
- const te = {
2808
+ const le = {
2820
2809
  title: "编辑",
2821
2810
  mode: "drawer",
2822
2811
  type: "hidden",
@@ -2829,16 +2818,16 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2829
2818
  overflow: !0,
2830
2819
  max: {
2831
2820
  style: {},
2832
- icon: () => _e(bl)
2821
+ icon: () => ke(gl)
2833
2822
  },
2834
2823
  min: {
2835
2824
  style: {},
2836
- icon: () => _e($l)
2825
+ icon: () => ke(bl)
2837
2826
  // 最小化图标
2838
2827
  }
2839
2828
  };
2840
2829
  e.value.dialog = Ve(
2841
- te,
2830
+ le,
2842
2831
  o == null ? void 0 : o.dialog,
2843
2832
  (pt = e.value) == null ? void 0 : pt.dialog
2844
2833
  );
@@ -2846,61 +2835,61 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2846
2835
  let m = d;
2847
2836
  if (l.decimals && !isNaN(parseFloat(d)) && (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(
2848
2837
  parseFloat(m).toFixed(l.decimals.num)
2849
- ).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && $t(d).isValid()) {
2850
- const B = {
2838
+ ).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && wt(d).isValid()) {
2839
+ const A = {
2851
2840
  date: "YYYY-MM-DD",
2852
2841
  datetime: "YYYY-MM-DD HH:mm:ss",
2853
2842
  time: "HH:mm:ss"
2854
2843
  };
2855
- m = l.format ? $t(m).format(l.format) : $t(m).format(B[l.type]);
2844
+ m = l.format ? wt(m).format(l.format) : wt(m).format(A[l.type]);
2856
2845
  }
2857
- return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${Dt(
2846
+ return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${St(
2858
2847
  parseFloat(m)
2859
- )}">${Wr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
2860
- }, le = (l) => {
2861
- _.value = Object.fromEntries(f), e.value.table.load();
2848
+ )}">${jr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
2849
+ }, re = (l) => {
2850
+ E.value = Object.fromEntries(f), e.value.table.load();
2862
2851
  }, Oe = (l) => {
2863
- _.value = l, e.value.table.load();
2864
- }, S = async (l) => {
2852
+ E.value = l, e.value.table.load();
2853
+ }, T = async (l) => {
2865
2854
  var d, m;
2866
2855
  e.value.form.modalState = "add";
2867
2856
  try {
2868
2857
  if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { m: l }))) return;
2869
- } catch (w) {
2870
- console.error("验证失败:", w);
2858
+ } catch (b) {
2859
+ console.error("验证失败:", b);
2871
2860
  return;
2872
2861
  }
2873
- (m = e.value.control.add(l)) != null && m.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(Y.value), t("open", "row-add", { initFormData: Y.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(l).mode, e.value.dialog.title = e.value.control.add(l).title || e.value.control.add(l).label || "新增", Object.keys(Y.value).forEach((w) => {
2874
- e.value[w] && (e.value[w].value = Y.value[w]);
2875
- }), i.value = !0, t("open", "add", { m: l }), yt());
2876
- }, b = async (l, d, m, w) => {
2877
- var B, R;
2862
+ (m = e.value.control.add(l)) != null && m.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(R.value), t("open", "row-add", { initFormData: R.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(l).mode, e.value.dialog.title = e.value.control.add(l).title || e.value.control.add(l).label || "新增", Object.keys(R.value).forEach((b) => {
2863
+ e.value[b] && (e.value[b].value = R.value[b]);
2864
+ }), i.value = !0, t("open", "add", { m: l }), gt());
2865
+ }, $ = async (l, d, m, b) => {
2866
+ var A, Y;
2878
2867
  e.value.form.modalState = "edit";
2879
2868
  try {
2880
- if (!await ((B = e.value.control) == null ? void 0 : B.validate("edit", { row: l, column: d, index: m, m: w }))) return;
2869
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: d, index: m, m: b }))) return;
2881
2870
  } catch (W) {
2882
2871
  console.error("验证失败:", W);
2883
2872
  return;
2884
2873
  }
2885
- (R = e.value.control.edit(l, d, m, w)) != null && R.click ? e.value.control.edit(l, d, m, w).click(l, d, m, w) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, d, m, w).mode, e.value.dialog.title = e.value.control.edit(l, d, m, w).title || e.value.control.edit(l, d, m, w).label || "编辑", Object.keys(l).forEach((W) => {
2874
+ (Y = e.value.control.edit(l, d, m, b)) != null && Y.click ? e.value.control.edit(l, d, m, b).click(l, d, m, b) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, d, m, b).mode, e.value.dialog.title = e.value.control.edit(l, d, m, b).title || e.value.control.edit(l, d, m, b).label || "编辑", Object.keys(l).forEach((W) => {
2886
2875
  e.value[W] && (e.value[W].value = l[W]);
2887
- }), i.value = !0, t("open", "edit", { m: w, row: l, column: d, index: m }), yt());
2888
- }, g = async (l, d, m, w) => {
2889
- var B, R;
2876
+ }), i.value = !0, t("open", "edit", { m: b, row: l, column: d, index: m }), gt());
2877
+ }, g = async (l, d, m, b) => {
2878
+ var A, Y;
2890
2879
  try {
2891
- if (!await ((B = e.value.control) == null ? void 0 : B.validate("delete", { row: l, column: d, index: m, m: w }))) return;
2880
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: d, index: m, m: b }))) return;
2892
2881
  } catch (W) {
2893
2882
  console.error("验证失败:", W);
2894
2883
  return;
2895
2884
  }
2896
- if ((R = e.value.control.delete(l, d, m, w)) != null && R.click)
2897
- e.value.control.delete(l, d, m, w).click(l, d, m, w);
2885
+ if ((Y = e.value.control.delete(l, d, m, b)) != null && Y.click)
2886
+ e.value.control.delete(l, d, m, b).click(l, d, m, b);
2898
2887
  else {
2899
- let { message: W, title: fe, options: Ee } = e.value.control.delete(l, d, m, w).dialog;
2900
- At.confirm(W, fe, Ee).then(() => {
2888
+ let { message: W, title: fe, options: _e } = e.value.control.delete(l, d, m, b).dialog;
2889
+ qt.confirm(W, fe, _e).then(() => {
2901
2890
  t(
2902
2891
  "delete",
2903
- { row: l, column: d, index: m, m: w },
2892
+ { row: l, column: d, index: m, m: b },
2904
2893
  (Fe = !0, Re = !1) => {
2905
2894
  Fe && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Re && e.value.table.load();
2906
2895
  }
@@ -2908,31 +2897,31 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2908
2897
  }).catch(() => {
2909
2898
  });
2910
2899
  }
2911
- }, n = async (l, d, m, w) => {
2912
- var B, R;
2900
+ }, u = async (l, d, m, b) => {
2901
+ var A, Y;
2913
2902
  e.value.form.modalState = void 0;
2914
2903
  try {
2915
- if (!await ((B = e.value.control) == null ? void 0 : B.validate("view", { row: l, column: d, index: m, m: w }))) return;
2904
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: d, index: m, m: b }))) return;
2916
2905
  } catch (W) {
2917
2906
  console.error("验证失败:", W);
2918
2907
  return;
2919
2908
  }
2920
- (R = e.value.control.view(l, d, m, w)) != null && R.click ? e.value.control.view(l, d, m, w).click(l, d, m, w) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(l, d, m, w).mode, e.value.dialog.title = e.value.control.view(l, d, m, w).title || e.value.control.view(l, d, m, w).label || "查看", Object.keys(l).forEach((W) => {
2909
+ (Y = e.value.control.view(l, d, m, b)) != null && Y.click ? e.value.control.view(l, d, m, b).click(l, d, m, b) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(l, d, m, b).mode, e.value.dialog.title = e.value.control.view(l, d, m, b).title || e.value.control.view(l, d, m, b).label || "查看", Object.keys(l).forEach((W) => {
2921
2910
  e.value[W] && (e.value[W].value = l[W]);
2922
- }), i.value = !0, t("open", "view", { m: w, row: l, column: d, index: m }), yt());
2923
- }, q = (l, d, m, w) => {
2924
- var B;
2925
- (B = e.value.control.save(l, d, m, w)) != null && B.click ? e.value.control.save(l, d, m, w).click(l, d, m, w) : t(
2911
+ }), i.value = !0, t("open", "view", { m: b, row: l, column: d, index: m }), gt());
2912
+ }, q = (l, d, m, b) => {
2913
+ var A;
2914
+ (A = e.value.control.save(l, d, m, b)) != null && A.click ? e.value.control.save(l, d, m, b).click(l, d, m, b) : t(
2926
2915
  "row-save",
2927
2916
  { row: l, column: d, index: m, data: e.value.table.data },
2928
- (R = !0, W = !0) => {
2929
- R && e.value.table.load(), W && at(() => {
2930
- Y.value = Object.assign(
2917
+ (Y = !0, W = !0) => {
2918
+ Y && e.value.table.load(), W && at(() => {
2919
+ R.value = Object.assign(
2931
2920
  {},
2932
2921
  Object.fromEntries(
2933
2922
  Object.entries(
2934
- Ue(e.value, (fe, Ee) => Ee.type != "control" && Ee.editor !== !1 && Ee.type != "hidden")
2935
- ).map(([fe, Ee]) => [fe, Ee.value])
2923
+ Ue(e.value, (fe, _e) => _e.type != "control" && _e.editor !== !1 && _e.type != "hidden")
2924
+ ).map(([fe, _e]) => [fe, _e.value])
2936
2925
  )
2937
2926
  );
2938
2927
  });
@@ -2949,17 +2938,17 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2949
2938
  if ((m = l.control.download(l)) != null && m.click)
2950
2939
  l.control.download(l).click(l, d);
2951
2940
  else {
2952
- let w = Ct(
2941
+ let b = Dt(
2953
2942
  {
2954
2943
  title: l.control.download(l).title || l.control.download(l).label || "下载",
2955
2944
  size: l.control.download(l).size || 480,
2956
2945
  width: l.control.download(l).width || 600,
2957
2946
  slots: {
2958
- default: () => _e(Xl, {
2947
+ default: () => ke(Gl, {
2959
2948
  items: d,
2960
2949
  commitText: l.control.download(l).excelLabel,
2961
- onExcel: (B, R) => {
2962
- t("download", B, _.value, R), w();
2950
+ onExcel: (A, Y) => {
2951
+ t("download", A, E.value, Y), b();
2963
2952
  }
2964
2953
  })
2965
2954
  }
@@ -2969,90 +2958,93 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2969
2958
  }
2970
2959
  }, Z = (l) => {
2971
2960
  var d;
2972
- (d = l.control.setting(l)) != null && d.click ? l.control.setting(l).click(l) : Ct(
2961
+ (d = l.control.setting(l)) != null && d.click ? l.control.setting(l).click(l) : Dt(
2973
2962
  {
2974
2963
  title: l.control.setting(l).title || l.control.setting(l).label || "设置",
2975
2964
  size: l.control.setting(l).size || 470,
2976
2965
  width: l.control.setting(l).width || 600,
2977
2966
  slots: {
2978
- default: () => _e(cr, {
2967
+ default: () => ke(ir, {
2979
2968
  modelValue: l,
2980
- tuid: oe.value,
2969
+ tuid: te.value,
2981
2970
  onSettingDragEnd: async () => {
2982
- await Me(oe.value);
2971
+ await Me(te.value);
2972
+ },
2973
+ onSelectAll: async (m) => {
2974
+ await Me(te.value);
2983
2975
  }
2984
2976
  })
2985
2977
  }
2986
2978
  },
2987
2979
  l.control.setting(l).mode
2988
2980
  );
2989
- }, G = e.value.control, pe = [
2990
- { type: "add", func: S },
2981
+ }, G = e.value.control, ve = [
2982
+ { type: "add", func: T },
2991
2983
  { type: "download", func: U },
2992
2984
  { type: "setting", func: Z },
2993
- { type: "view", func: n },
2994
- { type: "edit", func: b },
2985
+ { type: "view", func: u },
2986
+ { type: "edit", func: $ },
2995
2987
  { type: "delete", func: g },
2996
2988
  { type: "save", func: q }
2997
- ], E = (l, d, m, w, B) => pe.filter((R) => l.includes(R.type)).map(({ type: R, func: W }) => {
2998
- var fe, Ee, Fe;
2989
+ ], w = (l, d, m, b, A) => ve.filter((Y) => l.includes(Y.type)).map(({ type: Y, func: W }) => {
2990
+ var fe, _e, Fe;
2999
2991
  return {
3000
- name: `control-${R}`,
3001
- attr: G == null ? void 0 : G[R](d, m, w, B),
2992
+ name: `control-${Y}`,
2993
+ attr: G == null ? void 0 : G[Y](d, m, b, A),
3002
2994
  func: W,
3003
- label: (fe = G == null ? void 0 : G[R](d, m, w, B)) == null ? void 0 : fe.label,
3004
- sort: ((Ee = G == null ? void 0 : G[R](d, m, w, B)) == null ? void 0 : Ee.sort) || 0,
3005
- groupName: ((Fe = G == null ? void 0 : G[R](d, m, w, B)) == null ? void 0 : Fe.groupName) || "default"
2995
+ label: (fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : fe.label,
2996
+ sort: ((_e = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : _e.sort) || 0,
2997
+ groupName: ((Fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : Fe.groupName) || "default"
3006
2998
  };
3007
- }).sort((R, W) => R.sort - W.sort), y = (l, d, m, w, B) => E(l, d, m, w, B).reduce((R, W) => {
2999
+ }).sort((Y, W) => Y.sort - W.sort), y = (l, d, m, b, A) => w(l, d, m, b, A).reduce((Y, W) => {
3008
3000
  const fe = W.groupName || "default";
3009
- return R[fe] || (R[fe] = []), R[fe].push(W), R;
3010
- }, {}), re = Je(
3001
+ return Y[fe] || (Y[fe] = []), Y[fe].push(W), Y;
3002
+ }, {}), ae = Je(
3011
3003
  () => Object.fromEntries(
3012
3004
  Object.entries(e.value).filter(([l, d]) => d.type !== "hidden").filter(([l, d]) => d.hidden !== !0).filter(([l, d]) => d.visible !== !1).filter(([l, d]) => d.showCol !== !1).map(([l, d]) => (d.sort = typeof d.sort == "number" ? d.sort : 0, [l, d])).sort((l, d) => l[1].sort - d[1].sort)
3013
3005
  )
3014
- ), me = ae({}), ge = (l, d) => {
3015
- const m = (w, B) => {
3016
- for (const R of w) {
3017
- if (R.value == B) return R.label;
3018
- if (R.children) {
3019
- const W = m(R.children, B);
3006
+ ), he = oe({}), be = (l, d) => {
3007
+ const m = (b, A) => {
3008
+ for (const Y of b) {
3009
+ if (Y.value == A) return Y.label;
3010
+ if (Y.children) {
3011
+ const W = m(Y.children, A);
3020
3012
  if (W) return W;
3021
3013
  }
3022
3014
  }
3023
3015
  return null;
3024
3016
  };
3025
3017
  if (l.getDicts) {
3026
- const w = d.toString();
3027
- return me.value[w] ? (l.options = me.value[w], l.formatter || (l.formatter = (B, R, W, fe) => l.options && m(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((B) => {
3028
- me.value[w] = B, l.options = B, l.formatter || (l.formatter = (R, W, fe, Ee) => l.options && m(l.options, fe) || fe);
3018
+ const b = d.toString();
3019
+ return he.value[b] ? (l.options = he.value[b], l.formatter || (l.formatter = (A, Y, W, fe) => l.options && m(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((A) => {
3020
+ he.value[b] = A, l.options = A, l.formatter || (l.formatter = (Y, W, fe, _e) => l.options && m(l.options, fe) || fe);
3029
3021
  });
3030
3022
  }
3031
3023
  return Promise.resolve();
3032
- }, be = () => {
3024
+ }, $e = () => {
3033
3025
  const l = [];
3034
3026
  Object.keys(e.value).forEach((d) => {
3035
3027
  if (e.value[d].getDicts) {
3036
- const m = ge(e.value[d], d).then(() => {
3037
- e.value.table.data.forEach((w) => {
3038
- var B;
3039
- if (e.value[d].getDicts && ((B = e.value[d]) == null ? void 0 : B.forceString) !== !1) {
3040
- const R = w[d];
3041
- w[d] = R != null ? R.toString() : R;
3028
+ const m = be(e.value[d], d).then(() => {
3029
+ e.value.table.data.forEach((b) => {
3030
+ var A;
3031
+ if (e.value[d].getDicts && ((A = e.value[d]) == null ? void 0 : A.forceString) !== !1) {
3032
+ const Y = b[d];
3033
+ b[d] = Y != null ? Y.toString() : Y;
3042
3034
  }
3043
3035
  });
3044
- }).catch((w) => {
3045
- console.error(`加载字典${d}出错:`, w);
3036
+ }).catch((b) => {
3037
+ console.error(`加载字典${d}出错:`, b);
3046
3038
  });
3047
3039
  l.push(m);
3048
3040
  }
3049
3041
  }), Promise.all(l).catch((d) => {
3050
3042
  console.error("字典加载过程中发生错误:", d);
3051
3043
  });
3052
- }, $e = (l, d, m, w) => {
3053
- var B, R;
3054
- return l.table ? (B = l.table(d, m, w)) != null && B.auth ? (R = l.table(d, m, w)) == null ? void 0 : R.auth(d, m, w) : !0 : !1;
3055
- }, we = () => {
3044
+ }, we = (l, d, m, b) => {
3045
+ var A, Y;
3046
+ return l.table ? (A = l.table(d, m, b)) != null && A.auth ? (Y = l.table(d, m, b)) == null ? void 0 : Y.auth(d, m, b) : !0 : !1;
3047
+ }, Ee = () => {
3056
3048
  if (e.value.dialog.mode == "drawer")
3057
3049
  F.value.handleClose();
3058
3050
  else if (e.value.dialog.mode == "dialog")
@@ -3064,21 +3056,34 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3064
3056
  else
3065
3057
  i.value = !1;
3066
3058
  };
3067
- nl(() => {
3059
+ ol(() => {
3068
3060
  e.value.table.autoWatch && e.value.table.load();
3069
3061
  });
3070
3062
  const Me = async () => {
3071
- const l = await tr(oe.value), d = await nr(oe.value);
3072
- l && Array.isArray(l) && l.forEach((m) => {
3073
- const w = e.value[m.key];
3074
- w && (w.width = m.width, w.showCol = m.showCol, w.sort = m.sort);
3075
- }), d && Array.isArray(d) && d.forEach((m, w) => {
3076
- const B = e.value[m];
3077
- B && (B.sort = w);
3078
- });
3079
- }, xe = () => $r(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3080
- return ul(() => {
3081
- oe.value = xe();
3063
+ try {
3064
+ const [l, d, m] = await Promise.all([
3065
+ Jl(te.value),
3066
+ ar(te.value),
3067
+ Kl(te.value)
3068
+ ]);
3069
+ l && Array.isArray(l) && l.forEach((b) => {
3070
+ const A = e.value[b.key];
3071
+ A && (A.width = b.width);
3072
+ }), d && Array.isArray(d) && d.forEach((b, A) => {
3073
+ const Y = e.value[b];
3074
+ Y && (Y.sort = A);
3075
+ }), m && Array.isArray(m) && m.length > 0 ? m.forEach((b) => {
3076
+ const A = e.value[b];
3077
+ A && (A.showCol = !1);
3078
+ }) : Object.keys(e.value).filter((b) => e.value[b].type !== "control").forEach((b) => {
3079
+ e.value[b].showCol = !0;
3080
+ });
3081
+ } catch (l) {
3082
+ console.error("加载表格信息时出错:", l);
3083
+ }
3084
+ }, xe = () => gr(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3085
+ return nl(() => {
3086
+ te.value = xe();
3082
3087
  }), ut(async () => {
3083
3088
  c.value = Object.entries(e.value).filter(
3084
3089
  ([l, d]) => d.type !== "hidden" && d.type !== "control" && d.visible !== !1
@@ -3092,86 +3097,86 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3092
3097
  const l = Object.entries(e.value).filter(
3093
3098
  ([d, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
3094
3099
  );
3095
- Y.value = Object.fromEntries(
3100
+ R.value = Object.fromEntries(
3096
3101
  l.map(([d, m]) => [d, m.value])
3097
3102
  ), await Me();
3098
3103
  } catch (l) {
3099
3104
  console.error("Error during component initialization:", l);
3100
3105
  }
3101
3106
  e.value.table.autoWatch || e.value.table.load();
3102
- }), s({ addRow: S, editRow: b, deleteRow: g, readForm: n, saveRowData: q, closeDialog: we }), (l, d) => {
3103
- var ze, et, ot, tt, nt;
3104
- const m = z("el-icon"), w = z("el-dialog"), B = z("el-drawer"), R = z("el-button-group"), W = z("el-dropdown-item"), fe = z("el-dropdown-menu"), Ee = z("el-dropdown"), Fe = z("el-table-column"), Re = z("el-table"), Le = z("el-pagination");
3107
+ }), n({ addRow: T, editRow: $, deleteRow: g, readForm: u, saveRowData: q, closeDialog: Ee }), (l, d) => {
3108
+ var He, et, ot, tt, nt;
3109
+ const m = H("el-icon"), b = H("el-dialog"), A = H("el-drawer"), Y = H("el-button-group"), W = H("el-dropdown-item"), fe = H("el-dropdown-menu"), _e = H("el-dropdown"), Fe = H("el-table-column"), Re = H("el-table"), Le = H("el-pagination");
3105
3110
  return p(), I(J, null, [
3106
- e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", wr, [
3107
- K(w, O(
3111
+ e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", br, [
3112
+ K(b, O(
3108
3113
  {
3109
3114
  ref_key: "dialogRef",
3110
3115
  ref: v,
3111
3116
  id: "dialogRef",
3112
3117
  modelValue: i.value,
3113
- "onUpdate:modelValue": d[3] || (d[3] = (H) => i.value = H),
3118
+ "onUpdate:modelValue": d[3] || (d[3] = (z) => i.value = z),
3114
3119
  fullscreen: e.value.dialog.fullScreen
3115
3120
  },
3116
- P(Ue)(e.value.dialog, (H) => !["size", "max", "min"].includes(H)),
3121
+ P(Ue)(e.value.dialog, (z) => !["size", "max", "min"].includes(z)),
3117
3122
  {
3118
- width: P(Xt)(e.value.dialog.width) + 35
3123
+ width: P(Gt)(e.value.dialog.width) + 35
3119
3124
  }
3120
3125
  ), {
3121
3126
  header: D(() => {
3122
- var H, se, x, X, ee, Ne, je, He, Pe, h;
3127
+ var z, se, x, X, ee, je, Ne, ze, Pe, h;
3123
3128
  return [
3124
- Q("div", Er, [
3125
- Q("div", _r, [
3129
+ Q("div", $r, [
3130
+ Q("div", wr, [
3126
3131
  M(l.$slots, "f-header", {}, () => [
3127
- Q("div", null, Ce(e.value.dialog.title), 1)
3132
+ Q("div", null, De(e.value.dialog.title), 1)
3128
3133
  ], !0)
3129
3134
  ]),
3130
- ((se = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : se.fullScreen) === !1 ? (p(), I("div", {
3135
+ ((se = (z = e.value) == null ? void 0 : z.dialog) == null ? void 0 : se.fullScreen) === !1 ? (p(), I("div", {
3131
3136
  key: 0,
3132
3137
  style: qe((ee = (X = (x = e.value) == null ? void 0 : x.dialog) == null ? void 0 : X.max) == null ? void 0 : ee.style),
3133
- onClick: d[0] || (d[0] = (T) => e.value.dialog.fullScreen = !0),
3138
+ onClick: d[0] || (d[0] = (S) => e.value.dialog.fullScreen = !0),
3134
3139
  class: "max"
3135
3140
  }, [
3136
3141
  K(m, null, {
3137
3142
  default: D(() => {
3138
- var T, ue, Ae;
3143
+ var S, ue, Ae;
3139
3144
  return [
3140
- (p(), A(We((Ae = (ue = (T = e.value) == null ? void 0 : T.dialog) == null ? void 0 : ue.max) == null ? void 0 : Ae.icon)))
3145
+ (p(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.max) == null ? void 0 : Ae.icon)))
3141
3146
  ];
3142
3147
  }),
3143
3148
  _: 1
3144
3149
  })
3145
- ], 4)) : ye("", !0),
3146
- ((je = (Ne = e.value) == null ? void 0 : Ne.dialog) == null ? void 0 : je.fullScreen) === !0 ? (p(), I("div", {
3150
+ ], 4)) : ge("", !0),
3151
+ ((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (p(), I("div", {
3147
3152
  key: 1,
3148
- style: qe((h = (Pe = (He = e.value) == null ? void 0 : He.dialog) == null ? void 0 : Pe.min) == null ? void 0 : h.style),
3149
- onClick: d[1] || (d[1] = (T) => e.value.dialog.fullScreen = !1),
3153
+ style: qe((h = (Pe = (ze = e.value) == null ? void 0 : ze.dialog) == null ? void 0 : Pe.min) == null ? void 0 : h.style),
3154
+ onClick: d[1] || (d[1] = (S) => e.value.dialog.fullScreen = !1),
3150
3155
  class: "max"
3151
3156
  }, [
3152
3157
  K(m, null, {
3153
3158
  default: D(() => {
3154
- var T, ue, Ae;
3159
+ var S, ue, Ae;
3155
3160
  return [
3156
- (p(), A(We((Ae = (ue = (T = e.value) == null ? void 0 : T.dialog) == null ? void 0 : ue.min) == null ? void 0 : Ae.icon)))
3161
+ (p(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.min) == null ? void 0 : Ae.icon)))
3157
3162
  ];
3158
3163
  }),
3159
3164
  _: 1
3160
3165
  })
3161
- ], 4)) : ye("", !0)
3166
+ ], 4)) : ge("", !0)
3162
3167
  ])
3163
3168
  ];
3164
3169
  }),
3165
3170
  default: D(() => [
3166
- Q("div", kr, [
3171
+ Q("div", Er, [
3167
3172
  M(l.$slots, "table-dialog-form", { model: e.value }, () => [
3168
- K(Et, {
3173
+ K(_t, {
3169
3174
  modelValue: e.value,
3170
- "onUpdate:modelValue": d[2] || (d[2] = (H) => e.value = H),
3175
+ "onUpdate:modelValue": d[2] || (d[2] = (z) => e.value = z),
3171
3176
  onSubmit: C,
3172
3177
  onReset: k
3173
- }, he({ _: 2 }, [
3174
- j(l.$slots, (H, se, x) => ({
3178
+ }, ye({ _: 2 }, [
3179
+ N(l.$slots, (z, se, x) => ({
3175
3180
  name: se,
3176
3181
  fn: D((X) => [
3177
3182
  M(l.$slots, se, { model: X }, void 0, !0)
@@ -3183,32 +3188,32 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3183
3188
  ]),
3184
3189
  _: 3
3185
3190
  }, 16, ["modelValue", "fullscreen", "width"])
3186
- ])) : ye("", !0),
3187
- e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", Cr, [
3188
- K(B, O({
3191
+ ])) : ge("", !0),
3192
+ e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", _r, [
3193
+ K(A, O({
3189
3194
  ref_key: "drawerRef",
3190
3195
  ref: F,
3191
3196
  modelValue: i.value,
3192
- "onUpdate:modelValue": d[5] || (d[5] = (H) => i.value = H)
3193
- }, P(Ue)(e.value.dialog, (H) => !["width"].includes(H))), {
3197
+ "onUpdate:modelValue": d[5] || (d[5] = (z) => i.value = z)
3198
+ }, P(Ue)(e.value.dialog, (z) => !["width"].includes(z))), {
3194
3199
  header: D(() => [
3195
- Q("div", Dr, [
3196
- Q("div", Tr, [
3200
+ Q("div", kr, [
3201
+ Q("div", Cr, [
3197
3202
  M(l.$slots, "f-header", {}, () => [
3198
- Q("div", null, Ce(e.value.dialog.title), 1)
3203
+ Q("div", null, De(e.value.dialog.title), 1)
3199
3204
  ], !0)
3200
3205
  ])
3201
3206
  ])
3202
3207
  ]),
3203
3208
  default: D(() => [
3204
3209
  M(l.$slots, "table-drawer-form", { model: e.value }, () => [
3205
- K(Et, {
3210
+ K(_t, {
3206
3211
  modelValue: e.value,
3207
- "onUpdate:modelValue": d[4] || (d[4] = (H) => e.value = H),
3212
+ "onUpdate:modelValue": d[4] || (d[4] = (z) => e.value = z),
3208
3213
  onSubmit: C,
3209
3214
  onReset: k
3210
- }, he({ _: 2 }, [
3211
- j(l.$slots, (H, se, x) => ({
3215
+ }, ye({ _: 2 }, [
3216
+ N(l.$slots, (z, se, x) => ({
3212
3217
  name: se,
3213
3218
  fn: D((X) => [
3214
3219
  M(l.$slots, se, { model: X }, void 0, !0)
@@ -3219,25 +3224,25 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3219
3224
  ]),
3220
3225
  _: 3
3221
3226
  }, 16, ["modelValue"])
3222
- ])) : ye("", !0),
3223
- Q("div", Mr, [
3224
- ((et = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : et.hidden) != !0 ? (p(), I("div", Sr, [
3227
+ ])) : ge("", !0),
3228
+ Q("div", Dr, [
3229
+ ((et = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : et.hidden) != !0 ? (p(), I("div", Sr, [
3225
3230
  M(l.$slots, "query", {}, () => [
3226
- K(Ll, {
3231
+ K(Rl, {
3227
3232
  modelValue: e.value,
3228
- "onUpdate:modelValue": d[6] || (d[6] = (H) => e.value = H),
3229
- info: _.value,
3230
- "onUpdate:info": d[7] || (d[7] = (H) => _.value = H),
3233
+ "onUpdate:modelValue": d[6] || (d[6] = (z) => e.value = z),
3234
+ info: E.value,
3235
+ "onUpdate:info": d[7] || (d[7] = (z) => E.value = z),
3231
3236
  onQuery: Oe,
3232
- onReset: le
3233
- }, he({
3237
+ onReset: re
3238
+ }, ye({
3234
3239
  "q-btns": D(() => [
3235
3240
  M(l.$slots, "q-btns", {}, () => [
3236
- (p(!0), I(J, null, j(y(["add", "download", "setting"], e.value), (H, se) => (p(), I(J, null, [
3237
- se == "default" ? (p(!0), I(J, { key: 0 }, j(H, (x) => (p(), I(J, null, [
3241
+ (p(!0), I(J, null, N(y(["add", "download", "setting"], e.value), (z, se) => (p(), I(J, null, [
3242
+ se == "default" ? (p(!0), I(J, { key: 0 }, N(z, (x) => (p(), I(J, null, [
3238
3243
  M(l.$slots, x.name + "-left", {}, void 0, !0),
3239
3244
  (x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? M(l.$slots, x.name, { key: 0 }, () => [
3240
- x.label ? (p(), A(P(Be), O({
3245
+ x.label ? (p(), B(P(Be), O({
3241
3246
  key: 0,
3242
3247
  title: x.label,
3243
3248
  ref_for: !0
@@ -3245,24 +3250,24 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3245
3250
  onClick: (X) => x.func(e.value, c.value)
3246
3251
  }), {
3247
3252
  default: D(() => [
3248
- Ie(Ce(x.label), 1)
3253
+ Ie(De(x.label), 1)
3249
3254
  ]),
3250
3255
  _: 2
3251
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3256
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3252
3257
  key: 1,
3253
3258
  title: x.label,
3254
3259
  ref_for: !0
3255
3260
  }, x.attr, {
3256
3261
  onClick: (X) => x.func(e.value, c.value)
3257
3262
  }), null, 16, ["title", "onClick"]))
3258
- ], !0) : ye("", !0),
3263
+ ], !0) : ge("", !0),
3259
3264
  M(l.$slots, x.name + "-right", {}, void 0, !0)
3260
- ], 64))), 256)) : (p(), A(R, { key: 1 }, {
3265
+ ], 64))), 256)) : (p(), B(Y, { key: 1 }, {
3261
3266
  default: D(() => [
3262
- (p(!0), I(J, null, j(H, (x) => (p(), I(J, null, [
3267
+ (p(!0), I(J, null, N(z, (x) => (p(), I(J, null, [
3263
3268
  M(l.$slots, x.name + "-left", {}, void 0, !0),
3264
3269
  (x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? M(l.$slots, x.name, { key: 0 }, () => [
3265
- x.label ? (p(), A(P(Be), O({
3270
+ x.label ? (p(), B(P(Be), O({
3266
3271
  key: 0,
3267
3272
  title: x.label,
3268
3273
  ref_for: !0
@@ -3270,17 +3275,17 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3270
3275
  onClick: (X) => x.func(e.value, c.value)
3271
3276
  }), {
3272
3277
  default: D(() => [
3273
- Ie(Ce(x.label), 1)
3278
+ Ie(De(x.label), 1)
3274
3279
  ]),
3275
3280
  _: 2
3276
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3281
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3277
3282
  key: 1,
3278
3283
  title: x.label,
3279
3284
  ref_for: !0
3280
3285
  }, x.attr, {
3281
3286
  onClick: (X) => x.func(e.value, c.value)
3282
3287
  }), null, 16, ["title", "onClick"]))
3283
- ], !0) : ye("", !0),
3288
+ ], !0) : ge("", !0),
3284
3289
  M(l.$slots, x.name + "-right", {}, void 0, !0)
3285
3290
  ], 64))), 256))
3286
3291
  ]),
@@ -3291,7 +3296,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3291
3296
  ]),
3292
3297
  _: 2
3293
3298
  }, [
3294
- j(l.$slots, (H, se, x) => ({
3299
+ N(l.$slots, (z, se, x) => ({
3295
3300
  name: se,
3296
3301
  fn: D((X) => [
3297
3302
  M(l.$slots, se, { model: e.value }, void 0, !0)
@@ -3299,19 +3304,19 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3299
3304
  }))
3300
3305
  ]), 1032, ["modelValue", "info"])
3301
3306
  ], !0)
3302
- ])) : ye("", !0),
3303
- Q("div", Fr, [
3307
+ ])) : ge("", !0),
3308
+ Q("div", Mr, [
3304
3309
  K(Re, O({
3305
3310
  ...l.$attrs,
3306
3311
  ...P(Ue)(
3307
3312
  e.value.table,
3308
- (H) => !["dblclickType", "page"].includes(H)
3313
+ (z) => !["dblclickType", "page"].includes(z)
3309
3314
  )
3310
3315
  }, {
3311
- "summary-method": (H) => e.value.table["summary-method"](H, { fields: N.value, sums: V.value }),
3312
- onSortChange: d[8] || (d[8] = (H) => {
3316
+ "summary-method": (z) => e.value.table["summary-method"](z, { fields: j.value, sums: V.value }),
3317
+ onSortChange: d[8] || (d[8] = (z) => {
3313
3318
  var se, x;
3314
- e.value.table.onSortChange(H, _.value), ((se = H == null ? void 0 : H.column) == null ? void 0 : se.sortable) === "custom" && ((x = e.value.table) == null || x.load());
3319
+ e.value.table.onSortChange(z, E.value), ((se = z == null ? void 0 : z.column) == null ? void 0 : se.sortable) === "custom" && ((x = e.value.table) == null || x.load());
3315
3320
  })
3316
3321
  }), {
3317
3322
  append: D(() => [
@@ -3322,21 +3327,21 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3322
3327
  ]),
3323
3328
  default: D(() => [
3324
3329
  M(l.$slots, "default", {}, () => [
3325
- (p(!0), I(J, null, j(re.value, (H, se) => (p(), A(Fe, O({
3330
+ (p(!0), I(J, null, N(ae.value, (z, se) => (p(), B(Fe, O({
3326
3331
  prop: se,
3327
3332
  key: se,
3328
3333
  ref_for: !0
3329
3334
  }, {
3330
3335
  ...e.value.tableColumns,
3331
- ...P(Ue)(H, (x) => u.includes(x))
3332
- }), he({
3336
+ ...P(Ue)(z, (x) => s.includes(x))
3337
+ }), ye({
3333
3338
  header: D(({ column: x, $index: X }) => [
3334
3339
  se == "control" ? M(l.$slots, `${se}-header`, {
3335
3340
  key: 0,
3336
3341
  column: x,
3337
3342
  index: X
3338
3343
  }, () => [
3339
- Q("span", null, Ce(x.label), 1)
3344
+ Q("span", null, De(x.label), 1)
3340
3345
  ], !0) : M(l.$slots, `${se}-header`, {
3341
3346
  key: 1,
3342
3347
  column: x,
@@ -3348,7 +3353,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3348
3353
  ]),
3349
3354
  _: 2
3350
3355
  }, [
3351
- H.type === "expand" ? {
3356
+ z.type === "expand" ? {
3352
3357
  name: "default",
3353
3358
  fn: D(({ row: x, column: X, $index: ee }) => [
3354
3359
  M(l.$slots, `${se}`, {
@@ -3358,14 +3363,14 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3358
3363
  }, void 0, !0)
3359
3364
  ]),
3360
3365
  key: "0"
3361
- } : H.type == "control" ? {
3366
+ } : z.type == "control" ? {
3362
3367
  name: "default",
3363
3368
  fn: D(({ row: x, column: X, $index: ee }) => {
3364
- var Ne, je;
3369
+ var je, Ne;
3365
3370
  return [
3366
3371
  Q("div", {
3367
- class: Ot(["control", (Ne = e.value.control) == null ? void 0 : Ne.class]),
3368
- style: qe((je = e.value.control) == null ? void 0 : je.style)
3372
+ class: Bt(["control", (je = e.value.control) == null ? void 0 : je.class]),
3373
+ style: qe((Ne = e.value.control) == null ? void 0 : Ne.style)
3369
3374
  }, [
3370
3375
  M(l.$slots, "control", {}, () => [
3371
3376
  M(l.$slots, "control-left", {
@@ -3373,103 +3378,103 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3373
3378
  column: X,
3374
3379
  index: ee
3375
3380
  }, void 0, !0),
3376
- (p(!0), I(J, null, j(y(["view", "edit", "delete", "save"], x, X, ee, e.value), (He, Pe) => {
3381
+ (p(!0), I(J, null, N(y(["view", "edit", "delete", "save"], x, X, ee, e.value), (ze, Pe) => {
3377
3382
  var h;
3378
3383
  return p(), I(J, null, [
3379
- Pe == "default" ? (p(!0), I(J, { key: 0 }, j(He, (T) => (p(), I(J, null, [
3380
- M(l.$slots, T.name + "-left", {
3384
+ Pe == "default" ? (p(!0), I(J, { key: 0 }, N(ze, (S) => (p(), I(J, null, [
3385
+ M(l.$slots, S.name + "-left", {
3381
3386
  row: x,
3382
3387
  column: X,
3383
3388
  index: ee
3384
3389
  }, void 0, !0),
3385
- T.attr.auth() ? M(l.$slots, T.name, {
3390
+ S.attr.auth() ? M(l.$slots, S.name, {
3386
3391
  key: 0,
3387
3392
  row: x,
3388
3393
  column: X,
3389
3394
  index: ee
3390
3395
  }, () => [
3391
- T.label ? (p(), A(P(Be), O({
3396
+ S.label ? (p(), B(P(Be), O({
3392
3397
  key: 0,
3393
- title: T.label,
3398
+ title: S.label,
3394
3399
  ref_for: !0
3395
- }, T.attr, {
3396
- onClick: (ue) => T.func(x, X, ee, e.value)
3400
+ }, S.attr, {
3401
+ onClick: (ue) => S.func(x, X, ee, e.value)
3397
3402
  }), {
3398
3403
  default: D(() => [
3399
- Ie(Ce(T.label), 1)
3404
+ Ie(De(S.label), 1)
3400
3405
  ]),
3401
3406
  _: 2
3402
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3407
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3403
3408
  key: 1,
3404
- title: T.label,
3409
+ title: S.label,
3405
3410
  ref_for: !0
3406
- }, T.attr, {
3407
- onClick: (ue) => T.func(x, X, ee, e.value)
3411
+ }, S.attr, {
3412
+ onClick: (ue) => S.func(x, X, ee, e.value)
3408
3413
  }), null, 16, ["title", "onClick"]))
3409
- ], !0) : ye("", !0),
3410
- M(l.$slots, T.name + "-right", {
3414
+ ], !0) : ge("", !0),
3415
+ M(l.$slots, S.name + "-right", {
3411
3416
  row: x,
3412
3417
  column: X,
3413
3418
  index: ee
3414
3419
  }, void 0, !0)
3415
- ], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((h = de(x, X, ee, e.value)) != null && h.auth()) ? (p(), A(Ee, O({
3420
+ ], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((h = de(x, X, ee, e.value)) != null && h.auth()) ? (p(), B(_e, O({
3416
3421
  key: 1,
3417
3422
  ref_for: !0
3418
3423
  }, de(x, X, ee, e.value)), {
3419
3424
  dropdown: D(() => [
3420
3425
  K(fe, null, {
3421
3426
  default: D(() => [
3422
- (p(!0), I(J, null, j(He, (T) => {
3427
+ (p(!0), I(J, null, N(ze, (S) => {
3423
3428
  var ue, Ae, lt;
3424
3429
  return p(), I(J, null, [
3425
- l.$slots[T.name + "-left"] ? M(l.$slots, T.name + "-left", {
3430
+ l.$slots[S.name + "-left"] ? M(l.$slots, S.name + "-left", {
3426
3431
  key: 0,
3427
3432
  row: x,
3428
3433
  column: X,
3429
3434
  index: ee
3430
- }, void 0, !0) : ye("", !0),
3431
- T.attr.auth() ? (p(), A(W, O({
3435
+ }, void 0, !0) : ge("", !0),
3436
+ S.attr.auth() ? (p(), B(W, O({
3432
3437
  key: 1,
3433
3438
  ref_for: !0
3434
3439
  }, {
3435
- command: (ue = T == null ? void 0 : T.attr) == null ? void 0 : ue.command,
3436
- divided: (Ae = T == null ? void 0 : T.attr) == null ? void 0 : Ae.divided,
3437
- disabled: (lt = T == null ? void 0 : T.attr) == null ? void 0 : lt.disabled
3440
+ command: (ue = S == null ? void 0 : S.attr) == null ? void 0 : ue.command,
3441
+ divided: (Ae = S == null ? void 0 : S.attr) == null ? void 0 : Ae.divided,
3442
+ disabled: (lt = S == null ? void 0 : S.attr) == null ? void 0 : lt.disabled
3438
3443
  }), {
3439
3444
  default: D(() => [
3440
- M(l.$slots, T.name, {
3445
+ M(l.$slots, S.name, {
3441
3446
  row: x,
3442
3447
  column: X,
3443
3448
  index: ee
3444
3449
  }, () => [
3445
- T.label ? (p(), A(P(Be), O({
3450
+ S.label ? (p(), B(P(Be), O({
3446
3451
  key: 0,
3447
- title: T.label,
3452
+ title: S.label,
3448
3453
  ref_for: !0
3449
- }, T.attr, {
3450
- onClick: (rt) => T.func(x, X, ee, e.value)
3454
+ }, S.attr, {
3455
+ onClick: (rt) => S.func(x, X, ee, e.value)
3451
3456
  }), {
3452
3457
  default: D(() => [
3453
- Ie(Ce(T.label), 1)
3458
+ Ie(De(S.label), 1)
3454
3459
  ]),
3455
3460
  _: 2
3456
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3461
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3457
3462
  key: 1,
3458
- title: T.label,
3463
+ title: S.label,
3459
3464
  ref_for: !0
3460
- }, T.attr, {
3461
- onClick: (rt) => T.func(x, X, ee, e.value)
3465
+ }, S.attr, {
3466
+ onClick: (rt) => S.func(x, X, ee, e.value)
3462
3467
  }), null, 16, ["title", "onClick"]))
3463
3468
  ], !0)
3464
3469
  ]),
3465
3470
  _: 2
3466
- }, 1040)) : ye("", !0),
3467
- l.$slots[T.name + "-right"] ? M(l.$slots, T.name + "-right", {
3471
+ }, 1040)) : ge("", !0),
3472
+ l.$slots[S.name + "-right"] ? M(l.$slots, S.name + "-right", {
3468
3473
  key: 2,
3469
3474
  row: x,
3470
3475
  column: X,
3471
3476
  index: ee
3472
- }, void 0, !0) : ye("", !0)
3477
+ }, void 0, !0) : ge("", !0)
3473
3478
  ], 64);
3474
3479
  }), 256))
3475
3480
  ]),
@@ -3477,46 +3482,46 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3477
3482
  }, 1024)
3478
3483
  ]),
3479
3484
  default: D(() => {
3480
- var T;
3485
+ var S;
3481
3486
  return [
3482
- Ie(Ce((T = de(x, X, ee, e.value)) == null ? void 0 : T.label) + " ", 1)
3487
+ Ie(De((S = de(x, X, ee, e.value)) == null ? void 0 : S.label) + " ", 1)
3483
3488
  ];
3484
3489
  }),
3485
3490
  _: 2
3486
- }, 1040)) : (p(), A(R, { key: 2 }, {
3491
+ }, 1040)) : (p(), B(Y, { key: 2 }, {
3487
3492
  default: D(() => [
3488
- (p(!0), I(J, null, j(He, (T) => (p(), I(J, null, [
3489
- M(l.$slots, T.name + "-left", {
3493
+ (p(!0), I(J, null, N(ze, (S) => (p(), I(J, null, [
3494
+ M(l.$slots, S.name + "-left", {
3490
3495
  row: x,
3491
3496
  column: X,
3492
3497
  index: ee
3493
3498
  }, void 0, !0),
3494
- T.attr.auth() ? M(l.$slots, T.name, {
3499
+ S.attr.auth() ? M(l.$slots, S.name, {
3495
3500
  key: 0,
3496
3501
  row: x,
3497
3502
  column: X,
3498
3503
  index: ee
3499
3504
  }, () => [
3500
- T.label ? (p(), A(P(Be), O({
3505
+ S.label ? (p(), B(P(Be), O({
3501
3506
  key: 0,
3502
- title: T.label,
3507
+ title: S.label,
3503
3508
  ref_for: !0
3504
- }, T.attr, {
3505
- onClick: (ue) => T.func(x, X, ee, e.value)
3509
+ }, S.attr, {
3510
+ onClick: (ue) => S.func(x, X, ee, e.value)
3506
3511
  }), {
3507
3512
  default: D(() => [
3508
- Ie(Ce(T.label), 1)
3513
+ Ie(De(S.label), 1)
3509
3514
  ]),
3510
3515
  _: 2
3511
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3516
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3512
3517
  key: 1,
3513
- title: T.label,
3518
+ title: S.label,
3514
3519
  ref_for: !0
3515
- }, T.attr, {
3516
- onClick: (ue) => T.func(x, X, ee, e.value)
3520
+ }, S.attr, {
3521
+ onClick: (ue) => S.func(x, X, ee, e.value)
3517
3522
  }), null, 16, ["title", "onClick"]))
3518
- ], !0) : ye("", !0),
3519
- M(l.$slots, T.name + "-right", {
3523
+ ], !0) : ge("", !0),
3524
+ M(l.$slots, S.name + "-right", {
3520
3525
  row: x,
3521
3526
  column: X,
3522
3527
  index: ee
@@ -3537,35 +3542,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3537
3542
  ];
3538
3543
  }),
3539
3544
  key: "1"
3540
- } : H.type != "selection" && H.type != "index" ? {
3545
+ } : z.type != "selection" && z.type != "index" ? {
3541
3546
  name: "default",
3542
3547
  fn: D(({ row: x, column: X, $index: ee }) => [
3543
- $e(H, x, X, ee) && ee != -1 ? M(l.$slots, `${se}`, {
3548
+ we(z, x, X, ee) && ee != -1 ? M(l.$slots, `${se}`, {
3544
3549
  key: 0,
3545
3550
  row: x,
3546
3551
  column: X,
3547
3552
  index: ee
3548
3553
  }, () => {
3549
- var Ne;
3554
+ var je;
3550
3555
  return [
3551
- (p(), A(gt, {
3556
+ (p(), B(bt, {
3552
3557
  modelValue: x[se],
3553
- "onUpdate:modelValue": (je) => x[se] = je,
3554
- item: H == null ? void 0 : H.table(x, X, ee),
3558
+ "onUpdate:modelValue": (Ne) => x[se] = Ne,
3559
+ item: z == null ? void 0 : z.table(x, X, ee),
3555
3560
  ctrlKey: se,
3556
3561
  key: `${se}-${ee} -${L.value}`,
3557
- ctrlType: (Ne = H.table(x, X, ee)) != null && Ne.type ? H.table(x, X, ee).type : H.type,
3562
+ ctrlType: (je = z.table(x, X, ee)) != null && je.type ? z.table(x, X, ee).type : z.type,
3558
3563
  model: e.value,
3559
3564
  class: "g-ctrl-container",
3560
3565
  t: "t",
3561
3566
  formInfo: x
3562
- }, he({ _: 2 }, [
3563
- j(l.$slots, (je, He) => ({
3564
- name: He,
3567
+ }, ye({ _: 2 }, [
3568
+ N(l.$slots, (Ne, ze) => ({
3569
+ name: ze,
3565
3570
  fn: D((Pe) => [
3566
- M(l.$slots, He, {
3571
+ M(l.$slots, ze, {
3567
3572
  data: Pe,
3568
- item: H,
3573
+ item: z,
3569
3574
  model: e.value
3570
3575
  }, void 0, !0)
3571
3576
  ])
@@ -3579,12 +3584,12 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3579
3584
  index: ee
3580
3585
  }, () => [
3581
3586
  Q("div", {
3582
- style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, H == null ? void 0 : H.style]),
3587
+ style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, z == null ? void 0 : z.style]),
3583
3588
  innerHTML: ne(
3584
- H,
3589
+ z,
3585
3590
  X.formatter(x, X, x[se], ee)
3586
3591
  )
3587
- }, null, 12, xr)
3592
+ }, null, 12, Tr)
3588
3593
  ], !0)
3589
3594
  ]),
3590
3595
  key: "2"
@@ -3594,12 +3599,12 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3594
3599
  ]),
3595
3600
  _: 3
3596
3601
  }, 16, ["summary-method"]),
3597
- (nt = (tt = (ot = e.value) == null ? void 0 : ot.table) == null ? void 0 : tt.page) != null && nt.hidden ? ye("", !0) : M(l.$slots, "page", { key: 0 }, () => [
3602
+ (nt = (tt = (ot = e.value) == null ? void 0 : ot.table) == null ? void 0 : tt.page) != null && nt.hidden ? ge("", !0) : M(l.$slots, "page", { key: 0 }, () => [
3598
3603
  K(Le, O({
3599
3604
  "page-size": e.value.table.page.pageSize,
3600
- "onUpdate:pageSize": d[9] || (d[9] = (H) => e.value.table.page.pageSize = H),
3605
+ "onUpdate:pageSize": d[9] || (d[9] = (z) => e.value.table.page.pageSize = z),
3601
3606
  "current-page": e.value.table.page.currentPage,
3602
- "onUpdate:currentPage": d[10] || (d[10] = (H) => e.value.table.page.currentPage = H)
3607
+ "onUpdate:currentPage": d[10] || (d[10] = (z) => e.value.table.page.currentPage = z)
3603
3608
  }, e.value.table.page), {
3604
3609
  default: D(() => [
3605
3610
  M(l.$slots, "table-page", {}, void 0, !0)
@@ -3612,7 +3617,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3612
3617
  ], 64);
3613
3618
  };
3614
3619
  }
3615
- }), qr = /* @__PURE__ */ Ze(Vr, [["__scopeId", "data-v-2348ac8e"]]), Ar = { class: "g-tree-table" }, Br = { class: "g-tree-container" }, Or = { class: "g-tree-table-container" }, Ir = /* @__PURE__ */ Object.assign({
3620
+ }), xr = /* @__PURE__ */ Ze(Fr, [["__scopeId", "data-v-de570478"]]), Vr = { class: "g-tree-table" }, qr = { class: "g-tree-container" }, Ar = { class: "g-tree-table-container" }, Br = /* @__PURE__ */ Object.assign({
3616
3621
  name: "g-tree-table",
3617
3622
  inheritAttrs: !1
3618
3623
  }, {
@@ -3622,38 +3627,38 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3622
3627
  modelModifiers: {}
3623
3628
  },
3624
3629
  emits: /* @__PURE__ */ Xe(["load"], ["update:modelValue"]),
3625
- setup(a, { emit: s }) {
3626
- var $, V, N, Y;
3627
- const r = s, t = Qe(a, "modelValue"), e = Mt(), o = ae(
3628
- typeof (($ = e == null ? void 0 : e.tree) == null ? void 0 : $.width) == "number" ? `${e.tree.width}px` : ((V = e == null ? void 0 : e.tree) == null ? void 0 : V.width) || "180px"
3629
- ), _ = ae(((N = e == null ? void 0 : e.tree) == null ? void 0 : N.search) === void 0 ? !0 : (Y = e == null ? void 0 : e.tree) == null ? void 0 : Y.search), v = ae({}), F = ae(""), f = ae(null), i = (L, oe) => {
3630
+ setup(a, { emit: n }) {
3631
+ var _, V, j, R;
3632
+ const r = n, t = Qe(a, "modelValue"), e = Tt(), o = oe(
3633
+ typeof ((_ = e == null ? void 0 : e.tree) == null ? void 0 : _.width) == "number" ? `${e.tree.width}px` : ((V = e == null ? void 0 : e.tree) == null ? void 0 : V.width) || "180px"
3634
+ ), E = oe(((j = e == null ? void 0 : e.tree) == null ? void 0 : j.search) === void 0 ? !0 : (R = e == null ? void 0 : e.tree) == null ? void 0 : R.search), v = oe({}), F = oe(""), f = oe(null), i = (L, te) => {
3630
3635
  var ie, ce;
3631
3636
  if (!L) return !0;
3632
- const ve = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
3633
- return oe[ve].includes(L);
3634
- }, u = (L, oe) => {
3635
- r("load", v.value, L, oe);
3637
+ const me = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
3638
+ return te[me].includes(L);
3639
+ }, s = (L, te) => {
3640
+ r("load", v.value, L, te);
3636
3641
  }, c = (L) => {
3637
3642
  v.value = L, t.value.table.load();
3638
3643
  };
3639
- return sl(F, (L) => {
3644
+ return ul(F, (L) => {
3640
3645
  f.value.filter(L);
3641
- }), (L, oe) => {
3642
- const ve = z("el-input"), ie = z("el-tree"), ce = z("g-table");
3643
- return p(), I("div", Ar, [
3646
+ }), (L, te) => {
3647
+ const me = H("el-input"), ie = H("el-tree"), ce = H("g-table");
3648
+ return p(), I("div", Vr, [
3644
3649
  Q("div", {
3645
3650
  class: "g-tree-left",
3646
3651
  style: qe({ width: o.value })
3647
3652
  }, [
3648
- _.value ? (p(), A(ve, {
3653
+ E.value ? (p(), B(me, {
3649
3654
  key: 0,
3650
3655
  modelValue: F.value,
3651
- "onUpdate:modelValue": oe[0] || (oe[0] = (de) => F.value = de),
3656
+ "onUpdate:modelValue": te[0] || (te[0] = (de) => F.value = de),
3652
3657
  style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
3653
3658
  placeholder: "输入节点查询",
3654
3659
  clearable: ""
3655
- }, null, 8, ["modelValue"])) : ye("", !0),
3656
- Q("div", Br, [
3660
+ }, null, 8, ["modelValue"])) : ge("", !0),
3661
+ Q("div", qr, [
3657
3662
  K(ie, O({
3658
3663
  style: { width: o.value },
3659
3664
  "filter-node-method": i,
@@ -3661,35 +3666,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3661
3666
  ref_key: "treeRef",
3662
3667
  ref: f,
3663
3668
  onNodeClick: c
3664
- }, L.$attrs.tree), he({
3665
- default: D(({ node: de, data: ke }) => [
3669
+ }, L.$attrs.tree), ye({
3670
+ default: D(({ node: de, data: Ce }) => [
3666
3671
  M(L.$slots, "tree", {
3667
3672
  node: de,
3668
- data: ke
3673
+ data: Ce
3669
3674
  }, () => [
3670
- Q("span", null, Ce(de.label), 1)
3675
+ Q("span", null, De(de.label), 1)
3671
3676
  ], !0)
3672
3677
  ]),
3673
3678
  _: 2
3674
3679
  }, [
3675
- j(L.$slots, (de, ke, Se) => ({
3676
- name: ke,
3677
- fn: D((te) => [
3678
- M(L.$slots, ke, { data: te }, void 0, !0)
3680
+ N(L.$slots, (de, Ce, Te) => ({
3681
+ name: Ce,
3682
+ fn: D((le) => [
3683
+ M(L.$slots, Ce, { data: le }, void 0, !0)
3679
3684
  ])
3680
3685
  }))
3681
3686
  ]), 1040, ["style"])
3682
3687
  ])
3683
3688
  ], 4),
3684
- Q("div", Or, [
3689
+ Q("div", Ar, [
3685
3690
  K(ce, O({
3686
3691
  modelValue: t.value,
3687
- "onUpdate:modelValue": oe[1] || (oe[1] = (de) => t.value = de)
3688
- }, L.$attrs, { onLoad: u }), he({ _: 2 }, [
3689
- j(L.$slots, (de, ke, Se) => ({
3690
- name: ke,
3691
- fn: D((te) => [
3692
- M(L.$slots, ke, { data: te }, void 0, !0)
3692
+ "onUpdate:modelValue": te[1] || (te[1] = (de) => t.value = de)
3693
+ }, L.$attrs, { onLoad: s }), ye({ _: 2 }, [
3694
+ N(L.$slots, (de, Ce, Te) => ({
3695
+ name: Ce,
3696
+ fn: D((le) => [
3697
+ M(L.$slots, Ce, { data: le }, void 0, !0)
3693
3698
  ])
3694
3699
  }))
3695
3700
  ]), 1040, ["modelValue"])
@@ -3697,14 +3702,14 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3697
3702
  ]);
3698
3703
  };
3699
3704
  }
3700
- }), Ur = /* @__PURE__ */ Ze(Ir, [["__scopeId", "data-v-c888e4fc"]]), Yr = {
3705
+ }), Or = /* @__PURE__ */ Ze(Br, [["__scopeId", "data-v-c888e4fc"]]), Ir = {
3701
3706
  key: 0,
3702
3707
  class: "op-group"
3703
- }, Rr = {
3708
+ }, Ur = {
3704
3709
  key: 1,
3705
3710
  class: "op-items",
3706
3711
  style: { width: "100%", height: "100%" }
3707
- }, Lr = ["title"], qt = "100px", zr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3712
+ }, Yr = ["title"], Vt = "100px", Rr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3708
3713
  __name: "g-select-option",
3709
3714
  props: {
3710
3715
  columns: {
@@ -3725,54 +3730,54 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3725
3730
  }
3726
3731
  },
3727
3732
  setup(a) {
3728
- const s = a;
3729
- return (r, t) => s.title ? (p(), I("div", Yr, [
3730
- (p(!0), I(J, null, j(s.columns, (e) => (p(), I("span", {
3731
- style: qe({ width: (e == null ? void 0 : e.width) || qt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
3733
+ const n = a;
3734
+ return (r, t) => n.title ? (p(), I("div", Ir, [
3735
+ (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3736
+ style: qe({ width: (e == null ? void 0 : e.width) || Vt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
3732
3737
  key: e.key
3733
3738
  }, [
3734
3739
  M(r.$slots, `${a.t}-title-${e.key}`, { col: e }, () => [
3735
- Ie(Ce(e.label), 1)
3740
+ Ie(De(e.label), 1)
3736
3741
  ], !0)
3737
3742
  ], 4))), 128))
3738
- ])) : (p(), I("div", Rr, [
3739
- (p(!0), I(J, null, j(s.columns, (e) => (p(), I("span", {
3740
- style: qe({ width: (e == null ? void 0 : e.width) || qt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
3743
+ ])) : (p(), I("div", Ur, [
3744
+ (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3745
+ style: qe({ width: (e == null ? void 0 : e.width) || Vt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
3741
3746
  key: e.key,
3742
3747
  title: a.data[e.key]
3743
3748
  }, [
3744
3749
  M(r.$slots, `${a.t}-option-${e.key}`, { col: e }, () => [
3745
- Ie(Ce(a.data[e.key] ?? "-"), 1)
3750
+ Ie(De(a.data[e.key] ?? "-"), 1)
3746
3751
  ], !0)
3747
- ], 12, Lr))), 128))
3752
+ ], 12, Yr))), 128))
3748
3753
  ]));
3749
3754
  }
3750
- }), Hr = /* @__PURE__ */ Ze(zr, [["__scopeId", "data-v-c0ac6b77"]]), Pr = Object.freeze({}), Gt = [qr, Et, Ur, Hr];
3751
- let kt = {};
3752
- const la = {
3753
- install: (a, s = {}) => {
3754
- kt = Object.freeze({ ...Pr, ...s }), Gt.forEach((r) => {
3755
+ }), Lr = /* @__PURE__ */ Ze(Rr, [["__scopeId", "data-v-c0ac6b77"]]), Hr = Object.freeze({}), Wt = [xr, _t, Or, Lr];
3756
+ let Ct = {};
3757
+ const ea = {
3758
+ install: (a, n = {}) => {
3759
+ Ct = Object.freeze({ ...Hr, ...n }), Wt.forEach((r) => {
3755
3760
  a.component(r.name, r);
3756
- }), a.provide("options", kt), a.config.globalProperties.$openModal = Ct;
3761
+ }), a.provide("options", Ct), a.config.globalProperties.$openModal = Dt;
3757
3762
  }
3758
- }, Nr = (a) => ({ dialog: Jt, drawer: Kt })[a] || null, Ct = (a = {}, s = "dialog") => {
3763
+ }, zr = (a) => ({ dialog: Zt, drawer: Jt })[a] || null, Dt = (a = {}, n = "dialog") => {
3759
3764
  if (typeof document > "u") return () => {
3760
3765
  };
3761
3766
  const r = document.createElement("div");
3762
3767
  let t = () => {
3763
3768
  };
3764
- const e = Nr(s);
3769
+ const e = zr(n);
3765
3770
  if (!e) return () => {
3766
3771
  };
3767
- const o = ae(!0), _ = il({
3772
+ const o = oe(!0), E = sl({
3768
3773
  setup() {
3769
3774
  return t = () => {
3770
3775
  o.value = !1, setTimeout(() => {
3771
- _.unmount(), r.remove();
3776
+ E.unmount(), r.remove();
3772
3777
  }, 300);
3773
3778
  }, () => {
3774
3779
  var v, F, f;
3775
- return _e(e, {
3780
+ return ke(e, {
3776
3781
  modelValue: o.value,
3777
3782
  "onUpdate:modelValue": (i) => o.value = i,
3778
3783
  appendToBody: !0,
@@ -3790,14 +3795,14 @@ const la = {
3790
3795
  };
3791
3796
  },
3792
3797
  mounted: () => {
3793
- yt();
3798
+ gt();
3794
3799
  }
3795
3800
  });
3796
- return Gt.forEach((v) => {
3797
- _.component(v.name, v);
3798
- }), _.provide("options", kt), _.use(Zt, { locale: El }), document.body.appendChild(r), _.mount(r), t;
3801
+ return Wt.forEach((v) => {
3802
+ E.component(v.name, v);
3803
+ }), E.provide("options", Ct), E.use(Qt, { locale: wl }), document.body.appendChild(r), E.mount(r), t;
3799
3804
  };
3800
- function Xt(a, s = window.innerWidth) {
3805
+ function Gt(a, n = window.innerWidth) {
3801
3806
  if (typeof a == "number")
3802
3807
  return a;
3803
3808
  if (a.endsWith("px"))
@@ -3808,9 +3813,9 @@ function Xt(a, s = window.innerWidth) {
3808
3813
  if (a.endsWith("vw"))
3809
3814
  return t * parseFloat(a) / 100;
3810
3815
  if (a.endsWith("%")) {
3811
- if (typeof s != "number")
3816
+ if (typeof n != "number")
3812
3817
  throw new Error("Reference size is required to convert % to px");
3813
- return s * parseFloat(a) / 100;
3818
+ return n * parseFloat(a) / 100;
3814
3819
  }
3815
3820
  if (a.startsWith("calc(") && a.endsWith(")")) {
3816
3821
  let o = function(v) {
@@ -3819,60 +3824,60 @@ function Xt(a, s = window.innerWidth) {
3819
3824
  throw new Error("Invalid calc expression");
3820
3825
  };
3821
3826
  const e = a.slice(5, -1).trim();
3822
- return o(e.replace(/([0-9.]+)([a-z%]+)/g, (v, F, f) => Xt(F + f, s)));
3827
+ return o(e.replace(/([0-9.]+)([a-z%]+)/g, (v, F, f) => Gt(F + f, n)));
3823
3828
  }
3824
3829
  throw new Error("Unsupported unit in value: " + a);
3825
3830
  }
3826
3831
  const Ve = (...a) => {
3827
- const s = {}, r = (t, e) => (Object.keys(e).forEach((o) => {
3832
+ const n = {}, r = (t, e) => (Object.keys(e).forEach((o) => {
3828
3833
  t[o] = typeof e[o] == "object" && !Array.isArray(e[o]) ? r(t[o] || {}, e[o]) : e[o];
3829
3834
  }), t);
3830
- return a.forEach((t = {}) => r(s, t)), s;
3835
+ return a.forEach((t = {}) => r(n, t)), n;
3831
3836
  };
3832
- function Ue(a, s = (r, t) => s(r, t)) {
3837
+ function Ue(a, n = (r, t) => n(r, t)) {
3833
3838
  const r = {};
3834
3839
  for (const t in a)
3835
- a.hasOwnProperty(t) && s(t, a[t]) && (r[t] = a[t]);
3840
+ a.hasOwnProperty(t) && n(t, a[t]) && (r[t] = a[t]);
3836
3841
  return r;
3837
3842
  }
3838
- function jr(a, s, r = "value", t = "label", e = "children") {
3843
+ function Pr(a, n, r = "value", t = "label", e = "children") {
3839
3844
  for (const o of a) {
3840
- if (o[r] === s)
3845
+ if (o[r] === n)
3841
3846
  return o[t];
3842
3847
  if (o[e] && o[e].length > 0) {
3843
- const _ = jr(o[e], s, r, t, e);
3844
- if (_)
3845
- return _;
3848
+ const E = Pr(o[e], n, r, t, e);
3849
+ if (E)
3850
+ return E;
3846
3851
  }
3847
3852
  }
3848
3853
  return null;
3849
3854
  }
3850
- function Dt(a) {
3855
+ function St(a) {
3851
3856
  if (!a || isNaN(a)) return "零";
3852
- const s = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3857
+ const n = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3853
3858
  ["元", "万", "亿"],
3854
3859
  ["", "拾", "佰", "仟"]
3855
3860
  ], e = a < 0 ? "欠" : "";
3856
3861
  a = Math.abs(a);
3857
3862
  let o = "";
3858
- for (let _ = 0; _ < s.length; _++)
3859
- o += (r[Math.floor(a * 10 * Math.pow(10, _)) % 10] + s[_]).replace(/零./, "");
3863
+ for (let E = 0; E < n.length; E++)
3864
+ o += (r[Math.floor(a * 10 * Math.pow(10, E)) % 10] + n[E]).replace(/零./, "");
3860
3865
  o = o || "整", a = Math.floor(a);
3861
- for (let _ = 0; _ < t[0].length && a > 0; _++) {
3866
+ for (let E = 0; E < t[0].length && a > 0; E++) {
3862
3867
  let v = "";
3863
3868
  for (let F = 0; F < t[1].length && a > 0; F++)
3864
3869
  v = r[a % 10] + t[1][F] + v, a = Math.floor(a / 10);
3865
- o = v.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][_] + o;
3870
+ o = v.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][E] + o;
3866
3871
  }
3867
3872
  return e + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3868
3873
  }
3869
- function Wr(a) {
3874
+ function jr(a) {
3870
3875
  if (typeof a != "number" || isNaN(a) || !isFinite(a))
3871
3876
  return "0.00";
3872
- const s = a.toFixed(2), [r, t] = s.split(".");
3877
+ const n = a.toFixed(2), [r, t] = n.split(".");
3873
3878
  return `${r.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${t}`;
3874
3879
  }
3875
- const De = {
3880
+ const Se = {
3876
3881
  RADIO: "radio",
3877
3882
  RADIOBUTTON: "radio-button",
3878
3883
  CHECKBOX: "checkbox",
@@ -3900,15 +3905,15 @@ const De = {
3900
3905
  PASSWORD: "password",
3901
3906
  TEXTAREA: "textarea",
3902
3907
  TEL: "tel"
3903
- }, yt = () => {
3908
+ }, gt = () => {
3904
3909
  at(() => {
3905
3910
  const a = document.querySelector(".el-dialog");
3906
3911
  if (!a || a.querySelector(".dialog-resize-handle"))
3907
3912
  return;
3908
- const s = Gr();
3909
- a.appendChild(s), Xr(a), Qr(a, s);
3913
+ const n = Nr();
3914
+ a.appendChild(n), Wr(a), Gr(a, n);
3910
3915
  });
3911
- }, Gr = () => {
3916
+ }, Nr = () => {
3912
3917
  const a = document.createElement("div");
3913
3918
  return Object.assign(a.style, {
3914
3919
  position: "absolute",
@@ -3920,7 +3925,7 @@ const De = {
3920
3925
  cursor: "nwse-resize",
3921
3926
  zIndex: "999999999999"
3922
3927
  }), a.className = "dialog-resize-handle", a;
3923
- }, Xr = (a) => {
3928
+ }, Wr = (a) => {
3924
3929
  Object.assign(a.style, {
3925
3930
  transition: "none",
3926
3931
  minWidth: "300px",
@@ -3928,28 +3933,28 @@ const De = {
3928
3933
  resize: "none"
3929
3934
  // 防止与原生resize冲突
3930
3935
  });
3931
- }, Qr = (a, s) => {
3932
- let r = !1, t, e, o, _;
3936
+ }, Gr = (a, n) => {
3937
+ let r = !1, t, e, o, E;
3933
3938
  const v = (i) => {
3934
- i.preventDefault(), r = !0, t = i.clientX, e = i.clientY, o = parseInt(document.defaultView.getComputedStyle(a).width), _ = parseInt(document.defaultView.getComputedStyle(a).height), document.addEventListener("mousemove", F), document.addEventListener("mouseup", f);
3939
+ i.preventDefault(), r = !0, t = i.clientX, e = i.clientY, o = parseInt(document.defaultView.getComputedStyle(a).width), E = parseInt(document.defaultView.getComputedStyle(a).height), document.addEventListener("mousemove", F), document.addEventListener("mouseup", f);
3935
3940
  }, F = (i) => {
3936
3941
  if (!r) return;
3937
- const u = Math.max(300, o + i.clientX - t), c = Math.max(200, _ + i.clientY - e);
3938
- a.style.width = `${u}px`, a.style.height = `${c}px`;
3942
+ const s = Math.max(300, o + i.clientX - t), c = Math.max(200, E + i.clientY - e);
3943
+ a.style.width = `${s}px`, a.style.height = `${c}px`;
3939
3944
  }, f = () => {
3940
3945
  r = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", f);
3941
3946
  };
3942
- s.addEventListener("mousedown", v);
3947
+ n.addEventListener("mousedown", v);
3943
3948
  };
3944
3949
  export {
3945
- De as CT,
3946
- yt as bindResize,
3947
- Xt as convertToPx,
3948
- la as default,
3950
+ Se as CT,
3951
+ gt as bindResize,
3952
+ Gt as convertToPx,
3953
+ ea as default,
3949
3954
  Ue as filterObject,
3950
- jr as findTreeLabelByValue,
3951
- Wr as formatAmount,
3955
+ Pr as findTreeLabelByValue,
3956
+ jr as formatAmount,
3952
3957
  Ve as mergeObjects,
3953
- Dt as moneyToChinese,
3954
- Ct as openModal
3958
+ St as moneyToChinese,
3959
+ Dt as openModal
3955
3960
  };