vue-2024-ui 0.0.95 → 0.0.97

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