vue-2024-ui 0.0.51 → 0.0.52

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