vue-2024-ui 0.0.96 → 0.0.98

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