vue-2024-ui 0.0.43 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import lt, { ElMessage as be, ElMessageBox as Ke, ElDialog as ot, ElDrawer as at } from "element-plus";
2
- import { mergeModels as Ve, useModel as Ce, ref as ye, 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";
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
3
  import { FullScreen as ct, Remove as ft } from "@element-plus/icons-vue";
4
4
  import Je from "sortablejs";
5
5
  import { Dexie as mt } from "dexie";
@@ -189,56 +189,56 @@ var Ze = { exports: {} };
189
189
  (function(t, e) {
190
190
  c.exports = e();
191
191
  })(vt, function() {
192
- var t = 1e3, e = 6e4, n = 36e5, f = "millisecond", E = "second", I = "minute", D = "hour", b = "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 y = ["th", "st", "nd", "rd"], i = u % 100;
194
- return "[" + u + (y[(i - 20) % 10] || y[i] || y[0]) + "]";
195
- } }, U = function(u, y, i) {
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
196
  var v = String(u);
197
- return !v || v.length >= y ? u : "" + Array(y + 1 - v.length).join(i) + u;
197
+ return !v || v.length >= b ? u : "" + Array(b + 1 - v.length).join(i) + u;
198
198
  }, oe = { s: U, z: function(u) {
199
- var y = -u.utcOffset(), i = Math.abs(y), v = Math.floor(i / 60), p = i % 60;
200
- return (y <= 0 ? "+" : "-") + U(v, 2, "0") + ":" + U(p, 2, "0");
201
- }, m: function u(y, i) {
202
- if (y.date() < i.date()) return -u(i, y);
203
- var v = 12 * (i.year() - y.year()) + (i.month() - y.month()), p = y.clone().add(v, q), _ = i - p < 0, T = y.clone().add(v + (_ ? -1 : 1), q);
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
204
  return +(-(v + (i - p) / (_ ? p - T : T - p)) || 0);
205
205
  }, a: function(u) {
206
206
  return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
207
207
  }, p: function(u) {
208
- return { M: q, y: V, w: M, d: b, D: m, h: D, m: I, s: E, ms: f, Q: B }[u] || String(u || "").toLowerCase().replace(/s$/, "");
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
209
  }, u: function(u) {
210
210
  return u === void 0;
211
211
  } }, C = "en", te = {};
212
212
  te[C] = g;
213
213
  var J = "$isDayjsObject", K = function(u) {
214
214
  return u instanceof Y || !(!u || !u[J]);
215
- }, me = function u(y, i, v) {
215
+ }, me = function u(b, i, v) {
216
216
  var p;
217
- if (!y) return C;
218
- if (typeof y == "string") {
219
- var _ = y.toLowerCase();
217
+ if (!b) return C;
218
+ if (typeof b == "string") {
219
+ var _ = b.toLowerCase();
220
220
  te[_] && (p = _), i && (te[_] = i, p = _);
221
- var T = y.split("-");
221
+ var T = b.split("-");
222
222
  if (!p && T.length > 1) return u(T[0]);
223
223
  } else {
224
- var j = y.name;
225
- te[j] = y, p = j;
224
+ var j = b.name;
225
+ te[j] = b, p = j;
226
226
  }
227
227
  return !v && p && (C = p), p || !v && C;
228
- }, S = function(u, y) {
228
+ }, S = function(u, b) {
229
229
  if (K(u)) return u.clone();
230
- var i = typeof y == "object" ? y : {};
230
+ var i = typeof b == "object" ? b : {};
231
231
  return i.date = u, i.args = arguments, new Y(i);
232
232
  }, h = oe;
233
- h.l = me, h.i = K, h.w = function(u, y) {
234
- return S(u, { locale: y.$L, utc: y.$u, x: y.$x, $offset: y.$offset });
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 });
235
235
  };
