vue-2024-ui 0.0.69 → 0.0.71

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