vue-2024-ui 0.0.44 → 0.0.46

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