vue-2024-ui 0.2.9 → 0.2.11

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 pt, 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 vl, View as pl, 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
+ }, pe = 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 = (pe < he ? pe + 7 : pe) - 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 === $) {
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
308
  var pe = this.clone().set(V, 1);
309
309
  pe.$d[Z](G), pe.init(), this.$d = pe.set(V, Math.min(this.$D, pe.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, pe = this.$d.getTime() + u * G;
328
+ return re.w(pe, 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, pe = 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
350
  return pe + 1;
351
351
  case "MM":
352
- return le.s(pe + 1, 2, "0");
352
+ return re.s(pe + 1, 2, "0");
353
353
  case "MMM":
354
- return me(C.monthsShort, pe, y, 3);
354
+ return he(C.monthsShort, pe, y, 3);
355
355
  case "MMMM":
356
- return me(y, pe);
356
+ return he(y, pe);
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), pe = (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 - pe) / 6048e5;
415
415
  break;
416
416
  case f:
417
- k = (E - pe) / 864e5;
417
+ k = (w - pe) / 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, pe;
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
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) => [
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"), vt = 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,62 +767,64 @@ 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
- data: rt
776
+ data: rt,
777
+ form: a.formInfo
777
778
  }, void 0, !0)
778
779
  ])
779
780
  }))
780
781
  ]), 1032, ["columns", "data", "t"])
781
782
  ];
782
- }, !0) : ye("", !0)
783
+ }, !0) : ge("", !0)
783
784
  ];
784
785
  }),
785
786
  _: 2
786
787
  }, 1040, ["onClick"]),
787
- h.children && h.children.length ? (p(!0), I(J, { key: 0 }, j(h.children, (T) => (p(), A(Ye, O({
788
+ h.children && h.children.length ? (p(!0), I(J, { key: 0 }, N(h.children, (S) => (p(), B(Ye, O({
788
789
  style: { "margin-left": "20px" },
789
- key: T.value,
790
+ key: S.value,
790
791
  ref_for: !0
791
- }, P(Ue)(T, (ue) => ue != "children"), {
792
+ }, P(Ue)(S, (ue) => ue != "children"), {
792
793
  onClick: (ue) => {
793
- ve.value.change && ve.value.change(T), de();
794
+ me.value.change && me.value.change(S), de();
794
795
  }
795
796
  }), {
796
797
  default: D(() => {
797
798
  var ue;
798
799
  return [
799
- (ue = t.value) != null && ue.columns ? M(E.$slots, `${r.t}-${e.value}-options`, {
800
+ (ue = t.value) != null && ue.columns ? M(w.$slots, `${r.t}-${e.value}-options`, {
800
801
  key: 0,
801
- option: T
802
+ option: S
802
803
  }, () => {
803
804
  var Ae;
804
805
  return [
805
806
  K(xe, {
806
807
  columns: (Ae = t.value) == null ? void 0 : Ae.columns,
807
- data: T,
808
+ data: S,
808
809
  t: r.t
809
- }, he({ _: 2 }, [
810
- j(E.$slots, (lt, rt) => ({
810
+ }, ye({ _: 2 }, [
811
+ N(w.$slots, (lt, rt) => ({
811
812
  name: rt,
812
- fn: D((Qt) => [
813
- M(E.$slots, rt, {
814
- option: T,
815
- data: Qt
813
+ fn: D((Xt) => [
814
+ M(w.$slots, rt, {
815
+ option: S,
816
+ data: Xt,
817
+ form: a.formInfo
816
818
  }, void 0, !0)
817
819
  ])
818
820
  }))
819
821
  ]), 1032, ["columns", "data", "t"])
820
822
  ];
821
- }, !0) : ye("", !0)
823
+ }, !0) : ge("", !0)
822
824
  ];
823
825
  }),
824
826
  _: 2
825
- }, 1040, ["onClick"]))), 128)) : ye("", !0)
827
+ }, 1040, ["onClick"]))), 128)) : ge("", !0)
826
828
  ], 64))), 128))
827
829
  ], !0)
828
830
  ]),
@@ -837,11 +839,11 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
837
839
  columns: (h = t.value) == null ? void 0 : h.columns,
838
840
  title: !0,
839
841
  t: r.t
840
- }, he({ _: 2 }, [
841
- j(E.$slots, (T, ue) => ({
842
+ }, ye({ _: 2 }, [
843
+ N(w.$slots, (S, ue) => ({
842
844
  name: ue,
843
845
  fn: D((Ae) => [
844
- M(E.$slots, ue, { data: Ae }, void 0, !0)
846
+ M(w.$slots, ue, { data: Ae }, void 0, !0)
845
847
  ])
846
848
  }))
847
849
  ]), 1032, ["columns", "t"])
@@ -849,169 +851,169 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
849
851
  }),
850
852
  key: "0"
851
853
  } : void 0,