236
236
  var Y = function() {
237
237
  function u(i) {
238
238
  this.$L = me(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[J] = !0;
239
239
  }
240
- var y = u.prototype;
241
- return y.parse = function(i) {
240
+ var b = u.prototype;
241
+ return b.parse = function(i) {
242
242
  this.$d = function(v) {
243
243
  var p = v.date, _ = v.utc;
244
244
  if (p === null) return /* @__PURE__ */ new Date(NaN);
@@ -253,30 +253,30 @@ var Ze = { exports: {} };
253
253
  }
254
254
  return new Date(p);
255
255
  }(i), this.init();
256
- }, y.init = function() {
256
+ }, b.init = function() {
257
257
  var i = this.$d;
258
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();
259
- }, y.$utils = function() {
259
+ }, b.$utils = function() {
260
260
  return h;
261
- }, y.isValid = function() {
261
+ }, b.isValid = function() {
262
262
  return this.$d.toString() !== ee;
263
- }, y.isSame = function(i, v) {
263
+ }, b.isSame = function(i, v) {
264
264
  var p = S(i);
265
265
  return this.startOf(v) <= p && p <= this.endOf(v);
266
- }, y.isAfter = function(i, v) {
266
+ }, b.isAfter = function(i, v) {
267
267
  return S(i) < this.startOf(v);
268
- }, y.isBefore = function(i, v) {
268
+ }, b.isBefore = function(i, v) {
269
269
  return this.endOf(v) < S(i);
270
- }, y.$g = function(i, v, p) {
270
+ }, b.$g = function(i, v, p) {
271
271
  return h.u(i) ? this[v] : this.set(p, i);
272
- }, y.unix = function() {
272
+ }, b.unix = function() {
273
273
  return Math.floor(this.valueOf() / 1e3);
274
- }, y.valueOf = function() {
274
+ }, b.valueOf = function() {
275
275
  return this.$d.getTime();
276
- }, y.startOf = function(i, v) {
276
+ }, b.startOf = function(i, v) {
277
277
  var p = this, _ = !!h.u(v) || v, T = h.p(i), j = function(ne, ae) {
278
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(b);
279
+ return _ ? ve : ve.endOf(y);
280
280
  }, L = function(ne, ae) {
281
281
  return h.w(p.toDate()[ne].apply(p.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), p);
282
282
  }, o = this.$W, r = this.$M, l = this.$D, k = "set" + (this.$u ? "UTC" : "");
@@ -288,7 +288,7 @@ var Ze = { exports: {} };
288
288
  case M:
289
289
  var F = this.$locale().weekStart || 0, H = (o < F ? o + 7 : o) - F;
290
290
  return j(_ ? l - H : l + (6 - H), r);
291
- case b:
291
+ case y:
292
292
  case m:
293
293
  return L(k + "Hours", 0);
294
294
  case D:
@@ -300,20 +300,20 @@ var Ze = { exports: {} };
300
300
  default:
301
301
  return this.clone();
302
302
  }
303
- }, y.endOf = function(i) {
303
+ }, b.endOf = function(i) {
304
304
  return this.startOf(i, !1);
305
- }, y.$set = function(i, v) {
306
- var p, _ = h.p(i), T = "set" + (this.$u ? "UTC" : ""), j = (p = {}, p[b] = 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 = _ === b ? this.$D + (v - this.$W) : v;
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
307
  if (_ === q || _ === V) {
308
308
  var o = this.clone().set(m, 1);
309
309
  o.$d[j](L), o.init(), this.$d = o.set(m, Math.min(this.$D, o.daysInMonth())).$d;
310
310
  } else j && this.$d[j](L);
311
311
  return this.init(), this;
312
- }, y.set = function(i, v) {
312
+ }, b.set = function(i, v) {
313
313
  return this.clone().$set(i, v);
314
- }, y.get = function(i) {
314
+ }, b.get = function(i) {
315
315
  return this[h.p(i)]();
316
- }, y.add = function(i, v) {
316
+ }, b.add = function(i, v) {
317
317
  var p, _ = this;
318
318
  i = Number(i);
319
319
  var T = h.p(v), j = function(r) {
@@ -322,13 +322,13 @@ var Ze = { exports: {} };
322
322
  };
323
323
  if (T === q) return this.set(q, this.$M + i);
324
324
  if (T === V) return this.set(V, this.$y + i);
325
- if (T === b) return j(1);
325
+ if (T === y) return j(1);
326
326
  if (T === M) return j(7);
327
327
  var L = (p = {}, p[I] = e, p[D] = n, p[E] = t, p)[T] || 1, o = this.$d.getTime() + i * L;
328
328
  return h.w(o, this);
329
- }, y.subtract = function(i, v) {
329
+ }, b.subtract = function(i, v) {
330
330
  return this.add(-1 * i, v);
331
- }, y.format = function(i) {
331
+ }, b.format = function(i) {
332
332
  var v = this, p = this.$locale();
333
333
  if (!this.isValid()) return p.invalidDate || ee;
334
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) {
@@ -394,9 +394,9 @@ var Ze = { exports: {} };
394
394
  return null;
395
395
  }(ae) || T.replace(":", "");
396
396
  });
397
- }, y.utcOffset = function() {
397
+ }, b.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
- }, y.diff = function(i, v, p) {
399
+ }, b.diff = function(i, v, p) {
400
400
  var _, T = this, j = h.p(v), L = S(i), o = (L.utcOffset() - this.utcOffset()) * e, r = this - L, l = function() {
401
401
  return h.m(T, L);
402
402
  };
@@ -413,7 +413,7 @@ var Ze = { exports: {} };
413
413
  case M:
414
414
  _ = (r - o) / 6048e5;
415
415
  break;
416
- case b:
416
+ case y:
417
417
  _ = (r - o) / 864e5;
418
418
  break;
419
419
  case D:
@@ -429,39 +429,39 @@ var Ze = { exports: {} };
429
429
  _ = r;
430
430
  }
431
431
  return p ? _ : h.a(_);
432
- }, y.daysInMonth = function() {
432
+ }, b.daysInMonth = function() {
433
433
  return this.endOf(q).$D;
434
- }, y.$locale = function() {
434
+ }, b.$locale = function() {
435
435
  return te[this.$L];
436
- }, y.locale = function(i, v) {
436
+ }, b.locale = function(i, v) {
437
437
  if (!i) return this.$L;
438
438
  var p = this.clone(), _ = me(i, v, !0);
439
439
  return _ && (p.$L = _), p;
440
- }, y.clone = function() {
440
+ }, b.clone = function() {
441
441
  return h.w(this.$d, this);
442
- }, y.toDate = function() {
442
+ }, b.toDate = function() {
443
443
  return new Date(this.valueOf());
444
- }, y.toJSON = function() {
444
+ }, b.toJSON = function() {
445
445
  return this.isValid() ? this.toISOString() : null;
446
- }, y.toISOString = function() {
446
+ }, b.toISOString = function() {
447
447
  return this.$d.toISOString();
448
- }, y.toString = function() {
448
+ }, b.toString = function() {
449
449
  return this.$d.toUTCString();
450
450
  }, u;
451
451
  }(), z = Y.prototype;
452
- return S.prototype = z, [["$ms", f], ["$s", E], ["$m", I], ["$H", D], ["$W", b], ["$M", q], ["$y", V], ["$D", m]].forEach(function(u) {
453
- z[u[1]] = function(y) {
454
- return this.$g(y, u[0], u[1]);
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]);
455
455
  };
456
- }), S.extend = function(u, y) {
457
- return u.$i || (u(y, Y, S), u.$i = !0), S;
456
+ }), S.extend = function(u, b) {
457
+ return u.$i || (u(b, Y, S), u.$i = !0), S;
458
458
  }, S.locale = me, S.isDayjs = K, S.unix = function(u) {
459
459
  return S(1e3 * u);
460
460
  }, S.en = te[C], S.Ls = te, S.p = {}, S;
461
461
  });
462
462
  })(Ze);
