vue-2024-ui 0.2.13 → 0.2.15

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 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 rt, 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 al, onBeforeUnmount as rl, 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";
1
+ import Qt, { ElForm as mt, ElButtonGroup as pt, 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 rt, onMounted as ut, computed as Je, resolveComponent as H, openBlock as m, 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 Ue, 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 al, onBeforeUnmount as rl, normalizeClass as Bt, watchEffect as ol, onBeforeMount as nl, watch as ul, createApp as sl } from "vue";
3
+ import { CircleCheck as Ot, CircleCheckFilled as il, Refresh as It, Plus as dl, ZoomIn as cl, Delete as Ut, More as fl, Search as vl, Download as Yt, DocumentCopy as ml, View as pl, Edit as hl, CirclePlus as yl, Setting as gl, FullScreen as bl, CopyDocument as $l } from "@element-plus/icons-vue";
4
4
  import Rt from "sortablejs";
5
- import { Dexie as $l } from "dexie";
6
- var wl = {
5
+ import { Dexie as wl } from "dexie";
6
+ var El = {
7
7
  name: "zh-cn",
8
8
  el: {
9
9
  breadcrumb: {
@@ -180,7 +180,7 @@ var wl = {
180
180
  indicator: "幻灯片切换至索引 {index}"
181
181
  }
182
182
  }
183
- }, El = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
183
+ }, _l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
184
184
  function Lt(r) {
185
185
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
186
186
  }
@@ -188,106 +188,106 @@ var Ht = { exports: {} };
188
188
  (function(r, n) {
189
189
  (function(a, t) {
190
190
  r.exports = t();
191
- })(El, function() {
192
- var a = 1e3, t = 6e4, e = 36e5, o = "millisecond", g = "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(w) {
193
- var b = ["th", "st", "nd", "rd"], u = w % 100;
194
- return "[" + w + (b[(u - 20) % 10] || b[u] || b[0]) + "]";
195
- } }, me = function(w, b, u) {
191
+ })(_l, function() {
192
+ var a = 1e3, t = 6e4, e = 36e5, o = "millisecond", g = "second", v = "minute", F = "hour", f = "day", i = "week", u = "month", c = "quarter", _ = "year", V = "date", j = "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, 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(w) {
193
+ var b = ["th", "st", "nd", "rd"], s = w % 100;
194
+ return "[" + w + (b[(s - 20) % 10] || b[s] || b[0]) + "]";
195
+ } }, pe = function(w, b, s) {
196
196
  var q = String(w);
197
- return !q || q.length >= b ? w : "" + Array(b + 1 - q.length).join(u) + w;
198
- }, ie = { s: me, z: function(w) {
199
- var b = -w.utcOffset(), u = Math.abs(b), q = Math.floor(u / 60), C = u % 60;
200
- return (b <= 0 ? "+" : "-") + me(q, 2, "0") + ":" + me(C, 2, "0");
201
- }, m: function w(b, u) {
202
- if (b.date() < u.date()) return -w(u, b);
203
- var q = 12 * (u.year() - b.year()) + (u.month() - b.month()), C = b.clone().add(q, s), k = u - C < 0, U = b.clone().add(q + (k ? -1 : 1), s);
204
- return +(-(q + (u - C) / (k ? C - U : U - C)) || 0);
197
+ return !q || q.length >= b ? w : "" + Array(b + 1 - q.length).join(s) + w;
198
+ }, ie = { s: pe, z: function(w) {
199
+ var b = -w.utcOffset(), s = Math.abs(b), q = Math.floor(s / 60), k = s % 60;
200
+ return (b <= 0 ? "+" : "-") + pe(q, 2, "0") + ":" + pe(k, 2, "0");
201
+ }, m: function w(b, s) {
202
+ if (b.date() < s.date()) return -w(s, b);
203
+ var q = 12 * (s.year() - b.year()) + (s.month() - b.month()), k = b.clone().add(q, u), C = s - k < 0, U = b.clone().add(q + (C ? -1 : 1), u);
204
+ return +(-(q + (s - k) / (C ? k - U : U - k)) || 0);
205
205
  }, a: function(w) {
206
206
  return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
207
207
  }, p: function(w) {
208
- return { M: s, y: _, w: i, d: f, D: V, h: F, m: v, s: g, ms: o, Q: c }[w] || String(w || "").toLowerCase().replace(/s$/, "");
208
+ return { M: u, y: _, w: i, d: f, D: V, h: F, m: v, s: g, ms: o, Q: c }[w] || String(w || "").toLowerCase().replace(/s$/, "");
209
209
  }, u: function(w) {
210
210
  return w === void 0;
211
211
  } }, ce = "en", de = {};
212
212
  de[ce] = te;
213
213
  var Ce = "$isDayjsObject", Te = function(w) {
214
- return w instanceof Oe || !(!w || !w[Ce]);
215
- }, le = function w(b, u, q) {
216
- var C;
214
+ return w instanceof Ie || !(!w || !w[Ce]);
215
+ }, le = function w(b, s, q) {
216
+ var k;
217
217
  if (!b) return ce;
218
218
  if (typeof b == "string") {
219
- var k = b.toLowerCase();
220
- de[k] && (C = k), u && (de[k] = u, C = k);
219
+ var C = b.toLowerCase();
220
+ de[C] && (k = C), s && (de[C] = s, k = C);
221
221
  var U = b.split("-");
222
- if (!C && U.length > 1) return w(U[0]);
222
+ if (!k && U.length > 1) return w(U[0]);
223
223
  } else {
224
224
  var Z = b.name;
225
- de[Z] = b, C = Z;
225
+ de[Z] = b, k = Z;
226
226
  }
227
- return !q && C && (ce = C), C || !q && ce;
227
+ return !q && k && (ce = k), k || !q && ce;
228
228
  }, ne = function(w, b) {
229
229
  if (Te(w)) return w.clone();
230
- var u = typeof b == "object" ? b : {};
231
- return u.date = w, u.args = arguments, new Oe(u);
230
+ var s = typeof b == "object" ? b : {};
231
+ return s.date = w, s.args = arguments, new Ie(s);
232
232
  }, ae = ie;
233
233
  ae.l = le, ae.i = Te, ae.w = function(w, b) {
234
234
  return ne(w, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
235
235
  };
236
- var Oe = function() {
237
- function w(u) {
238
- this.$L = le(u.locale, null, !0), this.parse(u), this.$x = this.$x || u.x || {}, this[Ce] = !0;
236
+ var Ie = function() {
237
+ function w(s) {
238
+ this.$L = le(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[Ce] = !0;
239
239
  }
240
240
  var b = w.prototype;
241
- return b.parse = function(u) {
241
+ return b.parse = function(s) {
242
242
  this.$d = function(q) {
243
- var C = q.date, k = q.utc;
244
- if (C === null) return /* @__PURE__ */ new Date(NaN);
245
- if (ae.u(C)) return /* @__PURE__ */ new Date();
246
- if (C instanceof Date) return new Date(C);
247
- if (typeof C == "string" && !/Z$/i.test(C)) {
248
- var U = C.match(R);
243
+ var k = q.date, C = q.utc;
244
+ if (k === null) return /* @__PURE__ */ new Date(NaN);
245
+ if (ae.u(k)) return /* @__PURE__ */ new Date();
246
+ if (k instanceof Date) return new Date(k);
247
+ if (typeof k == "string" && !/Z$/i.test(k)) {
248
+ var U = k.match(Y);
249
249
  if (U) {
250
250
  var Z = U[2] - 1 || 0, G = (U[7] || "0").substring(0, 3);
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);
251
+ return C ? 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
- return new Date(C);
255
- }(u), this.init();
254
+ return new Date(k);
255
+ }(s), this.init();
256
256
  }, b.init = function() {
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();
257
+ var s = this.$d;
258
+ this.$y = s.getFullYear(), this.$M = s.getMonth(), this.$D = s.getDate(), this.$W = s.getDay(), this.$H = s.getHours(), this.$m = s.getMinutes(), this.$s = s.getSeconds(), this.$ms = s.getMilliseconds();
259
259
  }, b.$utils = function() {
260
260
  return ae;
261
261
  }, b.isValid = function() {
262
262
  return this.$d.toString() !== j;
263
- }, b.isSame = function(u, q) {
264
- var C = ne(u);
265
- return this.startOf(q) <= C && C <= this.endOf(q);
266
- }, b.isAfter = function(u, q) {
267
- return ne(u) < this.startOf(q);
268
- }, b.isBefore = function(u, q) {
269
- return this.endOf(q) < ne(u);
270
- }, b.$g = function(u, q, C) {
271
- return ae.u(u) ? this[q] : this.set(C, u);
263
+ }, b.isSame = function(s, q) {
264
+ var k = ne(s);
265
+ return this.startOf(q) <= k && k <= this.endOf(q);
266
+ }, b.isAfter = function(s, q) {
267
+ return ne(s) < this.startOf(q);
268
+ }, b.isBefore = function(s, q) {
269
+ return this.endOf(q) < ne(s);
270
+ }, b.$g = function(s, q, k) {
271
+ return ae.u(s) ? this[q] : this.set(k, s);
272
272
  }, b.unix = function() {
273
273
  return Math.floor(this.valueOf() / 1e3);
274
274
  }, b.valueOf = function() {
275
275
  return this.$d.getTime();
276
- }, b.startOf = function(u, q) {
277
- var C = this, k = !!ae.u(q) || q, U = ae.p(u), Z = function($e, we) {
278
- var Ee = ae.w(C.$u ? Date.UTC(C.$y, we, $e) : new Date(C.$y, we, $e), C);
279
- return k ? Ee : Ee.endOf(f);
276
+ }, b.startOf = function(s, q) {
277
+ var k = this, C = !!ae.u(q) || q, U = ae.p(s), Z = function($e, we) {
278
+ var Ee = ae.w(k.$u ? Date.UTC(k.$y, we, $e) : new Date(k.$y, we, $e), k);
279
+ return C ? Ee : Ee.endOf(f);
280
280
  }, G = function($e, we) {
281
- return ae.w(C.toDate()[$e].apply(C.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), C);
282
- }, pe = this.$W, E = this.$M, y = this.$D, re = "set" + (this.$u ? "UTC" : "");
281
+ return ae.w(k.toDate()[$e].apply(k.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), k);
282
+ }, me = this.$W, E = this.$M, y = this.$D, re = "set" + (this.$u ? "UTC" : "");
283
283
  switch (U) {
284
284
  case _:
285
- return k ? Z(1, 0) : Z(31, 11);
286
- case s:
287
- return k ? Z(1, E) : Z(0, E + 1);
285
+ return C ? Z(1, 0) : Z(31, 11);
286
+ case u:
287
+ return C ? Z(1, E) : Z(0, E + 1);
288
288
  case i:
289
- var he = this.$locale().weekStart || 0, be = (pe < he ? pe + 7 : pe) - he;
290
- return Z(k ? y - be : y + (6 - be), E);
289
+ var he = this.$locale().weekStart || 0, be = (me < he ? me + 7 : me) - he;
290
+ return Z(C ? y - be : y + (6 - be), E);
291
291
  case f:
292
292
  case V:
293
293
  return G(re + "Hours", 0);
@@ -300,46 +300,46 @@ var Ht = { exports: {} };
300
300
  default:
301
301
  return this.clone();
302
302
  }
303
- }, b.endOf = function(u) {
304
- return this.startOf(u, !1);
305
- }, b.$set = function(u, q) {
306
- var C, k = ae.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[g] = U + "Seconds", C[o] = U + "Milliseconds", C)[k], G = k === f ? this.$D + (q - this.$W) : q;
307
- if (k === s || k === _) {
308
- var pe = this.clone().set(V, 1);
309
- pe.$d[Z](G), pe.init(), this.$d = pe.set(V, Math.min(this.$D, pe.daysInMonth())).$d;
303
+ }, b.endOf = function(s) {
304
+ return this.startOf(s, !1);
305
+ }, b.$set = function(s, q) {
306
+ var k, C = ae.p(s), U = "set" + (this.$u ? "UTC" : ""), Z = (k = {}, k[f] = U + "Date", k[V] = U + "Date", k[u] = U + "Month", k[_] = U + "FullYear", k[F] = U + "Hours", k[v] = U + "Minutes", k[g] = U + "Seconds", k[o] = U + "Milliseconds", k)[C], G = C === f ? this.$D + (q - this.$W) : q;
307
+ if (C === u || C === _) {
308
+ var me = this.clone().set(V, 1);
309
+ me.$d[Z](G), me.init(), this.$d = me.set(V, Math.min(this.$D, me.daysInMonth())).$d;
310
310
  } else Z && this.$d[Z](G);
311
311
  return this.init(), this;
312
- }, b.set = function(u, q) {
313
- return this.clone().$set(u, q);
314
- }, b.get = function(u) {
315
- return this[ae.p(u)]();
316
- }, b.add = function(u, q) {
317
- var C, k = this;
318
- u = Number(u);
312
+ }, b.set = function(s, q) {
313
+ return this.clone().$set(s, q);
314
+ }, b.get = function(s) {
315
+ return this[ae.p(s)]();
316
+ }, b.add = function(s, q) {
317
+ var k, C = this;
318
+ s = Number(s);
319
319
  var U = ae.p(q), Z = function(E) {
320
- var y = ne(k);
321
- return ae.w(y.date(y.date() + Math.round(E * u)), k);
320
+ var y = ne(C);
321
+ return ae.w(y.date(y.date() + Math.round(E * s)), C);
322
322
  };
323
- if (U === s) return this.set(s, this.$M + u);
324
- if (U === _) return this.set(_, this.$y + u);
323
+ if (U === u) return this.set(u, this.$M + s);
324
+ if (U === _) return this.set(_, this.$y + s);
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[g] = a, C)[U] || 1, pe = this.$d.getTime() + u * G;
328
- return ae.w(pe, this);
329
- }, b.subtract = function(u, q) {
330
- return this.add(-1 * u, q);
331
- }, b.format = function(u) {
332
- var q = this, C = this.$locale();
333
- if (!this.isValid()) return C.invalidDate || j;
334
- var k = u || "YYYY-MM-DDTHH:mm:ssZ", U = ae.z(this), Z = this.$H, G = this.$m, pe = this.$M, E = C.weekdays, y = C.months, re = C.meridiem, he = function(we, Ee, Me, xe) {
335
- return we && (we[Ee] || we(q, k)) || Me[Ee].slice(0, xe);
327
+ var G = (k = {}, k[v] = t, k[F] = e, k[g] = a, k)[U] || 1, me = this.$d.getTime() + s * G;
328
+ return ae.w(me, this);
329
+ }, b.subtract = function(s, q) {
330
+ return this.add(-1 * s, q);
331
+ }, b.format = function(s) {
332
+ var q = this, k = this.$locale();
333
+ if (!this.isValid()) return k.invalidDate || j;
334
+ var C = s || "YYYY-MM-DDTHH:mm:ssZ", U = ae.z(this), Z = this.$H, G = this.$m, me = this.$M, E = k.weekdays, y = k.months, re = k.meridiem, he = function(we, Ee, Me, xe) {
335
+ return we && (we[Ee] || we(q, C)) || Me[Ee].slice(0, xe);
336
336
  }, be = function(we) {
337
337
  return ae.s(Z % 12 || 12, we, "0");
338
338
  }, $e = re || function(we, Ee, Me) {
339
339
  var xe = we < 12 ? "AM" : "PM";
340
340
  return Me ? xe.toLowerCase() : xe;
341
341
  };
342
- return k.replace(L, function(we, Ee) {
342
+ return C.replace(L, function(we, Ee) {
343
343
  return Ee || function(Me) {
344
344
  switch (Me) {
345
345
  case "YY":
@@ -347,13 +347,13 @@ var Ht = { exports: {} };
347
347
  case "YYYY":
348
348
  return ae.s(q.$y, 4, "0");
349
349
  case "M":
350
- return pe + 1;
350
+ return me + 1;
351
351
  case "MM":
352
- return ae.s(pe + 1, 2, "0");
352
+ return ae.s(me + 1, 2, "0");
353
353
  case "MMM":
354
- return he(C.monthsShort, pe, y, 3);
354
+ return he(k.monthsShort, me, y, 3);
355
355
  case "MMMM":
356
- return he(y, pe);
356
+ return he(y, me);
357
357
  case "D":
358
358
  return q.$D;
359
359
  case "DD":
@@ -361,9 +361,9 @@ var Ht = { exports: {} };
361
361
  case "d":
362
362
  return String(q.$W);
363
363
  case "dd":
364
- return he(C.weekdaysMin, q.$W, E, 2);
364
+ return he(k.weekdaysMin, q.$W, E, 2);
365
365
  case "ddd":
366
- return he(C.weekdaysShort, q.$W, E, 3);
366
+ return he(k.weekdaysShort, q.$W, E, 3);
367
367
  case "dddd":
368
368
  return E[q.$W];
369
369
  case "H":
@@ -396,47 +396,47 @@ var Ht = { exports: {} };
396
396
  });
397
397
  }, b.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
- }, b.diff = function(u, q, C) {
400
- var k, U = this, Z = ae.p(q), G = ne(u), pe = (G.utcOffset() - this.utcOffset()) * t, E = this - G, y = function() {
399
+ }, b.diff = function(s, q, k) {
400
+ var C, U = this, Z = ae.p(q), G = ne(s), me = (G.utcOffset() - this.utcOffset()) * t, E = this - G, y = function() {
401
401
  return ae.m(U, G);
402
402
  };
403
403
  switch (Z) {
404
404
  case _:
405
- k = y() / 12;
405
+ C = y() / 12;
406
406
  break;
407
- case s:
408
- k = y();
407
+ case u:
408
+ C = y();
409
409
  break;
410
410
  case c:
411
- k = y() / 3;
411
+ C = y() / 3;
412
412
  break;
413
413
  case i:
414
- k = (E - pe) / 6048e5;
414
+ C = (E - me) / 6048e5;
415
415
  break;
416
416
  case f:
417
- k = (E - pe) / 864e5;
417
+ C = (E - me) / 864e5;
418
418
  break;
419
419
  case F:
420
- k = E / e;
420
+ C = E / e;
421
421
  break;
422
422
  case v:
423
- k = E / t;
423
+ C = E / t;
424
424
  break;
425
425
  case g:
426
- k = E / a;
426
+ C = E / a;
427
427
  break;
428
428
  default:
429
- k = E;
429
+ C = E;
430
430
  }
431
- return C ? k : ae.a(k);
431
+ return k ? C : ae.a(C);
432
432
  }, b.daysInMonth = function() {
433
- return this.endOf(s).$D;
433
+ return this.endOf(u).$D;
434
434
  }, b.$locale = function() {
435
435
  return de[this.$L];
436
- }, b.locale = function(u, q) {
437
- if (!u) return this.$L;
438
- var C = this.clone(), k = le(u, q, !0);
439
- return k && (C.$L = k), C;
436
+ }, b.locale = function(s, q) {
437
+ if (!s) return this.$L;
438
+ var k = this.clone(), C = le(s, q, !0);
439
+ return C && (k.$L = C), k;
440
440
  }, b.clone = function() {
441
441
  return ae.w(this.$d, this);
442
442
  }, b.toDate = function() {
@@ -448,20 +448,20 @@ var Ht = { exports: {} };
448
448
  }, b.toString = function() {
449
449
  return this.$d.toUTCString();
450
450
  }, w;
451
- }(), T = Oe.prototype;
452
- return ne.prototype = T, [["$ms", o], ["$s", g], ["$m", v], ["$H", F], ["$W", f], ["$M", s], ["$y", _], ["$D", V]].forEach(function(w) {
451
+ }(), T = Ie.prototype;
452
+ return ne.prototype = T, [["$ms", o], ["$s", g], ["$m", v], ["$H", F], ["$W", f], ["$M", u], ["$y", _], ["$D", V]].forEach(function(w) {
453
453
  T[w[1]] = function(b) {
454
454
  return this.$g(b, w[0], w[1]);
455
455
  };
456
456
  }), ne.extend = function(w, b) {
457
- return w.$i || (w(b, Oe, ne), w.$i = !0), ne;
457
+ return w.$i || (w(b, Ie, ne), w.$i = !0), ne;
458
458
  }, ne.locale = le, ne.isDayjs = Te, ne.unix = function(w) {
459
459
  return ne(1e3 * w);
460
460
  }, ne.en = de[ce], ne.Ls = de, ne.p = {}, ne;
461
461
  });
462
462
  })(Ht);
463
- var _l = Ht.exports;
464
- const wt = /* @__PURE__ */ Lt(_l), zt = {
463
+ var kl = Ht.exports;
464
+ const wt = /* @__PURE__ */ Lt(kl), zt = {
465
465
  inline: !0,
466
466
  type: "hidden",
467
467
  "scroll-to-error": !0,
@@ -492,6 +492,15 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
492
492
  hidden: !1,
493
493
  icon: () => ke(Ot)
494
494
  },
495
+ //保存并提交按钮属性
496
+ saveSubmit: {
497
+ type: "primary",
498
+ disabled: !1,
499
+ label: "保存并提交",
500
+ plain: !0,
501
+ hidden: !0,
502
+ icon: () => ke(il)
503
+ },
495
504
  //表单重置按钮属性
496
505
  reset: {
497
506
  disabled: !1,
@@ -510,10 +519,10 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
510
519
  for (const [t, e] of n)
511
520
  a[t] = e;
512
521
  return a;
513
- }, kl = {
522
+ }, Cl = {
514
523
  style: { display: "flex", width: "100%" },
515
524
  class: "g-ctrl-container"
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 }, {
525
+ }, Dl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Sl = ["title"], Ml = ["innerHTML"], Tl = ["innerHTML"], Fl = ["innerHTML"], xl = ["innerHTML"], Vl = ["innerHTML"], ql = ["innerHTML"], Al = ["innerHTML"], Bl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
517
526
  __name: "g-ctrl",
518
527
  props: /* @__PURE__ */ Xe(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
519
528
  modelValue: { required: !0 },
@@ -521,11 +530,11 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
521
530
  }),
522
531
  emits: ["update:modelValue"],
523
532
  setup(r) {
524
- var Oe, T, w, b, u, q, C, k, U, Z, G, pe;
533
+ var Ie, T, w, b, s, q, k, C, U, Z, G, me;
525
534
  const n = Qe(r, "modelValue"), a = r, t = oe(a.item || {}), e = oe(a.ctrlKey), o = oe(a.ctrlType), g = oe(a.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")) && !((w = o.value) != null && w.startsWith("tag")) && !((b = o.value) != null && b.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 = a.t === "t" ? "center" : "flex-start", _ = ((Z = t.value) == null ? void 0 : Z.style) || {};
528
- s.value = { ...s.value, justifyContent: c, ..._ };
535
+ !((Ie = o.value) != null && Ie.startsWith("text")) && !((T = o.value) != null && T.startsWith("link")) && !((w = o.value) != null && w.startsWith("tag")) && !((b = o.value) != null && b.startsWith("div")) && !((s = o.value) != null && s.startsWith("span")) && !((q = o.value) != null && q.startsWith("avatar")) && ((k = t.value) != null && k.style || (t.value.style = { width: ((U = (C = t.value) == null ? void 0 : C.style) == null ? void 0 : U.width) || "100%" }));
536
+ const u = oe({ display: "flex", flex: 1 }), c = a.t === "t" ? "center" : "flex-start", _ = ((Z = t.value) == null ? void 0 : Z.style) || {};
537
+ u.value = { ...u.value, justifyContent: c, ..._ };
529
538
  const V = () => {
530
539
  const E = At(), y = Object.keys(E), re = `${a.t}-${e.value}-`;
531
540
  return y.filter(($e) => $e.startsWith(re)).map(($e) => $e.replace(re, ""));
@@ -533,8 +542,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
533
542
  multiple: !1,
534
543
  "show-file-list": !1,
535
544
  "file-list": [],
536
- showDel: (G = t.value) != null && G.showDel ? (pe = t.value) == null ? void 0 : pe.showDel : a.t !== "t"
537
- }), R = oe(t.value.innerHtml), L = (E) => [
545
+ showDel: (G = t.value) != null && G.showDel ? (me = t.value) == null ? void 0 : me.showDel : a.t !== "t"
546
+ }), Y = oe(t.value.innerHtml), L = (E) => [
538
547
  "year",
539
548
  "years",
540
549
  "month",
@@ -561,7 +570,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
561
570
  daterange: "YYYY-MM-DD",
562
571
  monthrange: "YYYY-MM",
563
572
  yearrange: "YYYY"
564
- })[E] || "YYYY-MM-DD", me = oe({
573
+ })[E] || "YYYY-MM-DD", pe = oe({
565
574
  filterable: !0,
566
575
  remote: !!(t.value && t.value["remote-method"]),
567
576
  ...t.value
@@ -600,7 +609,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
600
609
  }, ne = oe(null);
601
610
  ut(async () => {
602
611
  var re, he, be, $e, we;
603
- t.value && t.value["remote-method"] && (me.value["remote-method"] = ie), (he = (re = g.value[e.value]) == null ? void 0 : re.options) != null && he.length && (F.value = g.value[e.value].options);
612
+ t.value && t.value["remote-method"] && (pe.value["remote-method"] = ie), (he = (re = g.value[e.value]) == null ? void 0 : re.options) != null && he.length && (F.value = g.value[e.value].options);
604
613
  const E = (Ee, Me = "options", xe = g.value[e.value]) => {
605
614
  typeof t.value.getDicts == "function" && ce(Me).catch((Ye) => {
606
615
  console.error(`Failed to load ${Me} for ${Ee}:`, Ye);
@@ -646,18 +655,18 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
646
655
  });
647
656
  return (E, y) => {
648
657
  var nt, z, se, x, X, ee, je, Ne, ze, Pe;
649
- const re = 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"), $ = 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
- return p(), I(J, null, [
658
+ const re = 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"), p = H("el-switch"), $ = H("el-transfer"), A = H("el-cascader"), R = 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");
659
+ return m(), I(J, null, [
651
660
  Q("div", null, [
652
- f.value ? (p(), B(re, {
661
+ f.value ? (m(), B(re, {
653
662
  key: 0,
654
663
  teleported: !0,
655
664
  "url-list": ae.value,
656
665
  onClose: y[0] || (y[0] = (h) => f.value = !1)
657
666
  }, null, 8, ["url-list"])) : ge("", !0)
658
667
  ]),
659
- Q("div", kl, [
660
- o.value == P(Se).RADIO ? (p(), B(be, O({
668
+ Q("div", Cl, [
669
+ o.value == P(Se).RADIO ? (m(), B(be, O({
661
670
  key: 0,
662
671
  modelValue: n.value,
663
672
  "onUpdate:modelValue": y[1] || (y[1] = (h) => n.value = h),
@@ -665,7 +674,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
665
674
  }, t.value), {
666
675
  default: D(() => [
667
676
  M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
668
- (p(!0), I(J, null, N(F.value, (h) => (p(), B(he, O({ ref_for: !0 }, h), {
677
+ (m(!0), I(J, null, N(F.value, (h) => (m(), B(he, O({ ref_for: !0 }, h), {
669
678
  default: D(() => [
670
679
  M(E.$slots, `${a.t}-${e.value}-options`, { option: h }, void 0, !0)
671
680
  ]),
@@ -674,7 +683,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
674
683
  ], !0)
675
684
  ]),
676
685
  _: 3
677
- }, 16, ["modelValue", "disabled"])) : o.value == P(Se).RADIOBUTTON ? (p(), B(be, O({
686
+ }, 16, ["modelValue", "disabled"])) : o.value == P(Se).RADIOBUTTON ? (m(), B(be, O({
678
687
  key: 1,
679
688
  modelValue: n.value,
680
689
  "onUpdate:modelValue": y[2] || (y[2] = (h) => n.value = h),
@@ -682,7 +691,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
682
691
  }, t.value), {
683
692
  default: D(() => [
684
693
  M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
685
- (p(!0), I(J, null, N(F.value, (h) => (p(), B($e, O({ ref_for: !0 }, h), {
694
+ (m(!0), I(J, null, N(F.value, (h) => (m(), B($e, O({ ref_for: !0 }, h), {
686
695
  default: D(() => [
687
696
  M(E.$slots, `${a.t}-${e.value}-options`, { option: h }, void 0, !0)
688
697
  ]),
@@ -691,7 +700,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
691
700
  ], !0)
692
701
  ]),
693
702
  _: 3
694
- }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOX ? (p(), B(we, O({
703
+ }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOX ? (m(), B(we, O({
695
704
  key: 2,
696
705
  modelValue: n.value,
697
706
  "onUpdate:modelValue": y[3] || (y[3] = (h) => n.value = h),
@@ -699,11 +708,11 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
699
708
  }, t.value), {
700
709
  default: D(() => [
701
710
  M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
702
- y[27] || (y[27] = Ie(De(" ")))
711
+ y[27] || (y[27] = Ue(De(" ")))
703
712
  ], !0)
704
713
  ]),
705
714
  _: 3
706
- }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOXGROUP ? (p(), B(Ee, O({
715
+ }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOXGROUP ? (m(), B(Ee, O({
707
716
  key: 3,
708
717
  modelValue: n.value,
709
718
  "onUpdate:modelValue": y[4] || (y[4] = (h) => n.value = h),
@@ -711,10 +720,10 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
711
720
  }, t.value), {
712
721
  default: D(() => [
713
722
  M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
714
- (p(!0), I(J, null, N(F.value, (h) => (p(), B(we, O({ ref_for: !0 }, h), {
723
+ (m(!0), I(J, null, N(F.value, (h) => (m(), B(we, O({ ref_for: !0 }, h), {
715
724
  default: D(() => [
716
725
  M(E.$slots, `${a.t}-${e.value}-options`, { option: h }, () => [
717
- Ie(De(h.label), 1)
726
+ Ue(De(h.label), 1)
718
727
  ], !0)
719
728
  ]),
720
729
  _: 2
@@ -722,7 +731,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
722
731
  ], !0)
723
732
  ]),
724
733
  _: 3
725
- }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOXGROUPBUTTON ? (p(), B(Ee, O({
734
+ }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOXGROUPBUTTON ? (m(), B(Ee, O({
726
735
  key: 4,
727
736
  modelValue: n.value,
728
737
  "onUpdate:modelValue": y[5] || (y[5] = (h) => n.value = h),
@@ -730,7 +739,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
730
739
  }, t.value), {
731
740
  default: D(() => [
732
741
  M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
733
- (p(!0), I(J, null, N(F.value, (h) => (p(), B(Me, O({ ref_for: !0 }, h), {
742
+ (m(!0), I(J, null, N(F.value, (h) => (m(), B(Me, O({ ref_for: !0 }, h), {
734
743
  default: D(() => [
735
744
  M(E.$slots, `${a.t}-${e.value}-options`, { option: h }, void 0, !0)
736
745
  ]),
@@ -739,7 +748,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
739
748
  ], !0)
740
749
  ]),
741
750
  _: 3
742
- }, 16, ["modelValue", "disabled"])) : o.value === P(Se).SELECT ? (p(), B(st, O({
751
+ }, 16, ["modelValue", "disabled"])) : o.value === P(Se).SELECT ? (m(), B(st, O({
743
752
  key: 5,
744
753
  modelValue: n.value,
745
754
  "onUpdate:modelValue": y[6] || (y[6] = (h) => n.value = h),
@@ -749,15 +758,15 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
749
758
  a.t == "q" && g.value.table.load();
750
759
  }),
751
760
  disabled: g.value[e.value].disabled
752
- }, me.value), ye({
761
+ }, pe.value), ye({
753
762
  default: D(() => [
754
763
  M(E.$slots, `${a.t}-${e.value}`, { options: F.value }, () => [
755
- (p(!0), I(J, null, N(F.value, (h) => (p(), I(J, {
764
+ (m(!0), I(J, null, N(F.value, (h) => (m(), I(J, {
756
765
  key: h.value
757
766
  }, [
758
- K(Ye, O({ ref_for: !0 }, P(Ue)(h, (S) => S != "children"), {
767
+ K(Ye, O({ ref_for: !0 }, P(Oe)(h, (S) => S != "children"), {
759
768
  onClick: (S) => {
760
- me.value.change && me.value.change(h), de();
769
+ pe.value.change && pe.value.change(h), de();
761
770
  }
762
771
  }), {
763
772
  default: D(() => {
@@ -791,13 +800,13 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
791
800
  }),
792
801
  _: 2
793
802
  }, 1040, ["onClick"]),
794
- h.children && h.children.length ? (p(!0), I(J, { key: 0 }, N(h.children, (S) => (p(), B(Ye, O({
803
+ h.children && h.children.length ? (m(!0), I(J, { key: 0 }, N(h.children, (S) => (m(), B(Ye, O({
795
804
  style: { "margin-left": "20px" },
796
805
  key: S.value,
797
806
  ref_for: !0
798
- }, P(Ue)(S, (ue) => ue != "children"), {
807
+ }, P(Oe)(S, (ue) => ue != "children"), {
799
808
  onClick: (ue) => {
800
- me.value.change && me.value.change(S), de();
809
+ pe.value.change && pe.value.change(S), de();
801
810
  }
802
811
  }), {
803
812
  default: D(() => {
@@ -863,7 +872,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
863
872
  M(E.$slots, `${a.t}-${e.value}-${h}`, { form: r.formInfo }, void 0, !0)
864
873
  ])
865
874
  }))
866
- ]), 1040, ["modelValue", "placeholder", "disabled"])) : o.value == P(Se).TREESELECT ? (p(), B(it, O({
875
+ ]), 1040, ["modelValue", "placeholder", "disabled"])) : o.value == P(Se).TREESELECT ? (m(), B(it, O({
867
876
  key: 6,
868
877
  modelValue: n.value,
869
878
  "onUpdate:modelValue": y[8] || (y[8] = (h) => n.value = h),
@@ -876,7 +885,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
876
885
  M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
877
886
  ])
878
887
  }))
879
- ]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : o.value == P(Se).TIME ? (p(), B(dt, O({
888
+ ]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : o.value == P(Se).TIME ? (m(), B(dt, O({
880
889
  key: 7,
881
890
  modelValue: n.value,
882
891
  "onUpdate:modelValue": y[9] || (y[9] = (h) => n.value = h),
@@ -884,7 +893,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
884
893
  disabled: g.value[e.value].disabled
885
894
  }, t.value, {
886
895
  placeholder: g.value[e.value].label
887
- }), null, 16, ["modelValue", "disabled", "placeholder"])) : o.value == P(Se).TIMESELECT ? (p(), B(ct, O({
896
+ }), null, 16, ["modelValue", "disabled", "placeholder"])) : o.value == P(Se).TIMESELECT ? (m(), B(ct, O({
888
897
  key: 8,
889
898
  modelValue: n.value,
890
899
  "onUpdate:modelValue": y[10] || (y[10] = (h) => n.value = h),
@@ -893,7 +902,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
893
902
  end: "23:30",
894
903
  placeholder: g.value[e.value].label,
895
904
  disabled: g.value[e.value].disabled
896
- }, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : L(o.value) ? (p(), B(ft, O({
905
+ }, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : L(o.value) ? (m(), B(ft, O({
897
906
  key: 9,
898
907
  modelValue: n.value,
899
908
  "onUpdate:modelValue": y[11] || (y[11] = (h) => n.value = h),
@@ -908,21 +917,21 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
908
917
  M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
909
918
  ])
910
919
  }))
911
- ]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : o.value == P(Se).COLOR ? (p(), B(vt, O({
920
+ ]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : o.value == P(Se).COLOR ? (m(), B(vt, O({
912
921
  key: 10,
913
922
  modelValue: n.value,
914
923
  "onUpdate:modelValue": y[12] || (y[12] = (h) => n.value = h)
915
- }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).RATE ? (p(), B(l, O({
924
+ }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).RATE ? (m(), B(l, O({
916
925
  key: 11,
917
926
  modelValue: n.value,
918
927
  "onUpdate:modelValue": y[13] || (y[13] = (h) => n.value = h),
919
928
  disabled: g.value[e.value].disabled
920
- }, t.value), null, 16, ["modelValue", "disabled"])) : o.value == P(Se).SLIDER ? (p(), B(d, O({
929
+ }, t.value), null, 16, ["modelValue", "disabled"])) : o.value == P(Se).SLIDER ? (m(), B(d, O({
921
930
  key: 12,
922
931
  modelValue: n.value,
923
932
  "onUpdate:modelValue": y[14] || (y[14] = (h) => n.value = h),
924
933
  disabled: g.value[e.value].disabled
925
- }, t.value), null, 16, ["modelValue", "disabled"])) : o.value == P(Se).SWITCH ? (p(), B(m, O({
934
+ }, t.value), null, 16, ["modelValue", "disabled"])) : o.value == P(Se).SWITCH ? (m(), B(p, O({
926
935
  key: 13,
927
936
  modelValue: n.value,
928
937
  "onUpdate:modelValue": y[15] || (y[15] = (h) => n.value = h),
@@ -935,7 +944,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
935
944
  M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
936
945
  ])
937
946
  }))
938
- ]), 1040, ["modelValue", "disabled"])) : o.value == P(Se).TRANSFER ? (p(), B($, O({
947
+ ]), 1040, ["modelValue", "disabled"])) : o.value == P(Se).TRANSFER ? (m(), B($, O({
939
948
  key: 14,
940
949
  modelValue: n.value,
941
950
  "onUpdate:modelValue": y[16] || (y[16] = (h) => n.value = h)
@@ -946,7 +955,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
946
955
  M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
947
956
  ])
948
957
  }))
949
- ]), 1040, ["modelValue"])) : o.value == P(Se).CASCADER ? (p(), B(A, O({
958
+ ]), 1040, ["modelValue"])) : o.value == P(Se).CASCADER ? (m(), B(A, O({
950
959
  key: 15,
951
960
  modelValue: n.value,
952
961
  "onUpdate:modelValue": y[17] || (y[17] = (h) => n.value = h)
@@ -957,7 +966,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
957
966
  M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
958
967
  ])
959
968
  }))
960
- ]), 1040, ["modelValue", "options"])) : o.value == P(Se).IMAGE ? (p(), B(_e, O({
969
+ ]), 1040, ["modelValue", "options"])) : o.value == P(Se).IMAGE ? (m(), B(_e, O({
961
970
  key: 16,
962
971
  "file-list": t.value["file-list"],
963
972
  "onUpdate:fileList": y[21] || (y[21] = (h) => t.value["file-list"] = h),
@@ -971,12 +980,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
971
980
  default: D(() => {
972
981
  var h;
973
982
  return [
974
- n.value ? (p(), I("div", {
983
+ n.value ? (m(), I("div", {
975
984
  key: 1,
976
985
  onClick: y[20] || (y[20] = (S) => S.stopPropagation()),
977
986
  style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
978
987
  }, [
979
- Q("div", Cl, [
988
+ Q("div", Dl, [
980
989
  K(W, O({
981
990
  style: { width: "var(--up-width)", height: "var(--up-height)" },
982
991
  src: n.value
@@ -995,13 +1004,13 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
995
1004
  onMouseleave: y[19] || (y[19] = (S) => i.value = !1),
996
1005
  class: "up-view"
997
1006
  }, [
998
- i.value ? (p(), B(fe, {
1007
+ i.value ? (m(), B(fe, {
999
1008
  key: 0,
1000
1009
  content: "查看大图",
1001
1010
  placement: "top"
1002
1011
  }, {
1003
1012
  default: D(() => [
1004
- K(P(dl), {
1013
+ K(P(cl), {
1005
1014
  style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
1006
1015
  color: "white",
1007
1016
  onClick: le
@@ -1009,7 +1018,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1009
1018
  ]),
1010
1019
  _: 1
1011
1020
  })) : ge("", !0),
1012
- j.value.showDel && i.value ? (p(), B(fe, {
1021
+ j.value.showDel && i.value ? (m(), B(fe, {
1013
1022
  key: 1,
1014
1023
  content: "删除",
1015
1024
  placement: "top"
@@ -1024,9 +1033,9 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1024
1033
  _: 1
1025
1034
  })) : ge("", !0)
1026
1035
  ], 32)
1027
- ])) : (p(), B(Y, { key: 0 }, {
1036
+ ])) : (m(), B(R, { key: 0 }, {
1028
1037
  default: D(() => [
1029
- K(P(il))
1038
+ K(P(dl))
1030
1039
  ]),
1031
1040
  _: 1
1032
1041
  }))
@@ -1040,7 +1049,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1040
1049
  M(E.$slots, `${a.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1041
1050
  ])
1042
1051
  }))
1043
- ]), 1040, ["file-list"])) : o.value == P(Se).AUTOCOMPLETE ? (p(), B(Fe, O({
1052
+ ]), 1040, ["file-list"])) : o.value == P(Se).AUTOCOMPLETE ? (m(), B(Fe, O({
1044
1053
  key: 17,
1045
1054
  modelValue: n.value,
1046
1055
  "onUpdate:modelValue": y[22] || (y[22] = (h) => n.value = h)
@@ -1053,7 +1062,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1053
1062
  M(E.$slots, `${a.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1054
1063
  ])
1055
1064
  }))
1056
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).INPUTNUMBER ? (p(), B(Re, O({
1065
+ ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).INPUTNUMBER ? (m(), B(Re, O({
1057
1066
  key: 18,
1058
1067
  modelValue: n.value,
1059
1068
  "onUpdate:modelValue": y[23] || (y[23] = (h) => n.value = h),
@@ -1068,9 +1077,9 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1068
1077
  M(E.$slots, `${a.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1069
1078
  ])
1070
1079
  }))
1071
- ]), 1040, ["modelValue", "placeholder", "disabled"])) : o.value == P(Se).MONEY ? (p(), I("div", {
1080
+ ]), 1040, ["modelValue", "placeholder", "disabled"])) : o.value == P(Se).MONEY ? (m(), I("div", {
1072
1081
  key: 19,
1073
- style: qe([{ position: "relative" }, s.value])
1082
+ style: qe([{ position: "relative" }, u.value])
1074
1083
  }, [
1075
1084
  K(Le, O({
1076
1085
  modelValue: n.value,
@@ -1083,7 +1092,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1083
1092
  Q("div", {
1084
1093
  title: P(St)(n.value),
1085
1094
  style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
1086
- }, De(P(St)(n.value)), 9, Dl)
1095
+ }, De(P(St)(n.value)), 9, Sl)
1087
1096
  ]),
1088
1097
  _: 2
1089
1098
  }, [
@@ -1094,44 +1103,44 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1094
1103
  ])
1095
1104
  }))
1096
1105
  ]), 1040, ["modelValue", "placeholder", "maxlength"])
1097
- ], 4)) : (se = o.value) != null && se.startsWith("link") ? (p(), I("div", {
1106
+ ], 4)) : (se = o.value) != null && se.startsWith("link") ? (m(), I("div", {
1098
1107
  key: 20,
1099
- style: qe(s.value)
1108
+ style: qe(u.value)
1100
1109
  }, [
1101
1110
  K(He, O(t.value, {
1102
1111
  type: o.value.replace("link-", ""),
1103
- innerHTML: R.value || n.value
1112
+ innerHTML: Y.value || n.value
1104
1113
  }), null, 16, ["type", "innerHTML"])
1105
- ], 4)) : o.value != "textarea" && ((x = o.value) != null && x.startsWith("text")) ? (p(), I("div", {
1114
+ ], 4)) : o.value != "textarea" && ((x = o.value) != null && x.startsWith("text")) ? (m(), I("div", {
1106
1115
  key: 21,
1107
- style: qe(s.value)
1116
+ style: qe(u.value)
1108
1117
  }, [
1109
1118
  K(et, O(t.value, {
1110
1119
  type: o.value.replace("text-", ""),
1111
- innerHTML: R.value || n.value
1120
+ innerHTML: Y.value || n.value
1112
1121
  }), null, 16, ["type", "innerHTML"])
1113
- ], 4)) : o.value == "avatar" ? (p(), I("div", {
1122
+ ], 4)) : o.value == "avatar" ? (m(), I("div", {
1114
1123
  key: 22,
1115
- style: qe(s.value)
1124
+ style: qe(u.value)
1116
1125
  }, [
1117
- R.value ? (p(), B(ot, Et(O({ key: 0 }, t.value)), {
1126
+ Y.value ? (m(), B(ot, Et(O({ key: 0 }, t.value)), {
1118
1127
  default: D(() => [
1119
- Q("div", { innerHTML: R.value }, null, 8, Sl)
1128
+ Q("div", { innerHTML: Y.value }, null, 8, Ml)
1120
1129
  ]),
1121
1130
  _: 1
1122
- }, 16)) : (p(), B(ot, Et(O({ key: 1 }, t.value)), null, 16))
1123
- ], 4)) : (X = o.value) != null && X.startsWith("tag") ? (p(), I("div", {
1131
+ }, 16)) : (m(), B(ot, Et(O({ key: 1 }, t.value)), null, 16))
1132
+ ], 4)) : (X = o.value) != null && X.startsWith("tag") ? (m(), I("div", {
1124
1133
  key: 23,
1125
- style: qe(s.value)
1134
+ style: qe(u.value)
1126
1135
  }, [
1127
- Array.isArray(R.value) && R.value.length > 0 ? (p(!0), I(J, { key: 0 }, N(R.value, (h, S) => (p(), I(J, { key: S }, [
1128
- typeof h == "object" ? (p(), B(tt, O({
1136
+ Array.isArray(Y.value) && Y.value.length > 0 ? (m(!0), I(J, { key: 0 }, N(Y.value, (h, S) => (m(), I(J, { key: S }, [
1137
+ typeof h == "object" ? (m(), B(tt, O({
1129
1138
  key: 0,
1130
1139
  ref_for: !0
1131
1140
  }, h, {
1132
1141
  innerHTML: h == null ? void 0 : h.value,
1133
1142
  style: { "margin-right": "3px" }
1134
- }), null, 16, ["innerHTML"])) : (p(), B(tt, O({
1143
+ }), null, 16, ["innerHTML"])) : (m(), B(tt, O({
1135
1144
  key: 1,
1136
1145
  ref_for: !0
1137
1146
  }, t.value, {
@@ -1139,17 +1148,17 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1139
1148
  innerHTML: h,
1140
1149
  style: { "margin-right": "3px" }
1141
1150
  }), null, 16, ["type", "innerHTML"]))
1142
- ], 64))), 128)) : (p(), B(tt, O({ key: 1 }, t.value, {
1151
+ ], 64))), 128)) : (m(), B(tt, O({ key: 1 }, t.value, {
1143
1152
  type: o.value.replace("tag-", ""),
1144
- innerHTML: R.value || n.value
1153
+ innerHTML: Y.value || n.value
1145
1154
  }), null, 16, ["type", "innerHTML"]))
1146
- ], 4)) : o.value == "div" ? (p(), I("div", O({ key: 24 }, t.value, {
1147
- innerHTML: R.value || n.value,
1148
- style: s.value
1149
- }), null, 16, Ml)) : o.value == "span" ? (p(), I("span", O({ key: 25 }, t.value, {
1150
- innerHTML: R.value || n.value,
1151
- style: s.value
1152
- }), null, 16, Tl)) : (p(), B(Le, O({
1155
+ ], 4)) : o.value == "div" ? (m(), I("div", O({ key: 24 }, t.value, {
1156
+ innerHTML: Y.value || n.value,
1157
+ style: u.value
1158
+ }), null, 16, Tl)) : o.value == "span" ? (m(), I("span", O({ key: 25 }, t.value, {
1159
+ innerHTML: Y.value || n.value,
1160
+ style: u.value
1161
+ }), null, 16, Fl)) : (m(), B(Le, O({
1153
1162
  key: 26,
1154
1163
  modelValue: n.value,
1155
1164
  "onUpdate:modelValue": y[25] || (y[25] = (h) => n.value = h),
@@ -1160,7 +1169,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1160
1169
  a.t == "q" && g.value.table.load();
1161
1170
  }),
1162
1171
  disabled: g.value[e.value].disabled
1163
- }, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), ye({ _: 2 }, [
1172
+ }, { ...P(Oe)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), ye({ _: 2 }, [
1164
1173
  (je = t.value) != null && je.suffix ? {
1165
1174
  name: "suffix",
1166
1175
  fn: D(() => {
@@ -1168,7 +1177,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1168
1177
  return [
1169
1178
  Q("div", {
1170
1179
  innerHTML: ((h = t.value) == null ? void 0 : h.suffix) || ""
1171
- }, null, 8, Fl)
1180
+ }, null, 8, xl)
1172
1181
  ];
1173
1182
  }),
1174
1183
  key: "0"
@@ -1180,7 +1189,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1180
1189
  return [
1181
1190
  Q("div", {
1182
1191
  innerHTML: ((h = t.value) == null ? void 0 : h.prefix) || ""
1183
- }, null, 8, xl)
1192
+ }, null, 8, Vl)
1184
1193
  ];
1185
1194
  }),
1186
1195
  key: "1"
@@ -1192,7 +1201,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1192
1201
  return [
1193
1202
  Q("div", {
1194
1203
  innerHTML: ((h = t.value) == null ? void 0 : h.append) || ""
1195
- }, null, 8, Vl)
1204
+ }, null, 8, ql)
1196
1205
  ];
1197
1206
  }),
1198
1207
  key: "2"
@@ -1204,7 +1213,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1204
1213
  return [
1205
1214
  Q("div", {
1206
1215
  innerHTML: ((h = t.value) == null ? void 0 : h.prepend) || ""
1207
- }, null, 8, ql)
1216
+ }, null, 8, Al)
1208
1217
  ];
1209
1218
  }),
1210
1219
  key: "3"
@@ -1223,7 +1232,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1223
1232
  ], 64);
1224
1233
  };
1225
1234
  }
1226
- }), bt = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-83528f03"]]), Bl = { class: "g-form-container" }, Ol = /* @__PURE__ */ Object.assign({
1235
+ }), bt = /* @__PURE__ */ Ze(Bl, [["__scopeId", "data-v-83528f03"]]), Ol = { class: "g-form-container" }, Il = /* @__PURE__ */ Object.assign({
1227
1236
  name: "g-form",
1228
1237
  inheritAttrs: !1
1229
1238
  }, {
@@ -1234,7 +1243,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1234
1243
  }),
1235
1244
  emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
1236
1245
  setup(r, { expose: n, emit: a }) {
1237
- var Ce, Te, le, ne, ae, Oe;
1246
+ var Ce, Te, le, ne, ae, Ie;
1238
1247
  const t = Qe(r, "modelValue"), e = a, o = oe(null), g = Mt("options"), v = oe({}), F = oe(""), f = r;
1239
1248
  t.value.form = Ve(
1240
1249
  zt,
@@ -1244,19 +1253,19 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1244
1253
  (le = (Te = t.value) == null ? void 0 : Te.form) == null ? void 0 : le.style,
1245
1254
  { ...(ne = Tt()) == null ? void 0 : ne.style }
1246
1255
  );
1247
- const i = async (T, w) => {
1248
- let b = 5;
1249
- for (; b > 0; ) {
1256
+ const i = async (T, w, b) => {
1257
+ let s = 5;
1258
+ for (; s > 0; ) {
1250
1259
  if (await rt(), o.value) {
1251
- o.value.validate((u, q) => {
1252
- u ? e("submit", T, w) : console.error("表单验证不通过!", q);
1260
+ o.value.validate((q, k) => {
1261
+ q ? e("submit", T, w, b) : console.error("表单验证不通过!", k);
1253
1262
  });
1254
1263
  return;
1255
1264
  }
1256
- b--, await new Promise((u) => setTimeout(u, 50));
1265
+ s--, await new Promise((q) => setTimeout(q, 50));
1257
1266
  }
1258
1267
  console.error("表单实例获取失败,请检查组件状态");
1259
- }, s = async () => {
1268
+ }, u = async () => {
1260
1269
  let T = 5;
1261
1270
  for (; T > 0; ) {
1262
1271
  if (await rt(), !o.value) {
@@ -1274,7 +1283,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1274
1283
  }
1275
1284
  console.error("表单实例获取失败,请检查组件状态");
1276
1285
  };
1277
- t.value.form.submit.click = i, t.value.form.reset.click = s;
1286
+ t.value.form.submit.click = i, t.value.form.saveSubmit.click = i, t.value.form.reset.click = u;
1278
1287
  const c = {
1279
1288
  type: "hidden",
1280
1289
  labelPosition: "right",
@@ -1293,7 +1302,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1293
1302
  };
1294
1303
  t.value.form.cols = Ve(
1295
1304
  _,
1296
- (Oe = g == null ? void 0 : g.form) == null ? void 0 : Oe.cols,
1305
+ (Ie = g == null ? void 0 : g.form) == null ? void 0 : Ie.cols,
1297
1306
  t.value.form.cols
1298
1307
  );
1299
1308
  const V = (T) => {
@@ -1301,7 +1310,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1301
1310
  if (T.rules)
1302
1311
  w = T.rules;
1303
1312
  else {
1304
- const u = { ...{
1313
+ const s = { ...{
1305
1314
  required: void 0,
1306
1315
  max: void 0,
1307
1316
  min: void 0,
@@ -1310,71 +1319,71 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1310
1319
  pattern: void 0,
1311
1320
  validate: void 0
1312
1321
  }, ...T };
1313
- u.required && w.push({
1322
+ s.required && w.push({
1314
1323
  required: !0,
1315
- message: `${u.label}不能为空!`,
1324
+ message: `${s.label}不能为空!`,
1316
1325
  trigger: "blur"
1317
- }), u.max !== void 0 && u.max !== null && u.max !== "" && (u.min === void 0 || u.min === null || u.min === "") && w.push({
1318
- validator: (q, C, k) => {
1319
- if (C == null || C === "") return k();
1320
- u.type !== "number" && u.type !== "input-number" ? ((C == null ? void 0 : C.toString()) || "").length > Number(u.max) ? k(
1321
- new Error(`${u.label}长度不能超过${u.max}个字符!`)
1322
- ) : k() : Number(C) > Number(u.max) ? k(new Error(`${u.label}不能大于${u.max}!`)) : k();
1326
+ }), s.max !== void 0 && s.max !== null && s.max !== "" && (s.min === void 0 || s.min === null || s.min === "") && w.push({
1327
+ validator: (q, k, C) => {
1328
+ if (k == null || k === "") return C();
1329
+ s.type !== "number" && s.type !== "input-number" ? ((k == null ? void 0 : k.toString()) || "").length > Number(s.max) ? C(
1330
+ new Error(`${s.label}长度不能超过${s.max}个字符!`)
1331
+ ) : C() : Number(k) > Number(s.max) ? C(new Error(`${s.label}不能大于${s.max}!`)) : C();
1323
1332
  }
1324
- }), u.min !== void 0 && u.min !== null && u.min !== "" && (u.max === void 0 || u.max === null || u.max === "") && w.push({
1325
- validator: (q, C, k) => {
1326
- if (C == null || C === "") return k();
1327
- u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
1333
+ }), s.min !== void 0 && s.min !== null && s.min !== "" && (s.max === void 0 || s.max === null || s.max === "") && w.push({
1334
+ validator: (q, k, C) => {
1335
+ if (k == null || k === "") return C();
1336
+ s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ? C(
1328
1337
  new Error(
1329
- `${u.label}长度最小值${u.min}设置错误!`
1338
+ `${s.label}长度最小值${s.min}设置错误!`
1330
1339
  )
1331
- ) : C.toString().length < Number(u.min) ? k(
1340
+ ) : k.toString().length < Number(s.min) ? C(
1332
1341
  new Error(
1333
- `${u.label}长度不能少于${u.min}个字符!`
1342
+ `${s.label}长度不能少于${s.min}个字符!`
1334
1343
  )
1335
- ) : k() : Number(C) < Number(u.min) ? k(new Error(`${u.label}不能小于${u.min}!`)) : k();
1344
+ ) : C() : Number(k) < Number(s.min) ? C(new Error(`${s.label}不能小于${s.min}!`)) : C();
1336
1345
  }
1337
- }), u.min !== void 0 && u.min !== null && u.min !== "" && u.max !== void 0 && u.max !== null && u.max !== "" && w.push({
1338
- validator: (q, C, k) => {
1339
- if (C == null || C === "") return k();
1340
- const U = Number(u.min), Z = Number(u.max);
1341
- u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
1346
+ }), s.min !== void 0 && s.min !== null && s.min !== "" && s.max !== void 0 && s.max !== null && s.max !== "" && w.push({
1347
+ validator: (q, k, C) => {
1348
+ if (k == null || k === "") return C();
1349
+ const U = Number(s.min), Z = Number(s.max);
1350
+ s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ? C(
1342
1351
  new Error(
1343
- `${u.label}长度最小值${u.min}设置错误!`
1352
+ `${s.label}长度最小值${s.min}设置错误!`
1344
1353
  )
1345
- ) : C.toString().length < U || C.toString().length > Z ? k(
1354
+ ) : k.toString().length < U || k.toString().length > Z ? C(
1346
1355
  new Error(
1347
- `${u.label}长度必须在${U}-${Z}个字符之间!`
1356
+ `${s.label}长度必须在${U}-${Z}个字符之间!`
1348
1357
  )
1349
- ) : k() : Number(C) < U || C > Z ? k(new Error(`${u.label}必须在${U}-${Z}之间!`)) : k();
1358
+ ) : C() : Number(k) < U || k > Z ? C(new Error(`${s.label}必须在${U}-${Z}之间!`)) : C();
1350
1359
  }
1351
- }), u.type == "email" && w.push({ type: "email", message: "不是一个正确的邮箱地址!" }), u.type == "url" && w.push({ type: "url", message: "不是一个合正确的URL!" }), u.pattern && w.push({
1352
- pattern: u == null ? void 0 : u.pattern,
1353
- message: (u == null ? void 0 : u.message) || "格式不正确!"
1354
- }), u.validate && w.push({
1355
- validator: (q, C, k) => u.validate(q, C, k)
1360
+ }), s.type == "email" && w.push({ type: "email", message: "不是一个正确的邮箱地址!" }), s.type == "url" && w.push({ type: "url", message: "不是一个合正确的URL!" }), s.pattern && w.push({
1361
+ pattern: s == null ? void 0 : s.pattern,
1362
+ message: (s == null ? void 0 : s.message) || "格式不正确!"
1363
+ }), s.validate && w.push({
1364
+ validator: (q, k, C) => s.validate(q, k, C)
1356
1365
  });
1357
1366
  }
1358
1367
  return w;
1359
1368
  }, j = (T, w = !1) => {
1360
- var q, C, k, U, Z;
1361
- const b = w ? T : T == null ? void 0 : T.item, u = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(v.value, (q = t.value.form) == null ? void 0 : q.modalState) : (b == null ? void 0 : b.editor) || {};
1362
- if (((C = t.value.form) == null ? void 0 : C.modalState) === "edit") {
1363
- const G = typeof (b == null ? void 0 : b.editor) == "object" ? (k = b.editor) == null ? void 0 : k.ep : typeof (b == null ? void 0 : b.editor) == "function" ? u == null ? void 0 : u.ep : {};
1364
- return { ...u, ...G };
1369
+ var q, k, C, U, Z;
1370
+ const b = w ? T : T == null ? void 0 : T.item, s = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(v.value, (q = t.value.form) == null ? void 0 : q.modalState) : (b == null ? void 0 : b.editor) || {};
1371
+ if (((k = t.value.form) == null ? void 0 : k.modalState) === "edit") {
1372
+ const G = typeof (b == null ? void 0 : b.editor) == "object" ? (C = b.editor) == null ? void 0 : C.ep : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ep : {};
1373
+ return { ...s, ...G };
1365
1374
  }
1366
1375
  if (((U = t.value.form) == null ? void 0 : U.modalState) === "add") {
1367
- const G = typeof (b == null ? void 0 : b.editor) == "object" ? (Z = b.editor) == null ? void 0 : Z.ap : typeof (b == null ? void 0 : b.editor) == "function" ? u == null ? void 0 : u.ap : {};
1368
- return { ...u, ...G };
1376
+ const G = typeof (b == null ? void 0 : b.editor) == "object" ? (Z = b.editor) == null ? void 0 : Z.ap : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ap : {};
1377
+ return { ...s, ...G };
1369
1378
  }
1370
- return u;
1371
- }, R = (T) => {
1372
- var b, u, q, C, k;
1379
+ return s;
1380
+ }, Y = (T) => {
1381
+ var b, s, q, k, C;
1373
1382
  const w = typeof T.editor == "function" ? T.editor(v.value, (b = t.value.form) == null ? void 0 : b.modalState) : T.editor;
1374
- return ((u = t.value.form) == null ? void 0 : u.modalState) === "edit" ? ((q = w == null ? void 0 : w.ep) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? T.type : ((C = t.value.form) == null ? void 0 : C.modalState) === "add" ? ((k = w == null ? void 0 : w.ap) == null ? void 0 : k.type) ?? (w == null ? void 0 : w.type) ?? T.type : (w == null ? void 0 : w.type) ?? T.type;
1383
+ return ((s = t.value.form) == null ? void 0 : s.modalState) === "edit" ? ((q = w == null ? void 0 : w.ep) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? T.type : ((k = t.value.form) == null ? void 0 : k.modalState) === "add" ? ((C = w == null ? void 0 : w.ap) == null ? void 0 : C.type) ?? (w == null ? void 0 : w.type) ?? T.type : (w == null ? void 0 : w.type) ?? T.type;
1375
1384
  };
1376
1385
  ut(() => {
1377
- L(), f != null && f.editForm ? v.value = f.editForm : v.value = me.value;
1386
+ L(), f != null && f.editForm ? v.value = f.editForm : v.value = pe.value;
1378
1387
  }), Kt(() => {
1379
1388
  o.value = null;
1380
1389
  });
@@ -1391,12 +1400,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1391
1400
  }, te = Je(
1392
1401
  () => Object.fromEntries(
1393
1402
  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) => {
1394
- var b, u, q;
1403
+ var b, s, q;
1395
1404
  const w = typeof T[1].editor == "function" ? T[1].editor(v.value, (b = t.value.form) == null ? void 0 : b.modalState) : T[1].editor;
1396
- return t.value.form.modalState === "edit" ? ((u = w == null ? void 0 : w.ep) == null ? void 0 : u.editor) !== !1 : t.value.form.modalState === "add" ? ((q = w == null ? void 0 : w.ap) == null ? void 0 : q.editor) !== !1 : !0;
1405
+ return t.value.form.modalState === "edit" ? ((s = w == null ? void 0 : w.ep) == null ? void 0 : s.editor) !== !1 : t.value.form.modalState === "add" ? ((q = w == null ? void 0 : w.ap) == null ? void 0 : q.editor) !== !1 : !0;
1397
1406
  }).map((T) => [T[0], T[1]])
1398
1407
  )
1399
- ), me = Je(
1408
+ ), pe = Je(
1400
1409
  () => Object.fromEntries(
1401
1410
  Object.entries(t.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].type != "control").map((T) => [T[0], T[1].value])
1402
1411
  )
@@ -1404,11 +1413,11 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1404
1413
  const T = /* @__PURE__ */ new Map();
1405
1414
  return Object.entries(te.value).forEach(([w, b]) => {
1406
1415
  if (b.groupName) {
1407
- const u = b.groupName;
1408
- T.has(u) || T.set(u, {
1409
- groupName: u,
1416
+ const s = b.groupName;
1417
+ T.has(s) || T.set(s, {
1418
+ groupName: s,
1410
1419
  items: []
1411
- }), T.get(u).items.push({ key: w, item: b });
1420
+ }), T.get(s).items.push({ key: w, item: b });
1412
1421
  }
1413
1422
  }), T.forEach((w) => {
1414
1423
  w.tabPane = Ve(
@@ -1421,17 +1430,30 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1421
1430
  label: t.value.form.submit.label,
1422
1431
  click: t.value.form.submit.click,
1423
1432
  hidden: t.value.form.submit.hidden,
1424
- info: Ue(t.value.form.submit, (T) => !["click"].includes(T)),
1433
+ info: Oe(t.value.form.submit, (T) => !["click"].includes(T)),
1425
1434
  sort: t.value.form.submit.sort ?? 1,
1426
1435
  // 使用空值合并运算符
1427
- originalOrder: 0
1436
+ originalOrder: -1,
1437
+ // 添加原始顺序标识
1438
+ flag: 1
1439
+ },
1440
+ {
1441
+ name: "f-save-submit",
1442
+ label: t.value.form.saveSubmit.label,
1443
+ click: t.value.form.saveSubmit.click,
1444
+ hidden: t.value.form.saveSubmit.hidden,
1445
+ info: Oe(t.value.form.saveSubmit, (T) => !["click"].includes(T)),
1446
+ sort: t.value.form.saveSubmit.sort ?? 1,
1447
+ // 使用空值合并运算符
1448
+ originalOrder: 0,
1428
1449
  // 添加原始顺序标识
1450
+ flag: 2
1429
1451
  },
1430
1452
  {
1431
1453
  name: "f-reset",
1432
1454
  label: t.value.form.reset.label,
1433
1455
  click: t.value.form.reset.click,
1434
- info: Ue(t.value.form.reset, (T) => !["click"].includes(T)),
1456
+ info: Oe(t.value.form.reset, (T) => !["click"].includes(T)),
1435
1457
  hidden: t.value.form.reset.hidden,
1436
1458
  sort: t.value.form.reset.sort ?? 2,
1437
1459
  // 使用空值合并运算符
@@ -1441,13 +1463,14 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1441
1463
  ], de = Je(() => ce.filter((T) => !T.hidden).sort((T, w) => T.sort - w.sort || T.originalOrder - w.originalOrder));
1442
1464
  return n({
1443
1465
  submit: i,
1444
- reset: s,
1466
+ saveSubmit: i,
1467
+ reset: u,
1445
1468
  formData: v
1446
1469
  }), (T, w) => {
1447
- var Z, G, pe;
1448
- const b = 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");
1449
- return p(), I("div", Bl, [
1450
- K(k, O(
1470
+ var Z, G, me;
1471
+ const b = H("el-form-item"), s = H("el-col"), q = H("el-tab-pane"), k = H("el-tabs"), C = H("el-form"), U = H("el-button");
1472
+ return m(), I("div", Ol, [
1473
+ K(C, O(
1451
1474
  {
1452
1475
  ref_key: "gform",
1453
1476
  ref: o,
@@ -1459,21 +1482,21 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1459
1482
  "box-sizing": "border-box"
1460
1483
  }
1461
1484
  },
1462
- P(Ue)(
1485
+ P(Oe)(
1463
1486
  t.value.form,
1464
1487
  (E) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(E)
1465
1488
  )
1466
1489
  ), {
1467
1490
  default: D(() => [
1468
1491
  ie.value.length > 0 ? M(T.$slots, "default", { key: 0 }, () => [
1469
- K(C, O({
1492
+ K(k, O({
1470
1493
  class: "demo-tabs",
1471
1494
  modelValue: ie.value[0].groupName,
1472
1495
  "onUpdate:modelValue": w[0] || (w[0] = (E) => ie.value[0].groupName = E),
1473
1496
  style: { width: "100%" }
1474
1497
  }, t.value.form.tabs), {
1475
1498
  default: D(() => [
1476
- (p(!0), I(J, null, N(ie.value, (E) => (p(), B(q, O({
1499
+ (m(!0), I(J, null, N(ie.value, (E) => (m(), B(q, O({
1477
1500
  key: E.groupName,
1478
1501
  label: E.groupName,
1479
1502
  name: E.groupName,
@@ -1481,7 +1504,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1481
1504
  ref_for: !0
1482
1505
  }, E.tabPane), {
1483
1506
  default: D(() => [
1484
- (p(!0), I(J, null, N(E.items, (y, re) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...y == null ? void 0 : y.item.col }, {
1507
+ (m(!0), I(J, null, N(E.items, (y, re) => (m(), B(s, O({ ref_for: !0 }, { ...t.value.form.cols, ...y == null ? void 0 : y.item.col }, {
1485
1508
  key: y.key,
1486
1509
  style: { width: "100%" }
1487
1510
  }), {
@@ -1501,12 +1524,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1501
1524
  model: t.value,
1502
1525
  form: v.value
1503
1526
  }, () => [
1504
- (p(), B(bt, {
1527
+ (m(), B(bt, {
1505
1528
  modelValue: v.value[y.key],
1506
1529
  "onUpdate:modelValue": ($e) => v.value[y.key] = $e,
1507
1530
  item: j(y),
1508
1531
  ctrlKey: y.key,
1509
- ctrlType: R(y == null ? void 0 : y.item),
1532
+ ctrlType: Y(y == null ? void 0 : y.item),
1510
1533
  model: t.value,
1511
1534
  key: `${y.key}-${F.value}`,
1512
1535
  class: "g-ctrl-container",
@@ -1539,7 +1562,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1539
1562
  _: 3
1540
1563
  }, 16, ["modelValue"])
1541
1564
  ], !0) : M(T.$slots, "default", { key: 1 }, () => [
1542
- (p(!0), I(J, null, N(te.value, (E, y) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...E.col }, {
1565
+ (m(!0), I(J, null, N(te.value, (E, y) => (m(), B(s, O({ ref_for: !0 }, { ...t.value.form.cols, ...E.col }, {
1543
1566
  key: y,
1544
1567
  style: { width: "100%" }
1545
1568
  }), {
@@ -1558,7 +1581,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1558
1581
  item: E,
1559
1582
  model: t.value
1560
1583
  }, () => [
1561
- Ie(De(E.label), 1)
1584
+ Ue(De(E.label), 1)
1562
1585
  ], !0)
1563
1586
  ]),
1564
1587
  default: D(() => [
@@ -1568,12 +1591,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1568
1591
  model: t.value,
1569
1592
  form: v.value
1570
1593
  }, () => [
1571
- (p(), B(bt, {
1594
+ (m(), B(bt, {
1572
1595
  modelValue: v.value[y],
1573
1596
  "onUpdate:modelValue": (he) => v.value[y] = he,
1574
1597
  item: j(E, !0),
1575
1598
  ctrlKey: y,
1576
- ctrlType: R(E),
1599
+ ctrlType: Y(E),
1577
1600
  key: `${y}-${F.value}`,
1578
1601
  model: t.value,
1579
1602
  class: "g-ctrl-container",
@@ -1603,19 +1626,19 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1603
1626
  ]),
1604
1627
  _: 3
1605
1628
  }, 16, ["model"]),
1606
- (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 }, () => [
1629
+ (me = (G = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : G.footer) != null && me.hidden ? ge("", !0) : M(T.$slots, "f-footer", { key: 0 }, () => [
1607
1630
  Q("div", {
1608
1631
  style: qe(t.value.form.footer.style)
1609
1632
  }, [
1610
1633
  M(T.$slots, "f-footer-left", {}, void 0, !0),
1611
- (p(!0), I(J, null, N(de.value, (E) => (p(), I(J, null, [
1634
+ (m(!0), I(J, null, N(de.value, (E) => (m(), I(J, null, [
1612
1635
  M(T.$slots, E.name + "-left", {}, void 0, !0),
1613
1636
  M(T.$slots, E.name, {}, () => [
1614
1637
  K(U, O({ ref_for: !0 }, E.info, {
1615
- onClick: yt((y) => E.click(v.value, t.value), ["stop"])
1638
+ onClick: yt((y) => E.click(v.value, t.value, E.flag), ["stop"])
1616
1639
  }), {
1617
1640
  default: D(() => [
1618
- Ie(De(E == null ? void 0 : E.label), 1)
1641
+ Ue(De(E == null ? void 0 : E.label), 1)
1619
1642
  ]),
1620
1643
  _: 2
1621
1644
  }, 1040, ["onClick"])
@@ -1628,7 +1651,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1628
1651
  ]);
1629
1652
  };
1630
1653
  }
1631
- }), _t = /* @__PURE__ */ Ze(Ol, [["__scopeId", "data-v-d68f3861"]]), Ft = {
1654
+ }), _t = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-1235909e"]]), Ft = {
1632
1655
  __name: "g-query-item",
1633
1656
  props: /* @__PURE__ */ Xe(["more"], {
1634
1657
  modelValue: { required: !0 },
@@ -1645,27 +1668,27 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1645
1668
  const f = o(F);
1646
1669
  return (f == null ? void 0 : f.type) || F.type;
1647
1670
  }, v = (F) => {
1648
- var s;
1671
+ var u;
1649
1672
  const f = o(F);
1650
- let i = (f == null ? void 0 : f.width) || ((s = n.value.queryItems) == null ? void 0 : s.width) || "100%";
1673
+ let i = (f == null ? void 0 : f.width) || ((u = n.value.queryItems) == null ? void 0 : u.width) || "100%";
1651
1674
  return isNaN(i) || (i += "px"), i;
1652
1675
  };
1653
1676
  return (F, f) => {
1654
1677
  const i = H("el-form-item");
1655
- return p(!0), I(J, null, N(e(a.more), (s, c) => M(F.$slots, `q-${c}`, {
1678
+ return m(!0), I(J, null, N(e(a.more), (u, c) => M(F.$slots, `q-${c}`, {
1656
1679
  key: c,
1657
- item: s,
1680
+ item: u,
1658
1681
  queryModel: t.value,
1659
1682
  model: n.value
1660
1683
  }, () => [
1661
1684
  K(i, O({
1662
- label: s.label,
1663
- style: { width: v(s) },
1685
+ label: u.label,
1686
+ style: { width: v(u) },
1664
1687
  ref_for: !0
1665
- }, { ...n.value.queryItems, ...o(s) }), {
1688
+ }, { ...n.value.queryItems, ...o(u) }), {
1666
1689
  label: D(() => [
1667
1690
  M(F.$slots, `q-${c}-label`, {
1668
- item: s,
1691
+ item: u,
1669
1692
  model: n.value
1670
1693
  })
1671
1694
  ]),
@@ -1673,9 +1696,9 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1673
1696
  K(bt, {
1674
1697
  modelValue: t.value[c],
1675
1698
  "onUpdate:modelValue": (_) => t.value[c] = _,
1676
- item: { ...s == null ? void 0 : s.editor, ...o(s) },
1699
+ item: { ...u == null ? void 0 : u.editor, ...o(u) },
1677
1700
  ctrlKey: c,
1678
- ctrlType: g(s),
1701
+ ctrlType: g(u),
1679
1702
  model: n.value,
1680
1703
  t: "q",
1681
1704
  formInfo: t.value
@@ -1685,7 +1708,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1685
1708
  fn: D((V) => [
1686
1709
  M(F.$slots, _, {
1687
1710
  data: V,
1688
- item: s,
1711
+ item: u,
1689
1712
  model: n.value
1690
1713
  })
1691
1714
  ])
@@ -1697,10 +1720,10 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1697
1720
  ])), 128);
1698
1721
  };
1699
1722
  }
1700
- }, Il = {
1723
+ }, Ul = {
1701
1724
  key: 0,
1702
1725
  class: "outer"
1703
- }, Ul = { class: "inner" }, Yl = {
1726
+ }, Yl = { class: "inner" }, Rl = {
1704
1727
  __name: "g-query",
1705
1728
  props: {
1706
1729
  modelValue: { required: !0 },
@@ -1727,7 +1750,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1727
1750
  hidden: !0,
1728
1751
  type: "primary",
1729
1752
  label: "更多",
1730
- icon: () => ke(cl),
1753
+ icon: () => ke(fl),
1731
1754
  click: () => {
1732
1755
  o.value = !o.value;
1733
1756
  }
@@ -1746,7 +1769,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1746
1769
  hidden: !1,
1747
1770
  type: "primary",
1748
1771
  label: "查询",
1749
- icon: () => ke(fl),
1772
+ icon: () => ke(vl),
1750
1773
  click: () => {
1751
1774
  t("query", g.value), o.value = !1;
1752
1775
  }
@@ -1795,7 +1818,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1795
1818
  };
1796
1819
  a.value.queryItems = Ve(f, e == null ? void 0 : e.queryItems, a.value.queryItems);
1797
1820
  const i = (V, j) => {
1798
- const R = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (me) => V.slots[te]({
1821
+ const Y = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (pe) => V.slots[te]({
1799
1822
  model: a.value
1800
1823
  // 传递当前模型数据
1801
1824
  }), L), {});
@@ -1805,13 +1828,13 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1805
1828
  info: g.value,
1806
1829
  "onUpdate:info": (L) => g.value = L,
1807
1830
  more: j
1808
- }, R);
1809
- }, s = At(), c = () => {
1810
- var R, L, te, me, ie, ce, de, Ce, Te;
1831
+ }, Y);
1832
+ }, u = At(), c = () => {
1833
+ var Y, L, te, pe, ie, ce, de, Ce, Te;
1811
1834
  const V = [
1812
1835
  {
1813
1836
  key: "query",
1814
- hidden: (te = (L = (R = a.value) == null ? void 0 : R.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
1837
+ hidden: (te = (L = (Y = a.value) == null ? void 0 : Y.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
1815
1838
  component: Be,
1816
1839
  props: {
1817
1840
  ...a.value.query.query,
@@ -1822,7 +1845,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1822
1845
  },
1823
1846
  {
1824
1847
  key: "reset",
1825
- hidden: (ce = (ie = (me = a.value) == null ? void 0 : me.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1848
+ hidden: (ce = (ie = (pe = a.value) == null ? void 0 : pe.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1826
1849
  component: Be,
1827
1850
  props: {
1828
1851
  ...a.value.query.reset,
@@ -1841,10 +1864,10 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1841
1864
  },
1842
1865
  label: a.value.query.more.label,
1843
1866
  sort: a.value.query.more.sort || 0,
1844
- content: a.value.query.more.mode === 3 ? () => ke(pt, {
1867
+ content: a.value.query.more.mode === 3 ? () => ke(mt, {
1845
1868
  class: "query-form",
1846
- ...Ue(a.value.query, (le) => !["query", "more", "reset"].includes(le))
1847
- }, () => i({ slots: s }, !0)) : null
1869
+ ...Oe(a.value.query, (le) => !["query", "more", "reset"].includes(le))
1870
+ }, () => i({ slots: u }, !0)) : null
1848
1871
  }
1849
1872
  ];
1850
1873
  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, {
@@ -1856,46 +1879,46 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1856
1879
  flexDirection: a.value.query.container.mode === "row" ? "row" : "column"
1857
1880
  }));
1858
1881
  return (V, j) => {
1859
- var te, me, ie, ce, de, Ce, Te, le, ne, ae, Oe, T, w, b, u, q, C;
1860
- const R = H("el-form-item"), L = H("el-drawer");
1861
- return p(), I(J, null, [
1882
+ var te, pe, ie, ce, de, Ce, Te, le, ne, ae, Ie, T, w, b, s, q, k;
1883
+ const Y = H("el-form-item"), L = H("el-drawer");
1884
+ return m(), I(J, null, [
1862
1885
  Q("div", {
1863
1886
  class: "g-query-container",
1864
- style: qe({ ..._.value, ...((me = (te = a.value.query) == null ? void 0 : te.container) == null ? void 0 : me.style) || {} })
1887
+ style: qe({ ..._.value, ...((pe = (te = a.value.query) == null ? void 0 : te.container) == null ? void 0 : pe.style) || {} })
1865
1888
  }, [
1866
- K(P(pt), O({
1889
+ K(P(mt), O({
1867
1890
  onSubmit: j[0] || (j[0] = yt(() => {
1868
1891
  }, ["prevent"]))
1869
- }, P(Ue)(a.value.query, (k) => !["query", "more", "reset", "btns"].includes(k))), {
1892
+ }, P(Oe)(a.value.query, (C) => !["query", "more", "reset", "btns"].includes(C))), {
1870
1893
  default: D(() => {
1871
- var k, U;
1894
+ var C, U;
1872
1895
  return [
1873
- (p(), B(We(i({ slots: V.$slots }, void 0)))),
1874
- ((U = (k = a.value.query) == null ? void 0 : k.container) == null ? void 0 : U.inline) === !0 ? (p(), B(R, { key: 0 }, {
1896
+ (m(), B(We(i({ slots: V.$slots }, void 0)))),
1897
+ ((U = (C = a.value.query) == null ? void 0 : C.container) == null ? void 0 : U.inline) === !0 ? (m(), B(Y, { key: 0 }, {
1875
1898
  default: D(() => {
1876
- var Z, G, pe, E, y;
1899
+ var Z, G, me, E, y;
1877
1900
  return [
1878
1901
  Q("div", {
1879
1902
  style: qe((G = (Z = a.value.query) == null ? void 0 : Z.btns) == null ? void 0 : G.style)
1880
1903
  }, [
1881
- a.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1904
+ a.value.query.group ? (m(), B(P(pt), { key: 0 }, {
1882
1905
  default: D(() => [
1883
- (p(!0), I(J, null, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1884
- (p(), B(We(re)))
1906
+ (m(!0), I(J, null, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1907
+ (m(), B(We(re)))
1885
1908
  ], !0)), 256)),
1886
1909
  M(V.$slots, "q-btns", {}, void 0, !0)
1887
1910
  ]),
1888
1911
  _: 3
1889
- })) : (p(), I(J, { key: 1 }, [
1890
- (y = (E = (pe = a.value) == null ? void 0 : pe.query) == null ? void 0 : E.btns) != null && y.group ? (p(), B(P(mt), { key: 0 }, {
1912
+ })) : (m(), I(J, { key: 1 }, [
1913
+ (y = (E = (me = a.value) == null ? void 0 : me.query) == null ? void 0 : E.btns) != null && y.group ? (m(), B(P(pt), { key: 0 }, {
1891
1914
  default: D(() => [
1892
- (p(!0), I(J, null, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1893
- (p(), B(We(re)))
1915
+ (m(!0), I(J, null, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1916
+ (m(), B(We(re)))
1894
1917
  ], !0)), 256))
1895
1918
  ]),
1896
1919
  _: 3
1897
- })) : (p(!0), I(J, { key: 1 }, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1898
- (p(), B(We(re)))
1920
+ })) : (m(!0), I(J, { key: 1 }, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1921
+ (m(), B(We(re)))
1899
1922
  ], !0)), 256)),
1900
1923
  M(V.$slots, "q-btns", {}, void 0, !0)
1901
1924
  ], 64))
@@ -1908,54 +1931,54 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1908
1931
  }),
1909
1932
  _: 3
1910
1933
  }, 16),
1911
- ((de = (ce = (ie = a.value) == null ? void 0 : ie.query) == null ? void 0 : ce.container) == null ? void 0 : de.inline) === !1 ? (p(), I("div", {
1934
+ ((de = (ce = (ie = a.value) == null ? void 0 : ie.query) == null ? void 0 : ce.container) == null ? void 0 : de.inline) === !1 ? (m(), I("div", {
1912
1935
  key: 0,
1913
1936
  style: qe((Te = (Ce = a.value.query) == null ? void 0 : Ce.btns) == null ? void 0 : Te.style)
1914
1937
  }, [
1915
- a.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1938
+ a.value.query.group ? (m(), B(P(pt), { key: 0 }, {
1916
1939
  default: D(() => [
1917
- (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1918
- (p(), B(We(k)))
1940
+ (m(!0), I(J, null, N(c(), (C) => M(V.$slots, C.props.slot, {}, () => [
1941
+ (m(), B(We(C)))
1919
1942
  ], !0)), 256)),
1920
1943
  M(V.$slots, "q-btns", {}, void 0, !0)
1921
1944
  ]),
1922
1945
  _: 3
1923
- })) : (p(), I(J, { key: 1 }, [
1924
- (ne = (le = a.value.query) == null ? void 0 : le.btns) != null && ne.group ? (p(), B(P(mt), { key: 0 }, {
1946
+ })) : (m(), I(J, { key: 1 }, [
1947
+ (ne = (le = a.value.query) == null ? void 0 : le.btns) != null && ne.group ? (m(), B(P(pt), { key: 0 }, {
1925
1948
  default: D(() => [
1926
- (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1927
- (p(), B(We(k)))
1949
+ (m(!0), I(J, null, N(c(), (C) => M(V.$slots, C.props.slot, {}, () => [
1950
+ (m(), B(We(C)))
1928
1951
  ], !0)), 256))
1929
1952
  ]),
1930
1953
  _: 3
1931
- })) : (p(!0), I(J, { key: 1 }, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1932
- (p(), B(We(k)))
1954
+ })) : (m(!0), I(J, { key: 1 }, N(c(), (C) => M(V.$slots, C.props.slot, {}, () => [
1955
+ (m(), B(We(C)))
1933
1956
  ], !0)), 256)),
1934
1957
  M(V.$slots, "q-btns", {}, void 0, !0)
1935
1958
  ], 64))
1936
1959
  ], 4)) : ge("", !0)
1937
1960
  ], 4),
1938
- o.value && !((T = (Oe = (ae = a.value) == null ? void 0 : ae.query) == null ? void 0 : Oe.more) != null && T.hidden) && a.value.query.more.mode == 2 ? (p(), B(L, O({
1961
+ o.value && !((T = (Ie = (ae = a.value) == null ? void 0 : ae.query) == null ? void 0 : Ie.more) != null && T.hidden) && a.value.query.more.mode == 2 ? (m(), B(L, O({
1939
1962
  key: 0,
1940
1963
  modelValue: o.value,
1941
- "onUpdate:modelValue": j[6] || (j[6] = (k) => o.value = k),
1964
+ "onUpdate:modelValue": j[6] || (j[6] = (C) => o.value = C),
1942
1965
  title: "更多查询",
1943
1966
  "show-close": !1
1944
1967
  }, a.value.query.more.dialog), ye({
1945
1968
  default: D(() => [
1946
- K(P(pt), O({
1969
+ K(P(mt), O({
1947
1970
  onSubmit: j[3] || (j[3] = yt(() => {
1948
1971
  }, ["prevent"]))
1949
- }, P(Ue)(a.value.query, (k) => !["query", "more", "reset"].includes(k)), { style: { width: "98%" } }), {
1972
+ }, P(Oe)(a.value.query, (C) => !["query", "more", "reset"].includes(C)), { style: { width: "98%" } }), {
1950
1973
  default: D(() => [
1951
1974
  K(Ft, {
1952
1975
  modelValue: a.value,
1953
- "onUpdate:modelValue": j[1] || (j[1] = (k) => a.value = k),
1976
+ "onUpdate:modelValue": j[1] || (j[1] = (C) => a.value = C),
1954
1977
  info: g.value,
1955
- "onUpdate:info": j[2] || (j[2] = (k) => g.value = k),
1978
+ "onUpdate:info": j[2] || (j[2] = (C) => g.value = C),
1956
1979
  more: !0
1957
1980
  }, ye({ _: 2 }, [
1958
- N(V.$slots, (k, U, Z) => ({
1981
+ N(V.$slots, (C, U, Z) => ({
1959
1982
  name: U,
1960
1983
  fn: D((G) => [
1961
1984
  M(V.$slots, U, { model: a.value }, void 0, !0)
@@ -1968,23 +1991,23 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1968
1991
  ]),
1969
1992
  _: 2
1970
1993
  }, [
1971
- (C = (q = (u = (b = (w = a.value) == null ? void 0 : w.query) == null ? void 0 : b.more) == null ? void 0 : u.dialog) == null ? void 0 : q.footer) != null && C.hidden ? void 0 : {
1994
+ (k = (q = (s = (b = (w = a.value) == null ? void 0 : w.query) == null ? void 0 : b.more) == null ? void 0 : s.dialog) == null ? void 0 : q.footer) != null && k.hidden ? void 0 : {
1972
1995
  name: "footer",
1973
1996
  fn: D(() => [
1974
1997
  Q("div", Et(el(a.value.query.more.dialog.footer)), [
1975
1998
  K(P(Be), O(a.value.query.query, {
1976
- onClick: j[4] || (j[4] = (k) => a.value.query.query.click())
1999
+ onClick: j[4] || (j[4] = (C) => a.value.query.query.click())
1977
2000
  }), {
1978
2001
  default: D(() => [
1979
- Ie(De(a.value.query.query.label), 1)
2002
+ Ue(De(a.value.query.query.label), 1)
1980
2003
  ]),
1981
2004
  _: 1
1982
2005
  }, 16),
1983
2006
  K(P(Be), O(a.value.query.reset, {
1984
- onClick: j[5] || (j[5] = (k) => a.value.query.reset.click())
2007
+ onClick: j[5] || (j[5] = (C) => a.value.query.reset.click())
1985
2008
  }), {
1986
2009
  default: D(() => [
1987
- Ie(De(a.value.query.reset.label), 1)
2010
+ Ue(De(a.value.query.reset.label), 1)
1988
2011
  ]),
1989
2012
  _: 1
1990
2013
  }, 16)
@@ -1999,17 +2022,17 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1999
2022
  style: { padding: "10px" }
2000
2023
  }, {
2001
2024
  default: D(() => {
2002
- var k, U, Z;
2025
+ var C, U, Z;
2003
2026
  return [
2004
- o.value && !((Z = (U = (k = a.value) == null ? void 0 : k.query) == null ? void 0 : U.more) != null && Z.hidden) && a.value.query.more.mode == 1 ? (p(), I("div", Il, [
2005
- Q("div", Ul, [
2006
- a.value.query.more.mode == 1 ? ll((p(), B(P(pt), O({
2027
+ o.value && !((Z = (U = (C = a.value) == null ? void 0 : C.query) == null ? void 0 : U.more) != null && Z.hidden) && a.value.query.more.mode == 1 ? (m(), I("div", Ul, [
2028
+ Q("div", Yl, [
2029
+ a.value.query.more.mode == 1 ? ll((m(), B(P(mt), O({
2007
2030
  key: 0,
2008
2031
  onSubmit: j[7] || (j[7] = yt(() => {
2009
2032
  }, ["prevent"]))
2010
- }, P(Ue)(a.value.query, (G) => !["query", "more", "reset"].includes(G))), {
2033
+ }, P(Oe)(a.value.query, (G) => !["query", "more", "reset"].includes(G))), {
2011
2034
  default: D(() => [
2012
- (p(), B(We(i({ slots: V.$slots }, !0))))
2035
+ (m(), B(We(i({ slots: V.$slots }, !0))))
2013
2036
  ]),
2014
2037
  _: 1
2015
2038
  }, 16)), [
@@ -2024,10 +2047,10 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2024
2047
  ], 64);
2025
2048
  };
2026
2049
  }
2027
- }, 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 = {
2050
+ }, Ll = /* @__PURE__ */ Ze(Rl, [["__scopeId", "data-v-3f2b77d6"]]), Hl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, zl = { style: { padding: "10px", "box-sizing": "border-box" } }, Pl = { style: { margin: "10px" } }, jl = {
2028
2051
  style: { display: "flex", "flex-wrap": "wrap" },
2029
2052
  id: "excelSortEl"
2030
- }, jl = ["textContent"], Nl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Wl = {
2053
+ }, Nl = ["textContent"], Wl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Gl = {
2031
2054
  __name: "check-excel-item",
2032
2055
  props: {
2033
2056
  items: Array,
@@ -2068,10 +2091,10 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2068
2091
  f && f.destroy();
2069
2092
  });
2070
2093
  }), (F, f) => {
2071
- const i = H("el-divider"), s = H("el-alert"), c = H("el-checkbox"), _ = H("el-button");
2072
- return p(), I("div", Ll, [
2073
- Q("div", Hl, [
2074
- Q("div", zl, [
2094
+ const i = H("el-divider"), u = H("el-alert"), c = H("el-checkbox"), _ = H("el-button");
2095
+ return m(), I("div", Hl, [
2096
+ Q("div", zl, [
2097
+ Q("div", Pl, [
2075
2098
  Q("a", {
2076
2099
  onClick: o,
2077
2100
  style: { cursor: "pointer" }
@@ -2082,7 +2105,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2082
2105
  style: { cursor: "pointer" }
2083
2106
  }, "全不选")
2084
2107
  ]),
2085
- K(s, {
2108
+ K(u, {
2086
2109
  title: "拖动列标题可以改变表格列的生成顺序 !",
2087
2110
  type: "warning",
2088
2111
  "show-icon": "",
@@ -2090,8 +2113,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2090
2113
  style: { "margin-bottom": "10px" }
2091
2114
  }),
2092
2115
  f[0] || (f[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
2093
- Q("div", Pl, [
2094
- (p(!0), I(J, null, N(e.value, (V) => (p(), B(c, {
2116
+ Q("div", jl, [
2117
+ (m(!0), I(J, null, N(e.value, (V) => (m(), B(c, {
2095
2118
  class: "check-box-hover",
2096
2119
  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" },
2097
2120
  "data-id": V.key,
@@ -2104,13 +2127,13 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2104
2127
  Q("span", {
2105
2128
  textContent: De(V.label),
2106
2129
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2107
- }, null, 8, jl)
2130
+ }, null, 8, Nl)
2108
2131
  ]),
2109
2132
  _: 2
2110
2133
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
2111
2134
  ])
2112
2135
  ]),
2113
- Q("div", Nl, [
2136
+ Q("div", Wl, [
2114
2137
  K(_, {
2115
2138
  type: "primary",
2116
2139
  onClick: v,
@@ -2118,7 +2141,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2118
2141
  disabled: e.value.filter((V) => V.value).length < 1
2119
2142
  }, {
2120
2143
  default: D(() => [
2121
- Ie(De(a.commitText), 1)
2144
+ Ue(De(a.commitText), 1)
2122
2145
  ]),
2123
2146
  _: 1
2124
2147
  }, 8, ["icon", "disabled"])
@@ -2126,8 +2149,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2126
2149
  ]);
2127
2150
  };
2128
2151
  }
2129
- }, Gl = /* @__PURE__ */ Ze(Wl, [["__scopeId", "data-v-630c4ced"]]), Xl = "vue-gyc-ui", Ql = 1, ve = new $l(Xl);
2130
- ve.version(Ql).stores({
2152
+ }, Xl = /* @__PURE__ */ Ze(Gl, [["__scopeId", "data-v-630c4ced"]]), Ql = "vue-gyc-ui", Zl = 1, ve = new wl(Ql);
2153
+ ve.version(Zl).stores({
2131
2154
  // 记录表格项设置信息
2132
2155
  tableWidths: "++id, [page+key], page, key,width",
2133
2156
  // 记录表格分页条数
@@ -2149,7 +2172,7 @@ async function ht(r, n, a) {
2149
2172
  throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${n}, state: ${a}):`, t), t;
2150
2173
  }
2151
2174
  }
2152
- async function Zl(r, n, a) {
2175
+ async function Jl(r, n, a) {
2153
2176
  Ke(r);
2154
2177
  try {
2155
2178
  const t = await ve.tableWidths.where({ page: r, key: n }).first();
@@ -2158,7 +2181,7 @@ async function Zl(r, n, a) {
2158
2181
  throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${n}):`, t), t;
2159
2182
  }
2160
2183
  }
2161
- async function Jl(r) {
2184
+ async function Kl(r) {
2162
2185
  Ke(r);
2163
2186
  try {
2164
2187
  return await ve.tableWidths.where({ page: r }).toArray();
@@ -2166,7 +2189,7 @@ async function Jl(r) {
2166
2189
  throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, n), n;
2167
2190
  }
2168
2191
  }
2169
- async function Kl(r) {
2192
+ async function ea(r) {
2170
2193
  Ke(r);
2171
2194
  try {
2172
2195
  const n = await ve.tableColsState.where({ page: r }).toArray();
@@ -2175,7 +2198,7 @@ async function Kl(r) {
2175
2198
  throw console.error(`获取表格列状态时出错 (page: ${r}):`, n), n;
2176
2199
  }
2177
2200
  }
2178
- async function ea(r) {
2201
+ async function ta(r) {
2179
2202
  Ke(r);
2180
2203
  try {
2181
2204
  return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
@@ -2190,7 +2213,7 @@ async function ea(r) {
2190
2213
  throw console.error(`删除页面"${r}"的表格设置信息时出错:`, n), n;
2191
2214
  }
2192
2215
  }
2193
- async function ta({ page: r, size: n }) {
2216
+ async function la({ page: r, size: n }) {
2194
2217
  Ke(r);
2195
2218
  try {
2196
2219
  const a = await ve.pageInfo.where({ page: r }).first();
@@ -2199,7 +2222,7 @@ async function ta({ page: r, size: n }) {
2199
2222
  throw console.error(`保存分页条数时出错 (page: ${r}):`, a), a;
2200
2223
  }
2201
2224
  }
2202
- async function la(r) {
2225
+ async function aa(r) {
2203
2226
  Ke(r);
2204
2227
  try {
2205
2228
  const n = await ve.pageInfo.where({ page: r }).first();
@@ -2208,7 +2231,7 @@ async function la(r) {
2208
2231
  throw console.error(`获取分页条数时出错 (page: ${r}):`, n), n;
2209
2232
  }
2210
2233
  }
2211
- async function aa(r, n) {
2234
+ async function ra(r, n) {
2212
2235
  Ke(r);
2213
2236
  try {
2214
2237
  const a = await ve.sorts.where({ page: r }).first();
@@ -2217,7 +2240,7 @@ async function aa(r, n) {
2217
2240
  throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, a), a;
2218
2241
  }
2219
2242
  }
2220
- async function ra(r) {
2243
+ async function oa(r) {
2221
2244
  Ke(r);
2222
2245
  try {
2223
2246
  const n = await ve.sorts.where({ page: r }).first();
@@ -2226,13 +2249,13 @@ async function ra(r) {
2226
2249
  throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, n), n;
2227
2250
  }
2228
2251
  }
2229
- const oa = {
2252
+ const na = {
2230
2253
  style: { margin: "10px" },
2231
2254
  class: "allcheck"
2232
- }, na = {
2255
+ }, ua = {
2233
2256
  id: "cols",
2234
2257
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
2235
- }, ua = ["textContent"], sa = {
2258
+ }, sa = ["textContent"], ia = {
2236
2259
  __name: "columns-setting",
2237
2260
  props: /* @__PURE__ */ Xe({
2238
2261
  tuid: {
@@ -2245,19 +2268,19 @@ const oa = {
2245
2268
  }),
2246
2269
  emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
2247
2270
  setup(r, { emit: n }) {
2248
- const a = r, t = n, e = oe([]), o = Qe(r, "modelValue"), g = async (s, c) => {
2249
- s ? (o.value[c].showCol = !0, await ht(a.tuid, c, "del")) : (o.value[c].showCol = !1, await ht(a.tuid, c, "add"));
2271
+ const a = r, t = n, e = oe([]), o = Qe(r, "modelValue"), g = async (u, c) => {
2272
+ u ? (o.value[c].showCol = !0, await ht(a.tuid, c, "del")) : (o.value[c].showCol = !1, await ht(a.tuid, c, "add"));
2250
2273
  }, v = () => {
2251
- const s = document.getElementById("cols");
2252
- if (s) {
2253
- let c = Rt.create(s, {
2274
+ const u = document.getElementById("cols");
2275
+ if (u) {
2276
+ let c = Rt.create(u, {
2254
2277
  animation: 150,
2255
2278
  filter: ".filtered",
2256
2279
  sort: !0,
2257
2280
  onEnd: async () => {
2258
2281
  let _ = c.toArray();
2259
2282
  try {
2260
- aa(a.tuid, _).then((V) => {
2283
+ ra(a.tuid, _).then((V) => {
2261
2284
  t("setting-drag-end");
2262
2285
  });
2263
2286
  } catch (V) {
@@ -2271,27 +2294,27 @@ const oa = {
2271
2294
  }
2272
2295
  }, F = async () => {
2273
2296
  try {
2274
- e.value.forEach((s) => {
2275
- s.showCol = !0;
2276
- }), ht(a.tuid, [], "selectAll").then((s) => {
2297
+ e.value.forEach((u) => {
2298
+ u.showCol = !0;
2299
+ }), ht(a.tuid, [], "selectAll").then((u) => {
2277
2300
  t("select-all");
2278
2301
  });
2279
- } catch (s) {
2280
- console.error("全选列保存信息时出错:", s), Ge({
2302
+ } catch (u) {
2303
+ console.error("全选列保存信息时出错:", u), Ge({
2281
2304
  type: "error",
2282
2305
  message: "全选列保存信息失败!"
2283
2306
  });
2284
2307
  }
2285
2308
  }, f = async () => {
2286
2309
  try {
2287
- let s = e.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
2288
- s.forEach((c) => {
2310
+ let u = e.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
2311
+ u.forEach((c) => {
2289
2312
  c.showCol = !1;
2290
- }), ht(a.tuid, s.map((c) => c.value), "delAll").then((c) => {
2313
+ }), ht(a.tuid, u.map((c) => c.value), "delAll").then((c) => {
2291
2314
  t("select-all");
2292
2315
  });
2293
- } catch (s) {
2294
- console.error("清除列保存信息时出错:", s), Ge({
2316
+ } catch (u) {
2317
+ console.error("清除列保存信息时出错:", u), Ge({
2295
2318
  type: "error",
2296
2319
  message: "清除列保存信息失败!"
2297
2320
  });
@@ -2302,10 +2325,10 @@ const oa = {
2302
2325
  cancelButtonText: "取消",
2303
2326
  type: "warning"
2304
2327
  }).then(() => {
2305
- ea(a.tuid).then((s) => {
2328
+ ta(a.tuid).then((u) => {
2306
2329
  window.location.reload();
2307
- }).catch((s) => {
2308
- console.error("复位操作出错:", s), Ge({
2330
+ }).catch((u) => {
2331
+ console.error("复位操作出错:", u), Ge({
2309
2332
  type: "info",
2310
2333
  message: "复位失败!"
2311
2334
  });
@@ -2313,18 +2336,18 @@ const oa = {
2313
2336
  });
2314
2337
  };
2315
2338
  return ut(async () => {
2316
- e.value = Object.entries(o.value).filter(([, s]) => s.visible !== !1).filter(([, s]) => s.type != "hidden").map(([s, c]) => ({
2339
+ e.value = Object.entries(o.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u, c]) => ({
2317
2340
  label: c.label,
2318
- value: s,
2341
+ value: u,
2319
2342
  alwaysShow: c.alwaysShow,
2320
2343
  showCol: c.showCol !== !1,
2321
2344
  sort: c.sort || 0,
2322
2345
  width: c == null ? void 0 : c.width
2323
- })).sort((s, c) => s.sort - c.sort), v();
2324
- }), (s, c) => {
2346
+ })).sort((u, c) => u.sort - c.sort), v();
2347
+ }), (u, c) => {
2325
2348
  const _ = H("el-divider"), V = H("el-alert"), j = H("el-checkbox");
2326
- return p(), I("div", null, [
2327
- Q("div", oa, [
2349
+ return m(), I("div", null, [
2350
+ Q("div", na, [
2328
2351
  Q("a", { onClick: F }, "全选"),
2329
2352
  K(_, { direction: "vertical" }),
2330
2353
  Q("a", { onClick: f }, "全不选"),
@@ -2339,24 +2362,24 @@ const oa = {
2339
2362
  style: { "margin-bottom": "10px" }
2340
2363
  }),
2341
2364
  Q("div", null, [
2342
- Q("div", na, [
2343
- (p(!0), I(J, null, N(e.value, (R) => (p(), B(j, {
2344
- modelValue: R.showCol,
2345
- "onUpdate:modelValue": (L) => R.showCol = L,
2346
- "data-id": R.value,
2347
- class: Bt(["check-box-hover", R.value == "control" ? "filtered" : ""]),
2348
- onChange: (L) => g(L, R.value),
2365
+ Q("div", ua, [
2366
+ (m(!0), I(J, null, N(e.value, (Y) => (m(), B(j, {
2367
+ modelValue: Y.showCol,
2368
+ "onUpdate:modelValue": (L) => Y.showCol = L,
2369
+ "data-id": Y.value,
2370
+ class: Bt(["check-box-hover", Y.value == "control" ? "filtered" : ""]),
2371
+ onChange: (L) => g(L, Y.value),
2349
2372
  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" },
2350
- value: R.value,
2351
- title: R.label,
2352
- disabled: R.alwaysShow,
2353
- key: R.value
2373
+ value: Y.value,
2374
+ title: Y.label,
2375
+ disabled: Y.alwaysShow,
2376
+ key: Y.value
2354
2377
  }, {
2355
2378
  default: D(() => [
2356
2379
  Q("span", {
2357
- textContent: De(R.label),
2380
+ textContent: De(Y.label),
2358
2381
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2359
- }, null, 8, ua)
2382
+ }, null, 8, sa)
2360
2383
  ]),
2361
2384
  _: 2
2362
2385
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -2365,7 +2388,7 @@ const oa = {
2365
2388
  ]);
2366
2389
  };
2367
2390
  }
2368
- }, ia = /* @__PURE__ */ Ze(sa, [["__scopeId", "data-v-adb08f30"]]), da = { class: "title" }, ca = { class: "content" }, fa = {
2391
+ }, da = /* @__PURE__ */ Ze(ia, [["__scopeId", "data-v-adb08f30"]]), ca = { class: "title" }, fa = { class: "content" }, va = {
2369
2392
  __name: "g-cell-toopTip",
2370
2393
  props: {
2371
2394
  content: {
@@ -2381,24 +2404,24 @@ const oa = {
2381
2404
  const n = r, a = () => {
2382
2405
  n.content ? (navigator.clipboard.writeText(n.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
2383
2406
  };
2384
- return (t, e) => (p(), I("div", {
2407
+ return (t, e) => (m(), I("div", {
2385
2408
  class: "g-cell-toopTip",
2386
2409
  style: qe({ width: n.column.width + "px" })
2387
2410
  }, [
2388
- Q("div", da, [
2411
+ Q("div", ca, [
2389
2412
  e[0] || (e[0] = Q("span", { class: "title-text" }, "内容", -1)),
2390
2413
  Q("span", {
2391
2414
  class: "copy-btn",
2392
2415
  onClick: a,
2393
2416
  title: "复制内容"
2394
2417
  }, [
2395
- K(P(vl))
2418
+ K(P(ml))
2396
2419
  ])
2397
2420
  ]),
2398
- Q("div", ca, De(n.content), 1)
2421
+ Q("div", fa, De(n.content), 1)
2399
2422
  ], 4));
2400
2423
  }
2401
- }, va = /* @__PURE__ */ Ze(fa, [["__scopeId", "data-v-f28912da"]]);
2424
+ }, ma = /* @__PURE__ */ Ze(va, [["__scopeId", "data-v-f28912da"]]);
2402
2425
  var Pt = { exports: {} }, jt = { exports: {} };
2403
2426
  (function() {
2404
2427
  var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
@@ -2499,38 +2522,38 @@ var pa = jt.exports, kt = {
2499
2522
  * @author Feross Aboukhadijeh <https://feross.org>
2500
2523
  * @license MIT
2501
2524
  */
2502
- var ma = function(r) {
2503
- return r != null && (Nt(r) || ha(r) || !!r._isBuffer);
2525
+ var ha = function(r) {
2526
+ return r != null && (Nt(r) || ya(r) || !!r._isBuffer);
2504
2527
  };
2505
2528
  function Nt(r) {
2506
2529
  return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
2507
2530
  }
2508
- function ha(r) {
2531
+ function ya(r) {
2509
2532
  return typeof r.readFloatLE == "function" && typeof r.slice == "function" && Nt(r.slice(0, 0));
2510
2533
  }
2511
2534
  (function() {
2512
- var r = pa, n = xt.utf8, a = ma, t = xt.bin, e = function(o, g) {
2535
+ var r = pa, n = xt.utf8, a = ha, t = xt.bin, e = function(o, g) {
2513
2536
  o.constructor == String ? g && g.encoding === "binary" ? o = t.stringToBytes(o) : o = n.stringToBytes(o) : a(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
2514
- for (var v = r.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, s = -1732584194, c = 271733878, _ = 0; _ < v.length; _++)
2537
+ for (var v = r.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, u = -1732584194, c = 271733878, _ = 0; _ < v.length; _++)
2515
2538
  v[_] = (v[_] << 8 | v[_] >>> 24) & 16711935 | (v[_] << 24 | v[_] >>> 8) & 4278255360;
2516
2539
  v[F >>> 5] |= 128 << F % 32, v[(F + 64 >>> 9 << 4) + 14] = F;
2517
- for (var V = e._ff, j = e._gg, R = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
2518
- var te = f, me = i, ie = s, ce = c;
2519
- 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;
2540
+ for (var V = e._ff, j = e._gg, Y = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
2541
+ var te = f, pe = i, ie = u, ce = c;
2542
+ 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 = j(f, i, u, c, v[_ + 1], 5, -165796510), c = j(c, f, i, u, v[_ + 6], 9, -1069501632), u = j(u, c, f, i, v[_ + 11], 14, 643717713), i = j(i, u, c, f, v[_ + 0], 20, -373897302), f = j(f, i, u, c, v[_ + 5], 5, -701558691), c = j(c, f, i, u, v[_ + 10], 9, 38016083), u = j(u, c, f, i, v[_ + 15], 14, -660478335), i = j(i, u, c, f, v[_ + 4], 20, -405537848), f = j(f, i, u, c, v[_ + 9], 5, 568446438), c = j(c, f, i, u, v[_ + 14], 9, -1019803690), u = j(u, c, f, i, v[_ + 3], 14, -187363961), i = j(i, u, c, f, v[_ + 8], 20, 1163531501), f = j(f, i, u, c, v[_ + 13], 5, -1444681467), c = j(c, f, i, u, v[_ + 2], 9, -51403784), u = j(u, c, f, i, v[_ + 7], 14, 1735328473), i = j(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 + te >>> 0, i = i + pe >>> 0, u = u + ie >>> 0, c = c + ce >>> 0;
2520
2543
  }
2521
- return r.endian([f, i, s, c]);
2544
+ return r.endian([f, i, u, c]);
2522
2545
  };
2523
- e._ff = function(o, g, v, F, f, i, s) {
2524
- var c = o + (g & v | ~g & F) + (f >>> 0) + s;
2546
+ e._ff = function(o, g, v, F, f, i, u) {
2547
+ var c = o + (g & v | ~g & F) + (f >>> 0) + u;
2525
2548
  return (c << i | c >>> 32 - i) + g;
2526
- }, e._gg = function(o, g, v, F, f, i, s) {
2527
- var c = o + (g & F | v & ~F) + (f >>> 0) + s;
2549
+ }, e._gg = function(o, g, v, F, f, i, u) {
2550
+ var c = o + (g & F | v & ~F) + (f >>> 0) + u;
2528
2551
  return (c << i | c >>> 32 - i) + g;
2529
- }, e._hh = function(o, g, v, F, f, i, s) {
2530
- var c = o + (g ^ v ^ F) + (f >>> 0) + s;
2552
+ }, e._hh = function(o, g, v, F, f, i, u) {
2553
+ var c = o + (g ^ v ^ F) + (f >>> 0) + u;
2531
2554
  return (c << i | c >>> 32 - i) + g;
2532
- }, e._ii = function(o, g, v, F, f, i, s) {
2533
- var c = o + (v ^ (g | ~F)) + (f >>> 0) + s;
2555
+ }, e._ii = function(o, g, v, F, f, i, u) {
2556
+ var c = o + (v ^ (g | ~F)) + (f >>> 0) + u;
2534
2557
  return (c << i | c >>> 32 - i) + g;
2535
2558
  }, e._blocksize = 16, e._digestsize = 16, Pt.exports = function(o, g) {
2536
2559
  if (o == null)
@@ -2539,14 +2562,14 @@ function ha(r) {
2539
2562
  return g && g.asBytes ? v : g && g.asString ? t.bytesToString(v) : r.bytesToHex(v);
2540
2563
  };
2541
2564
  })();
2542
- var ya = Pt.exports;
2543
- const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "flex", "margin-top": "-2px" } }, wa = { style: { display: "flex", flex: "1" } }, Ea = {
2565
+ var ga = Pt.exports;
2566
+ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "flex", "margin-top": "-2px" } }, Ea = { style: { display: "flex", flex: "1" } }, _a = {
2544
2567
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
2545
2568
  id: "table-form"
2546
- }, _a = { key: 1 }, ka = { style: { display: "flex" } }, Ca = { style: { display: "flex", flex: "1" } }, Da = { class: "g-table-container" }, Sa = {
2569
+ }, ka = { key: 1 }, Ca = { style: { display: "flex" } }, Da = { style: { display: "flex", flex: "1" } }, Sa = { class: "g-table-container" }, Ma = {
2547
2570
  key: 0,
2548
2571
  class: "table-query-container"
2549
- }, Ma = { class: "table-container" }, Ta = ["innerHTML"], Fa = /* @__PURE__ */ Object.assign({
2572
+ }, Ta = { class: "table-container" }, Fa = ["innerHTML"], xa = /* @__PURE__ */ Object.assign({
2550
2573
  name: "g-table",
2551
2574
  inheritAttrs: !1
2552
2575
  }, {
@@ -2568,7 +2591,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2568
2591
  var Ye, st, it, dt, ct, ft, vt;
2569
2592
  const t = a, e = Qe(r, "modelValue"), o = Mt("options"), g = 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]);
2570
2593
  g.value = Object.fromEntries(f);
2571
- const i = oe(!1), s = [
2594
+ const i = oe(!1), u = [
2572
2595
  "type",
2573
2596
  "index",
2574
2597
  "label",
@@ -2597,7 +2620,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2597
2620
  "filter-multiple",
2598
2621
  "filter-method",
2599
2622
  "filtered-value"
2600
- ], c = oe([]), _ = Tt(), V = oe({}), j = oe([]), R = oe(null), L = oe(""), te = oe("/"), me = oe({
2623
+ ], c = oe([]), _ = Tt(), V = oe({}), j = oe([]), Y = oe(null), L = oe(""), te = oe("/"), pe = oe({
2601
2624
  autoWatch: !1,
2602
2625
  data: [],
2603
2626
  border: !0,
@@ -2606,15 +2629,15 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2606
2629
  fit: !1,
2607
2630
  type: "hidden",
2608
2631
  load: async () => {
2609
- e.value.table.page.pageSize = await la(te.value);
2632
+ e.value.table.page.pageSize = await aa(te.value);
2610
2633
  let { currentPage: l, pageSize: d } = e.value.table.page;
2611
2634
  try {
2612
2635
  t(
2613
2636
  "load",
2614
2637
  { currentPage: l, pageSize: d, ...g.value },
2615
- (m = [], $ = 0, { fields: A = [], sums: Y = {} } = {}) => {
2638
+ (p = [], $ = 0, { fields: A = [], sums: R = {} } = {}) => {
2616
2639
  var W;
2617
- if (!Array.isArray(m)) {
2640
+ if (!Array.isArray(p)) {
2618
2641
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
2619
2642
  return;
2620
2643
  }
@@ -2622,19 +2645,19 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2622
2645
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
2623
2646
  return;
2624
2647
  }
2625
- 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 = $, j.value = A, V.value = Y, $e(), L.value = Math.random().toString(36).substring(2);
2648
+ e.value.table.data = p, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(Y.value), e.value.table.page.total = $, j.value = A, V.value = R, $e(), L.value = Math.random().toString(36).substring(2);
2626
2649
  },
2627
- R.value
2650
+ Y.value
2628
2651
  );
2629
- } catch (m) {
2630
- console.error("触发 load 事件时出现错误:", m), Ge.error("数据加载时出现错误,请稍后重试。");
2652
+ } catch (p) {
2653
+ console.error("触发 load 事件时出现错误:", p), Ge.error("数据加载时出现错误,请稍后重试。");
2631
2654
  }
2632
2655
  },
2633
- onHeaderDragend: (l, d, m) => {
2634
- Zl(te.value, m.property, l);
2656
+ onHeaderDragend: (l, d, p) => {
2657
+ Jl(te.value, p.property, l);
2635
2658
  },
2636
- onRowDblclick: (l, d, m) => {
2637
- e.value.table.dblclickType == "edit" ? w(l, d, m, e) : e.value.table.dblclickType == "view" ? u(l, d, m, e) : e.value.table.dblclickType == "delete" ? b(l, d, m, e) : e.value.table.dblclickType(l, d, m, e);
2659
+ onRowDblclick: (l, d, p) => {
2660
+ e.value.table.dblclickType == "edit" ? w(l, d, p, e) : e.value.table.dblclickType == "view" ? s(l, d, p, e) : e.value.table.dblclickType == "delete" ? b(l, d, p, e) : e.value.table.dblclickType(l, d, p, e);
2638
2661
  },
2639
2662
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2640
2663
  page: {
@@ -2654,18 +2677,18 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2654
2677
  e.value.table.page.currentPage = l, e.value.table.load();
2655
2678
  },
2656
2679
  onSizeChange: (l) => {
2657
- ta({ page: te.value, size: l }).then(() => {
2680
+ la({ page: te.value, size: l }).then(() => {
2658
2681
  e.value.table.page.pageSize = l, e.value.table.load();
2659
2682
  });
2660
2683
  }
2661
2684
  },
2662
2685
  dblclickType: "edit",
2663
- "summary-method": ({ columns: l, data: d }, m) => m,
2664
- onSortChange: ({ column: l, prop: d, order: m }, $) => {
2686
+ "summary-method": ({ columns: l, data: d }, p) => p,
2687
+ onSortChange: ({ column: l, prop: d, order: p }, $) => {
2665
2688
  }
2666
2689
  });
2667
2690
  e.value.table = Ve(
2668
- me.value,
2691
+ pe.value,
2669
2692
  o == null ? void 0 : o.table,
2670
2693
  e.value.table,
2671
2694
  _
@@ -2680,7 +2703,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2680
2703
  fixed: "right",
2681
2704
  style: { ...(st = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : st.style },
2682
2705
  validate: async (l) => await !0,
2683
- view: (l, d, m, $) => ({
2706
+ view: (l, d, p, $) => ({
2684
2707
  label: "查看",
2685
2708
  text: !0,
2686
2709
  type: "success",
@@ -2688,28 +2711,28 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2688
2711
  icon: () => ke(pl),
2689
2712
  auth: () => {
2690
2713
  var A;
2691
- return !(((A = $ == null ? void 0 : $.control) == null ? void 0 : A.add($).inline) === !0 && m === 0);
2714
+ return !(((A = $ == null ? void 0 : $.control) == null ? void 0 : A.add($).inline) === !0 && p === 0);
2692
2715
  }
2693
2716
  }),
2694
- edit: (l, d, m, $) => ({
2717
+ edit: (l, d, p, $) => ({
2695
2718
  label: "编辑",
2696
2719
  text: !0,
2697
2720
  type: "primary",
2698
2721
  mode: "dialog",
2699
- icon: () => ke(ml),
2722
+ icon: () => ke(hl),
2700
2723
  auth: () => {
2701
2724
  var A;
2702
2725
  return ((A = $ == null ? void 0 : $.control) == null ? void 0 : A.add($).inline) !== !0;
2703
2726
  }
2704
2727
  }),
2705
- delete: (l, d, m, $) => ({
2728
+ delete: (l, d, p, $) => ({
2706
2729
  text: !0,
2707
2730
  label: "删除",
2708
2731
  type: "danger",
2709
2732
  icon: () => ke(Ut),
2710
2733
  auth: () => {
2711
2734
  var A;
2712
- return !(((A = $.control) == null ? void 0 : A.add($).inline) === !0 && m === 0);
2735
+ return !(((A = $.control) == null ? void 0 : A.add($).inline) === !0 && p === 0);
2713
2736
  },
2714
2737
  dialog: {
2715
2738
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2721,11 +2744,11 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2721
2744
  }
2722
2745
  }
2723
2746
  }),
2724
- save: (l, d, m, $) => ({
2725
- label: $.control.add($).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2747
+ save: (l, d, p, $) => ({
2748
+ label: $.control.add($).inline !== !0 ? "保存" : p === 0 ? "新增" : "保存",
2726
2749
  text: !0,
2727
2750
  icon: () => ke(Ot),
2728
- type: $.control.add($).inline !== !0 || m === 0 ? "primary" : "success",
2751
+ type: $.control.add($).inline !== !0 || p === 0 ? "primary" : "success",
2729
2752
  sort: -1,
2730
2753
  auth: () => {
2731
2754
  var A;
@@ -2738,7 +2761,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2738
2761
  type: "primary",
2739
2762
  mode: "dialog",
2740
2763
  inline: !1,
2741
- icon: () => ke(hl),
2764
+ icon: () => ke(yl),
2742
2765
  auth: () => !0
2743
2766
  }),
2744
2767
  download: (l) => ({
@@ -2755,20 +2778,20 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2755
2778
  text: !1,
2756
2779
  type: "primary",
2757
2780
  mode: "dialog",
2758
- icon: () => ke(yl),
2781
+ icon: () => ke(gl),
2759
2782
  auth: () => !0
2760
2783
  }),
2761
- dropdown: (l, d, m, $) => ({
2784
+ dropdown: (l, d, p, $) => ({
2762
2785
  label: "编辑",
2763
2786
  operate: "edit",
2764
2787
  "split-button": !0,
2765
2788
  type: "primary",
2766
2789
  size: "small",
2767
- auth: () => !($.control.add($).inline === !0 && m == 0),
2790
+ auth: () => !($.control.add($).inline === !0 && p == 0),
2768
2791
  onClick: () => {
2769
- var Y;
2770
- let A = (Y = de(l, d, m, $)) == null ? void 0 : Y.operate;
2771
- A === "edit" ? w(l, d, m, $) : A === "delete" ? b(l, d, m, $) : A === "view" && u(l, d, m, $);
2792
+ var R;
2793
+ let A = (R = de(l, d, p, $)) == null ? void 0 : R.operate;
2794
+ A === "edit" ? w(l, d, p, $) : A === "delete" ? b(l, d, p, $) : A === "view" && s(l, d, p, $);
2772
2795
  },
2773
2796
  "button-props": { round: !0, plain: !0 }
2774
2797
  })
@@ -2779,32 +2802,32 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2779
2802
  (it = e.value) == null ? void 0 : it.control
2780
2803
  );
2781
2804
  const ce = (l, d = !0) => {
2782
- const m = e.value.control[l], $ = d ? (A, Y, W, fe) => {
2805
+ const p = e.value.control[l], $ = d ? (A, R, W, fe) => {
2783
2806
  var Le, He, et;
2784
- if (!A || !Y || W == null)
2807
+ if (!A || !R || W == null)
2785
2808
  return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
2786
- 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)) || {};
2809
+ const _e = ((Le = ie[l]) == null ? void 0 : Le.call(ie, A, R, W, fe)) || {}, Fe = ((et = (He = o == null ? void 0 : o.control) == null ? void 0 : He[l]) == null ? void 0 : et.call(He, A, R, W, fe)) || {}, Re = (p == null ? void 0 : p(A, R, W, fe)) || {};
2787
2810
  return Ve(_e, Fe, Re) || {};
2788
2811
  } : (A) => {
2789
2812
  var _e, Fe, Re;
2790
- 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)) || {};
2791
- return Ve(Y, W, fe) || {};
2813
+ const R = ((_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 = (p == null ? void 0 : p(A)) || {};
2814
+ return Ve(R, W, fe) || {};
2792
2815
  };
2793
2816
  e.value.control[l] = $;
2794
2817
  };
2795
2818
  ce("edit"), ce("delete"), ce("view"), ce("save"), ce("add", !1), ce("download", !1), ce("setting", !1);
2796
- const de = (l, d, m, $) => {
2819
+ const de = (l, d, p, $) => {
2797
2820
  var fe, _e, Fe, Re, Le, He;
2798
- if (!l || !d || m == null)
2821
+ if (!l || !d || p == null)
2799
2822
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
2800
- const A = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, m, $)) || {}, Y = ((Fe = (_e = o == null ? void 0 : o.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Fe.call(_e, l, d, m, $)) || {}, 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, $)) || {};
2801
- return Ve(A, Y, W) || {};
2823
+ const A = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, p, $)) || {}, R = ((Fe = (_e = o == null ? void 0 : o.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Fe.call(_e, l, d, p, $)) || {}, W = ((He = (Le = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Le.dropdown) == null ? void 0 : He.call(Le, l, d, p, $)) || {};
2824
+ return Ve(A, R, W) || {};
2802
2825
  }, Ce = {
2803
2826
  type: "hidden",
2804
2827
  "min-width": 100,
2805
2828
  align: "center",
2806
- formatter: (l, d, m, $) => m,
2807
- "tooltip-formatter": ({ row: l, column: d, cellValue: m }) => ke(va, { content: m, column: d })
2829
+ formatter: (l, d, p, $) => p,
2830
+ "tooltip-formatter": ({ row: l, column: d, cellValue: p }) => ke(ma, { content: p, column: d })
2808
2831
  };
2809
2832
  e.value.tableColumns = Ve(
2810
2833
  Ce,
@@ -2840,11 +2863,11 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2840
2863
  overflow: !0,
2841
2864
  max: {
2842
2865
  style: {},
2843
- icon: () => ke(gl)
2866
+ icon: () => ke(bl)
2844
2867
  },
2845
2868
  min: {
2846
2869
  style: {},
2847
- icon: () => ke(bl)
2870
+ icon: () => ke($l)
2848
2871
  // 最小化图标
2849
2872
  }
2850
2873
  };
@@ -2854,110 +2877,112 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2854
2877
  (vt = e.value) == null ? void 0 : vt.dialog
2855
2878
  );
2856
2879
  const ne = (l, d) => {
2857
- let m = d;
2858
- 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(
2859
- parseFloat(m).toFixed(l.decimals.num)
2880
+ let p = d;
2881
+ if (l.decimals && !isNaN(parseFloat(d)) && (typeof l.decimals == "number" ? p = parseFloat(p).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? p = parseFloat(p).toFixed(l.decimals.num) : p = parseFloat(
2882
+ parseFloat(p).toFixed(l.decimals.num)
2860
2883
  ).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && wt(d).isValid()) {
2861
2884
  const A = {
2862
2885
  date: "YYYY-MM-DD",
2863
2886
  datetime: "YYYY-MM-DD HH:mm:ss",
2864
2887
  time: "HH:mm:ss"
2865
2888
  };
2866
- m = l.format ? wt(m).format(l.format) : wt(m).format(A[l.type]);
2889
+ p = l.format ? wt(p).format(l.format) : wt(p).format(A[l.type]);
2867
2890
  }
2868
- return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${St(
2869
- parseFloat(m)
2870
- )}">${ja(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
2891
+ return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, p = `<span title="${St(
2892
+ parseFloat(p)
2893
+ )}">${Na(parseFloat(p))}</span>`), l.prefix && p && (p = `<span>${l.prefix}${p}</span>`), l.suffix && p && (p = `${p}<span>${l.suffix}</span>`), p;
2871
2894
  }, ae = (l) => {
2872
2895
  g.value = Object.fromEntries(f), e.value.table.load();
2873
- }, Oe = (l) => {
2896
+ }, Ie = (l) => {
2874
2897
  g.value = l, e.value.table.load();
2875
2898
  }, T = async (l) => {
2876
- var d, m;
2899
+ var d, p;
2877
2900
  e.value.form.modalState = "add";
2878
2901
  try {
2879
- if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { initFormData: R.value, m: l }))) return;
2902
+ if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { row: Y.value, m: l }))) return;
2880
2903
  } catch ($) {
2881
2904
  console.error("验证失败:", $);
2882
2905
  return;
2883
2906
  }
2884
- (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(($) => {
2885
- e.value[$] && (e.value[$].value = R.value[$]);
2907
+ (p = e.value.control.add(l)) != null && p.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.saveSubmit.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(($) => {
2908
+ e.value[$] && (e.value[$].value = Y.value[$]);
2886
2909
  }), i.value = !0, t("open", "add", { m: l }), gt());
2887
- }, w = async (l, d, m, $) => {
2888
- var A, Y;
2910
+ }, w = async (l, d, p, $) => {
2911
+ var A, R;
2889
2912
  e.value.form.modalState = "edit";
2890
2913
  try {
2891
- if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: d, index: m, m: $ }))) return;
2914
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: d, index: p, m: $ }))) return;
2892
2915
  } catch (W) {
2893
2916
  console.error("验证失败:", W);
2894
2917
  return;
2895
2918
  }
2896
- (Y = e.value.control.edit(l, d, m, $)) != null && Y.click ? e.value.control.edit(l, d, m, $).click(l, d, m, $) : (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, $).mode, e.value.dialog.title = e.value.control.edit(l, d, m, $).title || e.value.control.edit(l, d, m, $).label || "编辑", Object.keys(l).forEach((W) => {
2919
+ (R = e.value.control.edit(l, d, p, $)) != null && R.click ? e.value.control.edit(l, d, p, $).click(l, d, p, $) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.saveSubmit.hidden = !0, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, d, p, $).mode, e.value.dialog.title = e.value.control.edit(l, d, p, $).title || e.value.control.edit(l, d, p, $).label || "编辑", Object.keys(l).forEach((W) => {
2897
2920
  e.value[W] && (e.value[W].value = l[W]);
2898
- }), i.value = !0, t("open", "edit", { m: $, row: l, column: d, index: m }), gt());
2899
- }, b = async (l, d, m, $) => {
2900
- var A, Y;
2921
+ }), i.value = !0, t("open", "edit", { m: $, row: l, column: d, index: p }), gt());
2922
+ }, b = async (l, d, p, $) => {
2923
+ var A, R;
2901
2924
  try {
2902
- if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: d, index: m, m: $ }))) return;
2925
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: d, index: p, m: $ }))) return;
2903
2926
  } catch (W) {
2904
2927
  console.error("验证失败:", W);
2905
2928
  return;
2906
2929
  }
2907
- if ((Y = e.value.control.delete(l, d, m, $)) != null && Y.click)
2908
- e.value.control.delete(l, d, m, $).click(l, d, m, $);
2930
+ if ((R = e.value.control.delete(l, d, p, $)) != null && R.click)
2931
+ e.value.control.delete(l, d, p, $).click(l, d, p, $);
2909
2932
  else {
2910
- let { message: W, title: fe, options: _e } = e.value.control.delete(l, d, m, $).dialog;
2933
+ let { message: W, title: fe, options: _e } = e.value.control.delete(l, d, p, $).dialog;
2911
2934
  qt.confirm(W, fe, _e).then(() => {
2912
2935
  t(
2913
2936
  "delete",
2914
- { row: l, column: d, index: m, m: $ },
2937
+ { row: l, column: d, index: p, m: $ },
2915
2938
  (Fe = !0, Re = !1) => {
2916
- Fe && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Re && e.value.table.load();
2939
+ Fe && (e.value.table.data.splice(p, 1), e.value.table.page.total--), Re && e.value.table.load();
2917
2940
  }
2918
2941
  );
2919
2942
  }).catch(() => {
2920
2943
  });
2921
2944
  }
2922
- }, u = async (l, d, m, $) => {
2923
- var A, Y;
2945
+ }, s = async (l, d, p, $) => {
2946
+ var A, R;
2924
2947
  e.value.form.modalState = void 0;
2925
2948
  try {
2926
- if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: d, index: m, m: $ }))) return;
2949
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: d, index: p, m: $ }))) return;
2927
2950
  } catch (W) {
2928
2951
  console.error("验证失败:", W);
2929
2952
  return;
2930
2953
  }
2931
- (Y = e.value.control.view(l, d, m, $)) != null && Y.click ? e.value.control.view(l, d, m, $).click(l, d, m, $) : (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, $).mode, e.value.dialog.title = e.value.control.view(l, d, m, $).title || e.value.control.view(l, d, m, $).label || "查看", Object.keys(l).forEach((W) => {
2954
+ (R = e.value.control.view(l, d, p, $)) != null && R.click ? e.value.control.view(l, d, p, $).click(l, d, p, $) : (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, p, $).mode, e.value.dialog.title = e.value.control.view(l, d, p, $).title || e.value.control.view(l, d, p, $).label || "查看", Object.keys(l).forEach((W) => {
2932
2955
  e.value[W] && (e.value[W].value = l[W]);
2933
- }), i.value = !0, t("open", "view", { m: $, row: l, column: d, index: m }), gt());
2934
- }, q = (l, d, m, $) => {
2956
+ }), i.value = !0, t("open", "view", { m: $, row: l, column: d, index: p }), gt());
2957
+ }, q = (l, d, p, $) => {
2935
2958
  var A;
2936
- (A = e.value.control.save(l, d, m, $)) != null && A.click ? e.value.control.save(l, d, m, $).click(l, d, m, $) : t(
2959
+ (A = e.value.control.save(l, d, p, $)) != null && A.click ? e.value.control.save(l, d, p, $).click(l, d, p, $) : t(
2937
2960
  "row-save",
2938
- { row: l, column: d, index: m, data: e.value.table.data },
2939
- (Y = !0, W = !0) => {
2940
- Y && e.value.table.load(), W && rt(() => {
2941
- R.value = Object.assign(
2961
+ { row: l, column: d, index: p, data: e.value.table.data },
2962
+ (R = !0, W = !0) => {
2963
+ R && e.value.table.load(), W && rt(() => {
2964
+ Y.value = Object.assign(
2942
2965
  {},
2943
2966
  Object.fromEntries(
2944
2967
  Object.entries(
2945
- Ue(e.value, (fe, _e) => _e.type != "control" && _e.editor !== !1 && _e.type != "hidden")
2968
+ Oe(e.value, (fe, _e) => _e.type != "control" && _e.editor !== !1 && _e.type != "hidden")
2946
2969
  ).map(([fe, _e]) => [fe, _e.value])
2947
2970
  )
2948
2971
  );
2949
2972
  });
2950
2973
  }
2951
2974
  );
2952
- }, C = (l, d) => {
2953
- t("submit", e.value.form.modalState, l, d, (m) => {
2954
- m && (i.value = !1, d.table.load());
2975
+ }, k = (l, d, p) => {
2976
+ t("submit", e.value.form.modalState, l, d, ($) => {
2977
+ $ && (p === 1 && (i.value = !1), Object.keys(Y.value).forEach((A) => {
2978
+ l[A] = Y.value[A];
2979
+ }), d.table.load());
2955
2980
  });
2956
- }, k = (l) => {
2981
+ }, C = (l) => {
2957
2982
  t("reset", l);
2958
2983
  }, U = (l, d) => {
2959
- var m;
2960
- if ((m = l.control.download(l)) != null && m.click)
2984
+ var p;
2985
+ if ((p = l.control.download(l)) != null && p.click)
2961
2986
  l.control.download(l).click(l, d);
2962
2987
  else {
2963
2988
  let $ = Dt(
@@ -2966,11 +2991,11 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2966
2991
  size: l.control.download(l).size || 480,
2967
2992
  width: l.control.download(l).width || 600,
2968
2993
  slots: {
2969
- default: () => ke(Gl, {
2994
+ default: () => ke(Xl, {
2970
2995
  items: d,
2971
2996
  commitText: l.control.download(l).excelLabel,
2972
- onExcel: (A, Y) => {
2973
- t("download", A, g.value, Y), $();
2997
+ onExcel: (A, R) => {
2998
+ t("download", A, g.value, R), $();
2974
2999
  }
2975
3000
  })
2976
3001
  }
@@ -2986,13 +3011,13 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
2986
3011
  size: l.control.setting(l).size || 470,
2987
3012
  width: l.control.setting(l).width || 600,
2988
3013
  slots: {
2989
- default: () => ke(ia, {
3014
+ default: () => ke(da, {
2990
3015
  modelValue: l,
2991
3016
  tuid: te.value,
2992
3017
  onSettingDragEnd: async () => {
2993
3018
  await Me(te.value);
2994
3019
  },
2995
- onSelectAll: async (m) => {
3020
+ onSelectAll: async (p) => {
2996
3021
  await Me(te.value);
2997
3022
  }
2998
3023
  })
@@ -3000,37 +3025,37 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3000
3025
  },
3001
3026
  l.control.setting(l).mode
3002
3027
  );
3003
- }, G = e.value.control, pe = [
3028
+ }, G = e.value.control, me = [
3004
3029
  { type: "add", func: T },
3005
3030
  { type: "download", func: U },
3006
3031
  { type: "setting", func: Z },
3007
- { type: "view", func: u },
3032
+ { type: "view", func: s },
3008
3033
  { type: "edit", func: w },
3009
3034
  { type: "delete", func: b },
3010
3035
  { type: "save", func: q }
3011
- ], E = (l, d, m, $, A) => pe.filter((Y) => l.includes(Y.type)).map(({ type: Y, func: W }) => {
3036
+ ], E = (l, d, p, $, A) => me.filter((R) => l.includes(R.type)).map(({ type: R, func: W }) => {
3012
3037
  var fe, _e, Fe;
3013
3038
  return {
3014
- name: `control-${Y}`,
3015
- attr: G == null ? void 0 : G[Y](d, m, $, A),
3039
+ name: `control-${R}`,
3040
+ attr: G == null ? void 0 : G[R](d, p, $, A),
3016
3041
  func: W,
3017
- label: (fe = G == null ? void 0 : G[Y](d, m, $, A)) == null ? void 0 : fe.label,
3018
- sort: ((_e = G == null ? void 0 : G[Y](d, m, $, A)) == null ? void 0 : _e.sort) || 0,
3019
- groupName: ((Fe = G == null ? void 0 : G[Y](d, m, $, A)) == null ? void 0 : Fe.groupName) || "default"
3042
+ label: (fe = G == null ? void 0 : G[R](d, p, $, A)) == null ? void 0 : fe.label,
3043
+ sort: ((_e = G == null ? void 0 : G[R](d, p, $, A)) == null ? void 0 : _e.sort) || 0,
3044
+ groupName: ((Fe = G == null ? void 0 : G[R](d, p, $, A)) == null ? void 0 : Fe.groupName) || "default"
3020
3045
  };
3021
- }).sort((Y, W) => Y.sort - W.sort), y = (l, d, m, $, A) => E(l, d, m, $, A).reduce((Y, W) => {
3046
+ }).sort((R, W) => R.sort - W.sort), y = (l, d, p, $, A) => E(l, d, p, $, A).reduce((R, W) => {
3022
3047
  const fe = W.groupName || "default";
3023
- return Y[fe] || (Y[fe] = []), Y[fe].push(W), Y;
3048
+ return R[fe] || (R[fe] = []), R[fe].push(W), R;
3024
3049
  }, {}), re = Je(
3025
3050
  () => Object.fromEntries(
3026
3051
  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)
3027
3052
  )
3028
3053
  ), he = oe({}), be = (l, d) => {
3029
- const m = ($, A) => {
3030
- for (const Y of $) {
3031
- if (Y.value == A) return Y.label;
3032
- if (Y.children) {
3033
- const W = m(Y.children, A);
3054
+ const p = ($, A) => {
3055
+ for (const R of $) {
3056
+ if (R.value == A) return R.label;
3057
+ if (R.children) {
3058
+ const W = p(R.children, A);
3034
3059
  if (W) return W;
3035
3060
  }
3036
3061
  }
@@ -3038,8 +3063,8 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3038
3063
  };
3039
3064
  if (l.getDicts) {
3040
3065
  const $ = d.toString();
3041
- return he.value[$] ? (l.options = he.value[$], 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) => {
3042
- he.value[$] = A, l.options = A, l.formatter || (l.formatter = (Y, W, fe, _e) => l.options && m(l.options, fe) || fe);
3066
+ return he.value[$] ? (l.options = he.value[$], l.formatter || (l.formatter = (A, R, W, fe) => l.options && p(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((A) => {
3067
+ he.value[$] = A, l.options = A, l.formatter || (l.formatter = (R, W, fe, _e) => l.options && p(l.options, fe) || fe);
3043
3068
  });
3044
3069
  }
3045
3070
  return Promise.resolve();
@@ -3047,25 +3072,25 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3047
3072
  const l = [];
3048
3073
  Object.keys(e.value).forEach((d) => {
3049
3074
  if (e.value[d].getDicts) {
3050
- const m = be(e.value[d], d).then(() => {
3075
+ const p = be(e.value[d], d).then(() => {
3051
3076
  e.value.table.data.forEach(($) => {
3052
3077
  var A;
3053
3078
  if (e.value[d].getDicts && ((A = e.value[d]) == null ? void 0 : A.forceString) !== !1) {
3054
- const Y = $[d];
3055
- $[d] = Y != null ? Y.toString() : Y;
3079
+ const R = $[d];
3080
+ $[d] = R != null ? R.toString() : R;
3056
3081
  }
3057
3082
  });
3058
3083
  }).catch(($) => {
3059
3084
  console.error(`加载字典${d}出错:`, $);
3060
3085
  });
3061
- l.push(m);
3086
+ l.push(p);
3062
3087
  }
3063
3088
  }), Promise.all(l).catch((d) => {
3064
3089
  console.error("字典加载过程中发生错误:", d);
3065
3090
  });
3066
- }, we = (l, d, m, $) => {
3067
- var A, Y;
3068
- return l.table ? (A = l.table(d, m, $)) != null && A.auth ? (Y = l.table(d, m, $)) == null ? void 0 : Y.auth(d, m, $) : !0 : !1;
3091
+ }, we = (l, d, p, $) => {
3092
+ var A, R;
3093
+ return l.table ? (A = l.table(d, p, $)) != null && A.auth ? (R = l.table(d, p, $)) == null ? void 0 : R.auth(d, p, $) : !0 : !1;
3069
3094
  }, Ee = () => {
3070
3095
  if (e.value.dialog.mode == "drawer")
3071
3096
  F.value.handleClose();
@@ -3083,18 +3108,18 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3083
3108
  });
3084
3109
  const Me = async () => {
3085
3110
  try {
3086
- const [l, d, m] = await Promise.all([
3087
- Jl(te.value),
3088
- ra(te.value),
3089
- Kl(te.value)
3111
+ const [l, d, p] = await Promise.all([
3112
+ Kl(te.value),
3113
+ oa(te.value),
3114
+ ea(te.value)
3090
3115
  ]);
3091
3116
  l && Array.isArray(l) && l.forEach(($) => {
3092
3117
  const A = e.value[$.key];
3093
3118
  A && (A.width = $.width);
3094
3119
  }), d && Array.isArray(d) && d.forEach(($, A) => {
3095
- const Y = e.value[$];
3096
- Y && (Y.sort = A);
3097
- }), m && Array.isArray(m) && m.length > 0 ? m.forEach(($) => {
3120
+ const R = e.value[$];
3121
+ R && (R.sort = A);
3122
+ }), p && Array.isArray(p) && p.length > 0 ? p.forEach(($) => {
3098
3123
  const A = e.value[$];
3099
3124
  A && (A.showCol = !1);
3100
3125
  }) : Object.keys(e.value).filter(($) => e.value[$].type !== "control").forEach(($) => {
@@ -3103,7 +3128,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3103
3128
  } catch (l) {
3104
3129
  console.error("加载表格信息时出错:", l);
3105
3130
  }
3106
- }, xe = () => ga(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3131
+ }, xe = () => ba(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3107
3132
  return nl(() => {
3108
3133
  te.value = xe();
3109
3134
  }), ut(async () => {
@@ -3117,20 +3142,20 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3117
3142
  try {
3118
3143
  await rt();
3119
3144
  const l = Object.entries(e.value).filter(
3120
- ([d, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
3145
+ ([d, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
3121
3146
  );
3122
- R.value = Object.fromEntries(
3123
- l.map(([d, m]) => [d, m.value])
3147
+ Y.value = Object.fromEntries(
3148
+ l.map(([d, p]) => [d, p.value])
3124
3149
  ), await Me();
3125
3150
  } catch (l) {
3126
3151
  console.error("Error during component initialization:", l);
3127
3152
  }
3128
3153
  e.value.table.autoWatch || e.value.table.load();
3129
- }), n({ addRow: T, editRow: w, deleteRow: b, readForm: u, saveRowData: q, closeDialog: Ee }), (l, d) => {
3154
+ }), n({ addRow: T, editRow: w, deleteRow: b, readForm: s, saveRowData: q, closeDialog: Ee }), (l, d) => {
3130
3155
  var He, et, ot, tt, nt;
3131
- const m = H("el-icon"), $ = 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");
3132
- return p(), I(J, null, [
3133
- e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", ba, [
3156
+ const p = H("el-icon"), $ = H("el-dialog"), A = H("el-drawer"), R = 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");
3157
+ return m(), I(J, null, [
3158
+ e.value.dialog.mode == "dialog" && i.value ? (m(), I("div", $a, [
3134
3159
  K($, O(
3135
3160
  {
3136
3161
  ref_key: "dialogRef",
@@ -3140,7 +3165,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3140
3165
  "onUpdate:modelValue": d[3] || (d[3] = (z) => i.value = z),
3141
3166
  fullscreen: e.value.dialog.fullScreen
3142
3167
  },
3143
- P(Ue)(e.value.dialog, (z) => !["size", "max", "min"].includes(z)),
3168
+ P(Oe)(e.value.dialog, (z) => !["size", "max", "min"].includes(z)),
3144
3169
  {
3145
3170
  width: P(Gt)(e.value.dialog.width) + 35
3146
3171
  }
@@ -3148,39 +3173,39 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3148
3173
  header: D(() => {
3149
3174
  var z, se, x, X, ee, je, Ne, ze, Pe, h;
3150
3175
  return [
3151
- Q("div", $a, [
3152
- Q("div", wa, [
3176
+ Q("div", wa, [
3177
+ Q("div", Ea, [
3153
3178
  M(l.$slots, "f-header", {}, () => [
3154
3179
  Q("div", null, De(e.value.dialog.title), 1)
3155
3180
  ], !0)
3156
3181
  ]),
3157
- ((se = (z = e.value) == null ? void 0 : z.dialog) == null ? void 0 : se.fullScreen) === !1 ? (p(), I("div", {
3182
+ ((se = (z = e.value) == null ? void 0 : z.dialog) == null ? void 0 : se.fullScreen) === !1 ? (m(), I("div", {
3158
3183
  key: 0,
3159
3184
  style: qe((ee = (X = (x = e.value) == null ? void 0 : x.dialog) == null ? void 0 : X.max) == null ? void 0 : ee.style),
3160
3185
  onClick: d[0] || (d[0] = (S) => e.value.dialog.fullScreen = !0),
3161
3186
  class: "max"
3162
3187
  }, [
3163
- K(m, null, {
3188
+ K(p, null, {
3164
3189
  default: D(() => {
3165
3190
  var S, ue, Ae;
3166
3191
  return [
3167
- (p(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.max) == null ? void 0 : Ae.icon)))
3192
+ (m(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.max) == null ? void 0 : Ae.icon)))
3168
3193
  ];
3169
3194
  }),
3170
3195
  _: 1
3171
3196
  })
3172
3197
  ], 4)) : ge("", !0),
3173
- ((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (p(), I("div", {
3198
+ ((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (m(), I("div", {
3174
3199
  key: 1,
3175
3200
  style: qe((h = (Pe = (ze = e.value) == null ? void 0 : ze.dialog) == null ? void 0 : Pe.min) == null ? void 0 : h.style),
3176
3201
  onClick: d[1] || (d[1] = (S) => e.value.dialog.fullScreen = !1),
3177
3202
  class: "max"
3178
3203
  }, [
3179
- K(m, null, {
3204
+ K(p, null, {
3180
3205
  default: D(() => {
3181
3206
  var S, ue, Ae;
3182
3207
  return [
3183
- (p(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.min) == null ? void 0 : Ae.icon)))
3208
+ (m(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.min) == null ? void 0 : Ae.icon)))
3184
3209
  ];
3185
3210
  }),
3186
3211
  _: 1
@@ -3190,13 +3215,13 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3190
3215
  ];
3191
3216
  }),
3192
3217
  default: D(() => [
3193
- Q("div", Ea, [
3218
+ Q("div", _a, [
3194
3219
  M(l.$slots, "table-dialog-form", { model: e.value }, () => [
3195
3220
  K(_t, {
3196
3221
  modelValue: e.value,
3197
3222
  "onUpdate:modelValue": d[2] || (d[2] = (z) => e.value = z),
3198
- onSubmit: C,
3199
- onReset: k
3223
+ onSubmit: k,
3224
+ onReset: C
3200
3225
  }, ye({ _: 2 }, [
3201
3226
  N(l.$slots, (z, se, x) => ({
3202
3227
  name: se,
@@ -3211,16 +3236,16 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3211
3236
  _: 3
3212
3237
  }, 16, ["modelValue", "fullscreen", "width"])
3213
3238
  ])) : ge("", !0),
3214
- e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", _a, [
3239
+ e.value.dialog.mode == "drawer" && i.value ? (m(), I("div", ka, [
3215
3240
  K(A, O({
3216
3241
  ref_key: "drawerRef",
3217
3242
  ref: F,
3218
3243
  modelValue: i.value,
3219
3244
  "onUpdate:modelValue": d[5] || (d[5] = (z) => i.value = z)
3220
- }, P(Ue)(e.value.dialog, (z) => !["width"].includes(z))), {
3245
+ }, P(Oe)(e.value.dialog, (z) => !["width"].includes(z))), {
3221
3246
  header: D(() => [
3222
- Q("div", ka, [
3223
- Q("div", Ca, [
3247
+ Q("div", Ca, [
3248
+ Q("div", Da, [
3224
3249
  M(l.$slots, "f-header", {}, () => [
3225
3250
  Q("div", null, De(e.value.dialog.title), 1)
3226
3251
  ], !0)
@@ -3232,8 +3257,8 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3232
3257
  K(_t, {
3233
3258
  modelValue: e.value,
3234
3259
  "onUpdate:modelValue": d[4] || (d[4] = (z) => e.value = z),
3235
- onSubmit: C,
3236
- onReset: k
3260
+ onSubmit: k,
3261
+ onReset: C
3237
3262
  }, ye({ _: 2 }, [
3238
3263
  N(l.$slots, (z, se, x) => ({
3239
3264
  name: se,
@@ -3247,24 +3272,24 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3247
3272
  _: 3
3248
3273
  }, 16, ["modelValue"])
3249
3274
  ])) : ge("", !0),
3250
- Q("div", Da, [
3251
- ((et = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : et.hidden) != !0 ? (p(), I("div", Sa, [
3275
+ Q("div", Sa, [
3276
+ ((et = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : et.hidden) != !0 ? (m(), I("div", Ma, [
3252
3277
  M(l.$slots, "query", {}, () => [
3253
- K(Rl, {
3278
+ K(Ll, {
3254
3279
  modelValue: e.value,
3255
3280
  "onUpdate:modelValue": d[6] || (d[6] = (z) => e.value = z),
3256
3281
  info: g.value,
3257
3282
  "onUpdate:info": d[7] || (d[7] = (z) => g.value = z),
3258
- onQuery: Oe,
3283
+ onQuery: Ie,
3259
3284
  onReset: ae
3260
3285
  }, ye({
3261
3286
  "q-btns": D(() => [
3262
3287
  M(l.$slots, "q-btns", {}, () => [
3263
- (p(!0), I(J, null, N(y(["add", "download", "setting"], e.value), (z, se) => (p(), I(J, null, [
3264
- se == "default" ? (p(!0), I(J, { key: 0 }, N(z, (x) => (p(), I(J, null, [
3288
+ (m(!0), I(J, null, N(y(["add", "download", "setting"], e.value), (z, se) => (m(), I(J, null, [
3289
+ se == "default" ? (m(!0), I(J, { key: 0 }, N(z, (x) => (m(), I(J, null, [
3265
3290
  M(l.$slots, x.name + "-left", {}, void 0, !0),
3266
3291
  (x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? M(l.$slots, x.name, { key: 0 }, () => [
3267
- x.label ? (p(), B(P(Be), O({
3292
+ x.label ? (m(), B(P(Be), O({
3268
3293
  key: 0,
3269
3294
  title: x.label,
3270
3295
  ref_for: !0
@@ -3272,10 +3297,10 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3272
3297
  onClick: (X) => x.func(e.value, c.value)
3273
3298
  }), {
3274
3299
  default: D(() => [
3275
- Ie(De(x.label), 1)
3300
+ Ue(De(x.label), 1)
3276
3301
  ]),
3277
3302
  _: 2
3278
- }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3303
+ }, 1040, ["title", "onClick"])) : (m(), B(P(Be), O({
3279
3304
  key: 1,
3280
3305
  title: x.label,
3281
3306
  ref_for: !0
@@ -3284,12 +3309,12 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3284
3309
  }), null, 16, ["title", "onClick"]))
3285
3310
  ], !0) : ge("", !0),
3286
3311
  M(l.$slots, x.name + "-right", {}, void 0, !0)
3287
- ], 64))), 256)) : (p(), B(Y, { key: 1 }, {
3312
+ ], 64))), 256)) : (m(), B(R, { key: 1 }, {
3288
3313
  default: D(() => [
3289
- (p(!0), I(J, null, N(z, (x) => (p(), I(J, null, [
3314
+ (m(!0), I(J, null, N(z, (x) => (m(), I(J, null, [
3290
3315
  M(l.$slots, x.name + "-left", {}, void 0, !0),
3291
3316
  (x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? M(l.$slots, x.name, { key: 0 }, () => [
3292
- x.label ? (p(), B(P(Be), O({
3317
+ x.label ? (m(), B(P(Be), O({
3293
3318
  key: 0,
3294
3319
  title: x.label,
3295
3320
  ref_for: !0
@@ -3297,10 +3322,10 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3297
3322
  onClick: (X) => x.func(e.value, c.value)
3298
3323
  }), {
3299
3324
  default: D(() => [
3300
- Ie(De(x.label), 1)
3325
+ Ue(De(x.label), 1)
3301
3326
  ]),
3302
3327
  _: 2
3303
- }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3328
+ }, 1040, ["title", "onClick"])) : (m(), B(P(Be), O({
3304
3329
  key: 1,
3305
3330
  title: x.label,
3306
3331
  ref_for: !0
@@ -3327,10 +3352,10 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3327
3352
  ]), 1032, ["modelValue", "info"])
3328
3353
  ], !0)
3329
3354
  ])) : ge("", !0),
3330
- Q("div", Ma, [
3355
+ Q("div", Ta, [
3331
3356
  K(Re, O({
3332
3357
  ...l.$attrs,
3333
- ...P(Ue)(
3358
+ ...P(Oe)(
3334
3359
  e.value.table,
3335
3360
  (z) => !["dblclickType", "page"].includes(z)
3336
3361
  )
@@ -3349,13 +3374,13 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3349
3374
  ]),
3350
3375
  default: D(() => [
3351
3376
  M(l.$slots, "default", {}, () => [
3352
- (p(!0), I(J, null, N(re.value, (z, se) => (p(), B(Fe, O({
3377
+ (m(!0), I(J, null, N(re.value, (z, se) => (m(), B(Fe, O({
3353
3378
  prop: se,
3354
3379
  key: se,
3355
3380
  ref_for: !0
3356
3381
  }, {
3357
3382
  ...e.value.tableColumns,
3358
- ...P(Ue)(z, (x) => s.includes(x))
3383
+ ...P(Oe)(z, (x) => u.includes(x))
3359
3384
  }), ye({
3360
3385
  header: D(({ column: x, $index: X }) => [
3361
3386
  se == "control" ? M(l.$slots, `${se}-header`, {
@@ -3400,10 +3425,10 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3400
3425
  column: X,
3401
3426
  index: ee
3402
3427
  }, void 0, !0),
3403
- (p(!0), I(J, null, N(y(["view", "edit", "delete", "save"], x, X, ee, e.value), (ze, Pe) => {
3428
+ (m(!0), I(J, null, N(y(["view", "edit", "delete", "save"], x, X, ee, e.value), (ze, Pe) => {
3404
3429
  var h;
3405
- return p(), I(J, null, [
3406
- Pe == "default" ? (p(!0), I(J, { key: 0 }, N(ze, (S) => (p(), I(J, null, [
3430
+ return m(), I(J, null, [
3431
+ Pe == "default" ? (m(!0), I(J, { key: 0 }, N(ze, (S) => (m(), I(J, null, [
3407
3432
  M(l.$slots, S.name + "-left", {
3408
3433
  row: x,
3409
3434
  column: X,
@@ -3415,7 +3440,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3415
3440
  column: X,
3416
3441
  index: ee
3417
3442
  }, () => [
3418
- S.label ? (p(), B(P(Be), O({
3443
+ S.label ? (m(), B(P(Be), O({
3419
3444
  key: 0,
3420
3445
  title: S.label,
3421
3446
  ref_for: !0
@@ -3423,10 +3448,10 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3423
3448
  onClick: (ue) => S.func(x, X, ee, e.value)
3424
3449
  }), {
3425
3450
  default: D(() => [
3426
- Ie(De(S.label), 1)
3451
+ Ue(De(S.label), 1)
3427
3452
  ]),
3428
3453
  _: 2
3429
- }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3454
+ }, 1040, ["title", "onClick"])) : (m(), B(P(Be), O({
3430
3455
  key: 1,
3431
3456
  title: S.label,
3432
3457
  ref_for: !0
@@ -3439,23 +3464,23 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3439
3464
  column: X,
3440
3465
  index: ee
3441
3466
  }, void 0, !0)
3442
- ], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((h = de(x, X, ee, e.value)) != null && h.auth()) ? (p(), B(_e, O({
3467
+ ], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((h = de(x, X, ee, e.value)) != null && h.auth()) ? (m(), B(_e, O({
3443
3468
  key: 1,
3444
3469
  ref_for: !0
3445
3470
  }, de(x, X, ee, e.value)), {
3446
3471
  dropdown: D(() => [
3447
3472
  K(fe, null, {
3448
3473
  default: D(() => [
3449
- (p(!0), I(J, null, N(ze, (S) => {
3474
+ (m(!0), I(J, null, N(ze, (S) => {
3450
3475
  var ue, Ae, lt;
3451
- return p(), I(J, null, [
3476
+ return m(), I(J, null, [
3452
3477
  l.$slots[S.name + "-left"] ? M(l.$slots, S.name + "-left", {
3453
3478
  key: 0,
3454
3479
  row: x,
3455
3480
  column: X,
3456
3481
  index: ee
3457
3482
  }, void 0, !0) : ge("", !0),
3458
- S.attr.auth() ? (p(), B(W, O({
3483
+ S.attr.auth() ? (m(), B(W, O({
3459
3484
  key: 1,
3460
3485
  ref_for: !0
3461
3486
  }, {
@@ -3469,7 +3494,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3469
3494
  column: X,
3470
3495
  index: ee
3471
3496
  }, () => [
3472
- S.label ? (p(), B(P(Be), O({
3497
+ S.label ? (m(), B(P(Be), O({
3473
3498
  key: 0,
3474
3499
  title: S.label,
3475
3500
  ref_for: !0
@@ -3477,10 +3502,10 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3477
3502
  onClick: (at) => S.func(x, X, ee, e.value)
3478
3503
  }), {
3479
3504
  default: D(() => [
3480
- Ie(De(S.label), 1)
3505
+ Ue(De(S.label), 1)
3481
3506
  ]),
3482
3507
  _: 2
3483
- }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3508
+ }, 1040, ["title", "onClick"])) : (m(), B(P(Be), O({
3484
3509
  key: 1,
3485
3510
  title: S.label,
3486
3511
  ref_for: !0
@@ -3506,13 +3531,13 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3506
3531
  default: D(() => {
3507
3532
  var S;
3508
3533
  return [
3509
- Ie(De((S = de(x, X, ee, e.value)) == null ? void 0 : S.label) + " ", 1)
3534
+ Ue(De((S = de(x, X, ee, e.value)) == null ? void 0 : S.label) + " ", 1)
3510
3535
  ];
3511
3536
  }),
3512
3537
  _: 2
3513
- }, 1040)) : (p(), B(Y, { key: 2 }, {
3538
+ }, 1040)) : (m(), B(R, { key: 2 }, {
3514
3539
  default: D(() => [
3515
- (p(!0), I(J, null, N(ze, (S) => (p(), I(J, null, [
3540
+ (m(!0), I(J, null, N(ze, (S) => (m(), I(J, null, [
3516
3541
  M(l.$slots, S.name + "-left", {
3517
3542
  row: x,
3518
3543
  column: X,
@@ -3524,7 +3549,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3524
3549
  column: X,
3525
3550
  index: ee
3526
3551
  }, () => [
3527
- S.label ? (p(), B(P(Be), O({
3552
+ S.label ? (m(), B(P(Be), O({
3528
3553
  key: 0,
3529
3554
  title: S.label,
3530
3555
  ref_for: !0
@@ -3532,10 +3557,10 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3532
3557
  onClick: (ue) => S.func(x, X, ee, e.value)
3533
3558
  }), {
3534
3559
  default: D(() => [
3535
- Ie(De(S.label), 1)
3560
+ Ue(De(S.label), 1)
3536
3561
  ]),
3537
3562
  _: 2
3538
- }, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
3563
+ }, 1040, ["title", "onClick"])) : (m(), B(P(Be), O({
3539
3564
  key: 1,
3540
3565
  title: S.label,
3541
3566
  ref_for: !0
@@ -3575,7 +3600,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3575
3600
  }, () => {
3576
3601
  var je;
3577
3602
  return [
3578
- (p(), B(bt, {
3603
+ (m(), B(bt, {
3579
3604
  modelValue: x[se],
3580
3605
  "onUpdate:modelValue": (Ne) => x[se] = Ne,
3581
3606
  item: z == null ? void 0 : z.table(x, X, ee),
@@ -3611,7 +3636,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3611
3636
  z,
3612
3637
  X.formatter(x, X, x[se], ee)
3613
3638
  )
3614
- }, null, 12, Ta)
3639
+ }, null, 12, Fa)
3615
3640
  ], !0)
3616
3641
  ]),
3617
3642
  key: "2"
@@ -3639,7 +3664,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3639
3664
  ], 64);
3640
3665
  };
3641
3666
  }
3642
- }), xa = /* @__PURE__ */ Ze(Fa, [["__scopeId", "data-v-f7c375af"]]), Va = { class: "g-tree-table" }, qa = { class: "g-tree-container" }, Aa = { class: "g-tree-table-container" }, Ba = /* @__PURE__ */ Object.assign({
3667
+ }), Va = /* @__PURE__ */ Ze(xa, [["__scopeId", "data-v-05100a54"]]), qa = { class: "g-tree-table" }, Aa = { class: "g-tree-container" }, Ba = { class: "g-tree-table-container" }, Oa = /* @__PURE__ */ Object.assign({
3643
3668
  name: "g-tree-table",
3644
3669
  inheritAttrs: !1
3645
3670
  }, {
@@ -3650,15 +3675,15 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3650
3675
  },
3651
3676
  emits: /* @__PURE__ */ Xe(["load"], ["update:modelValue"]),
3652
3677
  setup(r, { emit: n }) {
3653
- var _, V, j, R;
3678
+ var _, V, j, Y;
3654
3679
  const a = n, t = Qe(r, "modelValue"), e = Tt(), o = oe(
3655
3680
  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"
3656
- ), g = 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) => {
3681
+ ), g = oe(((j = e == null ? void 0 : e.tree) == null ? void 0 : j.search) === void 0 ? !0 : (Y = e == null ? void 0 : e.tree) == null ? void 0 : Y.search), v = oe({}), F = oe(""), f = oe(null), i = (L, te) => {
3657
3682
  var ie, ce;
3658
3683
  if (!L) return !0;
3659
- const me = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
3660
- return te[me].includes(L);
3661
- }, s = (L, te) => {
3684
+ const pe = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
3685
+ return te[pe].includes(L);
3686
+ }, u = (L, te) => {
3662
3687
  a("load", v.value, L, te);
3663
3688
  }, c = (L) => {
3664
3689
  v.value = L, t.value.table.load();
@@ -3666,13 +3691,13 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3666
3691
  return ul(F, (L) => {
3667
3692
  f.value.filter(L);
3668
3693
  }), (L, te) => {
3669
- const me = H("el-input"), ie = H("el-tree"), ce = H("g-table");
3670
- return p(), I("div", Va, [
3694
+ const pe = H("el-input"), ie = H("el-tree"), ce = H("g-table");
3695
+ return m(), I("div", qa, [
3671
3696
  Q("div", {
3672
3697
  class: "g-tree-left",
3673
3698
  style: qe({ width: o.value })
3674
3699
  }, [
3675
- g.value ? (p(), B(me, {
3700
+ g.value ? (m(), B(pe, {
3676
3701
  key: 0,
3677
3702
  modelValue: F.value,
3678
3703
  "onUpdate:modelValue": te[0] || (te[0] = (de) => F.value = de),
@@ -3680,7 +3705,7 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3680
3705
  placeholder: "输入节点查询",
3681
3706
  clearable: ""
3682
3707
  }, null, 8, ["modelValue"])) : ge("", !0),
3683
- Q("div", qa, [
3708
+ Q("div", Aa, [
3684
3709
  K(ie, O({
3685
3710
  style: { width: o.value },
3686
3711
  "filter-node-method": i,
@@ -3708,11 +3733,11 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3708
3733
  ]), 1040, ["style"])
3709
3734
  ])
3710
3735
  ], 4),
3711
- Q("div", Aa, [
3736
+ Q("div", Ba, [
3712
3737
  K(ce, O({
3713
3738
  modelValue: t.value,
3714
3739
  "onUpdate:modelValue": te[1] || (te[1] = (de) => t.value = de)
3715
- }, L.$attrs, { onLoad: s }), ye({ _: 2 }, [
3740
+ }, L.$attrs, { onLoad: u }), ye({ _: 2 }, [
3716
3741
  N(L.$slots, (de, Ce, Te) => ({
3717
3742
  name: Ce,
3718
3743
  fn: D((le) => [
@@ -3724,14 +3749,14 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3724
3749
  ]);
3725
3750
  };
3726
3751
  }
3727
- }), Oa = /* @__PURE__ */ Ze(Ba, [["__scopeId", "data-v-c888e4fc"]]), Ia = {
3752
+ }), Ia = /* @__PURE__ */ Ze(Oa, [["__scopeId", "data-v-c888e4fc"]]), Ua = {
3728
3753
  key: 0,
3729
3754
  class: "op-group"
3730
- }, Ua = {
3755
+ }, Ya = {
3731
3756
  key: 1,
3732
3757
  class: "op-items",
3733
3758
  style: { width: "100%", height: "100%" }
3734
- }, Ya = ["title"], Vt = "100px", Ra = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3759
+ }, Ra = ["title"], Vt = "100px", La = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3735
3760
  __name: "g-select-option",
3736
3761
  props: {
3737
3762
  columns: {
@@ -3753,42 +3778,42 @@ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "fl
3753
3778
  },
3754
3779
  setup(r) {
3755
3780
  const n = r;
3756
- return (a, t) => n.title ? (p(), I("div", Ia, [
3757
- (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3781
+ return (a, t) => n.title ? (m(), I("div", Ua, [
3782
+ (m(!0), I(J, null, N(n.columns, (e) => (m(), I("span", {
3758
3783
  style: qe({ width: (e == null ? void 0 : e.width) || Vt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
3759
3784
  key: e.key
3760
3785
  }, [
3761
3786
  M(a.$slots, `${r.t}-title-${e.key}`, { col: e }, () => [
3762
- Ie(De(e.label), 1)
3787
+ Ue(De(e.label), 1)
3763
3788
  ], !0)
3764
3789
  ], 4))), 128))
3765
- ])) : (p(), I("div", Ua, [
3766
- (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3790
+ ])) : (m(), I("div", Ya, [
3791
+ (m(!0), I(J, null, N(n.columns, (e) => (m(), I("span", {
3767
3792
  style: qe({ width: (e == null ? void 0 : e.width) || Vt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
3768
3793
  key: e.key,
3769
3794
  title: r.data[e.key]
3770
3795
  }, [
3771
3796
  M(a.$slots, `${r.t}-option-${e.key}`, { col: e }, () => [
3772
- Ie(De(r.data[e.key] ?? "-"), 1)
3797
+ Ue(De(r.data[e.key] ?? "-"), 1)
3773
3798
  ], !0)
3774
- ], 12, Ya))), 128))
3799
+ ], 12, Ra))), 128))
3775
3800
  ]));
3776
3801
  }
3777
- }), La = /* @__PURE__ */ Ze(Ra, [["__scopeId", "data-v-c0ac6b77"]]), Ha = Object.freeze({}), Wt = [xa, _t, Oa, La];
3802
+ }), Ha = /* @__PURE__ */ Ze(La, [["__scopeId", "data-v-c0ac6b77"]]), za = Object.freeze({}), Wt = [Va, _t, Ia, Ha];
3778
3803
  let Ct = {};
3779
- const er = {
3804
+ const tr = {
3780
3805
  install: (r, n = {}) => {
3781
- Ct = Object.freeze({ ...Ha, ...n }), Wt.forEach((a) => {
3806
+ Ct = Object.freeze({ ...za, ...n }), Wt.forEach((a) => {
3782
3807
  r.component(a.name, a);
3783
3808
  }), r.provide("options", Ct), r.config.globalProperties.$openModal = Dt;
3784
3809
  }
3785
- }, za = (r) => ({ dialog: Zt, drawer: Jt })[r] || null, Dt = (r = {}, n = "dialog") => {
3810
+ }, Pa = (r) => ({ dialog: Zt, drawer: Jt })[r] || null, Dt = (r = {}, n = "dialog") => {
3786
3811
  if (typeof document > "u") return () => {
3787
3812
  };
3788
3813
  const a = document.createElement("div");
3789
3814
  let t = () => {
3790
3815
  };
3791
- const e = za(n);
3816
+ const e = Pa(n);
3792
3817
  if (!e) return () => {
3793
3818
  };
3794
3819
  const o = oe(!0), g = sl({
@@ -3822,7 +3847,7 @@ const er = {
3822
3847
  });
3823
3848
  return Wt.forEach((v) => {
3824
3849
  g.component(v.name, v);
3825
- }), g.provide("options", Ct), g.use(Qt, { locale: wl }), document.body.appendChild(a), g.mount(a), t;
3850
+ }), g.provide("options", Ct), g.use(Qt, { locale: El }), document.body.appendChild(a), g.mount(a), t;
3826
3851
  };
3827
3852
  function Gt(r, n = window.innerWidth) {
3828
3853
  if (typeof r == "number")
@@ -3856,18 +3881,18 @@ const Ve = (...r) => {
3856
3881
  }), t);
3857
3882
  return r.forEach((t = {}) => a(n, t)), n;
3858
3883
  };
3859
- function Ue(r, n = (a, t) => n(a, t)) {
3884
+ function Oe(r, n = (a, t) => n(a, t)) {
3860
3885
  const a = {};
3861
3886
  for (const t in r)
3862
3887
  r.hasOwnProperty(t) && n(t, r[t]) && (a[t] = r[t]);
3863
3888
  return a;
3864
3889
  }
3865
- function Pa(r, n, a = "value", t = "label", e = "children") {
3890
+ function ja(r, n, a = "value", t = "label", e = "children") {
3866
3891
  for (const o of r) {
3867
3892
  if (o[a] === n)
3868
3893
  return o[t];
3869
3894
  if (o[e] && o[e].length > 0) {
3870
- const g = Pa(o[e], n, a, t, e);
3895
+ const g = ja(o[e], n, a, t, e);
3871
3896
  if (g)
3872
3897
  return g;
3873
3898
  }
@@ -3893,7 +3918,7 @@ function St(r) {
3893
3918
  }
3894
3919
  return e + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3895
3920
  }
3896
- function ja(r) {
3921
+ function Na(r) {
3897
3922
  if (typeof r != "number" || isNaN(r) || !isFinite(r))
3898
3923
  return "0.00";
3899
3924
  const n = r.toFixed(2), [a, t] = n.split(".");
@@ -3932,10 +3957,10 @@ const Se = {
3932
3957
  const r = document.querySelector(".el-dialog");
3933
3958
  if (!r || r.querySelector(".dialog-resize-handle"))
3934
3959
  return;
3935
- const n = Na();
3936
- r.appendChild(n), Wa(r), Ga(r, n);
3960
+ const n = Wa();
3961
+ r.appendChild(n), Ga(r), Xa(r, n);
3937
3962
  });
3938
- }, Na = () => {
3963
+ }, Wa = () => {
3939
3964
  const r = document.createElement("div");
3940
3965
  return Object.assign(r.style, {
3941
3966
  position: "absolute",
@@ -3947,7 +3972,7 @@ const Se = {
3947
3972
  cursor: "nwse-resize",
3948
3973
  zIndex: "999999999999"
3949
3974
  }), r.className = "dialog-resize-handle", r;
3950
- }, Wa = (r) => {
3975
+ }, Ga = (r) => {
3951
3976
  Object.assign(r.style, {
3952
3977
  transition: "none",
3953
3978
  minWidth: "300px",
@@ -3955,14 +3980,14 @@ const Se = {
3955
3980
  resize: "none"
3956
3981
  // 防止与原生resize冲突
3957
3982
  });
3958
- }, Ga = (r, n) => {
3983
+ }, Xa = (r, n) => {
3959
3984
  let a = !1, t, e, o, g;
3960
3985
  const v = (i) => {
3961
3986
  i.preventDefault(), a = !0, t = i.clientX, e = i.clientY, o = parseInt(document.defaultView.getComputedStyle(r).width), g = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", F), document.addEventListener("mouseup", f);
3962
3987
  }, F = (i) => {
3963
3988
  if (!a) return;
3964
- const s = Math.max(300, o + i.clientX - t), c = Math.max(200, g + i.clientY - e);
3965
- r.style.width = `${s}px`, r.style.height = `${c}px`;
3989
+ const u = Math.max(300, o + i.clientX - t), c = Math.max(200, g + i.clientY - e);
3990
+ r.style.width = `${u}px`, r.style.height = `${c}px`;
3966
3991
  }, f = () => {
3967
3992
  a = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", f);
3968
3993
  };
@@ -3972,10 +3997,10 @@ export {
3972
3997
  Se as CT,
3973
3998
  gt as bindResize,
3974
3999
  Gt as convertToPx,
3975
- er as default,
3976
- Ue as filterObject,
3977
- Pa as findTreeLabelByValue,
3978
- ja as formatAmount,
4000
+ tr as default,
4001
+ Oe as filterObject,
4002
+ ja as findTreeLabelByValue,
4003
+ Na as formatAmount,
3979
4004
  Ve as mergeObjects,
3980
4005
  St as moneyToChinese,
3981
4006
  Dt as openModal