852
- j(V(), (h) => ({
854
+ N(V(), (h) => ({
853
855
  name: h,
854
- fn: D((T) => [
855
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
856
+ fn: D((S) => [
857
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { form: a.formInfo }, void 0, !0)
856
858
  ])
857
859
  }))
858
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(De).TREESELECT ? (p(), A(it, O({
860
+ ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).TREESELECT ? (p(), B(it, O({
859
861
  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) => ({
862
+ modelValue: n.value,
863
+ "onUpdate:modelValue": y[8] || (y[8] = (h) => n.value = h),
864
+ placeholder: E.value[e.value].label
865
+ }, t.value, { data: v.value }), ye({ _: 2 }, [
866
+ N(V(), (h) => ({
865
867
  name: h,
866
- fn: D((T) => [
867
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
868
+ fn: D((S) => [
869
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
868
870
  ])
869
871
  }))
870
- ]), 1040, ["modelValue", "placeholder", "data"])) : o.value == P(De).TIME ? (p(), A(dt, O({
872
+ ]), 1040, ["modelValue", "placeholder", "data"])) : o.value == P(Se).TIME ? (p(), B(dt, O({
871
873
  key: 7,
872
- modelValue: s.value,
873
- "onUpdate:modelValue": y[9] || (y[9] = (h) => s.value = h),
874
+ modelValue: n.value,
875
+ "onUpdate:modelValue": y[9] || (y[9] = (h) => n.value = h),
874
876
  "arrow-control": ""
875
877
  }, t.value, {
876
- placeholder: _.value[e.value].label
877
- }), null, 16, ["modelValue", "placeholder"])) : o.value == P(De).TIMESELECT ? (p(), A(ct, O({
878
+ placeholder: E.value[e.value].label
879
+ }), null, 16, ["modelValue", "placeholder"])) : o.value == P(Se).TIMESELECT ? (p(), B(ct, O({
878
880
  key: 8,
879
- modelValue: s.value,
880
- "onUpdate:modelValue": y[10] || (y[10] = (h) => s.value = h),
881
+ modelValue: n.value,
882
+ "onUpdate:modelValue": y[10] || (y[10] = (h) => n.value = h),
881
883
  start: "06:30",
882
884
  step: "00:15",
883
885
  end: "23:30",
884
- placeholder: _.value[e.value].label
885
- }, t.value), null, 16, ["modelValue", "placeholder"])) : L(o.value) ? (p(), A(ft, O({
886
+ placeholder: E.value[e.value].label
887
+ }, t.value), null, 16, ["modelValue", "placeholder"])) : L(o.value) ? (p(), B(ft, O({
886
888
  key: 9,
887
- modelValue: s.value,
888
- "onUpdate:modelValue": y[11] || (y[11] = (h) => s.value = h),
889
+ modelValue: n.value,
890
+ "onUpdate:modelValue": y[11] || (y[11] = (h) => n.value = h),
889
891
  type: o.value,
890
- placeholder: _.value[e.value].label,
891
- "value-format": oe(o.value)
892
- }, t.value), he({ _: 2 }, [
893
- j(V(), (h) => ({
892
+ placeholder: E.value[e.value].label,
893
+ "value-format": te(o.value)
894
+ }, t.value), ye({ _: 2 }, [
895
+ N(V(), (h) => ({
894
896
  name: h,
895
- fn: D((T) => [
896
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
897
+ fn: D((S) => [
898
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
897
899
  ])
898
900
  }))
899
- ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o.value == P(De).COLOR ? (p(), A(pt, O({
901
+ ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o.value == P(Se).COLOR ? (p(), B(vt, O({
900
902
  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({
903
+ modelValue: n.value,
904
+ "onUpdate:modelValue": y[12] || (y[12] = (h) => n.value = h)
905
+ }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).RATE ? (p(), B(l, O({
904
906
  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({
907
+ modelValue: n.value,
908
+ "onUpdate:modelValue": y[13] || (y[13] = (h) => n.value = h)
909
+ }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).SLIDER ? (p(), B(d, O({
908
910
  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({
911
+ modelValue: n.value,
912
+ "onUpdate:modelValue": y[14] || (y[14] = (h) => n.value = h)
913
+ }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).SWITCH ? (p(), B(m, O({
912
914
  key: 13,
913
- modelValue: s.value,
914
- "onUpdate:modelValue": y[15] || (y[15] = (h) => s.value = h),
915
+ modelValue: n.value,
916
+ "onUpdate:modelValue": y[15] || (y[15] = (h) => n.value = h),
915
917
  inlinePrompt: !0
916
- }, t.value), he({ _: 2 }, [
917
- j(V(), (h) => ({
918
+ }, t.value), ye({ _: 2 }, [
919
+ N(V(), (h) => ({
918
920
  name: h,
919
- fn: D((T) => [
920
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
921
+ fn: D((S) => [
922
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
921
923
  ])
922
924
  }))
923
- ]), 1040, ["modelValue"])) : o.value == P(De).TRANSFER ? (p(), A(w, O({
925
+ ]), 1040, ["modelValue"])) : o.value == P(Se).TRANSFER ? (p(), B(b, O({
924
926
  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) => ({
927
+ modelValue: n.value,
928
+ "onUpdate:modelValue": y[16] || (y[16] = (h) => n.value = h)
929
+ }, t.value), ye({ _: 2 }, [
930
+ N(V(), (h) => ({
929
931
  name: h,
930
- fn: D((T) => [
931
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
932
+ fn: D((S) => [
933
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
932
934
  ])
933
935
  }))
934
- ]), 1040, ["modelValue"])) : o.value == P(De).CASCADER ? (p(), A(B, O({
936
+ ]), 1040, ["modelValue"])) : o.value == P(Se).CASCADER ? (p(), B(A, O({
935
937
  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) => ({
938
+ modelValue: n.value,
939
+ "onUpdate:modelValue": y[17] || (y[17] = (h) => n.value = h)
940
+ }, t.value, { options: F.value }), ye({ _: 2 }, [
941
+ N(V(), (h) => ({
940
942
  name: h,
941
- fn: D((T) => [
942
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: T }, void 0, !0)
943
+ fn: D((S) => [
944
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
943
945
  ])
944
946
  }))
945
- ]), 1040, ["modelValue", "options"])) : o.value == P(De).IMAGE ? (p(), A(Ee, O({
947
+ ]), 1040, ["modelValue", "options"])) : o.value == P(Se).IMAGE ? (p(), B(_e, O({
946
948
  key: 16,
947
949
  "file-list": t.value["file-list"],
948
950
  "onUpdate:fileList": y[21] || (y[21] = (h) => t.value["file-list"] = h),
949
951
  "list-type": "picture-card",
950
952
  class: "custom-upload",
951
- "on-preview": Se
952
- }, { ...N.value, ...t.value }, {
953
+ "on-preview": Te
954
+ }, { ...j.value, ...t.value }, {
953
955
  ref_key: "uploadRef",
954
956
  ref: ne
955
- }), he({
957
+ }), ye({
956
958
  default: D(() => {
957
959
  var h;
958
960
  return [
959
- s.value ? (p(), I("div", {
961
+ n.value ? (p(), I("div", {
960
962
  key: 1,
961
- onClick: y[20] || (y[20] = (T) => T.stopPropagation()),
963
+ onClick: y[20] || (y[20] = (S) => S.stopPropagation()),
962
964
  style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
963
965
  }, [
964
- Q("div", Dl, [
966
+ Q("div", Cl, [
965
967
  K(W, O({
966
968
  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,
969
+ src: n.value
970
+ }, { fit: "cover", lazy: !0, ...(h = t.value) == null ? void 0 : h.img }), ye({ _: 2 }, [
971
+ N(V(), (S, ue) => ({
972
+ name: S,
971
973
  fn: D((Ae) => [
972
- M(E.$slots, `${r.t}-${e.value}-${T}`, { data: Ae }, void 0, !0)
974
+ M(w.$slots, `${r.t}-${e.value}-${S}`, { data: Ae }, void 0, !0)
973
975
  ])
974
976
  }))
975
977
  ]), 1040, ["src"])
976
978
  ]),
977
979
  Q("div", {
978
980
  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),
981
+ onMouseenter: y[18] || (y[18] = (S) => i.value = !0),
982
+ onMouseleave: y[19] || (y[19] = (S) => i.value = !1),
981
983
  class: "up-view"
982
984
  }, [
983
- i.value ? (p(), A(fe, {
985
+ i.value ? (p(), B(fe, {
984
986
  key: 0,
985
987
  content: "查看大图",
986
988
  placement: "top"
987
989
  }, {
988
990
  default: D(() => [
989
- K(P(cl), {
991
+ K(P(dl), {
990
992
  style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
991
993
  color: "white",
992
- onClick: te
994
+ onClick: le
993
995
  })
994
996
  ]),
995
997
  _: 1
996
- })) : ye("", !0),
997
- N.value.showDel && i.value ? (p(), A(fe, {
998
+ })) : ge("", !0),
999
+ j.value.showDel && i.value ? (p(), B(fe, {
998
1000
  key: 1,
999
1001
  content: "删除",
1000
1002
  placement: "top"
1001
1003
  }, {
1002
1004
  default: D(() => [
1003
- K(P(Yt), {
1005
+ K(P(Ut), {
1004
1006
  style: { width: "1.5em", height: "1.5em" },
1005
1007
  color: "white",
1006
- onClick: ke
1008
+ onClick: Ce
1007
1009
  })
1008
1010
  ]),
1009
1011
  _: 1
1010
- })) : ye("", !0)
1012
+ })) : ge("", !0)
1011
1013
  ], 32)
1012
- ])) : (p(), A(R, { key: 0 }, {
1014
+ ])) : (p(), B(Y, { key: 0 }, {
1013
1015
  default: D(() => [
1014
- K(P(dl))
1016
+ K(P(il))
1015
1017
  ]),
1016
1018
  _: 1
1017
1019
  }))
@@ -1019,103 +1021,103 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1019
1021
  }),
1020
1022
  _: 2
1021
1023
  }, [
1022
- j(V(), (h, T) => ({
1024
+ N(V(), (h, S) => ({
1023
1025
  name: h,
1024
1026
  fn: D((ue) => [
1025
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1027
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1026
1028
  ])
1027
1029
  }))
1028
- ]), 1040, ["file-list"])) : o.value == P(De).AUTOCOMPLETE ? (p(), A(Fe, O({
1030
+ ]), 1040, ["file-list"])) : o.value == P(Se).AUTOCOMPLETE ? (p(), B(Fe, O({
1029
1031
  key: 17,
1030
- modelValue: s.value,
1031
- "onUpdate:modelValue": y[22] || (y[22] = (h) => s.value = h)
1032
+ modelValue: n.value,
1033
+ "onUpdate:modelValue": y[22] || (y[22] = (h) => n.value = h)
1032
1034
  }, t.value, {
1033
- placeholder: _.value[e.value].label
1034
- }), he({ _: 2 }, [
1035
- j(V(), (h, T) => ({
1035
+ placeholder: E.value[e.value].label
1036
+ }), ye({ _: 2 }, [
1037
+ N(V(), (h, S) => ({
1036
1038
  name: h,
1037
1039
  fn: D((ue) => [
1038
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1040
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1039
1041
  ])
1040
1042
  }))
1041
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(De).INPUTNUMBER ? (p(), A(Re, O({
1043
+ ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).INPUTNUMBER ? (p(), B(Re, O({
1042
1044
  key: 18,
1043
- modelValue: s.value,
1044
- "onUpdate:modelValue": y[23] || (y[23] = (h) => s.value = h),
1045
+ modelValue: n.value,
1046
+ "onUpdate:modelValue": y[23] || (y[23] = (h) => n.value = h),
1045
1047
  min: 0,
1046
1048
  max: 1e8,
1047
- placeholder: _.value[e.value].label
1048
- }, t.value), he({ _: 2 }, [
1049
- j(V(), (h, T) => ({
1049
+ placeholder: E.value[e.value].label
1050
+ }, t.value), ye({ _: 2 }, [
1051
+ N(V(), (h, S) => ({
1050
1052
  name: h,
1051
1053
  fn: D((ue) => [
1052
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1054
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1053
1055
  ])
1054
1056
  }))
1055
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(De).MONEY ? (p(), I("div", {
1057
+ ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).MONEY ? (p(), I("div", {
1056
1058
  key: 19,
1057
- style: qe([{ position: "relative" }, u.value])
1059
+ style: qe([{ position: "relative" }, s.value])
1058
1060
  }, [
1059
1061
  K(Le, O({
1060
- modelValue: s.value,
1061
- "onUpdate:modelValue": y[24] || (y[24] = (h) => s.value = h),
1062
- placeholder: _.value[e.value].label,
1062
+ modelValue: n.value,
1063
+ "onUpdate:modelValue": y[24] || (y[24] = (h) => n.value = h),
1064
+ placeholder: E.value[e.value].label,
1063
1065
  type: "number",
1064
- maxlength: ((H = t.value) == null ? void 0 : H.max) || 25
1065
- }, { ...t.value, type: o.value }), he({
1066
+ maxlength: ((z = t.value) == null ? void 0 : z.max) || 25
1067
+ }, { ...t.value, type: o.value }), ye({
1066
1068
  suffix: D(() => [
1067
1069
  Q("div", {
1068
- title: P(Dt)(s.value),
1070
+ title: P(St)(n.value),
1069
1071
  style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
1070
- }, Ce(P(Dt)(s.value)), 9, Tl)
1072
+ }, De(P(St)(n.value)), 9, Dl)
1071
1073
  ]),
1072
1074
  _: 2
1073
1075
  }, [
1074
- j(V(), (h, T) => ({
1076
+ N(V(), (h, S) => ({
1075
1077
  name: h,
1076
1078
  fn: D((ue) => [
1077
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1079
+ M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1078
1080
  ])
1079
1081
  }))
1080
1082
  ]), 1040, ["modelValue", "placeholder", "maxlength"])
1081
1083
  ], 4)) : (se = o.value) != null && se.startsWith("link") ? (p(), I("div", {
1082
1084
  key: 20,
1083
- style: qe(u.value)
1085
+ style: qe(s.value)
1084
1086
  }, [
1085
- K(ze, O(t.value, {
1087
+ K(He, O(t.value, {
1086
1088
  type: o.value.replace("link-", ""),
1087
- innerHTML: Y.value || s.value
1089
+ innerHTML: R.value || n.value
1088
1090
  }), null, 16, ["type", "innerHTML"])
1089
1091
  ], 4)) : o.value != "textarea" && ((x = o.value) != null && x.startsWith("text")) ? (p(), I("div", {
1090
1092
  key: 21,
1091
- style: qe(u.value)
1093
+ style: qe(s.value)
1092
1094
  }, [
1093
1095
  K(et, O(t.value, {
1094
1096
  type: o.value.replace("text-", ""),
1095
- innerHTML: Y.value || s.value
1097
+ innerHTML: R.value || n.value
1096
1098
  }), null, 16, ["type", "innerHTML"])
1097
1099
  ], 4)) : o.value == "avatar" ? (p(), I("div", {
1098
1100
  key: 22,
1099
- style: qe(u.value)
1101
+ style: qe(s.value)
1100
1102
  }, [
1101
- Y.value ? (p(), A(ot, wt(O({ key: 0 }, t.value)), {
1103
+ R.value ? (p(), B(ot, Et(O({ key: 0 }, t.value)), {
1102
1104
  default: D(() => [
1103
- Q("div", { innerHTML: Y.value }, null, 8, Ml)
1105
+ Q("div", { innerHTML: R.value }, null, 8, Sl)
1104
1106
  ]),
1105
1107
  _: 1
1106
- }, 16)) : (p(), A(ot, wt(O({ key: 1 }, t.value)), null, 16))
1108
+ }, 16)) : (p(), B(ot, Et(O({ key: 1 }, t.value)), null, 16))
1107
1109
  ], 4)) : (X = o.value) != null && X.startsWith("tag") ? (p(), I("div", {
1108
1110
  key: 23,
1109
- style: qe(u.value)
1111
+ style: qe(s.value)
1110
1112
  }, [
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({
1113
+ Array.isArray(R.value) && R.value.length > 0 ? (p(!0), I(J, { key: 0 }, N(R.value, (h, S) => (p(), I(J, { key: S }, [
1114
+ typeof h == "object" ? (p(), B(tt, O({
1113
1115
  key: 0,
1114
1116
  ref_for: !0
1115
1117
  }, h, {
1116
1118
  innerHTML: h == null ? void 0 : h.value,
1117
1119
  style: { "margin-right": "3px" }
1118
- }), null, 16, ["innerHTML"])) : (p(), A(tt, O({
1120
+ }), null, 16, ["innerHTML"])) : (p(), B(tt, O({
1119
1121
  key: 1,
1120
1122
  ref_for: !0
1121
1123
  }, t.value, {
@@ -1123,59 +1125,59 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1123
1125
  innerHTML: h,
1124
1126
  style: { "margin-right": "3px" }
1125
1127
  }), null, 16, ["type", "innerHTML"]))
1126
- ], 64))), 128)) : (p(), A(tt, O({ key: 1 }, t.value, {
1128
+ ], 64))), 128)) : (p(), B(tt, O({ key: 1 }, t.value, {
1127
1129
  type: o.value.replace("tag-", ""),
1128
- innerHTML: Y.value || s.value
1130
+ innerHTML: R.value || n.value
1129
1131
  }), null, 16, ["type", "innerHTML"]))
1130
1132
  ], 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({
1133
+ innerHTML: R.value || n.value,
1134
+ style: s.value
1135
+ }), null, 16, Ml)) : o.value == "span" ? (p(), I("span", O({ key: 25 }, t.value, {
1136
+ innerHTML: R.value || n.value,
1137
+ style: s.value
1138
+ }), null, 16, Tl)) : (p(), B(Le, O({
1137
1139
  key: 26,
1138
- modelValue: s.value,
1139
- "onUpdate:modelValue": y[25] || (y[25] = (h) => s.value = h),
1140
- placeholder: _.value[e.value].label,
1140
+ modelValue: n.value,
1141
+ "onUpdate:modelValue": y[25] || (y[25] = (h) => n.value = h),
1142
+ placeholder: E.value[e.value].label,
1141
1143
  maxlength: ((ee = t.value) == null ? void 0 : ee.max) || 25,
1142
1144
  clearable: !0,
1143
1145
  onClear: y[26] || (y[26] = () => {
1144
- r.t == "q" && _.value.table.load();
1146
+ r.t == "q" && E.value.table.load();
1145
1147
  })
1146
- }, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), he({ _: 2 }, [
1147
- (Ne = t.value) != null && Ne.suffix ? {
1148
+ }, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), ye({ _: 2 }, [
1149
+ (je = t.value) != null && je.suffix ? {
1148
1150
  name: "suffix",
1149
1151
  fn: D(() => {
1150
1152
  var h;
1151
1153
  return [
1152
1154
  Q("div", {
1153
1155
  innerHTML: ((h = t.value) == null ? void 0 : h.suffix) || ""
1154
- }, null, 8, xl)
1156
+ }, null, 8, Fl)
1155
1157
  ];
1156
1158
  }),
1157
1159
  key: "0"
1158
1160
  } : void 0,
1159
- (je = t.value) != null && je.prefix ? {
1161
+ (Ne = t.value) != null && Ne.prefix ? {
1160
1162
  name: "prefix",
1161
1163
  fn: D(() => {
1162
1164
  var h;
1163
1165
  return [
1164
1166
  Q("div", {
1165
1167
  innerHTML: ((h = t.value) == null ? void 0 : h.prefix) || ""
1166
- }, null, 8, Vl)
1168
+ }, null, 8, xl)
1167
1169
  ];
1168
1170
  }),
1169
1171
  key: "1"
1170
1172
  } : void 0,
1171
- (He = t.value) != null && He.append ? {
1173
+ (ze = t.value) != null && ze.append ? {
1172
1174
  name: "append",
1173
1175
  fn: D(() => {
1174
1176
  var h;
1175
1177
  return [
1176
1178
  Q("div", {
1177
1179
  innerHTML: ((h = t.value) == null ? void 0 : h.append) || ""
1178
- }, null, 8, ql)
1180
+ }, null, 8, Vl)
1179
1181
  ];
1180
1182
  }),
1181
1183
  key: "2"
@@ -1187,15 +1189,18 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1187
1189
  return [
1188
1190
  Q("div", {
1189
1191
  innerHTML: ((h = t.value) == null ? void 0 : h.prepend) || ""
1190
- }, null, 8, Al)
1192
+ }, null, 8, ql)
1191
1193
  ];
1192
1194
  }),
1193
1195
  key: "3"
1194
1196
  } : void 0,
1195
- j(V(), (h, T) => ({
1197
+ N(V(), (h, S) => ({
1196
1198
  name: h,
1197
1199
  fn: D((ue) => [
1198
- M(E.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1200
+ M(w.$slots, `${r.t}-${e.value}-${h}`, {
1201
+ data: ue,
1202
+ form: a.formInfo
1203
+ }, void 0, !0)
1199
1204
  ])
1200
1205
  }))
1201
1206
  ]), 1040, ["modelValue", "placeholder", "maxlength"]))
@@ -1203,7 +1208,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1203
1208
  ], 64);
1204
1209
  };
1205
1210
  }
1206
- }), gt = /* @__PURE__ */ Ze(Bl, [["__scopeId", "data-v-667ddbae"]]), Ol = { class: "g-form-container" }, Il = /* @__PURE__ */ Object.assign({
1211
+ }), bt = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-5ca81db3"]]), Bl = { class: "g-form-container" }, Ol = /* @__PURE__ */ Object.assign({
1207
1212
  name: "g-form",
1208
1213
  inheritAttrs: !1
1209
1214
  }, {
@@ -1213,48 +1218,48 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1213
1218
  modelModifiers: {}
1214
1219
  }),
1215
1220
  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;
1221
+ setup(a, { expose: n, emit: r }) {
1222
+ var Ce, Te, le, ne, re, Oe;
1223
+ const t = Qe(a, "modelValue"), e = r, o = oe(null), E = Mt("options"), v = oe({}), F = oe(""), f = a;
1219
1224
  t.value.form = Ve(
1220
- Pt,
1221
- _ == null ? void 0 : _.form,
1222
- (ke = t.value) == null ? void 0 : ke.form
1225
+ zt,
1226
+ E == null ? void 0 : E.form,
1227
+ (Ce = t.value) == null ? void 0 : Ce.form
1223
1228
  ), 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 }
1229
+ (le = (Te = t.value) == null ? void 0 : Te.form) == null ? void 0 : le.style,
1230
+ { ...(ne = Tt()) == null ? void 0 : ne.style }
1226
1231
  );
1227
- const i = async (S, b) => {
1232
+ const i = async (T, $) => {
1228
1233
  let g = 5;
1229
1234
  for (; g > 0; ) {
1230
1235
  if (await at(), o.value) {
1231
- o.value.validate((n, q) => {
1232
- n ? e("submit", S, b) : console.error("表单验证不通过!", q);
1236
+ o.value.validate((u, q) => {
1237
+ u ? e("submit", T, $) : console.error("表单验证不通过!", q);
1233
1238
  });
1234
1239
  return;
1235
1240
  }
1236
- g--, await new Promise((n) => setTimeout(n, 50));
1241
+ g--, await new Promise((u) => setTimeout(u, 50));
1237
1242
  }
1238
1243
  console.error("表单实例获取失败,请检查组件状态");
1239
- }, u = async () => {
1240
- let S = 5;
1241
- for (; S > 0; ) {
1244
+ }, s = async () => {
1245
+ let T = 5;
1246
+ for (; T > 0; ) {
1242
1247
  if (await at(), !o.value) {
1243
- S--, await new Promise((g) => setTimeout(g, 50));
1248
+ T--, await new Promise((g) => setTimeout(g, 50));
1244
1249
  continue;
1245
1250
  }
1246
- let b = !0;
1251
+ let $ = !0;
1247
1252
  if (e("reset", (g) => {
1248
- b = g;
1249
- }), b) {
1253
+ $ = g;
1254
+ }), $) {
1250
1255
  o.value.resetFields();
1251
1256
  return;
1252
1257
  }
1253
- S--, await new Promise((g) => setTimeout(g, 50));
1258
+ T--, await new Promise((g) => setTimeout(g, 50));
1254
1259
  }
1255
1260
  console.error("表单实例获取失败,请检查组件状态");
1256
1261
  };
1257
- t.value.form.submit.click = i, t.value.form.reset.click = u;
1262
+ t.value.form.submit.click = i, t.value.form.reset.click = s;
1258
1263
  const c = {
1259
1264
  type: "hidden",
1260
1265
  labelPosition: "right",
@@ -1264,24 +1269,24 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1264
1269
  };
1265
1270
  t.value.formItems = Ve(
1266
1271
  c,
1267
- _ == null ? void 0 : _.formItems,
1268
- (le = t == null ? void 0 : t.value) == null ? void 0 : le.formItems
1272
+ E == null ? void 0 : E.formItems,
1273
+ (re = t == null ? void 0 : t.value) == null ? void 0 : re.formItems
1269
1274
  );
1270
- const $ = {
1275
+ const _ = {
1271
1276
  span: 12,
1272
1277
  offset: 0
1273
1278
  };
1274
1279
  t.value.form.cols = Ve(
1275
- $,
1276
- (Oe = _ == null ? void 0 : _.form) == null ? void 0 : Oe.cols,
1280
+ _,
1281
+ (Oe = E == null ? void 0 : E.form) == null ? void 0 : Oe.cols,
1277
1282
  t.value.form.cols
1278
1283
  );
1279
- const V = (S) => {
1280
- let b = [];
1281
- if (S.rules)
1282
- b = S.rules;
1284
+ const V = (T) => {
1285
+ let $ = [];
1286
+ if (T.rules)
1287
+ $ = T.rules;
1283
1288
  else {
1284
- const n = { ...{
1289
+ const u = { ...{
1285
1290
  required: void 0,
1286
1291
  max: void 0,
1287
1292
  min: void 0,
@@ -1289,119 +1294,119 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1289
1294
  url: void 0,
1290
1295
  pattern: void 0,
1291
1296
  validate: void 0
1292
- }, ...S };
1293
- n.required && b.push({
1297
+ }, ...T };
1298
+ u.required && $.push({
1294
1299
  required: !0,
1295
- message: `${n.label}不能为空!`,
1300
+ message: `${u.label}不能为空!`,
1296
1301
  trigger: "blur"
1297
- }), n.max !== void 0 && n.max !== null && n.max !== "" && (n.min === void 0 || n.min === null || n.min === "") && b.push({
1302
+ }), u.max !== void 0 && u.max !== null && u.max !== "" && (u.min === void 0 || u.min === null || u.min === "") && $.push({
1298
1303
  validator: (q, C, k) => {
1299
1304
  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();
1305
+ u.type !== "number" && u.type !== "input-number" ? ((C == null ? void 0 : C.toString()) || "").length > Number(u.max) ? k(
1306
+ new Error(`${u.label}长度不能超过${u.max}个字符!`)
1307
+ ) : k() : Number(C) > Number(u.max) ? k(new Error(`${u.label}不能大于${u.max}!`)) : k();
1303
1308
  }
1304
- }), n.min !== void 0 && n.min !== null && n.min !== "" && (n.max === void 0 || n.max === null || n.max === "") && b.push({
1309
+ }), u.min !== void 0 && u.min !== null && u.min !== "" && (u.max === void 0 || u.max === null || u.max === "") && $.push({
1305
1310
  validator: (q, C, k) => {
1306
1311
  if (C == null || C === "") return k();
1307
- n.type !== "number" && n.type !== "input-number" ? Number(n.min) < 1 ? k(
1312
+ u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
1308
1313
  new Error(
1309
- `${n.label}长度最小值${n.min}设置错误!`
1314
+ `${u.label}长度最小值${u.min}设置错误!`
1310
1315
  )
1311
- ) : C.toString().length < Number(n.min) ? k(
1316
+ ) : C.toString().length < Number(u.min) ? k(
1312
1317
  new Error(
1313
- `${n.label}长度不能少于${n.min}个字符!`
1318
+ `${u.label}长度不能少于${u.min}个字符!`
1314
1319
  )
1315
- ) : k() : Number(C) < Number(n.min) ? k(new Error(`${n.label}不能小于${n.min}!`)) : k();
1320
+ ) : k() : Number(C) < Number(u.min) ? k(new Error(`${u.label}不能小于${u.min}!`)) : k();
1316
1321
  }
1317
- }), n.min !== void 0 && n.min !== null && n.min !== "" && n.max !== void 0 && n.max !== null && n.max !== "" && b.push({
1322
+ }), u.min !== void 0 && u.min !== null && u.min !== "" && u.max !== void 0 && u.max !== null && u.max !== "" && $.push({
1318
1323
  validator: (q, C, k) => {
1319
1324
  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(
1325
+ const U = Number(u.min), Z = Number(u.max);
1326
+ u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
1322
1327
  new Error(
1323
- `${n.label}长度最小值${n.min}设置错误!`
1328
+ `${u.label}长度最小值${u.min}设置错误!`
1324
1329
  )
1325
1330
  ) : C.toString().length < U || C.toString().length > Z ? k(
1326
1331
  new Error(
1327
- `${n.label}长度必须在${U}-${Z}个字符之间!`
1332
+ `${u.label}长度必须在${U}-${Z}个字符之间!`
1328
1333
  )
1329
- ) : k() : Number(C) < U || C > Z ? k(new Error(`${n.label}必须在${U}-${Z}之间!`)) : k();
1334
+ ) : k() : Number(C) < U || C > Z ? k(new Error(`${u.label}必须在${U}-${Z}之间!`)) : k();
1330
1335
  }
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)
1336
+ }), u.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), u.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), u.pattern && $.push({
1337
+ pattern: u == null ? void 0 : u.pattern,
1338
+ message: (u == null ? void 0 : u.message) || "格式不正确!"
1339
+ }), u.validate && $.push({
1340
+ validator: (q, C, k) => u.validate(q, C, k)
1336
1341
  });
1337
1342
  }
1338
- return b;
1339
- }, N = (S, b = !1) => {
1343
+ return $;
1344
+ }, j = (T, $ = !1) => {
1340
1345
  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) || {};
1346
+ 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
1347
  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 };
1348
+ 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 : {};
1349
+ return { ...u, ...G };
1345
1350
  }
1346
1351
  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 };
1352
+ 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 : {};
1353
+ return { ...u, ...G };
1349
1354
  }
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;
1355
+ return u;
1356
+ }, R = (T) => {
1357
+ var g, u, q, C, k;
1358
+ const $ = typeof T.editor == "function" ? T.editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T.editor;
1359
+ 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
1360
  };
1356
1361
  ut(() => {
1357
- L(), f != null && f.editForm ? v.value = f.editForm : v.value = ve.value;
1358
- }), el(() => {
1362
+ L(), f != null && f.editForm ? v.value = f.editForm : v.value = me.value;
1363
+ }), Kt(() => {
1359
1364
  o.value = null;
1360
1365
  });
1361
1366
  const L = () => {
1362
1367
  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
1368
+ for (const [T, $] of Object.entries(te.value))
1369
+ t.value[T].formItem = {
1370
+ ...t.value[T].formItem,
1371
+ ...$.formItem
1372
+ }, t.value[T].formItem.style = {
1373
+ ...t.value[T].formItem.style,
1374
+ ...$.formItem.style
1370
1375
  };
1371
- }, oe = Je(
1376
+ }, te = Je(
1372
1377
  () => 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]])
1378
+ 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) => {
1379
+ var g, u, q;
1380
+ const $ = typeof T[1].editor == "function" ? T[1].editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T[1].editor;
1381
+ 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;
1382
+ }).map((T) => [T[0], T[1]])
1378
1383
  )
1379
- ), ve = Je(
1384
+ ), me = Je(
1380
1385
  () => 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])
1386
+ Object.entries(t.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].type != "control").map((T) => [T[0], T[1].value])
1382
1387
  )
1383
1388
  ), ie = Je(() => {
1384
- const S = /* @__PURE__ */ new Map();
1385
- return Object.entries(oe.value).forEach(([b, g]) => {
1389
+ const T = /* @__PURE__ */ new Map();
1390
+ return Object.entries(te.value).forEach(([$, g]) => {
1386
1391
  if (g.groupName) {
1387
- const n = g.groupName;
1388
- S.has(n) || S.set(n, {
1389
- groupName: n,
1392
+ const u = g.groupName;
1393
+ T.has(u) || T.set(u, {
1394
+ groupName: u,
1390
1395
  items: []
1391
- }), S.get(n).items.push({ key: b, item: g });
1396
+ }), T.get(u).items.push({ key: $, item: g });
1392
1397
  }
1393
- }), S.forEach((b) => {
1394
- b.tabPane = Ve(
1395
- ...b.items.map(({ item: g }) => g.tabPane || {})
1398
+ }), T.forEach(($) => {
1399
+ $.tabPane = Ve(
1400
+ ...$.items.map(({ item: g }) => g.tabPane || {})
1396
1401
  );
1397
- }), Array.from(S.values());
1402
+ }), Array.from(T.values());
1398
1403
  }), ce = [
1399
1404
  {
1400
1405
  name: "f-submit",
1401
1406
  label: t.value.form.submit.label,
1402
1407
  click: t.value.form.submit.click,
1403
1408
  hidden: t.value.form.submit.hidden,
1404
- info: Ue(t.value.form.submit, (S) => !["click"].includes(S)),
1409
+ info: Ue(t.value.form.submit, (T) => !["click"].includes(T)),
1405
1410
  sort: t.value.form.submit.sort ?? 1,
1406
1411
  // 使用空值合并运算符
1407
1412
  originalOrder: 0
@@ -1411,22 +1416,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1411
1416
  name: "f-reset",
1412
1417
  label: t.value.form.reset.label,
1413
1418
  click: t.value.form.reset.click,
1414
- info: Ue(t.value.form.reset, (S) => !["click"].includes(S)),
1419
+ info: Ue(t.value.form.reset, (T) => !["click"].includes(T)),
1415
1420
  hidden: t.value.form.reset.hidden,
1416
1421
  sort: t.value.form.reset.sort ?? 2,
1417
1422
  // 使用空值合并运算符
1418
1423
  originalOrder: 1
1419
1424
  // 添加原始顺序标识
1420
1425
  }
1421
- ], de = Je(() => ce.filter((S) => !S.hidden).sort((S, b) => S.sort - b.sort || S.originalOrder - b.originalOrder));
1422
- return s({
1426
+ ], de = Je(() => ce.filter((T) => !T.hidden).sort((T, $) => T.sort - $.sort || T.originalOrder - $.originalOrder));
1427
+ return n({
1423
1428
  submit: i,
1424
- reset: u,
1429
+ reset: s,
1425
1430
  formData: v
1426
- }), (S, b) => {
1431
+ }), (T, $) => {
1427
1432
  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, [
1433
+ 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");
1434
+ return p(), I("div", Bl, [
1430
1435
  K(k, O(
1431
1436
  {
1432
1437
  ref_key: "gform",
@@ -1441,62 +1446,63 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1441
1446
  },
1442
1447
  P(Ue)(
1443
1448
  t.value.form,
1444
- (E) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(E)
1449
+ (w) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(w)
1445
1450
  )
1446
1451
  ), {
1447
1452
  default: D(() => [
1448
- ie.value.length > 0 ? M(S.$slots, "default", { key: 0 }, () => [
1453
+ ie.value.length > 0 ? M(T.$slots, "default", { key: 0 }, () => [
1449
1454
  K(C, O({
1450
1455
  class: "demo-tabs",
1451
1456
  modelValue: ie.value[0].groupName,
1452
- "onUpdate:modelValue": b[0] || (b[0] = (E) => ie.value[0].groupName = E),
1457
+ "onUpdate:modelValue": $[0] || ($[0] = (w) => ie.value[0].groupName = w),
1453
1458
  style: { width: "100%" }
1454
1459
  }, t.value.form.tabs), {
1455
1460
  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,
1461
+ (p(!0), I(J, null, N(ie.value, (w) => (p(), B(q, O({
1462
+ key: w.groupName,
1463
+ label: w.groupName,
1464
+ name: w.groupName,
1460
1465
  style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
1461
1466
  ref_for: !0
1462
- }, E.tabPane), {
1467
+ }, w.tabPane), {
1463
1468
  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 }, {
1469
+ (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
1470
  key: y.key,
1466
1471
  style: { width: "100%" }
1467
1472
  }), {
1468
1473
  default: D(() => {
1469
- var me, ge;
1474
+ var he, be;
1470
1475
  return [
1471
1476
  K(g, O({
1472
1477
  label: y == null ? void 0 : y.item.label,
1473
1478
  prop: y.key,
1474
1479
  rules: V(y == null ? void 0 : y.item),
1475
1480
  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%" } }), {
1481
+ }, { ...(he = t.value) == null ? void 0 : he.formItems, ...(be = y == null ? void 0 : y.item) == null ? void 0 : be.formItem }, { style: { width: "100%" } }), {
1477
1482
  default: D(() => [
1478
- M(S.$slots, "f-" + y.key, {
1483
+ M(T.$slots, "f-" + y.key, {
1479
1484
  item: y == null ? void 0 : y.item,
1480
1485
  formInfo: v.value,
1481
- model: t.value
1486
+ model: t.value,
1487
+ form: v.value
1482
1488
  }, () => [
1483
- (p(), A(gt, {
1489
+ (p(), B(bt, {
1484
1490
  modelValue: v.value[y.key],
1485
- "onUpdate:modelValue": (be) => v.value[y.key] = be,
1486
- item: N(y),
1491
+ "onUpdate:modelValue": ($e) => v.value[y.key] = $e,
1492
+ item: j(y),
1487
1493
  ctrlKey: y.key,
1488
- ctrlType: Y(y == null ? void 0 : y.item),
1494
+ ctrlType: R(y == null ? void 0 : y.item),
1489
1495
  model: t.value,
1490
1496
  key: `${y.key}-${F.value}`,
1491
1497
  class: "g-ctrl-container",
1492
1498
  t: "f",
1493
1499
  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,
1500
+ }, ye({ _: 2 }, [
1501
+ N(T.$slots, ($e, we) => ({
1502
+ name: we,
1503
+ fn: D((Ee) => [
1504
+ M(T.$slots, we, {
1505
+ data: Ee,
1500
1506
  item: y.item,
1501
1507
  model: t.value
1502
1508
  }, void 0, !0)
@@ -1517,53 +1523,54 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1517
1523
  ]),
1518
1524
  _: 3
1519
1525
  }, 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 }, {
1526
+ ], !0) : M(T.$slots, "default", { key: 1 }, () => [
1527
+ (p(!0), I(J, null, N(te.value, (w, y) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...w.col }, {
1522
1528
  key: y,
1523
1529
  style: { width: "100%" }
1524
1530
  }), {
1525
1531
  default: D(() => {
1526
- var re;
1532
+ var ae;
1527
1533
  return [
1528
1534
  K(g, O({
1529
- label: E.label,
1535
+ label: w.label,
1530
1536
  prop: y,
1531
- rules: V(E),
1537
+ rules: V(w),
1532
1538
  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,
1539
+ }, { ...(ae = t.value) == null ? void 0 : ae.formItems, ...w == null ? void 0 : w.formItem }, { style: { width: "100%" } }), {
1540
+ label: D((he) => [
1541
+ M(T.$slots, `f-${y}-label`, {
1542
+ data: he,
1543
+ item: w,
1538
1544
  model: t.value
1539
1545
  }, () => [
1540
- Ie(Ce(E.label), 1)
1546
+ Ie(De(w.label), 1)
1541
1547
  ], !0)
1542
1548
  ]),
1543
1549
  default: D(() => [
1544
- M(S.$slots, "f-" + y, {
1545
- item: E,
1550
+ M(T.$slots, "f-" + y, {
1551
+ item: w,
1546
1552
  formInfo: v.value,
1547
- model: t.value
1553
+ model: t.value,
1554
+ form: v.value
1548
1555
  }, () => [
1549
- (p(), A(gt, {
1556
+ (p(), B(bt, {
1550
1557
  modelValue: v.value[y],
1551
- "onUpdate:modelValue": (me) => v.value[y] = me,
1552
- item: N(E, !0),
1558
+ "onUpdate:modelValue": (he) => v.value[y] = he,
1559
+ item: j(w, !0),
1553
1560
  ctrlKey: y,
1554
- ctrlType: Y(E),
1561
+ ctrlType: R(w),
1555
1562
  key: `${y}-${F.value}`,
1556
1563
  model: t.value,
1557
1564
  class: "g-ctrl-container",
1558
1565
  t: "f",
1559
1566
  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,
1567
+ }, ye({ _: 2 }, [
1568
+ N(T.$slots, (he, be) => ({
1569
+ name: be,
1570
+ fn: D(($e) => [
1571
+ M(T.$slots, be, {
1572
+ data: $e,
1573
+ item: w,
1567
1574
  model: t.value
1568
1575
  }, void 0, !0)
1569
1576
  ])
@@ -1581,32 +1588,32 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1581
1588
  ]),
1582
1589
  _: 3
1583
1590
  }, 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 }, () => [
1591
+ (pe = (G = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : G.footer) != null && pe.hidden ? ge("", !0) : M(T.$slots, "f-footer", { key: 0 }, () => [
1585
1592
  Q("div", {
1586
1593
  style: qe(t.value.form.footer.style)
1587
1594
  }, [
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"])
1595
+ M(T.$slots, "f-footer-left", {}, void 0, !0),
1596
+ (p(!0), I(J, null, N(de.value, (w) => (p(), I(J, null, [
1597
+ M(T.$slots, w.name + "-left", {}, void 0, !0),
1598
+ M(T.$slots, w.name, {}, () => [
1599
+ K(U, O({ ref_for: !0 }, w.info, {
1600
+ onClick: yt((y) => w.click(v.value, t.value), ["stop"])
1594
1601
  }), {
1595
1602
  default: D(() => [
1596
- Ie(Ce(E == null ? void 0 : E.label), 1)
1603
+ Ie(De(w == null ? void 0 : w.label), 1)
1597
1604
  ]),
1598
1605
  _: 2
1599
1606
  }, 1040, ["onClick"])
1600
1607
  ], !0),
1601
- M(S.$slots, E.name + "-right", {}, void 0, !0)
1608
+ M(T.$slots, w.name + "-right", {}, void 0, !0)
1602
1609
  ], 64))), 256)),
1603
- M(S.$slots, "f-footer-right", {}, void 0, !0)
1610
+ M(T.$slots, "f-footer-right", {}, void 0, !0)
1604
1611
  ], 4)
1605
1612
  ], !0)
1606
1613
  ]);
1607
1614
  };
1608
1615
  }
1609
- }), Et = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-68883be7"]]), Ft = {
1616
+ }), _t = /* @__PURE__ */ Ze(Ol, [["__scopeId", "data-v-d68f3861"]]), Ft = {
1610
1617
  __name: "g-query-item",
1611
1618
  props: /* @__PURE__ */ Xe(["more"], {
1612
1619
  modelValue: { required: !0 },
@@ -1616,55 +1623,55 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1616
1623
  }),
1617
1624
  emits: ["update:modelValue", "update:info"],
1618
1625
  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) => {
1626
+ const n = Qe(a, "modelValue"), r = a, t = Qe(a, "info"), e = (F) => Je(() => Object.fromEntries(Object.entries(n.value).filter((f) => {
1620
1627
  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) => {
1628
+ 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;
1629
+ }).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
1630
  const f = o(F);
1624
1631
  return (f == null ? void 0 : f.type) || F.type;
1625
1632
  }, v = (F) => {
1626
- var u;
1633
+ var s;
1627
1634
  const f = o(F);
1628
- let i = (f == null ? void 0 : f.width) || ((u = s.value.queryItems) == null ? void 0 : u.width) || "100%";
1635
+ let i = (f == null ? void 0 : f.width) || ((s = n.value.queryItems) == null ? void 0 : s.width) || "100%";
1629
1636
  return isNaN(i) || (i += "px"), i;
1630
1637
  };
1631
1638
  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}`, {
1639
+ const i = H("el-form-item");
1640
+ return p(!0), I(J, null, N(e(r.more), (s, c) => M(F.$slots, `q-${c}`, {
1634
1641
  key: c,
1635
- item: u,
1642
+ item: s,
1636
1643
  queryModel: t.value,
1637
- model: s.value
1644
+ model: n.value
1638
1645
  }, () => [
1639
1646
  K(i, O({
1640
- label: u.label,
1641
- style: { width: v(u) },
1647
+ label: s.label,
1648
+ style: { width: v(s) },
1642
1649
  ref_for: !0
1643
- }, { ...s.value.queryItems, ...o(u) }), {
1650
+ }, { ...n.value.queryItems, ...o(s) }), {
1644
1651
  label: D(() => [
1645
1652
  M(F.$slots, `q-${c}-label`, {
1646
- item: u,
1647
- model: s.value
1653
+ item: s,
1654
+ model: n.value
1648
1655
  })
1649
1656
  ]),
1650
1657
  default: D(() => [
1651
- K(gt, {
1658
+ K(bt, {
1652
1659
  modelValue: t.value[c],
1653
- "onUpdate:modelValue": ($) => t.value[c] = $,
1654
- item: { ...u == null ? void 0 : u.editor, ...o(u) },
1660
+ "onUpdate:modelValue": (_) => t.value[c] = _,
1661
+ item: { ...s == null ? void 0 : s.editor, ...o(s) },
1655
1662
  ctrlKey: c,
1656
- ctrlType: _(u),
1657
- model: s.value,
1663
+ ctrlType: E(s),
1664
+ model: n.value,
1658
1665
  t: "q",
1659
1666
  formInfo: t.value
1660
- }, he({ _: 2 }, [
1661
- j(Object.keys(F.$slots), ($) => ({
1662
- name: $,
1667
+ }, ye({ _: 2 }, [
1668
+ N(Object.keys(F.$slots), (_) => ({
1669
+ name: _,
1663
1670
  fn: D((V) => [
1664
- M(F.$slots, $, {
1671
+ M(F.$slots, _, {
1665
1672
  data: V,
1666
- item: u,
1667
- model: s.value
1673
+ item: s,
1674
+ model: n.value
1668
1675
  })
1669
1676
  ])
1670
1677
  }))
@@ -1675,10 +1682,10 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1675
1682
  ])), 128);
1676
1683
  };
1677
1684
  }
1678
- }, Ul = {
1685
+ }, Il = {
1679
1686
  key: 0,
1680
1687
  class: "outer"
1681
- }, Yl = { class: "inner" }, Rl = {
1688
+ }, Ul = { class: "inner" }, Yl = {
1682
1689
  __name: "g-query",
1683
1690
  props: {
1684
1691
  modelValue: { required: !0 },
@@ -1687,8 +1694,8 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1687
1694
  infoModifiers: {}
1688
1695
  },
1689
1696
  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 = {
1697
+ setup(a, { emit: n }) {
1698
+ const r = Qe(a, "modelValue"), t = n, e = Mt("options"), o = oe(!1), E = Qe(a, "info"), v = {
1692
1699
  hidden: !1,
1693
1700
  type: "hidden",
1694
1701
  labelWidth: 100,
@@ -1705,7 +1712,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1705
1712
  hidden: !0,
1706
1713
  type: "primary",
1707
1714
  label: "更多",
1708
- icon: () => _e(fl),
1715
+ icon: () => ke(cl),
1709
1716
  click: () => {
1710
1717
  o.value = !o.value;
1711
1718
  }
@@ -1715,18 +1722,18 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1715
1722
  type: "primary",
1716
1723
  hidden: !1,
1717
1724
  plain: !1,
1718
- icon: () => _e(Ut),
1725
+ icon: () => ke(It),
1719
1726
  click: () => {
1720
- t("reset", _.value);
1727
+ t("reset", E.value);
1721
1728
  }
1722
1729
  },
1723
1730
  query: {
1724
1731
  hidden: !1,
1725
1732
  type: "primary",
1726
1733
  label: "查询",
1727
- icon: () => _e(pl),
1734
+ icon: () => ke(fl),
1728
1735
  click: () => {
1729
- t("query", _.value), o.value = !1;
1736
+ t("query", E.value), o.value = !1;
1730
1737
  }
1731
1738
  },
1732
1739
  btns: {
@@ -1772,24 +1779,24 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1772
1779
  }
1773
1780
  };
1774
1781
  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]({
1782
+ const i = (V, j) => {
1783
+ const R = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (me) => V.slots[te]({
1777
1784
  model: r.value
1778
1785
  // 传递当前模型数据
1779
1786
  }), L), {});
1780
- return _e(Ft, {
1787
+ return ke(Ft, {
1781
1788
  modelValue: r.value,
1782
1789
  "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;
1790
+ info: E.value,
1791
+ "onUpdate:info": (L) => E.value = L,
1792
+ more: j
1793
+ }, R);
1794
+ }, s = At(), c = () => {
1795
+ var R, L, te, me, ie, ce, de, Ce, Te;
1789
1796
  const V = [
1790
1797
  {
1791
1798
  key: "query",
1792
- hidden: (oe = (L = (Y = r.value) == null ? void 0 : Y.query) == null ? void 0 : L.query) == null ? void 0 : oe.hidden,
1799
+ hidden: (te = (L = (R = r.value) == null ? void 0 : R.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
1793
1800
  component: Be,
1794
1801
  props: {
1795
1802
  ...r.value.query.query,
@@ -1800,7 +1807,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1800
1807
  },
1801
1808
  {
1802
1809
  key: "reset",
1803
- hidden: (ce = (ie = (ve = r.value) == null ? void 0 : ve.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1810
+ hidden: (ce = (ie = (me = r.value) == null ? void 0 : me.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1804
1811
  component: Be,
1805
1812
  props: {
1806
1813
  ...r.value.query.reset,
@@ -1811,69 +1818,69 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1811
1818
  },
1812
1819
  {
1813
1820
  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,
1821
+ hidden: (Te = (Ce = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : Ce.more) == null ? void 0 : Te.hidden,
1822
+ component: r.value.query.more.mode === 3 ? $t : Be,
1816
1823
  props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
1817
1824
  ...r.value.query.more,
1818
1825
  onClick: r.value.query.more.click
1819
1826
  },
1820
1827
  label: r.value.query.more.label,
1821
1828
  sort: r.value.query.more.sort || 0,
1822
- content: r.value.query.more.mode === 3 ? () => _e(vt, {
1829
+ content: r.value.query.more.mode === 3 ? () => ke(pt, {
1823
1830
  class: "query-form",
1824
- ...Ue(r.value.query, (te) => !["query", "more", "reset"].includes(te))
1825
- }, () => i({ slots: u }, !0)) : null
1831
+ ...Ue(r.value.query, (le) => !["query", "more", "reset"].includes(le))
1832
+ }, () => i({ slots: s }, !0)) : null
1826
1833
  }
1827
1834
  ];
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(() => ({
1835
+ 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, {
1836
+ reference: () => ke(Be, r.value.query.more, () => le.label),
1837
+ default: le.content
1838
+ }) : (le.props.slot = "query-" + le.key, le.label ? ke(le.component, le.props, () => le.label) : ke(le.component, le.props)));
1839
+ }, _ = Je(() => ({
1833
1840
  diplay: "flex",
1834
1841
  flexDirection: r.value.query.container.mode === "row" ? "row" : "column"
1835
1842
  }));
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");
1843
+ return (V, j) => {
1844
+ var te, me, ie, ce, de, Ce, Te, le, ne, re, Oe, T, $, g, u, q, C;
1845
+ const R = H("el-form-item"), L = H("el-drawer");
1839
1846
  return p(), I(J, null, [
1840
1847
  Q("div", {
1841
1848
  class: "g-query-container",
1842
- style: qe({ ...$.value, ...((ve = (oe = r.value.query) == null ? void 0 : oe.container) == null ? void 0 : ve.style) || {} })
1849
+ style: qe({ ..._.value, ...((me = (te = r.value.query) == null ? void 0 : te.container) == null ? void 0 : me.style) || {} })
1843
1850
  }, [
1844
- K(P(vt), O({
1845
- onSubmit: N[0] || (N[0] = ht(() => {
1851
+ K(P(pt), O({
1852
+ onSubmit: j[0] || (j[0] = yt(() => {
1846
1853
  }, ["prevent"]))
1847
1854
  }, P(Ue)(r.value.query, (k) => !["query", "more", "reset", "btns"].includes(k))), {
1848
1855
  default: D(() => {
1849
1856
  var k, U;
1850
1857
  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 }, {
1858
+ (p(), B(We(i({ slots: V.$slots }, void 0)))),
1859
+ ((U = (k = r.value.query) == null ? void 0 : k.container) == null ? void 0 : U.inline) === !0 ? (p(), B(R, { key: 0 }, {
1853
1860
  default: D(() => {
1854
- var Z, G, pe, E, y;
1861
+ var Z, G, pe, w, y;
1855
1862
  return [
1856
1863
  Q("div", {
1857
1864
  style: qe((G = (Z = r.value.query) == null ? void 0 : Z.btns) == null ? void 0 : G.style)
1858
1865
  }, [
1859
- r.value.query.group ? (p(), A(P(mt), { key: 0 }, {
1866
+ r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1860
1867
  default: D(() => [
1861
- (p(!0), I(J, null, j(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1862
- (p(), A(We(re)))
1868
+ (p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1869
+ (p(), B(We(ae)))
1863
1870
  ], !0)), 256)),
1864
1871
  M(V.$slots, "q-btns", {}, void 0, !0)
1865
1872
  ]),
1866
1873
  _: 3
1867
1874
  })) : (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 }, {
1875
+ (y = (w = (pe = r.value) == null ? void 0 : pe.query) == null ? void 0 : w.btns) != null && y.group ? (p(), B(P(mt), { key: 0 }, {
1869
1876
  default: D(() => [
1870
- (p(!0), I(J, null, j(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1871
- (p(), A(We(re)))
1877
+ (p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1878
+ (p(), B(We(ae)))
1872
1879
  ], !0)), 256))
1873
1880
  ]),
1874
1881
  _: 3
1875
- })) : (p(!0), I(J, { key: 1 }, j(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1876
- (p(), A(We(re)))
1882
+ })) : (p(!0), I(J, { key: 1 }, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1883
+ (p(), B(We(ae)))
1877
1884
  ], !0)), 256)),
1878
1885
  M(V.$slots, "q-btns", {}, void 0, !0)
1879
1886
  ], 64))
@@ -1881,59 +1888,59 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1881
1888
  ];
1882
1889
  }),
1883
1890
  _: 3
1884
- })) : ye("", !0)
1891
+ })) : ge("", !0)
1885
1892
  ];
1886
1893
  }),
1887
1894
  _: 3
1888
1895
  }, 16),
1889
1896
  ((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
1897
  key: 0,
1891
- style: qe((Se = (ke = r.value.query) == null ? void 0 : ke.btns) == null ? void 0 : Se.style)
1898
+ style: qe((Te = (Ce = r.value.query) == null ? void 0 : Ce.btns) == null ? void 0 : Te.style)
1892
1899
  }, [
1893
- r.value.query.group ? (p(), A(P(mt), { key: 0 }, {
1900
+ r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1894
1901
  default: D(() => [
1895
- (p(!0), I(J, null, j(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1896
- (p(), A(We(k)))
1902
+ (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1903
+ (p(), B(We(k)))
1897
1904
  ], !0)), 256)),
1898
1905
  M(V.$slots, "q-btns", {}, void 0, !0)
1899
1906
  ]),
1900
1907
  _: 3
1901
1908
  })) : (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 }, {
1909
+ (ne = (le = r.value.query) == null ? void 0 : le.btns) != null && ne.group ? (p(), B(P(mt), { key: 0 }, {
1903
1910
  default: D(() => [
1904
- (p(!0), I(J, null, j(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1905
- (p(), A(We(k)))
1911
+ (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1912
+ (p(), B(We(k)))
1906
1913
  ], !0)), 256))
1907
1914
  ]),
1908
1915
  _: 3
1909
- })) : (p(!0), I(J, { key: 1 }, j(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1910
- (p(), A(We(k)))
1916
+ })) : (p(!0), I(J, { key: 1 }, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1917
+ (p(), B(We(k)))
1911
1918
  ], !0)), 256)),
1912
1919
  M(V.$slots, "q-btns", {}, void 0, !0)
1913
1920
  ], 64))
1914
- ], 4)) : ye("", !0)
1921
+ ], 4)) : ge("", !0)
1915
1922
  ], 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({
1923
+ 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
1924
  key: 0,
1918
1925
  modelValue: o.value,
1919
- "onUpdate:modelValue": N[6] || (N[6] = (k) => o.value = k),
1926
+ "onUpdate:modelValue": j[6] || (j[6] = (k) => o.value = k),
1920
1927
  title: "更多查询",
1921
1928
  "show-close": !1
1922
- }, r.value.query.more.dialog), he({
1929
+ }, r.value.query.more.dialog), ye({
1923
1930
  default: D(() => [
1924
- K(P(vt), O({
1925
- onSubmit: N[3] || (N[3] = ht(() => {
1931
+ K(P(pt), O({
1932
+ onSubmit: j[3] || (j[3] = yt(() => {
1926
1933
  }, ["prevent"]))
1927
1934
  }, P(Ue)(r.value.query, (k) => !["query", "more", "reset"].includes(k)), { style: { width: "98%" } }), {
1928
1935
  default: D(() => [
1929
1936
  K(Ft, {
1930
1937
  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),
1938
+ "onUpdate:modelValue": j[1] || (j[1] = (k) => r.value = k),
1939
+ info: E.value,
1940
+ "onUpdate:info": j[2] || (j[2] = (k) => E.value = k),
1934
1941
  more: !0
1935
- }, he({ _: 2 }, [
1936
- j(V.$slots, (k, U, Z) => ({
1942
+ }, ye({ _: 2 }, [
1943
+ N(V.$slots, (k, U, Z) => ({
1937
1944
  name: U,
1938
1945
  fn: D((G) => [
1939
1946
  M(V.$slots, U, { model: r.value }, void 0, !0)
@@ -1946,23 +1953,23 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1946
1953
  ]),
1947
1954
  _: 2
1948
1955
  }, [
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 : {
1956
+ (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
1957
  name: "footer",
1951
1958
  fn: D(() => [
1952
- Q("div", wt(tl(r.value.query.more.dialog.footer)), [
1959
+ Q("div", Et(el(r.value.query.more.dialog.footer)), [
1953
1960
  K(P(Be), O(r.value.query.query, {
1954
- onClick: N[4] || (N[4] = (k) => r.value.query.query.click())
1961
+ onClick: j[4] || (j[4] = (k) => r.value.query.query.click())
1955
1962
  }), {
1956
1963
  default: D(() => [
1957
- Ie(Ce(r.value.query.query.label), 1)
1964
+ Ie(De(r.value.query.query.label), 1)
1958
1965
  ]),
1959
1966
  _: 1
1960
1967
  }, 16),
1961
1968
  K(P(Be), O(r.value.query.reset, {
1962
- onClick: N[5] || (N[5] = (k) => r.value.query.reset.click())
1969
+ onClick: j[5] || (j[5] = (k) => r.value.query.reset.click())
1963
1970
  }), {
1964
1971
  default: D(() => [
1965
- Ie(Ce(r.value.query.reset.label), 1)
1972
+ Ie(De(r.value.query.reset.label), 1)
1966
1973
  ]),
1967
1974
  _: 1
1968
1975
  }, 16)
@@ -1970,8 +1977,8 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1970
1977
  ]),
1971
1978
  key: "0"
1972
1979
  }
1973
- ]), 1040, ["modelValue"])) : ye("", !0),
1974
- K(ll, {
1980
+ ]), 1040, ["modelValue"])) : ge("", !0),
1981
+ K(tl, {
1975
1982
  duration: 300,
1976
1983
  name: "nested",
1977
1984
  style: { padding: "10px" }
@@ -1979,22 +1986,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
1979
1986
  default: D(() => {
1980
1987
  var k, U, Z;
1981
1988
  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({
1989
+ 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, [
1990
+ Q("div", Ul, [
1991
+ r.value.query.more.mode == 1 ? ll((p(), B(P(pt), O({
1985
1992
  key: 0,
1986
- onSubmit: N[7] || (N[7] = ht(() => {
1993
+ onSubmit: j[7] || (j[7] = yt(() => {
1987
1994
  }, ["prevent"]))
1988
1995
  }, P(Ue)(r.value.query, (G) => !["query", "more", "reset"].includes(G))), {
1989
1996
  default: D(() => [
1990
- (p(), A(We(i({ slots: V.$slots }, !0))))
1997
+ (p(), B(We(i({ slots: V.$slots }, !0))))
1991
1998
  ]),
1992
1999
  _: 1
1993
2000
  }, 16)), [
1994
- [al, o.value]
1995
- ]) : ye("", !0)
2001
+ [rl, o.value]
2002
+ ]) : ge("", !0)
1996
2003
  ])
1997
- ])) : ye("", !0)
2004
+ ])) : ge("", !0)
1998
2005
  ];
1999
2006
  }),
2000
2007
  _: 1
@@ -2002,22 +2009,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2002
2009
  ], 64);
2003
2010
  };
2004
2011
  }
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 = {
2012
+ }, 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
2013
  style: { display: "flex", "flex-wrap": "wrap" },
2007
2014
  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 = {
2015
+ }, jl = ["textContent"], Nl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Wl = {
2009
2016
  __name: "check-excel-item",
2010
2017
  props: {
2011
2018
  items: Array,
2012
2019
  commitText: String
2013
2020
  },
2014
2021
  emits: ["excel"],
2015
- setup(a, { emit: s }) {
2016
- const r = a, t = s, e = ae(r.items), o = () => {
2022
+ setup(a, { emit: n }) {
2023
+ const r = a, t = n, e = oe(r.items), o = () => {
2017
2024
  e.value.forEach((F) => {
2018
2025
  F.value = !0;
2019
2026
  });
2020
- }, _ = () => {
2027
+ }, E = () => {
2021
2028
  e.value.forEach((F) => {
2022
2029
  F.value = !1;
2023
2030
  });
@@ -2036,31 +2043,31 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2036
2043
  });
2037
2044
  };
2038
2045
  return ut(() => {
2039
- const F = new Lt(document.getElementById("excelSortEl"), {
2046
+ const F = new Rt(document.getElementById("excelSortEl"), {
2040
2047
  animation: 150,
2041
2048
  onEnd: () => {
2042
2049
  F.toArray();
2043
2050
  }
2044
2051
  }), f = F;
2045
- ol(() => {
2052
+ al(() => {
2046
2053
  f && f.destroy();
2047
2054
  });
2048
2055
  }), (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, [
2056
+ const i = H("el-divider"), s = H("el-alert"), c = H("el-checkbox"), _ = H("el-button");
2057
+ return p(), I("div", Ll, [
2051
2058
  Q("div", Hl, [
2052
- Q("div", Pl, [
2059
+ Q("div", zl, [
2053
2060
  Q("a", {
2054
2061
  onClick: o,
2055
2062
  style: { cursor: "pointer" }
2056
2063
  }, "全选"),
2057
2064
  K(i, { direction: "vertical" }),
2058
2065
  Q("a", {
2059
- onClick: _,
2066
+ onClick: E,
2060
2067
  style: { cursor: "pointer" }
2061
2068
  }, "全不选")
2062
2069
  ]),
2063
- K(u, {
2070
+ K(s, {
2064
2071
  title: "拖动列标题可以改变表格列的生成顺序 !",
2065
2072
  type: "warning",
2066
2073
  "show-icon": "",
@@ -2068,19 +2075,19 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2068
2075
  style: { "margin-bottom": "10px" }
2069
2076
  }),
2070
2077
  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, {
2078
+ Q("div", Pl, [
2079
+ (p(!0), I(J, null, N(e.value, (V) => (p(), B(c, {
2073
2080
  class: "check-box-hover",
2074
2081
  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
2082
  "data-id": V.key,
2076
2083
  modelValue: V.value,
2077
- "onUpdate:modelValue": (N) => V.value = N,
2084
+ "onUpdate:modelValue": (j) => V.value = j,
2078
2085
  key: V.key,
2079
2086
  title: V.label
2080
2087
  }, {
2081
2088
  default: D(() => [
2082
2089
  Q("span", {
2083
- textContent: Ce(V.label),
2090
+ textContent: De(V.label),
2084
2091
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2085
2092
  }, null, 8, jl)
2086
2093
  ]),
@@ -2088,15 +2095,15 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2088
2095
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
2089
2096
  ])
2090
2097
  ]),
2091
- Q("div", Wl, [
2092
- K($, {
2098
+ Q("div", Nl, [
2099
+ K(_, {
2093
2100
  type: "primary",
2094
2101
  onClick: v,
2095
- icon: P(Rt),
2102
+ icon: P(Yt),
2096
2103
  disabled: e.value.filter((V) => V.value).length < 1
2097
2104
  }, {
2098
2105
  default: D(() => [
2099
- Ie(Ce(r.commitText), 1)
2106
+ Ie(De(r.commitText), 1)
2100
2107
  ]),
2101
2108
  _: 1
2102
2109
  }, 8, ["icon", "disabled"])
@@ -2104,120 +2111,113 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
2104
2111
  ]);
2105
2112
  };
2106
2113
  }
2107
- }, Xl = /* @__PURE__ */ Ze(Gl, [["__scopeId", "data-v-630c4ced"]]), Ql = "gyc", Zl = 1, Te = new wl(Ql);
2108
- Te.version(Zl).stores({
2114
+ }, Gl = /* @__PURE__ */ Ze(Wl, [["__scopeId", "data-v-630c4ced"]]), Xl = "vue-gyc-ui", Ql = 1, ve = new $l(Xl);
2115
+ ve.version(Ql).stores({
2109
2116
  // 记录表格项设置信息
2110
- tableInfo: "++id, [page+key], page, key, showCol, width, sort",
2117
+ tableWidths: "++id, [page+key], page, key,width",
2111
2118
  // 记录表格分页条数
2112
- pagesize: "++id, page, size",
2119
+ pageInfo: "++id, page, size",
2113
2120
  // 记录表格字段顺序
2114
- sorts: "++id, page, keys"
2121
+ sorts: "++id, page, keys",
2122
+ // 记录表格列显示状态
2123
+ tableColsState: "++id,[page+key], page, key"
2115
2124
  });
2116
- const Jl = {
2117
- showCol: !0,
2118
- sort: 0
2119
- }, Kl = 20, er = [], Ke = (a, s) => {
2125
+ const Ke = (a, n) => {
2120
2126
  if (!a || typeof a != "string")
2121
2127
  throw new Error("page参数必须是非空字符串");
2122
- if (s && typeof s != "string")
2123
- throw new Error("key参数必须是字符串");
2124
2128
  };
2125
- async function St(a, s, r = {}) {
2126
- Ke(a, s);
2129
+ async function ht(a, n, r) {
2127
2130
  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
- }
2131
+ const t = await ve.tableColsState.where({ page: a }).first();
2132
+ t ? r === "add" ? t.keys.includes(n) || (t.keys.push(n), await ve.tableColsState.put(t)) : r === "del" ? (t.keys = t.keys.filter((e) => e !== n), await ve.tableColsState.put(t)) : r === "delAll" ? (t.keys = n, await ve.tableColsState.put(t)) : r === "selectAll" && await ve.tableColsState.where({ page: a }).delete() : r === "add" ? await ve.tableColsState.add({ page: a, keys: [n] }) : r === "delAll" && await ve.tableColsState.add({ page: a, keys: n });
2135
2133
  } catch (t) {
2136
- throw console.error(`保存表格项设置信息时出错 (page: ${a}, key: ${s}):`, t), t;
2134
+ throw console.error(`处理表格列状态时出错 (page: ${a}, key: ${n}, state: ${r}):`, t), t;
2137
2135
  }
2138
2136
  }
2139
- async function xt(a, s, r = {}) {
2137
+ async function Zl(a, n, r) {
2140
2138
  Ke(a);
2141
2139
  try {
2142
- const t = s.map(
2143
- (e) => St(a, e.value, { ...e, ...r })
2144
- );
2145
- return await Promise.all(t), "batch update success";
2140
+ const t = await ve.tableWidths.where({ page: a, key: n }).first();
2141
+ return t ? (await ve.tableWidths.put({ ...t, width: r }), "update success") : (await ve.tableWidths.add({ page: a, key: n, width: r }), "add success");
2146
2142
  } catch (t) {
2147
- throw console.error(`批量保存表格项设置信息时出错 (page: ${a}):`, t), t;
2143
+ throw console.error(`保存表格项设置信息时出错 (page: ${a}, key: ${n}):`, t), t;
2148
2144
  }
2149
2145
  }
2150
- async function tr(a) {
2146
+ async function Jl(a) {
2151
2147
  Ke(a);
2152
2148
  try {
2153
- return await Te.tableInfo.where({ page: a }).toArray();
2154
- } catch (s) {
2155
- throw console.error(`获取表格项设置信息时出错 (page: ${a}):`, s), s;
2149
+ return await ve.tableWidths.where({ page: a }).toArray();
2150
+ } catch (n) {
2151
+ throw console.error(`获取表格项设置信息时出错 (page: ${a}):`, n), n;
2156
2152
  }
2157
2153
  }
2158
- async function lr(a) {
2154
+ async function Kl(a) {
2159
2155
  Ke(a);
2160
2156
  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
- };
2157
+ const n = await ve.tableColsState.where({ page: a }).toArray();
2158
+ return !n || n.length === 0 ? [] : n[0].keys;
2159
+ } catch (n) {
2160
+ throw console.error(`获取表格列状态时出错 (page: ${a}):`, n), n;
2161
+ }
2162
+ }
2163
+ async function er(a) {
2164
+ Ke(a);
2165
+ try {
2166
+ return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
2167
+ await Promise.all([
2168
+ ve.tableWidths.where({ page: a }).delete(),
2169
+ ve.pageInfo.where({ page: a }).delete(),
2170
+ ve.sorts.where({ page: a }).delete(),
2171
+ ve.tableColsState.where({ page: a }).delete()
2172
+ ]);
2173
2173
  });
2174
- } catch (s) {
2175
- throw console.error(`删除页面"${a}"的表格设置信息时出错:`, s), s;
2174
+ } catch (n) {
2175
+ throw console.error(`删除页面"${a}"的表格设置信息时出错:`, n), n;
2176
2176
  }
2177
2177
  }
2178
- async function rr(a, s) {
2178
+ async function tr({ page: a, size: n }) {
2179
2179
  Ke(a);
2180
2180
  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");
2181
+ const r = await ve.pageInfo.where({ page: a }).first();
2182
+ return r ? (await ve.pageInfo.put({ ...r, size: n }), "update success") : (await ve.pageInfo.add({ page: a, size: n }), "add success");
2183
2183
  } catch (r) {
2184
- throw console.error(`保存分页条数时出错 (page: ${a}, size: ${s}):`, r), r;
2184
+ throw console.error(`保存分页条数时出错 (page: ${a}):`, r), r;
2185
2185
  }
2186
2186
  }
2187
- async function ar(a) {
2187
+ async function lr(a) {
2188
2188
  Ke(a);
2189
2189
  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;
2190
+ const n = await ve.pageInfo.where({ page: a }).first();
2191
+ return (n == null ? void 0 : n.size) || 20;
2192
+ } catch (n) {
2193
+ throw console.error(`获取分页条数时出错 (page: ${a}):`, n), n;
2194
2194
  }
2195
2195
  }
2196
- async function or(a, s) {
2196
+ async function rr(a, n) {
2197
2197
  Ke(a);
2198
2198
  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");
2199
+ const r = await ve.sorts.where({ page: a }).first();
2200
+ return r ? (await ve.sorts.put({ ...r, keys: n }), "update success") : (await ve.sorts.add({ page: a, keys: n }), "add success");
2201
2201
  } catch (r) {
2202
2202
  throw console.error(`保存表格字段顺序时出错 (page: ${a}):`, r), r;
2203
2203
  }
2204
2204
  }
2205
- async function nr(a) {
2205
+ async function ar(a) {
2206
2206
  Ke(a);
2207
2207
  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;
2208
+ const n = await ve.sorts.where({ page: a }).first();
2209
+ return (n == null ? void 0 : n.keys) || [];
2210
+ } catch (n) {
2211
+ throw console.error(`获取表格字段顺序时出错 (page: ${a}):`, n), n;
2212
2212
  }
2213
2213
  }
2214
- const ur = {
2214
+ const or = {
2215
2215
  style: { margin: "10px" },
2216
2216
  class: "allcheck"
2217
- }, sr = {
2217
+ }, nr = {
2218
2218
  id: "cols",
2219
2219
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
2220
- }, ir = ["textContent"], dr = {
2220
+ }, ur = ["textContent"], sr = {
2221
2221
  __name: "columns-setting",
2222
2222
  props: /* @__PURE__ */ Xe({
2223
2223
  tuid: {
@@ -2228,30 +2228,23 @@ const ur = {
2228
2228
  modelValue: { required: !0 },
2229
2229
  modelModifiers: {}
2230
2230
  }),
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
- }
2231
+ emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
2232
+ setup(a, { emit: n }) {
2233
+ const r = a, t = n, e = oe([]), o = Qe(a, "modelValue"), E = async (s, c) => {
2234
+ s ? (o.value[c].showCol = !0, await ht(r.tuid, c, "del")) : (o.value[c].showCol = !1, await ht(r.tuid, c, "add"));
2243
2235
  }, v = () => {
2244
- const u = document.getElementById("cols");
2245
- if (u) {
2246
- let c = Lt.create(u, {
2236
+ const s = document.getElementById("cols");
2237
+ if (s) {
2238
+ let c = Rt.create(s, {
2247
2239
  animation: 150,
2248
2240
  filter: ".filtered",
2249
2241
  sort: !0,
2250
2242
  onEnd: async () => {
2251
- let $ = c.toArray();
2252
- console.log($);
2243
+ let _ = c.toArray();
2253
2244
  try {
2254
- await or(r.tuid, $), t("setting-drag-end");
2245
+ rr(r.tuid, _).then((V) => {
2246
+ t("setting-drag-end");
2247
+ });
2255
2248
  } catch (V) {
2256
2249
  console.error("列排序保存信息时出错:", V), Ge({
2257
2250
  type: "error",
@@ -2263,36 +2256,41 @@ const ur = {
2263
2256
  }
2264
2257
  }, F = async () => {
2265
2258
  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({
2259
+ e.value.forEach((s) => {
2260
+ s.showCol = !0;
2261
+ }), ht(r.tuid, [], "selectAll").then((s) => {
2262
+ t("select-all");
2263
+ });
2264
+ } catch (s) {
2265
+ console.error("全选列保存信息时出错:", s), Ge({
2270
2266
  type: "error",
2271
2267
  message: "全选列保存信息失败!"
2272
2268
  });
2273
2269
  }
2274
2270
  }, f = async () => {
2275
2271
  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({
2272
+ let s = e.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
2273
+ s.forEach((c) => {
2274
+ c.showCol = !1;
2275
+ }), ht(r.tuid, s.map((c) => c.value), "delAll").then((c) => {
2276
+ t("select-all");
2277
+ });
2278
+ } catch (s) {
2279
+ console.error("清除列保存信息时出错:", s), Ge({
2282
2280
  type: "error",
2283
2281
  message: "清除列保存信息失败!"
2284
2282
  });
2285
2283
  }
2286
2284
  }, i = () => {
2287
- At.confirm("确定要复位吗?", "提示", {
2285
+ qt.confirm("确定要复位吗?", "提示", {
2288
2286
  confirmButtonText: "确定",
2289
2287
  cancelButtonText: "取消",
2290
2288
  type: "warning"
2291
2289
  }).then(() => {
2292
- lr(r.tuid).then((u) => {
2290
+ er(r.tuid).then((s) => {
2293
2291
  window.location.reload();
2294
- }).catch((u) => {
2295
- console.error("复位操作出错:", u), Ge({
2292
+ }).catch((s) => {
2293
+ console.error("复位操作出错:", s), Ge({
2296
2294
  type: "info",
2297
2295
  message: "复位失败!"
2298
2296
  });
@@ -2300,22 +2298,22 @@ const ur = {
2300
2298
  });
2301
2299
  };
2302
2300
  return ut(async () => {
2303
- e.value = Object.entries(o.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u, c]) => ({
2301
+ e.value = Object.entries(o.value).filter(([, s]) => s.visible !== !1).filter(([, s]) => s.type != "hidden").map(([s, c]) => ({
2304
2302
  label: c.label,
2305
- value: u,
2303
+ value: s,
2306
2304
  alwaysShow: c.alwaysShow,
2307
2305
  showCol: c.showCol !== !1,
2308
2306
  sort: c.sort || 0,
2309
2307
  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");
2308
+ })).sort((s, c) => s.sort - c.sort), v();
2309
+ }), (s, c) => {
2310
+ const _ = H("el-divider"), V = H("el-alert"), j = H("el-checkbox");
2313
2311
  return p(), I("div", null, [
2314
- Q("div", ur, [
2312
+ Q("div", or, [
2315
2313
  Q("a", { onClick: F }, "全选"),
2316
- K($, { direction: "vertical" }),
2314
+ K(_, { direction: "vertical" }),
2317
2315
  Q("a", { onClick: f }, "全不选"),
2318
- K($, { direction: "vertical" }),
2316
+ K(_, { direction: "vertical" }),
2319
2317
  Q("a", { onClick: i }, "复位")
2320
2318
  ]),
2321
2319
  K(V, {
@@ -2326,24 +2324,24 @@ const ur = {
2326
2324
  style: { "margin-bottom": "10px" }
2327
2325
  }),
2328
2326
  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),
2327
+ Q("div", nr, [
2328
+ (p(!0), I(J, null, N(e.value, (R) => (p(), B(j, {
2329
+ modelValue: R.showCol,
2330
+ "onUpdate:modelValue": (L) => R.showCol = L,
2331
+ "data-id": R.value,
2332
+ class: Bt(["check-box-hover", R.value == "control" ? "filtered" : ""]),
2333
+ onChange: (L) => E(L, R.value),
2336
2334
  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
2335
+ value: R.value,
2336
+ title: R.label,
2337
+ disabled: R.alwaysShow,
2338
+ key: R.value
2341
2339
  }, {
2342
2340
  default: D(() => [
2343
2341
  Q("span", {
2344
- textContent: Ce(Y.label),
2342
+ textContent: De(R.label),
2345
2343
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2346
- }, null, 8, ir)
2344
+ }, null, 8, ur)
2347
2345
  ]),
2348
2346
  _: 2
2349
2347
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -2352,7 +2350,7 @@ const ur = {
2352
2350
  ]);
2353
2351
  };
2354
2352
  }
2355
- }, cr = /* @__PURE__ */ Ze(dr, [["__scopeId", "data-v-229120ee"]]), fr = { class: "title" }, pr = { class: "content" }, vr = {
2353
+ }, ir = /* @__PURE__ */ Ze(sr, [["__scopeId", "data-v-adb08f30"]]), dr = { class: "title" }, cr = { class: "content" }, fr = {
2356
2354
  __name: "g-cell-toopTip",
2357
2355
  props: {
2358
2356
  content: {
@@ -2365,14 +2363,14 @@ const ur = {
2365
2363
  }
2366
2364
  },
2367
2365
  setup(a) {
2368
- const s = a, r = () => {
2369
- s.content ? (navigator.clipboard.writeText(s.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
2366
+ const n = a, r = () => {
2367
+ n.content ? (navigator.clipboard.writeText(n.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
2370
2368
  };
2371
2369
  return (t, e) => (p(), I("div", {
2372
2370
  class: "g-cell-toopTip",
2373
- style: qe({ width: s.column.width + "px" })
2371
+ style: qe({ width: n.column.width + "px" })
2374
2372
  }, [
2375
- Q("div", fr, [
2373
+ Q("div", dr, [
2376
2374
  e[0] || (e[0] = Q("span", { class: "title-text" }, "内容", -1)),
2377
2375
  Q("span", {
2378
2376
  class: "copy-btn",
@@ -2382,13 +2380,13 @@ const ur = {
2382
2380
  K(P(vl))
2383
2381
  ])
2384
2382
  ]),
2385
- Q("div", pr, Ce(s.content), 1)
2383
+ Q("div", cr, De(n.content), 1)
2386
2384
  ], 4));
2387
2385
  }
2388
- }, mr = /* @__PURE__ */ Ze(vr, [["__scopeId", "data-v-f28912da"]]);
2389
- var Nt = { exports: {} }, jt = { exports: {} };
2386
+ }, vr = /* @__PURE__ */ Ze(fr, [["__scopeId", "data-v-f28912da"]]);
2387
+ var Pt = { exports: {} }, jt = { exports: {} };
2390
2388
  (function() {
2391
- var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
2389
+ var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
2392
2390
  // Bit-wise rotation left
2393
2391
  rotl: function(r, t) {
2394
2392
  return r << t | r >>> 32 - t;
@@ -2400,9 +2398,9 @@ var Nt = { exports: {} }, jt = { exports: {} };
2400
2398
  // Swap big-endian to little-endian and vice versa
2401
2399
  endian: function(r) {
2402
2400
  if (r.constructor == Number)
2403
- return s.rotl(r, 8) & 16711935 | s.rotl(r, 24) & 4278255360;
2401
+ return n.rotl(r, 8) & 16711935 | n.rotl(r, 24) & 4278255360;
2404
2402
  for (var t = 0; t < r.length; t++)
2405
- r[t] = s.endian(r[t]);
2403
+ r[t] = n.endian(r[t]);
2406
2404
  return r;
2407
2405
  },
2408
2406
  // Generate an array of any length of random bytes
@@ -2438,8 +2436,8 @@ var Nt = { exports: {} }, jt = { exports: {} };
2438
2436
  // Convert a byte array to a base-64 string
2439
2437
  bytesToBase64: function(r) {
2440
2438
  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("=");
2439
+ for (var o = r[e] << 16 | r[e + 1] << 8 | r[e + 2], E = 0; E < 4; E++)
2440
+ e * 8 + E * 6 <= r.length * 8 ? t.push(a.charAt(o >>> 6 * (3 - E) & 63)) : t.push("=");
2443
2441
  return t.join("");
2444
2442
  },
2445
2443
  // Convert a base-64 string to a byte array
@@ -2450,90 +2448,90 @@ var Nt = { exports: {} }, jt = { exports: {} };
2450
2448
  return t;
2451
2449
  }
2452
2450
  };
2453
- jt.exports = s;
2451
+ jt.exports = n;
2454
2452
  })();
2455
- var hr = jt.exports, _t = {
2453
+ var pr = jt.exports, kt = {
2456
2454
  // UTF-8 encoding
2457
2455
  utf8: {
2458
2456
  // Convert a string to a byte array
2459
2457
  stringToBytes: function(a) {
2460
- return _t.bin.stringToBytes(unescape(encodeURIComponent(a)));
2458
+ return kt.bin.stringToBytes(unescape(encodeURIComponent(a)));
2461
2459
  },
2462
2460
  // Convert a byte array to a string
2463
2461
  bytesToString: function(a) {
2464
- return decodeURIComponent(escape(_t.bin.bytesToString(a)));
2462
+ return decodeURIComponent(escape(kt.bin.bytesToString(a)));
2465
2463
  }
2466
2464
  },
2467
2465
  // Binary encoding
2468
2466
  bin: {
2469
2467
  // Convert a string to a byte array
2470
2468
  stringToBytes: function(a) {
2471
- for (var s = [], r = 0; r < a.length; r++)
2472
- s.push(a.charCodeAt(r) & 255);
2473
- return s;
2469
+ for (var n = [], r = 0; r < a.length; r++)
2470
+ n.push(a.charCodeAt(r) & 255);
2471
+ return n;
2474
2472
  },
2475
2473
  // Convert a byte array to a string
2476
2474
  bytesToString: function(a) {
2477
- for (var s = [], r = 0; r < a.length; r++)
2478
- s.push(String.fromCharCode(a[r]));
2479
- return s.join("");
2475
+ for (var n = [], r = 0; r < a.length; r++)
2476
+ n.push(String.fromCharCode(a[r]));
2477
+ return n.join("");
2480
2478
  }
2481
2479
  }
2482
- }, Vt = _t;
2480
+ }, xt = kt;
2483
2481
  /*!
2484
2482
  * Determine if an object is a Buffer
2485
2483
  *
2486
2484
  * @author Feross Aboukhadijeh <https://feross.org>
2487
2485
  * @license MIT
2488
2486
  */
2489
- var yr = function(a) {
2490
- return a != null && (Wt(a) || gr(a) || !!a._isBuffer);
2487
+ var mr = function(a) {
2488
+ return a != null && (Nt(a) || hr(a) || !!a._isBuffer);
2491
2489
  };
2492
- function Wt(a) {
2490
+ function Nt(a) {
2493
2491
  return !!a.constructor && typeof a.constructor.isBuffer == "function" && a.constructor.isBuffer(a);
2494
2492
  }
2495
- function gr(a) {
2496
- return typeof a.readFloatLE == "function" && typeof a.slice == "function" && Wt(a.slice(0, 0));
2493
+ function hr(a) {
2494
+ return typeof a.readFloatLE == "function" && typeof a.slice == "function" && Nt(a.slice(0, 0));
2497
2495
  }
2498
2496
  (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;
2497
+ var a = pr, n = xt.utf8, r = mr, t = xt.bin, e = function(o, E) {
2498
+ 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());
2499
+ for (var v = a.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, s = -1732584194, c = 271733878, _ = 0; _ < v.length; _++)
2500
+ v[_] = (v[_] << 8 | v[_] >>> 24) & 16711935 | (v[_] << 24 | v[_] >>> 8) & 4278255360;
2503
2501
  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;
2502
+ for (var V = e._ff, j = e._gg, R = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
2503
+ var te = f, me = i, ie = s, ce = c;
2504
+ 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
2505
  }
2508
- return a.endian([f, i, u, c]);
2506
+ return a.endian([f, i, s, c]);
2509
2507
  };
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, _) {
2508
+ e._ff = function(o, E, v, F, f, i, s) {
2509
+ var c = o + (E & v | ~E & F) + (f >>> 0) + s;
2510
+ return (c << i | c >>> 32 - i) + E;
2511
+ }, e._gg = function(o, E, v, F, f, i, s) {
2512
+ var c = o + (E & F | v & ~F) + (f >>> 0) + s;
2513
+ return (c << i | c >>> 32 - i) + E;
2514
+ }, e._hh = function(o, E, v, F, f, i, s) {
2515
+ var c = o + (E ^ v ^ F) + (f >>> 0) + s;
2516
+ return (c << i | c >>> 32 - i) + E;
2517
+ }, e._ii = function(o, E, v, F, f, i, s) {
2518
+ var c = o + (v ^ (E | ~F)) + (f >>> 0) + s;
2519
+ return (c << i | c >>> 32 - i) + E;
2520
+ }, e._blocksize = 16, e._digestsize = 16, Pt.exports = function(o, E) {
2523
2521
  if (o == null)
2524
2522
  throw new Error("Illegal argument " + o);
2525
- var v = a.wordsToBytes(e(o, _));
2526
- return _ && _.asBytes ? v : _ && _.asString ? t.bytesToString(v) : a.bytesToHex(v);
2523
+ var v = a.wordsToBytes(e(o, E));
2524
+ return E && E.asBytes ? v : E && E.asString ? t.bytesToString(v) : a.bytesToHex(v);
2527
2525
  };
2528
2526
  })();
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 = {
2527
+ var yr = Pt.exports;
2528
+ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "flex", "margin-top": "-2px" } }, wr = { style: { display: "flex", flex: "1" } }, Er = {
2531
2529
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
2532
2530
  id: "table-form"
2533
- }, Cr = { key: 1 }, Dr = { style: { display: "flex" } }, Tr = { style: { display: "flex", flex: "1" } }, Mr = { class: "g-table-container" }, Sr = {
2531
+ }, _r = { key: 1 }, kr = { style: { display: "flex" } }, Cr = { style: { display: "flex", flex: "1" } }, Dr = { class: "g-table-container" }, Sr = {
2534
2532
  key: 0,
2535
2533
  class: "table-query-container"
2536
- }, Fr = { class: "table-container" }, xr = ["innerHTML"], Vr = /* @__PURE__ */ Object.assign({
2534
+ }, Mr = { class: "table-container" }, Tr = ["innerHTML"], Fr = /* @__PURE__ */ Object.assign({
2537
2535
  name: "g-table",
2538
2536
  inheritAttrs: !1
2539
2537
  }, {
@@ -2551,11 +2549,11 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2551
2549
  "download",
2552
2550
  "row-save"
2553
2551
  ], ["update:modelValue"]),
2554
- setup(a, { expose: s, emit: r }) {
2555
- 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 = [
2552
+ setup(a, { expose: n, emit: r }) {
2553
+ var Ye, st, it, dt, ct, ft, vt;
2554
+ 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]);
2555
+ E.value = Object.fromEntries(f);
2556
+ const i = oe(!1), s = [
2559
2557
  "type",
2560
2558
  "index",
2561
2559
  "label",
@@ -2584,7 +2582,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2584
2582
  "filter-multiple",
2585
2583
  "filter-method",
2586
2584
  "filtered-value"
2587
- ], c = ae([]), $ = Mt(), V = ae({}), N = ae([]), Y = ae(null), L = ae(""), oe = ae("/"), ve = ae({
2585
+ ], c = oe([]), _ = Tt(), V = oe({}), j = oe([]), R = oe(null), L = oe(""), te = oe("/"), me = oe({
2588
2586
  autoWatch: !1,
2589
2587
  data: [],
2590
2588
  border: !0,
@@ -2593,37 +2591,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2593
2591
  fit: !1,
2594
2592
  type: "hidden",
2595
2593
  load: async () => {
2596
- e.value.table.page.pageSize = await ar(oe.value);
2594
+ e.value.table.page.pageSize = await lr(te.value);
2597
2595
  let { currentPage: l, pageSize: d } = e.value.table.page;
2598
2596
  try {
2599
2597
  t(
2600
2598
  "load",
2601
- { currentPage: l, pageSize: d, ..._.value },
2602
- (m = [], w = 0, { fields: B = [], sums: R = {} } = {}) => {
2599
+ { currentPage: l, pageSize: d, ...E.value },
2600
+ (m = [], b = 0, { fields: A = [], sums: Y = {} } = {}) => {
2603
2601
  var W;
2604
2602
  if (!Array.isArray(m)) {
2605
2603
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
2606
2604
  return;
2607
2605
  }
2608
- if (typeof w != "number") {
2606
+ if (typeof b != "number") {
2609
2607
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
2610
2608
  return;
2611
2609
  }
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);
2610
+ 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
2611
  },
2614
- Y.value
2612
+ R.value
2615
2613
  );
2616
2614
  } catch (m) {
2617
2615
  console.error("触发 load 事件时出现错误:", m), Ge.error("数据加载时出现错误,请稍后重试。");
2618
2616
  }
2619
2617
  },
2620
2618
  onHeaderDragend: (l, d, m) => {
2621
- St(oe.value, m.property, {
2622
- width: l
2623
- });
2619
+ Zl(te.value, m.property, l);
2624
2620
  },
2625
2621
  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);
2622
+ 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
2623
  },
2628
2624
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2629
2625
  page: {
@@ -2643,21 +2639,21 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2643
2639
  e.value.table.page.currentPage = l, e.value.table.load();
2644
2640
  },
2645
2641
  onSizeChange: (l) => {
2646
- rr(oe.value, l).then(() => {
2642
+ tr({ page: te.value, size: l }).then(() => {
2647
2643
  e.value.table.page.pageSize = l, e.value.table.load();
2648
2644
  });
2649
2645
  }
2650
2646
  },
2651
2647
  dblclickType: "edit",
2652
2648
  "summary-method": ({ columns: l, data: d }, m) => m,
2653
- onSortChange: ({ column: l, prop: d, order: m }, w) => {
2649
+ onSortChange: ({ column: l, prop: d, order: m }, b) => {
2654
2650
  }
2655
2651
  });
2656
2652
  e.value.table = Ve(
2657
- ve.value,
2653
+ me.value,
2658
2654
  o == null ? void 0 : o.table,
2659
2655
  e.value.table,
2660
- $
2656
+ _
2661
2657
  // 继承父组件的属性
2662
2658
  );
2663
2659
  const ie = {
@@ -2669,36 +2665,36 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2669
2665
  fixed: "right",
2670
2666
  style: { ...(st = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : st.style },
2671
2667
  validate: async (l) => await !0,
2672
- view: (l, d, m, w) => ({
2668
+ view: (l, d, m, b) => ({
2673
2669
  label: "查看",
2674
2670
  text: !0,
2675
2671
  type: "success",
2676
2672
  mode: "dialog",
2677
- icon: () => _e(ml),
2673
+ icon: () => ke(pl),
2678
2674
  auth: () => {
2679
- var B;
2680
- return !(((B = w == null ? void 0 : w.control) == null ? void 0 : B.add(w).inline) === !0 && m === 0);
2675
+ var A;
2676
+ return !(((A = b == null ? void 0 : b.control) == null ? void 0 : A.add(b).inline) === !0 && m === 0);
2681
2677
  }
2682
2678
  }),
2683
- edit: (l, d, m, w) => ({
2679
+ edit: (l, d, m, b) => ({
2684
2680
  label: "编辑",
2685
2681
  text: !0,
2686
2682
  type: "primary",
2687
2683
  mode: "dialog",
2688
- icon: () => _e(hl),
2684
+ icon: () => ke(ml),
2689
2685
  auth: () => {
2690
- var B;
2691
- return ((B = w == null ? void 0 : w.control) == null ? void 0 : B.add(w).inline) !== !0;
2686
+ var A;
2687
+ return ((A = b == null ? void 0 : b.control) == null ? void 0 : A.add(b).inline) !== !0;
2692
2688
  }
2693
2689
  }),
2694
- delete: (l, d, m, w) => ({
2690
+ delete: (l, d, m, b) => ({
2695
2691
  text: !0,
2696
2692
  label: "删除",
2697
2693
  type: "danger",
2698
- icon: () => _e(Yt),
2694
+ icon: () => ke(Ut),
2699
2695
  auth: () => {
2700
- var B;
2701
- return !(((B = w.control) == null ? void 0 : B.add(w).inline) === !0 && m === 0);
2696
+ var A;
2697
+ return !(((A = b.control) == null ? void 0 : A.add(b).inline) === !0 && m === 0);
2702
2698
  },
2703
2699
  dialog: {
2704
2700
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2710,15 +2706,15 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2710
2706
  }
2711
2707
  }
2712
2708
  }),
2713
- save: (l, d, m, w) => ({
2714
- label: w.control.add(w).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2709
+ save: (l, d, m, b) => ({
2710
+ label: b.control.add(b).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2715
2711
  text: !0,
2716
- icon: () => _e(It),
2717
- type: w.control.add(w).inline !== !0 || m === 0 ? "primary" : "success",
2712
+ icon: () => ke(Ot),
2713
+ type: b.control.add(b).inline !== !0 || m === 0 ? "primary" : "success",
2718
2714
  sort: -1,
2719
2715
  auth: () => {
2720
- var B;
2721
- return ((B = w.control) == null ? void 0 : B.add(w).inline) === !0;
2716
+ var A;
2717
+ return ((A = b.control) == null ? void 0 : A.add(b).inline) === !0;
2722
2718
  }
2723
2719
  }),
2724
2720
  add: (l) => ({
@@ -2727,7 +2723,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2727
2723
  type: "primary",
2728
2724
  mode: "dialog",
2729
2725
  inline: !1,
2730
- icon: () => _e(yl),
2726
+ icon: () => ke(hl),
2731
2727
  auth: () => !0
2732
2728
  }),
2733
2729
  download: (l) => ({
@@ -2735,7 +2731,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2735
2731
  text: !1,
2736
2732
  type: "primary",
2737
2733
  mode: "dialog",
2738
- icon: () => _e(Rt),
2734
+ icon: () => ke(Yt),
2739
2735
  excelLabel: "下载EXCEL",
2740
2736
  auth: () => !0
2741
2737
  }),
@@ -2744,20 +2740,20 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2744
2740
  text: !1,
2745
2741
  type: "primary",
2746
2742
  mode: "dialog",
2747
- icon: () => _e(gl),
2743
+ icon: () => ke(yl),
2748
2744
  auth: () => !0
2749
2745
  }),
2750
- dropdown: (l, d, m, w) => ({
2746
+ dropdown: (l, d, m, b) => ({
2751
2747
  label: "编辑",
2752
2748
  operate: "edit",
2753
2749
  "split-button": !0,
2754
2750
  type: "primary",
2755
2751
  size: "small",
2756
- auth: () => !(w.control.add(w).inline === !0 && m == 0),
2752
+ auth: () => !(b.control.add(b).inline === !0 && m == 0),
2757
2753
  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);
2754
+ var Y;
2755
+ let A = (Y = de(l, d, m, b)) == null ? void 0 : Y.operate;
2756
+ A === "edit" ? $(l, d, m, b) : A === "delete" ? g(l, d, m, b) : A === "view" && u(l, d, m, b);
2761
2757
  },
2762
2758
  "button-props": { round: !0, plain: !0 }
2763
2759
  })
@@ -2768,43 +2764,43 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2768
2764
  (it = e.value) == null ? void 0 : it.control
2769
2765
  );
2770
2766
  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)
2767
+ const m = e.value.control[l], b = d ? (A, Y, W, fe) => {
2768
+ var Le, He, et;
2769
+ if (!A || !Y || W == null)
2774
2770
  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) || {};
2771
+ 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)) || {};
2772
+ return Ve(_e, Fe, Re) || {};
2773
+ } : (A) => {
2774
+ var _e, Fe, Re;
2775
+ 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)) || {};
2776
+ return Ve(Y, W, fe) || {};
2781
2777
  };
2782
- e.value.control[l] = w;
2778
+ e.value.control[l] = b;
2783
2779
  };
2784
2780
  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;
2781
+ const de = (l, d, m, b) => {
2782
+ var fe, _e, Fe, Re, Le, He;
2787
2783
  if (!l || !d || m == null)
2788
2784
  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 = {
2785
+ 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)) || {};
2786
+ return Ve(A, Y, W) || {};
2787
+ }, Ce = {
2792
2788
  type: "hidden",
2793
2789
  "min-width": 100,
2794
2790
  align: "center",
2795
- formatter: (l, d, m, w) => m,
2796
- "tooltip-formatter": ({ row: l, column: d, cellValue: m }) => _e(mr, { content: m, column: d })
2791
+ formatter: (l, d, m, b) => m,
2792
+ "tooltip-formatter": ({ row: l, column: d, cellValue: m }) => ke(vr, { content: m, column: d })
2797
2793
  };
2798
2794
  e.value.tableColumns = Ve(
2799
- ke,
2795
+ Ce,
2800
2796
  o == null ? void 0 : o.tableColumns,
2801
2797
  (dt = e.value) == null ? void 0 : dt.tableColumns
2802
2798
  ), e.value.form = Ve(
2803
- Pt,
2799
+ zt,
2804
2800
  o == null ? void 0 : o.form,
2805
2801
  (ct = e.value) == null ? void 0 : ct.form
2806
2802
  );
2807
- const Se = {
2803
+ const Te = {
2808
2804
  type: "hidden",
2809
2805
  labelPosition: "right",
2810
2806
  style: {
@@ -2812,11 +2808,11 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2812
2808
  }
2813
2809
  };
2814
2810
  e.value.formItems = Ve(
2815
- Se,
2811
+ Te,
2816
2812
  o == null ? void 0 : o.formItems,
2817
2813
  (ft = e == null ? void 0 : e.value) == null ? void 0 : ft.formItems
2818
2814
  );
2819
- const te = {
2815
+ const le = {
2820
2816
  title: "编辑",
2821
2817
  mode: "drawer",
2822
2818
  type: "hidden",
@@ -2829,78 +2825,78 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2829
2825
  overflow: !0,
2830
2826
  max: {
2831
2827
  style: {},
2832
- icon: () => _e(bl)
2828
+ icon: () => ke(gl)
2833
2829
  },
2834
2830
  min: {
2835
2831
  style: {},
2836
- icon: () => _e($l)
2832
+ icon: () => ke(bl)
2837
2833
  // 最小化图标
2838
2834
  }
2839
2835
  };
2840
2836
  e.value.dialog = Ve(
2841
- te,
2837
+ le,
2842
2838
  o == null ? void 0 : o.dialog,
2843
- (pt = e.value) == null ? void 0 : pt.dialog
2839
+ (vt = e.value) == null ? void 0 : vt.dialog
2844
2840
  );
2845
2841
  const ne = (l, d) => {
2846
2842
  let m = d;
2847
2843
  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
2844
  parseFloat(m).toFixed(l.decimals.num)
2849
- ).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && $t(d).isValid()) {
2850
- const B = {
2845
+ ).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && wt(d).isValid()) {
2846
+ const A = {
2851
2847
  date: "YYYY-MM-DD",
2852
2848
  datetime: "YYYY-MM-DD HH:mm:ss",
2853
2849
  time: "HH:mm:ss"
2854
2850
  };
2855
- m = l.format ? $t(m).format(l.format) : $t(m).format(B[l.type]);
2851
+ m = l.format ? wt(m).format(l.format) : wt(m).format(A[l.type]);
2856
2852
  }
2857
- return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${Dt(
2853
+ return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${St(
2858
2854
  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();
2855
+ )}">${jr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
2856
+ }, re = (l) => {
2857
+ E.value = Object.fromEntries(f), e.value.table.load();
2862
2858
  }, Oe = (l) => {
2863
- _.value = l, e.value.table.load();
2864
- }, S = async (l) => {
2859
+ E.value = l, e.value.table.load();
2860
+ }, T = async (l) => {
2865
2861
  var d, m;
2866
2862
  e.value.form.modalState = "add";
2867
2863
  try {
2868
2864
  if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { m: l }))) return;
2869
- } catch (w) {
2870
- console.error("验证失败:", w);
2865
+ } catch (b) {
2866
+ console.error("验证失败:", b);
2871
2867
  return;
2872
2868
  }
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;
2869
+ (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) => {
2870
+ e.value[b] && (e.value[b].value = R.value[b]);
2871
+ }), i.value = !0, t("open", "add", { m: l }), gt());
2872
+ }, $ = async (l, d, m, b) => {
2873
+ var A, Y;
2878
2874
  e.value.form.modalState = "edit";
2879
2875
  try {
2880
- if (!await ((B = e.value.control) == null ? void 0 : B.validate("edit", { row: l, column: d, index: m, m: w }))) return;
2876
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: d, index: m, m: b }))) return;
2881
2877
  } catch (W) {
2882
2878
  console.error("验证失败:", W);
2883
2879
  return;
2884
2880
  }
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) => {
2881
+ (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
2882
  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;
2883
+ }), i.value = !0, t("open", "edit", { m: b, row: l, column: d, index: m }), gt());
2884
+ }, g = async (l, d, m, b) => {
2885
+ var A, Y;
2890
2886
  try {
2891
- if (!await ((B = e.value.control) == null ? void 0 : B.validate("delete", { row: l, column: d, index: m, m: w }))) return;
2887
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: d, index: m, m: b }))) return;
2892
2888
  } catch (W) {
2893
2889
  console.error("验证失败:", W);
2894
2890
  return;
2895
2891
  }
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);
2892
+ if ((Y = e.value.control.delete(l, d, m, b)) != null && Y.click)
2893
+ e.value.control.delete(l, d, m, b).click(l, d, m, b);
2898
2894
  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(() => {
2895
+ let { message: W, title: fe, options: _e } = e.value.control.delete(l, d, m, b).dialog;
2896
+ qt.confirm(W, fe, _e).then(() => {
2901
2897
  t(
2902
2898
  "delete",
2903
- { row: l, column: d, index: m, m: w },
2899
+ { row: l, column: d, index: m, m: b },
2904
2900
  (Fe = !0, Re = !1) => {
2905
2901
  Fe && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Re && e.value.table.load();
2906
2902
  }
@@ -2908,31 +2904,31 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2908
2904
  }).catch(() => {
2909
2905
  });
2910
2906
  }
2911
- }, n = async (l, d, m, w) => {
2912
- var B, R;
2907
+ }, u = async (l, d, m, b) => {
2908
+ var A, Y;
2913
2909
  e.value.form.modalState = void 0;
2914
2910
  try {
2915
- if (!await ((B = e.value.control) == null ? void 0 : B.validate("view", { row: l, column: d, index: m, m: w }))) return;
2911
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: d, index: m, m: b }))) return;
2916
2912
  } catch (W) {
2917
2913
  console.error("验证失败:", W);
2918
2914
  return;
2919
2915
  }
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) => {
2916
+ (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
2917
  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(
2918
+ }), i.value = !0, t("open", "view", { m: b, row: l, column: d, index: m }), gt());
2919
+ }, q = (l, d, m, b) => {
2920
+ var A;
2921
+ (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
2922
  "row-save",
2927
2923
  { 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(
2924
+ (Y = !0, W = !0) => {
2925
+ Y && e.value.table.load(), W && at(() => {
2926
+ R.value = Object.assign(
2931
2927
  {},
2932
2928
  Object.fromEntries(
2933
2929
  Object.entries(
2934
- Ue(e.value, (fe, Ee) => Ee.type != "control" && Ee.editor !== !1 && Ee.type != "hidden")
2935
- ).map(([fe, Ee]) => [fe, Ee.value])
2930
+ Ue(e.value, (fe, _e) => _e.type != "control" && _e.editor !== !1 && _e.type != "hidden")
2931
+ ).map(([fe, _e]) => [fe, _e.value])
2936
2932
  )
2937
2933
  );
2938
2934
  });
@@ -2949,17 +2945,17 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2949
2945
  if ((m = l.control.download(l)) != null && m.click)
2950
2946
  l.control.download(l).click(l, d);
2951
2947
  else {
2952
- let w = Ct(
2948
+ let b = Dt(
2953
2949
  {
2954
2950
  title: l.control.download(l).title || l.control.download(l).label || "下载",
2955
2951
  size: l.control.download(l).size || 480,
2956
2952
  width: l.control.download(l).width || 600,
2957
2953
  slots: {
2958
- default: () => _e(Xl, {
2954
+ default: () => ke(Gl, {
2959
2955
  items: d,
2960
2956
  commitText: l.control.download(l).excelLabel,
2961
- onExcel: (B, R) => {
2962
- t("download", B, _.value, R), w();
2957
+ onExcel: (A, Y) => {
2958
+ t("download", A, E.value, Y), b();
2963
2959
  }
2964
2960
  })
2965
2961
  }
@@ -2969,17 +2965,20 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2969
2965
  }
2970
2966
  }, Z = (l) => {
2971
2967
  var d;
2972
- (d = l.control.setting(l)) != null && d.click ? l.control.setting(l).click(l) : Ct(
2968
+ (d = l.control.setting(l)) != null && d.click ? l.control.setting(l).click(l) : Dt(
2973
2969
  {
2974
2970
  title: l.control.setting(l).title || l.control.setting(l).label || "设置",
2975
2971
  size: l.control.setting(l).size || 470,
2976
2972
  width: l.control.setting(l).width || 600,
2977
2973
  slots: {
2978
- default: () => _e(cr, {
2974
+ default: () => ke(ir, {
2979
2975
  modelValue: l,
2980
- tuid: oe.value,
2976
+ tuid: te.value,
2981
2977
  onSettingDragEnd: async () => {
2982
- await Me(oe.value);
2978
+ await Me(te.value);
2979
+ },
2980
+ onSelectAll: async (m) => {
2981
+ await Me(te.value);
2983
2982
  }
2984
2983
  })
2985
2984
  }
@@ -2987,72 +2986,72 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
2987
2986
  l.control.setting(l).mode
2988
2987
  );
2989
2988
  }, G = e.value.control, pe = [
2990
- { type: "add", func: S },
2989
+ { type: "add", func: T },
2991
2990
  { type: "download", func: U },
2992
2991
  { type: "setting", func: Z },
2993
- { type: "view", func: n },
2994
- { type: "edit", func: b },
2992
+ { type: "view", func: u },
2993
+ { type: "edit", func: $ },
2995
2994
  { type: "delete", func: g },
2996
2995
  { 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;
2996
+ ], w = (l, d, m, b, A) => pe.filter((Y) => l.includes(Y.type)).map(({ type: Y, func: W }) => {
2997
+ var fe, _e, Fe;
2999
2998
  return {
3000
- name: `control-${R}`,
3001
- attr: G == null ? void 0 : G[R](d, m, w, B),
2999
+ name: `control-${Y}`,
3000
+ attr: G == null ? void 0 : G[Y](d, m, b, A),
3002
3001
  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"
3002
+ label: (fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : fe.label,
3003
+ sort: ((_e = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : _e.sort) || 0,
3004
+ groupName: ((Fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : Fe.groupName) || "default"
3006
3005
  };
3007
- }).sort((R, W) => R.sort - W.sort), y = (l, d, m, w, B) => E(l, d, m, w, B).reduce((R, W) => {
3006
+ }).sort((Y, W) => Y.sort - W.sort), y = (l, d, m, b, A) => w(l, d, m, b, A).reduce((Y, W) => {
3008
3007
  const fe = W.groupName || "default";
3009
- return R[fe] || (R[fe] = []), R[fe].push(W), R;
3010
- }, {}), re = Je(
3008
+ return Y[fe] || (Y[fe] = []), Y[fe].push(W), Y;
3009
+ }, {}), ae = Je(
3011
3010
  () => Object.fromEntries(
3012
3011
  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
3012
  )
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);
3013
+ ), he = oe({}), be = (l, d) => {
3014
+ const m = (b, A) => {
3015
+ for (const Y of b) {
3016
+ if (Y.value == A) return Y.label;
3017
+ if (Y.children) {
3018
+ const W = m(Y.children, A);
3020
3019
  if (W) return W;
3021
3020
  }
3022
3021
  }
3023
3022
  return null;
3024
3023
  };
3025
3024
  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);
3025
+ const b = d.toString();
3026
+ 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) => {
3027
+ he.value[b] = A, l.options = A, l.formatter || (l.formatter = (Y, W, fe, _e) => l.options && m(l.options, fe) || fe);
3029
3028
  });
3030
3029
  }
3031
3030
  return Promise.resolve();
3032
- }, be = () => {
3031
+ }, $e = () => {
3033
3032
  const l = [];
3034
3033
  Object.keys(e.value).forEach((d) => {
3035
3034
  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;
3035
+ const m = be(e.value[d], d).then(() => {
3036
+ e.value.table.data.forEach((b) => {
3037
+ var A;
3038
+ if (e.value[d].getDicts && ((A = e.value[d]) == null ? void 0 : A.forceString) !== !1) {
3039
+ const Y = b[d];
3040
+ b[d] = Y != null ? Y.toString() : Y;
3042
3041
  }
3043
3042
  });
3044
- }).catch((w) => {
3045
- console.error(`加载字典${d}出错:`, w);
3043
+ }).catch((b) => {
3044
+ console.error(`加载字典${d}出错:`, b);
3046
3045
  });
3047
3046
  l.push(m);
3048
3047
  }
3049
3048
  }), Promise.all(l).catch((d) => {
3050
3049
  console.error("字典加载过程中发生错误:", d);
3051
3050
  });
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 = () => {
3051
+ }, we = (l, d, m, b) => {
3052
+ var A, Y;
3053
+ 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;
3054
+ }, Ee = () => {
3056
3055
  if (e.value.dialog.mode == "drawer")
3057
3056
  F.value.handleClose();
3058
3057
  else if (e.value.dialog.mode == "dialog")
@@ -3064,21 +3063,34 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3064
3063
  else
3065
3064
  i.value = !1;
3066
3065
  };
3067
- nl(() => {
3066
+ ol(() => {
3068
3067
  e.value.table.autoWatch && e.value.table.load();
3069
3068
  });
3070
3069
  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();
3070
+ try {
3071
+ const [l, d, m] = await Promise.all([
3072
+ Jl(te.value),
3073
+ ar(te.value),
3074
+ Kl(te.value)
3075
+ ]);
3076
+ l && Array.isArray(l) && l.forEach((b) => {
3077
+ const A = e.value[b.key];
3078
+ A && (A.width = b.width);
3079
+ }), d && Array.isArray(d) && d.forEach((b, A) => {
3080
+ const Y = e.value[b];
3081
+ Y && (Y.sort = A);
3082
+ }), m && Array.isArray(m) && m.length > 0 ? m.forEach((b) => {
3083
+ const A = e.value[b];
3084
+ A && (A.showCol = !1);
3085
+ }) : Object.keys(e.value).filter((b) => e.value[b].type !== "control").forEach((b) => {
3086
+ e.value[b].showCol = !0;
3087
+ });
3088
+ } catch (l) {
3089
+ console.error("加载表格信息时出错:", l);
3090
+ }
3091
+ }, xe = () => gr(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3092
+ return nl(() => {
3093
+ te.value = xe();
3082
3094
  }), ut(async () => {
3083
3095
  c.value = Object.entries(e.value).filter(
3084
3096
  ([l, d]) => d.type !== "hidden" && d.type !== "control" && d.visible !== !1
@@ -3092,86 +3104,86 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3092
3104
  const l = Object.entries(e.value).filter(
3093
3105
  ([d, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
3094
3106
  );
3095
- Y.value = Object.fromEntries(
3107
+ R.value = Object.fromEntries(
3096
3108
  l.map(([d, m]) => [d, m.value])
3097
3109
  ), await Me();
3098
3110
  } catch (l) {
3099
3111
  console.error("Error during component initialization:", l);
3100
3112
  }
3101
3113
  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");
3114
+ }), n({ addRow: T, editRow: $, deleteRow: g, readForm: u, saveRowData: q, closeDialog: Ee }), (l, d) => {
3115
+ var He, et, ot, tt, nt;
3116
+ 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
3117
  return p(), I(J, null, [
3106
- e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", wr, [
3107
- K(w, O(
3118
+ e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", br, [
3119
+ K(b, O(
3108
3120
  {
3109
3121
  ref_key: "dialogRef",
3110
3122
  ref: v,
3111
3123
  id: "dialogRef",
3112
3124
  modelValue: i.value,
3113
- "onUpdate:modelValue": d[3] || (d[3] = (H) => i.value = H),
3125
+ "onUpdate:modelValue": d[3] || (d[3] = (z) => i.value = z),
3114
3126
  fullscreen: e.value.dialog.fullScreen
3115
3127
  },
3116
- P(Ue)(e.value.dialog, (H) => !["size", "max", "min"].includes(H)),
3128
+ P(Ue)(e.value.dialog, (z) => !["size", "max", "min"].includes(z)),
3117
3129
  {
3118
- width: P(Xt)(e.value.dialog.width) + 35
3130
+ width: P(Gt)(e.value.dialog.width) + 35
3119
3131
  }
3120
3132
  ), {
3121
3133
  header: D(() => {
3122
- var H, se, x, X, ee, Ne, je, He, Pe, h;
3134
+ var z, se, x, X, ee, je, Ne, ze, Pe, h;
3123
3135
  return [
3124
- Q("div", Er, [
3125
- Q("div", _r, [
3136
+ Q("div", $r, [
3137
+ Q("div", wr, [
3126
3138
  M(l.$slots, "f-header", {}, () => [
3127
- Q("div", null, Ce(e.value.dialog.title), 1)
3139
+ Q("div", null, De(e.value.dialog.title), 1)
3128
3140
  ], !0)
3129
3141
  ]),
3130
- ((se = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : se.fullScreen) === !1 ? (p(), I("div", {
3142
+ ((se = (z = e.value) == null ? void 0 : z.dialog) == null ? void 0 : se.fullScreen) === !1 ? (p(), I("div", {
3131
3143
  key: 0,
3132
3144
  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),
3145
+ onClick: d[0] || (d[0] = (S) => e.value.dialog.fullScreen = !0),
3134
3146
  class: "max"
3135
3147
  }, [
3136
3148
  K(m, null, {
3137
3149
  default: D(() => {
3138
- var T, ue, Ae;
3150
+ var S, ue, Ae;
3139
3151
  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)))
3152
+ (p(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.max) == null ? void 0 : Ae.icon)))
3141
3153
  ];
3142
3154
  }),
3143
3155
  _: 1
3144
3156
  })
3145
- ], 4)) : ye("", !0),
3146
- ((je = (Ne = e.value) == null ? void 0 : Ne.dialog) == null ? void 0 : je.fullScreen) === !0 ? (p(), I("div", {
3157
+ ], 4)) : ge("", !0),
3158
+ ((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (p(), I("div", {
3147
3159
  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),
3160
+ style: qe((h = (Pe = (ze = e.value) == null ? void 0 : ze.dialog) == null ? void 0 : Pe.min) == null ? void 0 : h.style),
3161
+ onClick: d[1] || (d[1] = (S) => e.value.dialog.fullScreen = !1),
3150
3162
  class: "max"
3151
3163
  }, [
3152
3164
  K(m, null, {
3153
3165
  default: D(() => {
3154
- var T, ue, Ae;
3166
+ var S, ue, Ae;
3155
3167
  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)))
3168
+ (p(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.min) == null ? void 0 : Ae.icon)))
3157
3169
  ];
3158
3170
  }),
3159
3171
  _: 1
3160
3172
  })
3161
- ], 4)) : ye("", !0)
3173
+ ], 4)) : ge("", !0)
3162
3174
  ])
3163
3175
  ];
3164
3176
  }),
3165
3177
  default: D(() => [
3166
- Q("div", kr, [
3178
+ Q("div", Er, [
3167
3179
  M(l.$slots, "table-dialog-form", { model: e.value }, () => [
3168
- K(Et, {
3180
+ K(_t, {
3169
3181
  modelValue: e.value,
3170
- "onUpdate:modelValue": d[2] || (d[2] = (H) => e.value = H),
3182
+ "onUpdate:modelValue": d[2] || (d[2] = (z) => e.value = z),
3171
3183
  onSubmit: C,
3172
3184
  onReset: k
3173
- }, he({ _: 2 }, [
3174
- j(l.$slots, (H, se, x) => ({
3185
+ }, ye({ _: 2 }, [
3186
+ N(l.$slots, (z, se, x) => ({
3175
3187
  name: se,
3176
3188
  fn: D((X) => [
3177
3189
  M(l.$slots, se, { model: X }, void 0, !0)
@@ -3183,32 +3195,32 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3183
3195
  ]),
3184
3196
  _: 3
3185
3197
  }, 16, ["modelValue", "fullscreen", "width"])
3186
- ])) : ye("", !0),
3187
- e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", Cr, [
3188
- K(B, O({
3198
+ ])) : ge("", !0),
3199
+ e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", _r, [
3200
+ K(A, O({
3189
3201
  ref_key: "drawerRef",
3190
3202
  ref: F,
3191
3203
  modelValue: i.value,
3192
- "onUpdate:modelValue": d[5] || (d[5] = (H) => i.value = H)
3193
- }, P(Ue)(e.value.dialog, (H) => !["width"].includes(H))), {
3204
+ "onUpdate:modelValue": d[5] || (d[5] = (z) => i.value = z)
3205
+ }, P(Ue)(e.value.dialog, (z) => !["width"].includes(z))), {
3194
3206
  header: D(() => [
3195
- Q("div", Dr, [
3196
- Q("div", Tr, [
3207
+ Q("div", kr, [
3208
+ Q("div", Cr, [
3197
3209
  M(l.$slots, "f-header", {}, () => [
3198
- Q("div", null, Ce(e.value.dialog.title), 1)
3210
+ Q("div", null, De(e.value.dialog.title), 1)
3199
3211
  ], !0)
3200
3212
  ])
3201
3213
  ])
3202
3214
  ]),
3203
3215
  default: D(() => [
3204
3216
  M(l.$slots, "table-drawer-form", { model: e.value }, () => [
3205
- K(Et, {
3217
+ K(_t, {
3206
3218
  modelValue: e.value,
3207
- "onUpdate:modelValue": d[4] || (d[4] = (H) => e.value = H),
3219
+ "onUpdate:modelValue": d[4] || (d[4] = (z) => e.value = z),
3208
3220
  onSubmit: C,
3209
3221
  onReset: k
3210
- }, he({ _: 2 }, [
3211
- j(l.$slots, (H, se, x) => ({
3222
+ }, ye({ _: 2 }, [
3223
+ N(l.$slots, (z, se, x) => ({
3212
3224
  name: se,
3213
3225
  fn: D((X) => [
3214
3226
  M(l.$slots, se, { model: X }, void 0, !0)
@@ -3219,25 +3231,25 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3219
3231
  ]),
3220
3232
  _: 3
3221
3233
  }, 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, [
3234
+ ])) : ge("", !0),
3235
+ Q("div", Dr, [
3236
+ ((et = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : et.hidden) != !0 ? (p(), I("div", Sr, [
3225
3237
  M(l.$slots, "query", {}, () => [
3226
- K(Ll, {
3238
+ K(Rl, {
3227
3239
  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),
3240
+ "onUpdate:modelValue": d[6] || (d[6] = (z) => e.value = z),
3241
+ info: E.value,
3242
+ "onUpdate:info": d[7] || (d[7] = (z) => E.value = z),
3231
3243
  onQuery: Oe,
3232
- onReset: le
3233
- }, he({
3244
+ onReset: re
3245
+ }, ye({
3234
3246
  "q-btns": D(() => [
3235
3247
  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, [
3248
+ (p(!0), I(J, null, N(y(["add", "download", "setting"], e.value), (z, se) => (p(), I(J, null, [
3249
+ se == "default" ? (p(!0), I(J, { key: 0 }, N(z, (x) => (p(), I(J, null, [
3238
3250
  M(l.$slots, x.name + "-left", {}, void 0, !0),
3239
3251
  (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({
3252
+ x.label ? (p(), B(P(Be), O({
3241
3253
  key: 0,
3242
3254
  title: x.label,
3243
3255
  ref_for: !0
@@ -3245,24 +3257,24 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3245
3257
  onClick: (X) => x.func(e.value, c.value)
3246
3258
  }), {
3247
3259
  default: D(() => [
3248
- Ie(Ce(x.label), 1)
3260
+ Ie(De(x.label), 1)
3249
3261
  ]),
3250
3262
  _: 2
3251
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3263
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3252
3264
  key: 1,
3253
3265
  title: x.label,
3254
3266
  ref_for: !0
3255
3267
  }, x.attr, {
3256
3268
  onClick: (X) => x.func(e.value, c.value)
3257
3269
  }), null, 16, ["title", "onClick"]))
3258
- ], !0) : ye("", !0),
3270
+ ], !0) : ge("", !0),
3259
3271
  M(l.$slots, x.name + "-right", {}, void 0, !0)
3260
- ], 64))), 256)) : (p(), A(R, { key: 1 }, {
3272
+ ], 64))), 256)) : (p(), B(Y, { key: 1 }, {
3261
3273
  default: D(() => [
3262
- (p(!0), I(J, null, j(H, (x) => (p(), I(J, null, [
3274
+ (p(!0), I(J, null, N(z, (x) => (p(), I(J, null, [
3263
3275
  M(l.$slots, x.name + "-left", {}, void 0, !0),
3264
3276
  (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({
3277
+ x.label ? (p(), B(P(Be), O({
3266
3278
  key: 0,
3267
3279
  title: x.label,
3268
3280
  ref_for: !0
@@ -3270,17 +3282,17 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3270
3282
  onClick: (X) => x.func(e.value, c.value)
3271
3283
  }), {
3272
3284
  default: D(() => [
3273
- Ie(Ce(x.label), 1)
3285
+ Ie(De(x.label), 1)
3274
3286
  ]),
3275
3287
  _: 2
3276
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3288
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3277
3289
  key: 1,
3278
3290
  title: x.label,
3279
3291
  ref_for: !0
3280
3292
  }, x.attr, {
3281
3293
  onClick: (X) => x.func(e.value, c.value)
3282
3294
  }), null, 16, ["title", "onClick"]))
3283
- ], !0) : ye("", !0),
3295
+ ], !0) : ge("", !0),
3284
3296
  M(l.$slots, x.name + "-right", {}, void 0, !0)
3285
3297
  ], 64))), 256))
3286
3298
  ]),
@@ -3291,7 +3303,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3291
3303
  ]),
3292
3304
  _: 2
3293
3305
  }, [
3294
- j(l.$slots, (H, se, x) => ({
3306
+ N(l.$slots, (z, se, x) => ({
3295
3307
  name: se,
3296
3308
  fn: D((X) => [
3297
3309
  M(l.$slots, se, { model: e.value }, void 0, !0)
@@ -3299,19 +3311,19 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3299
3311
  }))
3300
3312
  ]), 1032, ["modelValue", "info"])
3301
3313
  ], !0)
3302
- ])) : ye("", !0),
3303
- Q("div", Fr, [
3314
+ ])) : ge("", !0),
3315
+ Q("div", Mr, [
3304
3316
  K(Re, O({
3305
3317
  ...l.$attrs,
3306
3318
  ...P(Ue)(
3307
3319
  e.value.table,
3308
- (H) => !["dblclickType", "page"].includes(H)
3320
+ (z) => !["dblclickType", "page"].includes(z)
3309
3321
  )
3310
3322
  }, {
3311
- "summary-method": (H) => e.value.table["summary-method"](H, { fields: N.value, sums: V.value }),
3312
- onSortChange: d[8] || (d[8] = (H) => {
3323
+ "summary-method": (z) => e.value.table["summary-method"](z, { fields: j.value, sums: V.value }),
3324
+ onSortChange: d[8] || (d[8] = (z) => {
3313
3325
  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());
3326
+ 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
3327
  })
3316
3328
  }), {
3317
3329
  append: D(() => [
@@ -3322,21 +3334,21 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3322
3334
  ]),
3323
3335
  default: D(() => [
3324
3336
  M(l.$slots, "default", {}, () => [
3325
- (p(!0), I(J, null, j(re.value, (H, se) => (p(), A(Fe, O({
3337
+ (p(!0), I(J, null, N(ae.value, (z, se) => (p(), B(Fe, O({
3326
3338
  prop: se,
3327
3339
  key: se,
3328
3340
  ref_for: !0
3329
3341
  }, {
3330
3342
  ...e.value.tableColumns,
3331
- ...P(Ue)(H, (x) => u.includes(x))
3332
- }), he({
3343
+ ...P(Ue)(z, (x) => s.includes(x))
3344
+ }), ye({
3333
3345
  header: D(({ column: x, $index: X }) => [
3334
3346
  se == "control" ? M(l.$slots, `${se}-header`, {
3335
3347
  key: 0,
3336
3348
  column: x,
3337
3349
  index: X
3338
3350
  }, () => [
3339
- Q("span", null, Ce(x.label), 1)
3351
+ Q("span", null, De(x.label), 1)
3340
3352
  ], !0) : M(l.$slots, `${se}-header`, {
3341
3353
  key: 1,
3342
3354
  column: x,
@@ -3348,7 +3360,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3348
3360
  ]),
3349
3361
  _: 2
3350
3362
  }, [
3351
- H.type === "expand" ? {
3363
+ z.type === "expand" ? {
3352
3364
  name: "default",
3353
3365
  fn: D(({ row: x, column: X, $index: ee }) => [
3354
3366
  M(l.$slots, `${se}`, {
@@ -3358,14 +3370,14 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3358
3370
  }, void 0, !0)
3359
3371
  ]),
3360
3372
  key: "0"
3361
- } : H.type == "control" ? {
3373
+ } : z.type == "control" ? {
3362
3374
  name: "default",
3363
3375
  fn: D(({ row: x, column: X, $index: ee }) => {
3364
- var Ne, je;
3376
+ var je, Ne;
3365
3377
  return [
3366
3378
  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)
3379
+ class: Bt(["control", (je = e.value.control) == null ? void 0 : je.class]),
3380
+ style: qe((Ne = e.value.control) == null ? void 0 : Ne.style)
3369
3381
  }, [
3370
3382
  M(l.$slots, "control", {}, () => [
3371
3383
  M(l.$slots, "control-left", {
@@ -3373,103 +3385,103 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3373
3385
  column: X,
3374
3386
  index: ee
3375
3387
  }, void 0, !0),
3376
- (p(!0), I(J, null, j(y(["view", "edit", "delete", "save"], x, X, ee, e.value), (He, Pe) => {
3388
+ (p(!0), I(J, null, N(y(["view", "edit", "delete", "save"], x, X, ee, e.value), (ze, Pe) => {
3377
3389
  var h;
3378
3390
  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", {
3391
+ Pe == "default" ? (p(!0), I(J, { key: 0 }, N(ze, (S) => (p(), I(J, null, [
3392
+ M(l.$slots, S.name + "-left", {
3381
3393
  row: x,
3382
3394
  column: X,
3383
3395
  index: ee
3384
3396
  }, void 0, !0),
3385
- T.attr.auth() ? M(l.$slots, T.name, {
3397
+ S.attr.auth() ? M(l.$slots, S.name, {
3386
3398
  key: 0,
3387
3399
  row: x,
3388
3400
  column: X,
3389
3401
  index: ee
3390
3402
  }, () => [
3391
- T.label ? (p(), A(P(Be), O({
3403
+ S.label ? (p(), B(P(Be), O({
3392
3404
  key: 0,
3393
- title: T.label,
3405
+ title: S.label,
3394
3406
  ref_for: !0
3395
- }, T.attr, {
3396
- onClick: (ue) => T.func(x, X, ee, e.value)
3407
+ }, S.attr, {
3408
+ onClick: (ue) => S.func(x, X, ee, e.value)
3397
3409
  }), {
3398
3410
  default: D(() => [
3399
- Ie(Ce(T.label), 1)
3411
+ Ie(De(S.label), 1)
3400
3412
  ]),
3401
3413
  _: 2
3402
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3414
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3403
3415
  key: 1,
3404
- title: T.label,
3416
+ title: S.label,
3405
3417
  ref_for: !0
3406
- }, T.attr, {
3407
- onClick: (ue) => T.func(x, X, ee, e.value)
3418
+ }, S.attr, {
3419
+ onClick: (ue) => S.func(x, X, ee, e.value)
3408
3420
  }), null, 16, ["title", "onClick"]))
3409
- ], !0) : ye("", !0),
3410
- M(l.$slots, T.name + "-right", {
3421
+ ], !0) : ge("", !0),
3422
+ M(l.$slots, S.name + "-right", {
3411
3423
  row: x,
3412
3424
  column: X,
3413
3425
  index: ee
3414
3426
  }, 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({
3427
+ ], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((h = de(x, X, ee, e.value)) != null && h.auth()) ? (p(), B(_e, O({
3416
3428
  key: 1,
3417
3429
  ref_for: !0
3418
3430
  }, de(x, X, ee, e.value)), {
3419
3431
  dropdown: D(() => [
3420
3432
  K(fe, null, {
3421
3433
  default: D(() => [
3422
- (p(!0), I(J, null, j(He, (T) => {
3434
+ (p(!0), I(J, null, N(ze, (S) => {
3423
3435
  var ue, Ae, lt;
3424
3436
  return p(), I(J, null, [
3425
- l.$slots[T.name + "-left"] ? M(l.$slots, T.name + "-left", {
3437
+ l.$slots[S.name + "-left"] ? M(l.$slots, S.name + "-left", {
3426
3438
  key: 0,
3427
3439
  row: x,
3428
3440
  column: X,
3429
3441
  index: ee
3430
- }, void 0, !0) : ye("", !0),
3431
- T.attr.auth() ? (p(), A(W, O({
3442
+ }, void 0, !0) : ge("", !0),
3443
+ S.attr.auth() ? (p(), B(W, O({
3432
3444
  key: 1,
3433
3445
  ref_for: !0
3434
3446
  }, {
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
3447
+ command: (ue = S == null ? void 0 : S.attr) == null ? void 0 : ue.command,
3448
+ divided: (Ae = S == null ? void 0 : S.attr) == null ? void 0 : Ae.divided,
3449
+ disabled: (lt = S == null ? void 0 : S.attr) == null ? void 0 : lt.disabled
3438
3450
  }), {
3439
3451
  default: D(() => [
3440
- M(l.$slots, T.name, {
3452
+ M(l.$slots, S.name, {
3441
3453
  row: x,
3442
3454
  column: X,
3443
3455
  index: ee
3444
3456
  }, () => [
3445
- T.label ? (p(), A(P(Be), O({
3457
+ S.label ? (p(), B(P(Be), O({
3446
3458
  key: 0,
3447
- title: T.label,
3459
+ title: S.label,
3448
3460
  ref_for: !0
3449
- }, T.attr, {
3450
- onClick: (rt) => T.func(x, X, ee, e.value)
3461
+ }, S.attr, {
3462
+ onClick: (rt) => S.func(x, X, ee, e.value)
3451
3463
  }), {
3452
3464
  default: D(() => [
3453
- Ie(Ce(T.label), 1)
3465
+ Ie(De(S.label), 1)
3454
3466
  ]),
3455
3467
  _: 2
3456
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3468
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3457
3469
  key: 1,
3458
- title: T.label,
3470
+ title: S.label,
3459
3471
  ref_for: !0
3460
- }, T.attr, {
3461
- onClick: (rt) => T.func(x, X, ee, e.value)
3472
+ }, S.attr, {
3473
+ onClick: (rt) => S.func(x, X, ee, e.value)
3462
3474
  }), null, 16, ["title", "onClick"]))
3463
3475
  ], !0)
3464
3476
  ]),
3465
3477
  _: 2
3466
- }, 1040)) : ye("", !0),
3467
- l.$slots[T.name + "-right"] ? M(l.$slots, T.name + "-right", {
3478
+ }, 1040)) : ge("", !0),
3479
+ l.$slots[S.name + "-right"] ? M(l.$slots, S.name + "-right", {
3468
3480
  key: 2,
3469
3481
  row: x,
3470
3482
  column: X,
3471
3483
  index: ee
3472
- }, void 0, !0) : ye("", !0)
3484
+ }, void 0, !0) : ge("", !0)
3473
3485
  ], 64);
3474
3486
  }), 256))
3475
3487
  ]),
@@ -3477,46 +3489,46 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3477
3489
  }, 1024)
3478
3490
  ]),
3479
3491
  default: D(() => {
3480
- var T;
3492
+ var S;
3481
3493
  return [
3482
- Ie(Ce((T = de(x, X, ee, e.value)) == null ? void 0 : T.label) + " ", 1)
3494
+ Ie(De((S = de(x, X, ee, e.value)) == null ? void 0 : S.label) + " ", 1)
3483
3495
  ];
3484
3496
  }),
3485
3497
  _: 2
3486
- }, 1040)) : (p(), A(R, { key: 2 }, {
3498
+ }, 1040)) : (p(), B(Y, { key: 2 }, {
3487
3499
  default: D(() => [
3488
- (p(!0), I(J, null, j(He, (T) => (p(), I(J, null, [
3489
- M(l.$slots, T.name + "-left", {
3500
+ (p(!0), I(J, null, N(ze, (S) => (p(), I(J, null, [
3501
+ M(l.$slots, S.name + "-left", {
3490
3502
  row: x,
3491
3503
  column: X,
3492
3504
  index: ee
3493
3505
  }, void 0, !0),
3494
- T.attr.auth() ? M(l.$slots, T.name, {
3506
+ S.attr.auth() ? M(l.$slots, S.name, {
3495
3507
  key: 0,
3496
3508
  row: x,
3497
3509
  column: X,
3498
3510
  index: ee
3499
3511
  }, () => [
3500
- T.label ? (p(), A(P(Be), O({
3512
+ S.label ? (p(), B(P(Be), O({
3501
3513
  key: 0,
3502
- title: T.label,
3514
+ title: S.label,
3503
3515
  ref_for: !0
3504
- }, T.attr, {
3505
- onClick: (ue) => T.func(x, X, ee, e.value)
3516
+ }, S.attr, {
3517
+ onClick: (ue) => S.func(x, X, ee, e.value)
3506
3518
  }), {
3507
3519
  default: D(() => [
3508
- Ie(Ce(T.label), 1)
3520
+ Ie(De(S.label), 1)
3509
3521
  ]),
3510
3522
  _: 2
3511
- }, 1040, ["title", "onClick"])) : (p(), A(P(Be), O({
3523
+ }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3512
3524
  key: 1,
3513
- title: T.label,
3525
+ title: S.label,
3514
3526
  ref_for: !0
3515
- }, T.attr, {
3516
- onClick: (ue) => T.func(x, X, ee, e.value)
3527
+ }, S.attr, {
3528
+ onClick: (ue) => S.func(x, X, ee, e.value)
3517
3529
  }), null, 16, ["title", "onClick"]))
3518
- ], !0) : ye("", !0),
3519
- M(l.$slots, T.name + "-right", {
3530
+ ], !0) : ge("", !0),
3531
+ M(l.$slots, S.name + "-right", {
3520
3532
  row: x,
3521
3533
  column: X,
3522
3534
  index: ee
@@ -3537,35 +3549,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3537
3549
  ];
3538
3550
  }),
3539
3551
  key: "1"
3540
- } : H.type != "selection" && H.type != "index" ? {
3552
+ } : z.type != "selection" && z.type != "index" ? {
3541
3553
  name: "default",
3542
3554
  fn: D(({ row: x, column: X, $index: ee }) => [
3543
- $e(H, x, X, ee) && ee != -1 ? M(l.$slots, `${se}`, {
3555
+ we(z, x, X, ee) && ee != -1 ? M(l.$slots, `${se}`, {
3544
3556
  key: 0,
3545
3557
  row: x,
3546
3558
  column: X,
3547
3559
  index: ee
3548
3560
  }, () => {
3549
- var Ne;
3561
+ var je;
3550
3562
  return [
3551
- (p(), A(gt, {
3563
+ (p(), B(bt, {
3552
3564
  modelValue: x[se],
3553
- "onUpdate:modelValue": (je) => x[se] = je,
3554
- item: H == null ? void 0 : H.table(x, X, ee),
3565
+ "onUpdate:modelValue": (Ne) => x[se] = Ne,
3566
+ item: z == null ? void 0 : z.table(x, X, ee),
3555
3567
  ctrlKey: se,
3556
3568
  key: `${se}-${ee} -${L.value}`,
3557
- ctrlType: (Ne = H.table(x, X, ee)) != null && Ne.type ? H.table(x, X, ee).type : H.type,
3569
+ ctrlType: (je = z.table(x, X, ee)) != null && je.type ? z.table(x, X, ee).type : z.type,
3558
3570
  model: e.value,
3559
3571
  class: "g-ctrl-container",
3560
3572
  t: "t",
3561
3573
  formInfo: x
3562
- }, he({ _: 2 }, [
3563
- j(l.$slots, (je, He) => ({
3564
- name: He,
3574
+ }, ye({ _: 2 }, [
3575
+ N(l.$slots, (Ne, ze) => ({
3576
+ name: ze,
3565
3577
  fn: D((Pe) => [
3566
- M(l.$slots, He, {
3578
+ M(l.$slots, ze, {
3567
3579
  data: Pe,
3568
- item: H,
3580
+ item: z,
3569
3581
  model: e.value
3570
3582
  }, void 0, !0)
3571
3583
  ])
@@ -3579,12 +3591,12 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3579
3591
  index: ee
3580
3592
  }, () => [
3581
3593
  Q("div", {
3582
- style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, H == null ? void 0 : H.style]),
3594
+ style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, z == null ? void 0 : z.style]),
3583
3595
  innerHTML: ne(
3584
- H,
3596
+ z,
3585
3597
  X.formatter(x, X, x[se], ee)
3586
3598
  )
3587
- }, null, 12, xr)
3599
+ }, null, 12, Tr)
3588
3600
  ], !0)
3589
3601
  ]),
3590
3602
  key: "2"
@@ -3594,12 +3606,12 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3594
3606
  ]),
3595
3607
  _: 3
3596
3608
  }, 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 }, () => [
3609
+ (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
3610
  K(Le, O({
3599
3611
  "page-size": e.value.table.page.pageSize,
3600
- "onUpdate:pageSize": d[9] || (d[9] = (H) => e.value.table.page.pageSize = H),
3612
+ "onUpdate:pageSize": d[9] || (d[9] = (z) => e.value.table.page.pageSize = z),
3601
3613
  "current-page": e.value.table.page.currentPage,
3602
- "onUpdate:currentPage": d[10] || (d[10] = (H) => e.value.table.page.currentPage = H)
3614
+ "onUpdate:currentPage": d[10] || (d[10] = (z) => e.value.table.page.currentPage = z)
3603
3615
  }, e.value.table.page), {
3604
3616
  default: D(() => [
3605
3617
  M(l.$slots, "table-page", {}, void 0, !0)
@@ -3612,7 +3624,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3612
3624
  ], 64);
3613
3625
  };
3614
3626
  }
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({
3627
+ }), 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
3628
  name: "g-tree-table",
3617
3629
  inheritAttrs: !1
3618
3630
  }, {
@@ -3622,38 +3634,38 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3622
3634
  modelModifiers: {}
3623
3635
  },
3624
3636
  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) => {
3637
+ setup(a, { emit: n }) {
3638
+ var _, V, j, R;
3639
+ const r = n, t = Qe(a, "modelValue"), e = Tt(), o = oe(
3640
+ 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"
3641
+ ), 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
3642
  var ie, ce;
3631
3643
  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);
3644
+ const me = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
3645
+ return te[me].includes(L);
3646
+ }, s = (L, te) => {
3647
+ r("load", v.value, L, te);
3636
3648
  }, c = (L) => {
3637
3649
  v.value = L, t.value.table.load();
3638
3650
  };
3639
- return sl(F, (L) => {
3651
+ return ul(F, (L) => {
3640
3652
  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, [
3653
+ }), (L, te) => {
3654
+ const me = H("el-input"), ie = H("el-tree"), ce = H("g-table");
3655
+ return p(), I("div", Vr, [
3644
3656
  Q("div", {
3645
3657
  class: "g-tree-left",
3646
3658
  style: qe({ width: o.value })
3647
3659
  }, [
3648
- _.value ? (p(), A(ve, {
3660
+ E.value ? (p(), B(me, {
3649
3661
  key: 0,
3650
3662
  modelValue: F.value,
3651
- "onUpdate:modelValue": oe[0] || (oe[0] = (de) => F.value = de),
3663
+ "onUpdate:modelValue": te[0] || (te[0] = (de) => F.value = de),
3652
3664
  style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
3653
3665
  placeholder: "输入节点查询",
3654
3666
  clearable: ""
3655
- }, null, 8, ["modelValue"])) : ye("", !0),
3656
- Q("div", Br, [
3667
+ }, null, 8, ["modelValue"])) : ge("", !0),
3668
+ Q("div", qr, [
3657
3669
  K(ie, O({
3658
3670
  style: { width: o.value },
3659
3671
  "filter-node-method": i,
@@ -3661,35 +3673,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3661
3673
  ref_key: "treeRef",
3662
3674
  ref: f,
3663
3675
  onNodeClick: c
3664
- }, L.$attrs.tree), he({
3665
- default: D(({ node: de, data: ke }) => [
3676
+ }, L.$attrs.tree), ye({
3677
+ default: D(({ node: de, data: Ce }) => [
3666
3678
  M(L.$slots, "tree", {
3667
3679
  node: de,
3668
- data: ke
3680
+ data: Ce
3669
3681
  }, () => [
3670
- Q("span", null, Ce(de.label), 1)
3682
+ Q("span", null, De(de.label), 1)
3671
3683
  ], !0)
3672
3684
  ]),
3673
3685
  _: 2
3674
3686
  }, [
3675
- j(L.$slots, (de, ke, Se) => ({
3676
- name: ke,
3677
- fn: D((te) => [
3678
- M(L.$slots, ke, { data: te }, void 0, !0)
3687
+ N(L.$slots, (de, Ce, Te) => ({
3688
+ name: Ce,
3689
+ fn: D((le) => [
3690
+ M(L.$slots, Ce, { data: le }, void 0, !0)
3679
3691
  ])
3680
3692
  }))
3681
3693
  ]), 1040, ["style"])
3682
3694
  ])
3683
3695
  ], 4),
3684
- Q("div", Or, [
3696
+ Q("div", Ar, [
3685
3697
  K(ce, O({
3686
3698
  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)
3699
+ "onUpdate:modelValue": te[1] || (te[1] = (de) => t.value = de)
3700
+ }, L.$attrs, { onLoad: s }), ye({ _: 2 }, [
3701
+ N(L.$slots, (de, Ce, Te) => ({
3702
+ name: Ce,
3703
+ fn: D((le) => [
3704
+ M(L.$slots, Ce, { data: le }, void 0, !0)
3693
3705
  ])
3694
3706
  }))
3695
3707
  ]), 1040, ["modelValue"])
@@ -3697,14 +3709,14 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3697
3709
  ]);
3698
3710
  };
3699
3711
  }
3700
- }), Ur = /* @__PURE__ */ Ze(Ir, [["__scopeId", "data-v-c888e4fc"]]), Yr = {
3712
+ }), Or = /* @__PURE__ */ Ze(Br, [["__scopeId", "data-v-c888e4fc"]]), Ir = {
3701
3713
  key: 0,
3702
3714
  class: "op-group"
3703
- }, Rr = {
3715
+ }, Ur = {
3704
3716
  key: 1,
3705
3717
  class: "op-items",
3706
3718
  style: { width: "100%", height: "100%" }
3707
- }, Lr = ["title"], qt = "100px", zr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3719
+ }, Yr = ["title"], Vt = "100px", Rr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3708
3720
  __name: "g-select-option",
3709
3721
  props: {
3710
3722
  columns: {
@@ -3725,54 +3737,54 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
3725
3737
  }
3726
3738
  },
3727
3739
  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" }),
3740
+ const n = a;
3741
+ return (r, t) => n.title ? (p(), I("div", Ir, [
3742
+ (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3743
+ 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
3744
  key: e.key
3733
3745
  }, [
3734
3746
  M(r.$slots, `${a.t}-title-${e.key}`, { col: e }, () => [
3735
- Ie(Ce(e.label), 1)
3747
+ Ie(De(e.label), 1)
3736
3748
  ], !0)
3737
3749
  ], 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 }),
3750
+ ])) : (p(), I("div", Ur, [
3751
+ (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3752
+ 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
3753
  key: e.key,
3742
3754
  title: a.data[e.key]
3743
3755
  }, [
3744
3756
  M(r.$slots, `${a.t}-option-${e.key}`, { col: e }, () => [
3745
- Ie(Ce(a.data[e.key] ?? "-"), 1)
3757
+ Ie(De(a.data[e.key] ?? "-"), 1)
3746
3758
  ], !0)
3747
- ], 12, Lr))), 128))
3759
+ ], 12, Yr))), 128))
3748
3760
  ]));
3749
3761
  }
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) => {
3762
+ }), Lr = /* @__PURE__ */ Ze(Rr, [["__scopeId", "data-v-c0ac6b77"]]), Hr = Object.freeze({}), Wt = [xr, _t, Or, Lr];
3763
+ let Ct = {};
3764
+ const ea = {
3765
+ install: (a, n = {}) => {
3766
+ Ct = Object.freeze({ ...Hr, ...n }), Wt.forEach((r) => {
3755
3767
  a.component(r.name, r);
3756
- }), a.provide("options", kt), a.config.globalProperties.$openModal = Ct;
3768
+ }), a.provide("options", Ct), a.config.globalProperties.$openModal = Dt;
3757
3769
  }
3758
- }, Nr = (a) => ({ dialog: Jt, drawer: Kt })[a] || null, Ct = (a = {}, s = "dialog") => {
3770
+ }, zr = (a) => ({ dialog: Zt, drawer: Jt })[a] || null, Dt = (a = {}, n = "dialog") => {
3759
3771
  if (typeof document > "u") return () => {
3760
3772
  };
3761
3773
  const r = document.createElement("div");
3762
3774
  let t = () => {
3763
3775
  };
3764
- const e = Nr(s);
3776
+ const e = zr(n);
3765
3777
  if (!e) return () => {
3766
3778
  };
3767
- const o = ae(!0), _ = il({
3779
+ const o = oe(!0), E = sl({
3768
3780
  setup() {
3769
3781
  return t = () => {
3770
3782
  o.value = !1, setTimeout(() => {
3771
- _.unmount(), r.remove();
3783
+ E.unmount(), r.remove();
3772
3784
  }, 300);
3773
3785
  }, () => {
3774
3786
  var v, F, f;
3775
- return _e(e, {
3787
+ return ke(e, {
3776
3788
  modelValue: o.value,
3777
3789
  "onUpdate:modelValue": (i) => o.value = i,
3778
3790
  appendToBody: !0,
@@ -3790,14 +3802,14 @@ const la = {
3790
3802
  };
3791
3803
  },
3792
3804
  mounted: () => {
3793
- yt();
3805
+ gt();
3794
3806
  }
3795
3807
  });
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;
3808
+ return Wt.forEach((v) => {
3809
+ E.component(v.name, v);
3810
+ }), E.provide("options", Ct), E.use(Qt, { locale: wl }), document.body.appendChild(r), E.mount(r), t;
3799
3811
  };
3800
- function Xt(a, s = window.innerWidth) {
3812
+ function Gt(a, n = window.innerWidth) {
3801
3813
  if (typeof a == "number")
3802
3814
  return a;
3803
3815
  if (a.endsWith("px"))
@@ -3808,9 +3820,9 @@ function Xt(a, s = window.innerWidth) {
3808
3820
  if (a.endsWith("vw"))
3809
3821
  return t * parseFloat(a) / 100;
3810
3822
  if (a.endsWith("%")) {
3811
- if (typeof s != "number")
3823
+ if (typeof n != "number")
3812
3824
  throw new Error("Reference size is required to convert % to px");
3813
- return s * parseFloat(a) / 100;
3825
+ return n * parseFloat(a) / 100;
3814
3826
  }
3815
3827
  if (a.startsWith("calc(") && a.endsWith(")")) {
3816
3828
  let o = function(v) {
@@ -3819,60 +3831,60 @@ function Xt(a, s = window.innerWidth) {
3819
3831
  throw new Error("Invalid calc expression");
3820
3832
  };
3821
3833
  const e = a.slice(5, -1).trim();
3822
- return o(e.replace(/([0-9.]+)([a-z%]+)/g, (v, F, f) => Xt(F + f, s)));
3834
+ return o(e.replace(/([0-9.]+)([a-z%]+)/g, (v, F, f) => Gt(F + f, n)));
3823
3835
  }
3824
3836
  throw new Error("Unsupported unit in value: " + a);
3825
3837
  }
3826
3838
  const Ve = (...a) => {
3827
- const s = {}, r = (t, e) => (Object.keys(e).forEach((o) => {
3839
+ const n = {}, r = (t, e) => (Object.keys(e).forEach((o) => {
3828
3840
  t[o] = typeof e[o] == "object" && !Array.isArray(e[o]) ? r(t[o] || {}, e[o]) : e[o];
3829
3841
  }), t);
3830
- return a.forEach((t = {}) => r(s, t)), s;
3842
+ return a.forEach((t = {}) => r(n, t)), n;
3831
3843
  };
3832
- function Ue(a, s = (r, t) => s(r, t)) {
3844
+ function Ue(a, n = (r, t) => n(r, t)) {
3833
3845
  const r = {};
3834
3846
  for (const t in a)
3835
- a.hasOwnProperty(t) && s(t, a[t]) && (r[t] = a[t]);
3847
+ a.hasOwnProperty(t) && n(t, a[t]) && (r[t] = a[t]);
3836
3848
  return r;
3837
3849
  }
3838
- function jr(a, s, r = "value", t = "label", e = "children") {
3850
+ function Pr(a, n, r = "value", t = "label", e = "children") {
3839
3851
  for (const o of a) {
3840
- if (o[r] === s)
3852
+ if (o[r] === n)
3841
3853
  return o[t];
3842
3854
  if (o[e] && o[e].length > 0) {
3843
- const _ = jr(o[e], s, r, t, e);
3844
- if (_)
3845
- return _;
3855
+ const E = Pr(o[e], n, r, t, e);
3856
+ if (E)
3857
+ return E;
3846
3858
  }
3847
3859
  }
3848
3860
  return null;
3849
3861
  }
3850
- function Dt(a) {
3862
+ function St(a) {
3851
3863
  if (!a || isNaN(a)) return "零";
3852
- const s = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3864
+ const n = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3853
3865
  ["元", "万", "亿"],
3854
3866
  ["", "拾", "佰", "仟"]
3855
3867
  ], e = a < 0 ? "欠" : "";
3856
3868
  a = Math.abs(a);
3857
3869
  let o = "";
3858
- for (let _ = 0; _ < s.length; _++)
3859
- o += (r[Math.floor(a * 10 * Math.pow(10, _)) % 10] + s[_]).replace(/零./, "");
3870
+ for (let E = 0; E < n.length; E++)
3871
+ o += (r[Math.floor(a * 10 * Math.pow(10, E)) % 10] + n[E]).replace(/零./, "");
3860
3872
  o = o || "整", a = Math.floor(a);
3861
- for (let _ = 0; _ < t[0].length && a > 0; _++) {
3873
+ for (let E = 0; E < t[0].length && a > 0; E++) {
3862
3874
  let v = "";
3863
3875
  for (let F = 0; F < t[1].length && a > 0; F++)
3864
3876
  v = r[a % 10] + t[1][F] + v, a = Math.floor(a / 10);
3865
- o = v.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][_] + o;
3877
+ o = v.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][E] + o;
3866
3878
  }
3867
3879
  return e + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3868
3880
  }
3869
- function Wr(a) {
3881
+ function jr(a) {
3870
3882
  if (typeof a != "number" || isNaN(a) || !isFinite(a))
3871
3883
  return "0.00";
3872
- const s = a.toFixed(2), [r, t] = s.split(".");
3884
+ const n = a.toFixed(2), [r, t] = n.split(".");
3873
3885
  return `${r.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${t}`;
3874
3886
  }
3875
- const De = {
3887
+ const Se = {
3876
3888
  RADIO: "radio",
3877
3889
  RADIOBUTTON: "radio-button",
3878
3890
  CHECKBOX: "checkbox",
@@ -3900,15 +3912,15 @@ const De = {
3900
3912
  PASSWORD: "password",
3901
3913
  TEXTAREA: "textarea",
3902
3914
  TEL: "tel"
3903
- }, yt = () => {
3915
+ }, gt = () => {
3904
3916
  at(() => {
3905
3917
  const a = document.querySelector(".el-dialog");
3906
3918
  if (!a || a.querySelector(".dialog-resize-handle"))
3907
3919
  return;
3908
- const s = Gr();
3909
- a.appendChild(s), Xr(a), Qr(a, s);
3920
+ const n = Nr();
3921
+ a.appendChild(n), Wr(a), Gr(a, n);
3910
3922
  });
3911
- }, Gr = () => {
3923
+ }, Nr = () => {
3912
3924
  const a = document.createElement("div");
3913
3925
  return Object.assign(a.style, {
3914
3926
  position: "absolute",
@@ -3920,7 +3932,7 @@ const De = {
3920
3932
  cursor: "nwse-resize",
3921
3933
  zIndex: "999999999999"
3922
3934
  }), a.className = "dialog-resize-handle", a;
3923
- }, Xr = (a) => {
3935
+ }, Wr = (a) => {
3924
3936
  Object.assign(a.style, {
3925
3937
  transition: "none",
3926
3938
  minWidth: "300px",
@@ -3928,28 +3940,28 @@ const De = {
3928
3940
  resize: "none"
3929
3941
  // 防止与原生resize冲突
3930
3942
  });
3931
- }, Qr = (a, s) => {
3932
- let r = !1, t, e, o, _;
3943
+ }, Gr = (a, n) => {
3944
+ let r = !1, t, e, o, E;
3933
3945
  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);
3946
+ 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
3947
  }, F = (i) => {
3936
3948
  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`;
3949
+ const s = Math.max(300, o + i.clientX - t), c = Math.max(200, E + i.clientY - e);
3950
+ a.style.width = `${s}px`, a.style.height = `${c}px`;
3939
3951
  }, f = () => {
3940
3952
  r = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", f);
3941
3953
  };
3942
- s.addEventListener("mousedown", v);
3954
+ n.addEventListener("mousedown", v);
3943
3955
  };
3944
3956
  export {
3945
- De as CT,
3946
- yt as bindResize,
3947
- Xt as convertToPx,
3948
- la as default,
3957
+ Se as CT,
3958
+ gt as bindResize,
3959
+ Gt as convertToPx,
3960
+ ea as default,
3949
3961
  Ue as filterObject,
3950
- jr as findTreeLabelByValue,
3951
- Wr as formatAmount,
3962
+ Pr as findTreeLabelByValue,
3963
+ jr as formatAmount,
3952
3964
  Ve as mergeObjects,
3953
- Dt as moneyToChinese,
3954
- Ct as openModal
3965
+ St as moneyToChinese,
3966
+ Dt as openModal
3955
3967
  };