463
- var yt = Ze.exports;
464
- const Ae = /* @__PURE__ */ ht(yt), bt = {
463
+ var bt = Ze.exports;
464
+ const Ae = /* @__PURE__ */ ht(bt), yt = {
465
465
  style: { display: "flex", width: "100%" },
466
466
  class: "g-ctrl-container"
467
467
  }, gt = {
@@ -475,7 +475,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
475
475
  }),
476
476
  emits: ["update:modelValue"],
477
477
  setup(c) {
478
- const s = Ce(c, "modelValue"), t = c, e = t.item || {}, n = t.ctrlKey, f = t.ctrlType, E = t.model, I = ye([]), D = () => Object.keys(rt()).filter((V) => V.startsWith(`${t.t}-${n}-`)).map((V) => V.replace(`${t.t}-${n}-`, "")), b = {
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 = {
479
479
  filterable: !0,
480
480
  remote: !!(e && e["remote-method"]),
481
481
  ...e
@@ -483,7 +483,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
483
483
  e["remote-method"](V, (m) => {
484
484
  E[n].options = m;
485
485
  });
486
- }, q = ye(!1), B = async (V = "options") => {
486
+ }, q = be(!1), B = async (V = "options") => {
487
487
  try {
488
488
  const m = await (e == null ? void 0 : e.getDicts(E));
489
489
  E[n][V] = m, q.value = !0;
@@ -492,7 +492,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
492
492
  }
493
493
  };
494
494
  return Fe(async () => {
495
- e && e["remote-method"] && (b["remote-method"] = M);
495
+ e && e["remote-method"] && (y["remote-method"] = M);
496
496
  const V = (ee, ce = "options", ge = E[n]) => {
497
497
  typeof e.getDicts == "function" && B(ce).catch((g) => {
498
498
  console.error(`Failed to load ${ce} for ${ee}:`, g);
@@ -507,8 +507,8 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
507
507
  })();
508
508
  }), (V, m) => {
509
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"), y = 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", bt, [
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
512
  a(f) == a(re).RADIO ? (w(), O(ce, x({
513
513
  key: 0,
514
514
  modelValue: s.value,
@@ -591,7 +591,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
591
591
  modelValue: s.value,
592
592
  "onUpdate:modelValue": m[5] || (m[5] = (l) => s.value = l),
593
593
  placeholder: a(E)[a(n)].label
594
- }, b), Q({
594
+ }, y), Q({
595
595
  default: d(() => [
596
596
  $(V.$slots, `${t.t}-${a(n)}`, {
597
597
  options: a(E)[a(n)].options
@@ -605,7 +605,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
605
605
  default: d(() => [
606
606
  (w(!0), le(fe, null, P(F.options, (H) => (w(), O(C, x({ ref_for: !0 }, H, {
607
607
  key: H.value,
608
- onClick: (ne) => b.change && b.change(H)
608
+ onClick: (ne) => y.change && y.change(H)
609
609
  }), {
610
610
  default: d(() => [
611
611
  $(V.$slots, `${t.t}-${a(n)}-options`, { option: H })
@@ -616,7 +616,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
616
616
  _: 2
617
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
618
  key: F.value,
619
- onClick: (H) => b.change && b.change(F)
619
+ onClick: (H) => y.change && y.change(F)
620
620
  }), {
621
621
  default: d(() => [
622
622
  $(V.$slots, `${t.t}-${a(n)}-options`, { option: F })
@@ -699,7 +699,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
699
699
  key: 13,
700
700
  modelValue: s.value,
701
701
  "onUpdate:modelValue": m[13] || (m[13] = (l) => s.value = l)
702
- }, a(e)), null, 16, ["modelValue"])) : a(f) == a(re).SWITCH ? (w(), O(y, x({
702
+ }, a(e)), null, 16, ["modelValue"])) : a(f) == a(re).SWITCH ? (w(), O(b, x({
703
703
  key: 14,
704
704
  modelValue: s.value,
705
705
  "onUpdate:modelValue": m[14] || (m[14] = (l) => s.value = l)
@@ -833,7 +833,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
833
833
  emits: /* @__PURE__ */ Ve(["submit", "reset"], ["update:modelValue"]),
834
834
  setup(c, { emit: s }) {
835
835
  var m, ee, ce, ge;
836
- const t = Ce(c, "modelValue"), e = s, n = ye(null), f = Pe("options"), E = {
836
+ const t = Ce(c, "modelValue"), e = s, n = be(null), f = Pe("options"), E = {
837
837
  inline: !0,
838
838
  type: "hidden",
839
839
  "scroll-to-error": !0,
@@ -915,7 +915,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
915
915
  (ge = f == null ? void 0 : f.form) == null ? void 0 : ge.cols,
916
916
  t.value.form.cols
917
917
  );
918
- const b = (g) => {
918
+ const y = (g) => {
919
919
  let U = [];
920
920
  if (g.rules)
921
921
  U = g.rules;
@@ -997,7 +997,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
997
997
  ref_for: !0
998
998
  }, z.tabPane), {
999
999
  default: d(() => [
1000
- (w(!0), le(fe, null, P(z.items, (u, y) => (w(), O(C, x({ ref_for: !0 }, { ...t.value.form.cols, ...u == null ? void 0 : u.item.col }, {
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
1001
  key: u.key,
1002
1002
  style: { width: "100%" }
1003
1003
  }), {
@@ -1007,7 +1007,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1007
1007
  R(oe, x({
1008
1008
  label: u == null ? void 0 : u.item.label,
1009
1009
  prop: `${u.key}.value`,
1010
- rules: b(u == null ? void 0 : u.item),
1010
+ rules: y(u == null ? void 0 : u.item),
1011
1011
  ref_for: !0
1012
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
1013
  default: d(() => [
@@ -1097,13 +1097,13 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1097
1097
  _: 3
1098
1098
  }, 16, ["modelValue"]),
1099
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, y, i, v, p;
1100
+ var z, u, b, i, v, p;
1101
1101
  return [
1102
1102
  W("div", {
1103
1103
  style: Se(t.value.form.footer.style)
1104
1104
  }, [
1105
1105
  $(g.$slots, "f-footer-left"),
1106
- (y = (u = (z = t.value) == null ? void 0 : z.form) == null ? void 0 : u.submit) != null && y.hidden ? ue("", !0) : (w(), O(K, x({
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({
1107
1107
  key: 0,
1108
1108
  onClick: U[1] || (U[1] = Xe((_) => t.value.form.submit.click(B.value, t.value), ["stop"]))
1109
1109
  }, a(pe)(t.value.form.submit, (_) => !["click"].includes(_))), {
@@ -1145,7 +1145,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1145
1145
  R(oe, x({
1146
1146
  label: h.label,
1147
1147
  prop: `${Y}.value`,
1148
- rules: b(h),
1148
+ rules: y(h),
1149
1149
  ref_for: !0
1150
1150
  }, { ...(z = t.value) == null ? void 0 : z.formItems, ...h == null ? void 0 : h.formItem }, { style: { width: "100%" } }), {
1151
1151
  label: d((u) => [
@@ -1162,7 +1162,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1162
1162
  item: h,
1163
1163
  model: t.value
1164
1164
  }, () => {
1165
- var u, y;
1165
+ var u, b;
1166
1166
  return [
1167
1167
  t.value.form.modalState === "edit" ? (w(), O(_e, {
1168
1168
  key: 0,
@@ -1189,7 +1189,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1189
1189
  key: 1,
1190
1190
  modelValue: t.value[Y].value,
1191
1191
  "onUpdate:modelValue": (i) => t.value[Y].value = i,
1192
- item: { ...(h == null ? void 0 : h.editor) || {}, ...((y = h == null ? void 0 : h.editor) == null ? void 0 : y.ap) || {} },
1192
+ item: { ...(h == null ? void 0 : h.editor) || {}, ...((b = h == null ? void 0 : h.editor) == null ? void 0 : b.ap) || {} },
1193
1193
  ctrlKey: Y,
1194
1194
  ctrlType: h.type,
1195
1195
  model: t.value,
@@ -1238,7 +1238,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1238
1238
  _: 2
1239
1239
  }, 1040))), 128)),
1240
1240
  (S = t.value.form.footer) != null && S.hidden ? ue("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
1241
- var h, Y, z, u, y, i;
1241
+ var h, Y, z, u, b, i;
1242
1242
  return [
1243
1243
  W("div", {
1244
1244
  style: Se(t.value.form.footer.style)
@@ -1256,7 +1256,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1256
1256
  }),
1257
1257
  _: 1
1258
1258
  }, 16)),
1259
- (i = (y = (u = t.value) == null ? void 0 : u.form) == null ? void 0 : y.reset) != null && i.hidden ? ue("", !0) : (w(), O(K, x({
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({
1260
1260
  key: 1,
1261
1261
  onClick: U[4] || (U[4] = (v) => t.value.form.reset.click(t.value))
1262
1262
  }, a(pe)(t.value.form.reset, (v) => !["click"].includes(v))), {
@@ -1292,8 +1292,8 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1292
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
1293
  return (f, E) => {
1294
1294
  const I = A("el-form-item");
1295
- return w(!0), le(fe, null, P(n(t.more), (D, b) => $(f.$slots, `q-${b}`, {
1296
- key: b,
1295
+ return w(!0), le(fe, null, P(n(t.more), (D, y) => $(f.$slots, `q-${y}`, {
1296
+ key: y,
1297
1297
  item: D,
1298
1298
  model: s.value
1299
1299
  }, () => [
@@ -1302,17 +1302,17 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1302
1302
  ref_for: !0
1303
1303
  }, { ...s.value.queryItems, ...D == null ? void 0 : D.search }), {
1304
1304
  label: d(() => [
1305
- $(f.$slots, `q-${b}-label`, {
1305
+ $(f.$slots, `q-${y}-label`, {
1306
1306
  item: D,
1307
1307
  model: s.value
1308
1308
  })
1309
1309
  ]),
1310
1310
  default: d(() => [
1311
1311
  R(_e, {
1312
- modelValue: e.value[b],
1313
- "onUpdate:modelValue": (M) => e.value[b] = M,
1312
+ modelValue: e.value[y],
1313
+ "onUpdate:modelValue": (M) => e.value[y] = M,
1314
1314
  item: { ...D == null ? void 0 : D.editor, ...D.search },
1315
- ctrlKey: b,
1315
+ ctrlKey: y,
1316
1316
  ctrlType: D.type,
1317
1317
  model: s.value,
1318
1318
  t: "q"
@@ -1353,9 +1353,9 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1353
1353
  },
1354
1354
  emits: /* @__PURE__ */ Ve(["query", "reset"], ["update:modelValue"]),
1355
1355
  setup(c, { emit: s }) {
1356
- const t = Ce(c, "modelValue"), e = s, n = Pe("options"), f = ye(!1);
1356
+ const t = Ce(c, "modelValue"), e = s, n = Pe("options"), f = be(!1);
1357
1357
  let E = Object.fromEntries(Object.entries(t.value).filter((q) => q[1].search).map(([q, B]) => [q, B.value]));
1358
- const I = ye(E), D = {
1358
+ const I = be(E), D = {
1359
1359
  hidden: !1,
1360
1360
  type: "hidden",
1361
1361
  labelWidth: 100,
@@ -1376,7 +1376,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1376
1376
  hidden: !1,
1377
1377
  plain: !1,
1378
1378
  click: () => {
1379
- I.value = ye(E), e("reset", I.value);
1379
+ I.value = be(E), e("reset", I.value);
1380
1380
  }
1381
1381
  },
1382
1382
  query: {
@@ -1397,7 +1397,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1397
1397
  }
1398
1398
  };
1399
1399
  t.value.query = he(D, n == null ? void 0 : n.query, t.value.query);
1400
- const b = {
1400
+ const y = {
1401
1401
  2: {
1402
1402
  title: "更多查询",
1403
1403
  showClose: !1,
@@ -1415,7 +1415,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1415
1415
  }
1416
1416
  };
1417
1417
  t.value.query.more.dialog = he(
1418
- b[t.value.query.more.mode] || {},
1418
+ y[t.value.query.more.mode] || {},
1419
1419
  t.value.query.more.dialog
1420
1420
  );
1421
1421
  const M = {
@@ -1452,7 +1452,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1452
1452
  default: d(() => [
1453
1453
  R(ce, { style: { width: "100%", "margin-bottom": "0" } }, {
1454
1454
  default: d(() => {
1455
- var S, h, Y, z, u, y, i, v, p, _, T, j;
1455
+ var S, h, Y, z, u, b, i, v, p, _, T, j;
1456
1456
  return [
1457
1457
  W("div", {
1458
1458
  style: Se(t.value.query.btns.style)
@@ -1465,7 +1465,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1465
1465
  ]),
1466
1466
  _: 1
1467
1467
  }, 16)) : ue("", !0),
1468
- ((y = (u = (z = t.value) == null ? void 0 : z.query) == null ? void 0 : u.reset) == null ? void 0 : y.hidden) != !0 ? (w(), O(m, x({ key: 1 }, t.value.query.reset, {
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
1469
  onClick: B[3] || (B[3] = (L) => t.value.query.reset.click())
1470
1470
  }), {
1471
1471
  default: d(() => [
@@ -1491,7 +1491,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1491
1491
  }, 16)
1492
1492
  ]),
1493
1493
  default: d(() => [
1494
- R(V, x({ style: { padding: "20px", "background-color": "#f2f2f2", border: "1px solid rgba(0,0,0,0.1)", margin: "5px", "border-radius": "4px" } }, a(pe)(t.value.query, (L) => !["query", "more", "reset"].includes(L))), {
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
1495
  default: d(() => [
1496
1496
  R(Te, {
1497
1497
  modelValue: t.value,
@@ -1540,7 +1540,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1540
1540
  "onUpdate:info": B[8] || (B[8] = (z) => I.value = z),
1541
1541
  more: !0
1542
1542
  }, Q({ _: 2 }, [
1543
- P(q.$slots, (z, u, y) => ({
1543
+ P(q.$slots, (z, u, b) => ({
1544
1544
  name: u,
1545
1545
  fn: d((i) => [
1546
1546
  $(q.$slots, u, { model: t.value }, void 0, !0)
@@ -1616,7 +1616,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1616
1616
  ]);
1617
1617
  };
1618
1618
  }
1619
- }, Vt = /* @__PURE__ */ Oe(kt, [["__scopeId", "data-v-0ea0cd78"]]), Ct = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Dt = { style: { padding: "10px", "box-sizing": "border-box" } }, xt = { style: { margin: "10px" } }, Ft = {
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 = {
1620
1620
  style: { display: "flex", "flex-wrap": "wrap" },
1621
1621
  id: "excelSortEl"
1622
1622
  }, Tt = ["textContent"], Mt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, St = {
@@ -1627,7 +1627,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1627
1627
  },
1628
1628
  emits: ["excel"],
1629
1629
  setup(c, { emit: s }) {
1630
- const t = c, e = s, n = ye(t.items), f = () => {
1630
+ const t = c, e = s, n = be(t.items), f = () => {
1631
1631
  n.value.forEach((D) => {
1632
1632
  D.value = !0;
1633
1633
  });
@@ -1636,14 +1636,14 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1636
1636
  D.value = !1;
1637
1637
  });
1638
1638
  }, I = () => {
1639
- e("excel", n.value, (D, b = "excel.xls") => {
1639
+ e("excel", n.value, (D, y = "excel.xls") => {
1640
1640
  if (!D) {
1641
1641
  console.error("下载链接无效");
1642
1642
  return;
1643
1643
  }
1644
1644
  try {
1645
1645
  const M = document.createElement("a");
1646
- M.href = D, M.download = b, M.style.display = "none", document.body.appendChild(M), M.click(), document.body.removeChild(M);
1646
+ M.href = D, M.download = y, M.style.display = "none", document.body.appendChild(M), M.click(), document.body.removeChild(M);
1647
1647
  } catch (M) {
1648
1648
  console.error("下载文件时出现错误:", M);
1649
1649
  }
@@ -1656,11 +1656,11 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1656
1656
  let M = D.toArray();
1657
1657
  console.log(M);
1658
1658
  }
1659
- }), b = D;
1659
+ }), y = D;
1660
1660
  st(() => {
1661
- b && b.destroy();
1661
+ y && y.destroy();
1662
1662
  });
1663
- }), (D, b) => {
1663
+ }), (D, y) => {
1664
1664
  const M = A("el-divider"), q = A("el-alert"), B = A("el-checkbox"), V = A("el-button");
1665
1665
  return w(), le("div", Ct, [
1666
1666
  W("div", Dt, [
@@ -1682,7 +1682,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1682
1682
  closable: !1,
1683
1683
  style: { "margin-bottom": "10px" }
1684
1684
  }),
1685
- b[0] || (b[0] = W("div", { style: { margin: "1px 0" } }, null, -1)),
1685
+ y[0] || (y[0] = W("div", { style: { margin: "1px 0" } }, null, -1)),
1686
1686
  W("div", Ft, [
1687
1687
  (w(!0), le(fe, null, P(n.value, (m) => (w(), O(B, {
1688
1688
  class: "check-box-hover",
@@ -1718,7 +1718,7 @@ const Ae = /* @__PURE__ */ ht(yt), bt = {
1718
1718
  ]);
1719
1719
  };
1720
1720
  }
1721
- }, Ot = /* @__PURE__ */ Oe(St, [["__scopeId", "data-v-64e6e1c0"]]), $e = new mt("gyc");
1721
+ }, Ot = /* @__PURE__ */ Oe(St, [["__scopeId", "data-v-51dfb7ef"]]), $e = new mt("gyc");
1722
1722
  $e.version(1).stores({
1723
1723
  tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
1724
1724
  tableList: "++id,name"
@@ -1768,21 +1768,21 @@ const It = {
1768
1768
  }),
1769
1769
  emits: ["update:modelValue"],
1770
1770
  setup(c) {
1771
- const s = c, t = ye([]), e = Ce(c, "modelValue"), n = async (b, M) => {
1772
- b ? e.value[M].showCol = !0 : e.value[M].showCol = !1;
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;
1773
1773
  try {
1774
- const q = await De(e.value.table.user, s.name, M, { showCol: b });
1774
+ const q = await De(e.value.table.user, s.name, M, { showCol: y });
1775
1775
  console.log(q);
1776
1776
  } catch (q) {
1777
- console.error("列显示状态保存信息时出错:", q), be({
1777
+ console.error("列显示状态保存信息时出错:", q), ye({
1778
1778
  type: "error",
1779
1779
  message: "列显示状态保存信息失败!"
1780
1780
  });
1781
1781
  }
1782
1782
  }, f = () => {
1783
- const b = document.getElementById("cols");
1784
- if (b) {
1785
- let M = Je.create(b, {
1783
+ const y = document.getElementById("cols");
1784
+ if (y) {
1785
+ let M = Je.create(y, {
1786
1786
  animation: 150,
1787
1787
  filter: ".filtered",
1788
1788
  //
@@ -1795,7 +1795,7 @@ const It = {
1795
1795
  const ee = await De(e.value.table.user, s.name, B, { sort: V, width: m });
1796
1796
  console.log(ee);
1797
1797
  } catch (ee) {
1798
- console.error("列排序和宽度保存信息时出错:", ee), be({
1798
+ console.error("列排序和宽度保存信息时出错:", ee), ye({
1799
1799
  type: "error",
1800
1800
  message: "列排序和宽度保存信息失败!"
1801
1801
  });
@@ -1806,25 +1806,25 @@ const It = {
1806
1806
  }
1807
1807
  }, E = async () => {
1808
1808
  try {
1809
- for (const b of t.value) {
1810
- b.showCol = !0, e.value[b.value].showCol = !0;
1811
- const M = await De(e.value.table.user, s.name, b.value, {
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, {
1812
1812
  showCol: !0,
1813
- width: b.width,
1814
- sort: b.sort
1813
+ width: y.width,
1814
+ sort: y.sort
1815
1815
  });
1816
1816
  console.log(M);
1817
1817
  }
1818
- } catch (b) {
1819
- console.error("全选列保存信息时出错:", b), be({
1818
+ } catch (y) {
1819
+ console.error("全选列保存信息时出错:", y), ye({
1820
1820
  type: "error",
1821
1821
  message: "全选列保存信息失败!"
1822
1822
  });
1823
1823
  }
1824
1824
  }, I = async () => {
1825
1825
  try {
1826
- const b = t.value.filter((M) => !M.alwaysShow);
1827
- for (const M of b) {
1826
+ const y = t.value.filter((M) => !M.alwaysShow);
1827
+ for (const M of y) {
1828
1828
  M.showCol = !1, e.value[M.value].showCol = !1;
1829
1829
  const q = await De(e.value.table.user, s.name, M.value, {
1830
1830
  showCol: !1,
@@ -1833,8 +1833,8 @@ const It = {
1833
1833
  });
1834
1834
  console.log(q);
1835
1835
  }
1836
- } catch (b) {
1837
- console.error("清除列保存信息时出错:", b), be({
1836
+ } catch (y) {
1837
+ console.error("清除列保存信息时出错:", y), ye({
1838
1838
  type: "error",
1839
1839
  message: "清除列保存信息失败!"
1840
1840
  });
@@ -1845,10 +1845,10 @@ const It = {
1845
1845
  cancelButtonText: "取消",
1846
1846
  type: "warning"
1847
1847
  }).then(() => {
1848
- qt(e.value.table.user, s.name).then((b) => {
1849
- console.log(b), window.location.reload();
1850
- }).catch((b) => {
1851
- console.error("复位操作出错:", b), be({
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({
1852
1852
  type: "info",
1853
1853
  message: "复位失败!"
1854
1854
  });
@@ -1856,15 +1856,15 @@ const It = {
1856
1856
  });
1857
1857
  };
1858
1858
  return Fe(async () => {
1859
- t.value = Object.entries(e.value).filter(([, b]) => b.visible !== !1).filter(([, b]) => b.type != "hidden").map(([b, M]) => ({
1859
+ t.value = Object.entries(e.value).filter(([, y]) => y.visible !== !1).filter(([, y]) => y.type != "hidden").map(([y, M]) => ({
1860
1860
  label: M.label,
1861
- value: b,
1861
+ value: y,
1862
1862
  alwaysShow: M.alwaysShow,
1863
1863
  showCol: M.showCol !== !1,
1864
1864
  sort: M.sort || 0,
1865
1865
  width: M.width || "auto"
1866
- })).sort((b, M) => b.sort - M.sort), f();
1867
- }), (b, M) => {
1866
+ })).sort((y, M) => y.sort - M.sort), f();
1867
+ }), (y, M) => {
1868
1868
  const q = A("el-divider"), B = A("el-alert"), V = A("el-checkbox");
1869
1869
  return w(), le("div", null, [
1870
1870
  W("div", It, [
@@ -1908,7 +1908,7 @@ const It = {
1908
1908
  ]);
1909
1909
  };
1910
1910
  }
1911
- }, Pt = /* @__PURE__ */ Oe(Lt, [["__scopeId", "data-v-fe875b13"]]), Nt = { class: "g-table-container" }, zt = {
1911
+ }, Pt = /* @__PURE__ */ Oe(Lt, [["__scopeId", "data-v-c423ede0"]]), Nt = { class: "g-table-container" }, zt = {
1912
1912
  key: 0,
1913
1913
  class: "table-query-container"
1914
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 = {
@@ -1929,7 +1929,7 @@ const It = {
1929
1929
  emits: /* @__PURE__ */ Ve(["load", "open", "delete", "submit", "reset", "download"], ["update:modelValue"]),
1930
1930
  setup(c, { emit: s }) {
1931
1931
  var i, v, p, _, T, j, L;
1932
- const t = s, e = Ce(c, "modelValue"), n = Pe("options"), f = ye({}), E = ye(!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 = ye([]), b = c, M = {
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 = {
1933
1933
  data: [],
1934
1934
  border: !0,
1935
1935
  stripe: !0,
@@ -1941,27 +1941,27 @@ const It = {
1941
1941
  try {
1942
1942
  t("load", { currentPage: o, pageSize: r, ...f.value }, (l, k) => {
1943
1943
  if (!Array.isArray(l)) {
1944
- console.error("从 load 事件回调中接收到的数据不是数组格式。"), be.error("数据加载失败,请检查数据格式。");
1944
+ console.error("从 load 事件回调中接收到的数据不是数组格式。"), ye.error("数据加载失败,请检查数据格式。");
1945
1945
  return;
1946
1946
  }
1947
1947
  if (typeof k != "number") {
1948
- console.error("从 load 事件回调中接收到的 total 不是数字格式。"), be.error("数据加载失败,请检查数据格式。");
1948
+ console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ye.error("数据加载失败,请检查数据格式。");
1949
1949
  return;
1950
1950
  }
1951
- e.value.table.data = l, e.value.table.page.total = k, y();
1951
+ e.value.table.data = l, e.value.table.page.total = k, b();
1952
1952
  });
1953
1953
  } catch (l) {
1954
- console.error("触发 load 事件时出现错误:", l), be.error("数据加载时出现错误,请稍后重试。");
1954
+ console.error("触发 load 事件时出现错误:", l), ye.error("数据加载时出现错误,请稍后重试。");
1955
1955
  }
1956
1956
  },
1957
1957
  onHeaderDragend: (o, r, l) => {
1958
1958
  var k;
1959
- console.log(o, r, l), De((k = e.value.table) == null ? void 0 : k.user, b.name, l.property, { width: o });
1959
+ console.log(o, r, l), De((k = e.value.table) == null ? void 0 : k.user, y.name, l.property, { width: o });
1960
1960
  },
1961
1961
  onRowDblclick: (o, r, l) => {
1962
1962
  e.value.table.dblclickType == "edit" ? C(o, r, l, e) : e.value.table.dblclickType == "view" && J(o, r, l, e);
1963
1963
  },
1964
- style: { "min-height": "100px", backgroundColor: "#fff" },
1964
+ style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
1965
1965
  page: {
1966
1966
  total: 0,
1967
1967
  pageSize: 20,
@@ -1972,7 +1972,7 @@ const It = {
1972
1972
  display: "flex",
1973
1973
  justifyContent: "flex-end",
1974
1974
  "padding-top": "16px",
1975
- backgroundColor: "#fff"
1975
+ backgroundColor: "var(--el-bg-color)"
1976
1976
  },
1977
1977
  hidden: !1
1978
1978
  },
@@ -2176,13 +2176,13 @@ const It = {
2176
2176
  slots: {
2177
2177
  default: () => Ue(Pt, {
2178
2178
  modelValue: o,
2179
- name: b.name
2179
+ name: y.name
2180
2180
  })
2181
2181
  }
2182
2182
  }, o.control.setting.mode);
2183
2183
  }, Y = xe(() => Object.fromEntries(
2184
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 = ye({}), u = (o, r) => {
2185
+ )), z = be({}), u = (o, r) => {
2186
2186
  const l = (k, F) => {
2187
2187
  for (const H of k) {
2188
2188
  if (H.value == F) return H.label;
@@ -2200,7 +2200,7 @@ const It = {
2200
2200
  });
2201
2201
  }
2202
2202
  return Promise.resolve();
2203
- }, y = () => {
2203
+ }, b = () => {
2204
2204
  const o = [];
2205
2205
  Object.keys(e.value).forEach((r) => {
2206
2206
  if (e.value[r].getDicts) {
@@ -2226,27 +2226,27 @@ const It = {
2226
2226
  }), Fe(async () => {
2227
2227
  var o;
2228
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
- be.error("必须给使用此表格的用户一个名字!");
2229
+ ye.error("必须给使用此表格的用户一个名字!");
2230
2230
  return;
2231
2231
  }
2232
- if (!b.name) {
2233
- be.error("必须给表格一个唯一的name属性");
2232
+ if (!y.name) {
2233
+ ye.error("必须给表格一个唯一的name属性");
2234
2234
  return;
2235
2235
  }
2236
2236
  try {
2237
- let r = await Bt(b.name);
2237
+ let r = await Bt(y.name);
2238
2238
  if (r) {
2239
- if (b.name !== r.name) {
2240
- be.error("此表格已经存在,请换一个名字!");
2239
+ if (y.name !== r.name) {
2240
+ ye.error("此表格已经存在,请换一个名字!");
2241
2241
  return;
2242
2242
  }
2243
2243
  } else
2244
- await Ut({ name: b.name });
2244
+ await Ut({ name: y.name });
2245
2245
  } catch (r) {
2246
- console.error("检查表格名称时出现错误:", r), be.error("检查表格名称时出现错误,请稍后重试。");
2246
+ console.error("检查表格名称时出现错误:", r), ye.error("检查表格名称时出现错误,请稍后重试。");
2247
2247
  }
2248
2248
  try {
2249
- const r = await At(e.value.table.user, b.name);
2249
+ const r = await At(e.value.table.user, y.name);
2250
2250
  r && r.forEach((l) => {
2251
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);
2252
2252
  });
@@ -2583,7 +2583,7 @@ const It = {
2583
2583
  ], 64);
2584
2584
  };
2585
2585
  }
2586
- }), ll = /* @__PURE__ */ Oe(tl, [["__scopeId", "data-v-5ff40974"]]), ol = Object.freeze({}), et = [
2586
+ }), ll = /* @__PURE__ */ Oe(tl, [["__scopeId", "data-v-11203e03"]]), ol = Object.freeze({}), et = [
2587
2587
  ll,
2588
2588
  Ie
2589
2589
  ];
@@ -2603,14 +2603,14 @@ const fl = {
2603
2603
  const n = al(s);
2604
2604
  if (!n) return () => {
2605
2605
  };
2606
- const f = ye(!0), E = dt({
2606
+ const f = be(!0), E = dt({
2607
2607
  setup() {
2608
2608
  return e = () => {
2609
2609
  f.value = !1, setTimeout(() => {
2610
2610
  E.unmount(), t.remove();
2611
2611
  }, 300);
2612
2612
  }, () => {
2613
- var I, D, b;
2613
+ var I, D, y;
2614
2614
  return Ue(n, {
2615
2615
  modelValue: f.value,
2616
2616
  "onUpdate:modelValue": (M) => f.value = M,
@@ -2620,7 +2620,7 @@ const fl = {
2620
2620
  }, {
2621
2621
  default: (I = c.slots) == null ? void 0 : I.default,
2622
2622
  header: (D = c.slots) == null ? void 0 : D.header,
2623
- footer: (b = c.slots) == null ? void 0 : b.footer
2623
+ footer: (y = c.slots) == null ? void 0 : y.footer
2624
2624
  });
2625
2625
  };
2626
2626
  }
@@ -2651,7 +2651,7 @@ function tt(c, s = window.innerWidth) {
2651
2651
  throw new Error("Invalid calc expression");
2652
2652
  };
2653
2653
  const n = c.slice(5, -1).trim();
2654
- return f(n.replace(/([0-9.]+)([a-z%]+)/g, (I, D, b) => tt(D + b, s)));
2654
+ return f(n.replace(/([0-9.]+)([a-z%]+)/g, (I, D, y) => tt(D + y, s)));
2655
2655
  }
2656
2656
  throw new Error("Unsupported unit in value: " + c);
2657
2657
  }
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .g-query-container[data-v-0ea0cd78]{display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-0ea0cd78]{min-height:100px;border-radius:10px;background-color:#fffc;box-shadow:0 0 10px #0000001a;top:60px;padding:10px;width:100%;box-sizing:border-box}.inner[data-v-0ea0cd78]{border-radius:6px;min-height:100px;border:1px solid #f2f2f2;padding:20px;box-sizing:border-box;width:100%;background-color:#fffc}.nested-enter-active[data-v-0ea0cd78],.nested-leave-active[data-v-0ea0cd78]{transition:all .3s ease-in-out}.nested-leave-active[data-v-0ea0cd78]{transition-delay:.25s}.nested-enter-from[data-v-0ea0cd78],.nested-leave-to[data-v-0ea0cd78]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-0ea0cd78],.nested-leave-active .inner[data-v-0ea0cd78]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-0ea0cd78]{transition-delay:.25s}.nested-enter-from .inner[data-v-0ea0cd78],.nested-leave-to .inner[data-v-0ea0cd78]{transform:translateY(-100px);opacity:.001}.check-box-hover[data-v-64e6e1c0]:hover,.check-box-hover[data-v-fe875b13]:hover{background:#f5f1f1}.allcheck a[data-v-fe875b13]{cursor:pointer}.filtered[data-v-fe875b13]{pointer-events:none}.g-table-container[data-v-5ff40974]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-5ff40974]{background-color:var(--el-bg-color);border-radius:10px;margin-bottom:14px;border:1px solid var(--el-border-color)}.table-container[data-v-5ff40974]{padding:16px;box-sizing:border-box;background-color:var(--el-bg-color);border-radius:10px;border:1px solid var(--el-border-color)}.max[data-v-5ff40974]{cursor:pointer;color:#333}.max[data-v-5ff40974]:hover{color:var(--el-color-primary)}.btns[data-v-5ff40974]{display:flex}
1
+ .g-query-container[data-v-7fd988f5]{display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-7fd988f5]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-7fd988f5]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:20px;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-7fd988f5],.nested-leave-active[data-v-7fd988f5]{transition:all .3s ease-in-out}.nested-leave-active[data-v-7fd988f5]{transition-delay:.25s}.nested-enter-from[data-v-7fd988f5],.nested-leave-to[data-v-7fd988f5]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-7fd988f5],.nested-leave-active .inner[data-v-7fd988f5]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-7fd988f5]{transition-delay:.25s}.nested-enter-from .inner[data-v-7fd988f5],.nested-leave-to .inner[data-v-7fd988f5]{transform:translateY(-100px);opacity:.001}.check-box-hover[data-v-51dfb7ef]:hover,.check-box-hover[data-v-c423ede0]:hover{background:var(--el-border-color)}.allcheck a[data-v-c423ede0]{cursor:pointer}.filtered[data-v-c423ede0]{pointer-events:none}.g-table-container[data-v-11203e03]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-11203e03]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:14px;border:1px solid var(--el-border-color)}.table-container[data-v-11203e03]{padding:16px;box-sizing:border-box;background-color:var(--el-bg-color);border-radius:4px;border:1px solid var(--el-border-color)}.max[data-v-11203e03]{cursor:pointer;color:var(--el-text-color)}.max[data-v-11203e03]:hover{color:var(--el-color-primary)}.btns[data-v-11203e03]{display:flex}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-2024-ui",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 and Element Plus based plugin",