vue-2024-ui 0.0.52 → 0.0.54

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