vue-2024-ui 0.0.91 → 0.0.92

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