vue-2024-ui 0.0.77 → 0.0.78

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