vue-2024-ui 0.0.47 → 0.0.48

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 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 Te, ref as we, onMounted as Oe, resolveComponent as B, openBlock as i, createElementBlock as N, unref as o, createBlock as V, mergeProps as T, withCtx as v, renderSlot as $, Fragment as Z, renderList as U, createTextVNode as ye, toDisplayString as ve, createSlots as ne, normalizeProps as Se, createVNode as le, 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 xe, 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";
1
+ import vt, { ElForm as Be, ElButtonGroup as at, ElButton as be, 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 Te, ref as we, onMounted as Oe, resolveComponent as B, openBlock as i, createElementBlock as N, unref as o, createBlock as V, mergeProps as T, withCtx as v, renderSlot as $, Fragment as Z, renderList as U, createTextVNode as ge, toDisplayString as ve, createSlots as ne, normalizeProps as Se, createVNode as le, createElementVNode as G, useSlots as st, inject as Ke, useAttrs as gt, computed as qe, normalizeStyle as Ue, withModifiers as rt, createCommentVNode as ye, guardReactiveProps as Ne, resolveDynamicComponent as xe, 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
3
  import { FullScreen as _t, Remove as kt } from "@element-plus/icons-vue";
4
4
  import dt from "sortablejs";
5
5
  import { Dexie as Ct } from "dexie";
@@ -189,15 +189,15 @@ var ct = { exports: {} };
189
189
  (function(e, t) {
190
190
  f.exports = t();
191
191
  })(Vt, function() {
192
- var e = 1e3, t = 6e4, n = 36e5, m = "millisecond", w = "second", I = "minute", D = "hour", E = "day", x = "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) {
192
+ var e = 1e3, t = 6e4, n = 36e5, m = "millisecond", w = "second", I = "minute", D = "hour", E = "day", x = "week", P = "month", pe = "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
193
  var b = ["th", "st", "nd", "rd"], c = r % 100;
194
194
  return "[" + r + (b[(c - 20) % 10] || b[c] || b[0]) + "]";
195
- } }, S = function(r, b, c) {
195
+ } }, q = function(r, b, c) {
196
196
  var h = String(r);
197
197
  return !h || h.length >= b ? r : "" + Array(b + 1 - h.length).join(c) + r;
198
- }, re = { s: S, z: function(r) {
198
+ }, re = { s: q, z: function(r) {
199
199
  var b = -r.utcOffset(), c = Math.abs(b), h = Math.floor(c / 60), p = c % 60;
200
- return (b <= 0 ? "+" : "-") + S(h, 2, "0") + ":" + S(p, 2, "0");
200
+ return (b <= 0 ? "+" : "-") + q(h, 2, "0") + ":" + q(p, 2, "0");
201
201
  }, m: function r(b, c) {
202
202
  if (b.date() < c.date()) return -r(c, b);
203
203
  var h = 12 * (c.year() - b.year()) + (c.month() - b.month()), p = b.clone().add(h, P), k = c - p < 0, M = b.clone().add(h + (k ? -1 : 1), P);
@@ -205,7 +205,7 @@ var ct = { exports: {} };
205
205
  }, a: function(r) {
206
206
  return r < 0 ? Math.ceil(r) || 0 : Math.floor(r);
207
207
  }, p: function(r) {
208
- return { M: P, y: F, w: x, d: E, D: s, h: D, m: I, s: w, ms: m, Q: fe }[r] || String(r || "").toLowerCase().replace(/s$/, "");
208
+ return { M: P, y: F, w: x, d: E, D: s, h: D, m: I, s: w, ms: m, Q: pe }[r] || String(r || "").toLowerCase().replace(/s$/, "");
209
209
  }, u: function(r) {
210
210
  return r === void 0;
211
211
  } }, C = "en", oe = {};
@@ -274,11 +274,11 @@ var ct = { exports: {} };
274
274
  }, b.valueOf = function() {
275
275
  return this.$d.getTime();
276
276
  }, b.startOf = function(c, h) {
277
- var p = this, k = !!_.u(h) || h, M = _.p(c), R = function(y, q) {
278
- var W = _.w(p.$u ? Date.UTC(p.$y, q, y) : new Date(p.$y, q, y), p);
277
+ var p = this, k = !!_.u(h) || h, M = _.p(c), R = function(y, O) {
278
+ var W = _.w(p.$u ? Date.UTC(p.$y, O, y) : new Date(p.$y, O, y), p);
279
279
  return k ? W : W.endOf(E);
280
- }, te = function(y, q) {
281
- return _.w(p.toDate()[y].apply(p.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), p);
280
+ }, te = function(y, O) {
281
+ return _.w(p.toDate()[y].apply(p.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(O)), p);
282
282
  }, ae = this.$W, ue = this.$M, u = this.$D, L = "set" + (this.$u ? "UTC" : "");
283
283
  switch (M) {
284
284
  case F:
@@ -331,15 +331,15 @@ var ct = { exports: {} };
331
331
  }, b.format = function(c) {
332
332
  var h = this, p = this.$locale();
333
333
  if (!this.isValid()) return p.invalidDate || z;
334
- var k = c || "YYYY-MM-DDTHH:mm:ssZ", M = _.z(this), R = this.$H, te = this.$m, ae = this.$M, ue = p.weekdays, u = p.months, L = p.meridiem, l = function(q, W, Q, he) {
335
- return q && (q[W] || q(h, k)) || Q[W].slice(0, he);
336
- }, a = function(q) {
337
- return _.s(R % 12 || 12, q, "0");
338
- }, y = L || function(q, W, Q) {
339
- var he = q < 12 ? "AM" : "PM";
334
+ var k = c || "YYYY-MM-DDTHH:mm:ssZ", M = _.z(this), R = this.$H, te = this.$m, ae = this.$M, ue = p.weekdays, u = p.months, L = p.meridiem, l = function(O, W, Q, he) {
335
+ return O && (O[W] || O(h, k)) || Q[W].slice(0, he);
336
+ }, a = function(O) {
337
+ return _.s(R % 12 || 12, O, "0");
338
+ }, y = L || function(O, W, Q) {
339
+ var he = O < 12 ? "AM" : "PM";
340
340
  return Q ? he.toLowerCase() : he;
341
341
  };
342
- return k.replace(se, function(q, W) {
342
+ return k.replace(se, function(O, W) {
343
343
  return W || function(Q) {
344
344
  switch (Q) {
345
345
  case "YY":
@@ -392,7 +392,7 @@ var ct = { exports: {} };
392
392
  return M;
393
393
  }
394
394
  return null;
395
- }(q) || M.replace(":", "");
395
+ }(O) || M.replace(":", "");
396
396
  });
397
397
  }, b.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -407,7 +407,7 @@ var ct = { exports: {} };
407
407
  case P:
408
408
  k = u();
409
409
  break;
410
- case fe:
410
+ case pe:
411
411
  k = u() / 3;
412
412
  break;
413
413
  case x:
@@ -483,7 +483,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
483
483
  t["remote-method"](F, (s) => {
484
484
  w[n].options = s;
485
485
  });
486
- }, P = we(!1), fe = async (F = "options") => {
486
+ }, P = we(!1), pe = async (F = "options") => {
487
487
  try {
488
488
  const s = await (t == null ? void 0 : t.getDicts(w));
489
489
  w[n][F] = s, P.value = !0;
@@ -494,7 +494,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
494
494
  return Oe(async () => {
495
495
  t && t["remote-method"] && (E["remote-method"] = x);
496
496
  const F = (z, de = "options", se = w[n]) => {
497
- typeof t.getDicts == "function" && fe(de).catch((g) => {
497
+ typeof t.getDicts == "function" && pe(de).catch((g) => {
498
498
  console.error(`Failed to load ${de} for ${z}:`, g);
499
499
  });
500
500
  };
@@ -507,7 +507,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
507
507
  })();
508
508
  }), (F, s) => {
509
509
  var ae, ue;
510
- const z = B("el-radio"), de = B("el-radio-group"), se = B("el-radio-button"), g = B("el-checkbox"), S = B("el-checkbox-group"), re = B("el-checkbox-button"), C = B("el-option"), oe = B("el-option-group"), ee = B("el-select"), J = B("el-tree-select"), K = B("el-time-picker"), Y = B("el-time-select"), _ = B("el-date-picker"), j = B("el-color-picker"), A = B("el-rate"), r = B("el-slider"), b = B("el-switch"), c = B("el-transfer"), h = B("el-cascader"), p = B("el-button"), k = B("el-upload"), M = B("el-autocomplete"), R = B("el-input-number"), te = B("el-input");
510
+ const z = B("el-radio"), de = B("el-radio-group"), se = B("el-radio-button"), g = B("el-checkbox"), q = B("el-checkbox-group"), re = B("el-checkbox-button"), C = B("el-option"), oe = B("el-option-group"), ee = B("el-select"), J = B("el-tree-select"), K = B("el-time-picker"), Y = B("el-time-select"), _ = B("el-date-picker"), j = B("el-color-picker"), A = B("el-rate"), r = B("el-slider"), b = B("el-switch"), c = B("el-transfer"), h = B("el-cascader"), p = B("el-button"), k = B("el-upload"), M = B("el-autocomplete"), R = B("el-input-number"), te = B("el-input");
511
511
  return i(), N("div", xt, [
512
512
  o(m) == o(ie).RADIO ? (i(), V(de, T({
513
513
  key: 0,
@@ -548,11 +548,11 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
548
548
  }, o(t)), {
549
549
  default: v(() => [
550
550
  $(F.$slots, `${e.t}-${o(n)}`, { data: o(t) }, () => [
551
- s[21] || (s[21] = ye(ve(" ")))
551
+ s[21] || (s[21] = ge(ve(" ")))
552
552
  ])
553
553
  ]),
554
554
  _: 3
555
- }, 16, ["modelValue"])) : o(m) == o(ie).CHECKBOXGROUP ? (i(), V(S, T({
555
+ }, 16, ["modelValue"])) : o(m) == o(ie).CHECKBOXGROUP ? (i(), V(q, T({
556
556
  key: 3,
557
557
  modelValue: d.value,
558
558
  "onUpdate:modelValue": s[3] || (s[3] = (u) => d.value = u)
@@ -562,7 +562,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
562
562
  (i(!0), N(Z, null, U(o(w)[o(n)].options, (u) => (i(), V(g, T({ ref_for: !0 }, u), {
563
563
  default: v(() => [
564
564
  $(F.$slots, `${e.t}-${o(n)}-options`, { option: u }, () => [
565
- ye(ve(u.label), 1)
565
+ ge(ve(u.label), 1)
566
566
  ])
567
567
  ]),
568
568
  _: 2
@@ -570,7 +570,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
570
570
  ])
571
571
  ]),
572
572
  _: 3
573
- }, 16, ["modelValue"])) : o(m) == o(ie).CHECKBOXGROUPBUTTON ? (i(), V(S, T({
573
+ }, 16, ["modelValue"])) : o(m) == o(ie).CHECKBOXGROUPBUTTON ? (i(), V(q, T({
574
574
  key: 4,
575
575
  modelValue: d.value,
576
576
  "onUpdate:modelValue": s[4] || (s[4] = (u) => d.value = u)
@@ -738,7 +738,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
738
738
  default: v(() => [
739
739
  le(p, { type: "primary" }, {
740
740
  default: v(() => s[22] || (s[22] = [
741
- ye("点击上传")
741
+ ge("点击上传")
742
742
  ])),
743
743
  _: 1
744
744
  })
@@ -863,9 +863,9 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
863
863
  label: "提交",
864
864
  plain: !0,
865
865
  hidden: !1,
866
- click: async (g, S) => {
866
+ click: async (g, q) => {
867
867
  n.value && await n.value.validate((re, C) => {
868
- re ? t("submit", g, S) : console.log("表单验证不通过!", C);
868
+ re ? t("submit", g, q) : console.log("表单验证不通过!", C);
869
869
  });
870
870
  }
871
871
  },
@@ -878,8 +878,8 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
878
878
  click: () => {
879
879
  if (!n.value) return;
880
880
  let g = !0;
881
- t("reset", (S) => {
882
- g = S;
881
+ t("reset", (q) => {
882
+ g = q;
883
883
  }), g && n.value.resetFields();
884
884
  }
885
885
  },
@@ -916,9 +916,9 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
916
916
  e.value.form.cols
917
917
  );
918
918
  const E = (g) => {
919
- let S = [];
919
+ let q = [];
920
920
  if (g.rules)
921
- S = g.rules;
921
+ q = g.rules;
922
922
  else {
923
923
  const C = { ...{
924
924
  required: void 0,
@@ -929,55 +929,55 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
929
929
  pattern: void 0,
930
930
  validate: void 0
931
931
  }, ...g };
932
- C.required && S.push({ required: !0, message: `${C.label}不能为空!`, trigger: "blur" }), C.max && C.min && S.push({
932
+ C.required && q.push({ required: !0, message: `${C.label}不能为空!`, trigger: "blur" }), C.max && C.min && q.push({
933
933
  validator: (oe, ee, J) => {
934
934
  ee && g.type == "number" && (ee < C.min || ee > C.max) ? J(new Error(`${C.label} 必须在 ${C.min} 和 ${C.max} 之间!`)) : ee && g.type !== "number" && (ee.toString().length < C.min || ee.toString().length > C.max) ? J(new Error(`字符长度必须在 ${C.min} 和 ${C.max} 之间!`)) : J();
935
935
  }
936
- }), C.max && !C.min && g.type == "number" && S.push({
936
+ }), C.max && !C.min && g.type == "number" && q.push({
937
937
  validator: (oe, ee, J) => {
938
938
  ee && ee > C.max ? J(new Error(`${C.label}不能大于${C.max}!`)) : J();
939
939
  }
940
- }), C.min && !C.max && g.type == "number" && S.push({
940
+ }), C.min && !C.max && g.type == "number" && q.push({
941
941
  validator: (oe, ee, J) => {
942
942
  ee && ee < C.min ? J(new Error(`${C.label}不能小于${C.min}!`)) : J();
943
943
  }
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({
944
+ }), C.type == "email" && q.push({ type: "email", message: "不是一个正确的邮箱地址!" }), C.type == "url" && q.push({ type: "url", message: "不是一个合正确的URL!" }), C.pattern && q.push({ pattern: C == null ? void 0 : C.pattern, message: (C == null ? void 0 : C.message) || "格式不正确!" }), C.validate && q.push({
945
945
  validator: (oe, ee, J) => C.validate(oe, ee, J)
946
946
  });
947
947
  }
948
- return S;
948
+ return q;
949
949
  };
950
950
  Oe(() => {
951
951
  x();
952
952
  });
953
953
  const x = () => {
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 };
954
+ for (const [g, q] of Object.entries(P.value))
955
+ e.value[g].formItem = { ...e.value[g].formItem, ...q.formItem }, e.value[g].formItem.style = { ...e.value[g].formItem.style, ...q.formItem.style };
956
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(() => {
957
+ var q, re, C, oe;
958
+ return e.value.form.modalState === "edit" ? ((re = (q = g[1].editor) == null ? void 0 : q.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]]))), pe = 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(P.value).forEach(([S, re]) => {
961
+ return Object.entries(P.value).forEach(([q, re]) => {
962
962
  if (re.groupName) {
963
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: S, item: re });
967
+ }), g.get(C).items.push({ key: q, item: re });
968
968
  }
969
- }), g.forEach((S) => {
970
- S.tabPane = Ee(...S.items.map(({ item: re }) => re.tabPane || {}));
969
+ }), g.forEach((q) => {
970
+ q.tabPane = Ee(...q.items.map(({ item: re }) => re.tabPane || {}));
971
971
  }), Array.from(g.values());
972
972
  });
973
- return (g, S) => {
973
+ return (g, q) => {
974
974
  const re = B("el-form-item"), C = B("el-col"), oe = B("el-tab-pane"), ee = B("el-tabs"), J = B("el-button"), K = B("el-form");
975
975
  return i(), V(K, T({
976
976
  ref_key: "gform",
977
977
  ref: n,
978
978
  model: e.value,
979
979
  style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
980
- }, o(be)(e.value.form, (Y) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(Y)), { class: "g-form-container" }), {
980
+ }, o($e)(e.value.form, (Y) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(Y)), { class: "g-form-container" }), {
981
981
  default: v(() => [
982
982
  F.value.length > 0 ? $(g.$slots, "default", { key: 0 }, () => {
983
983
  var Y, _, j;
@@ -985,7 +985,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
985
985
  le(ee, T({
986
986
  class: "demo-tabs",
987
987
  modelValue: F.value[0].groupName,
988
- "onUpdate:modelValue": S[0] || (S[0] = (A) => F.value[0].groupName = A),
988
+ "onUpdate:modelValue": q[0] || (q[0] = (A) => F.value[0].groupName = A),
989
989
  style: { width: "100%" }
990
990
  }, e.value.form.tabs), {
991
991
  default: v(() => [
@@ -1096,33 +1096,33 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1096
1096
  ]),
1097
1097
  _: 3
1098
1098
  }, 16, ["modelValue"]),
1099
- (j = (_ = (Y = e.value) == null ? void 0 : Y.form) == null ? void 0 : _.footer) != null && j.hidden ? $e("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
1099
+ (j = (_ = (Y = e.value) == null ? void 0 : Y.form) == null ? void 0 : _.footer) != null && j.hidden ? ye("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
1100
1100
  var A, r, b, c, h, p;
1101
1101
  return [
1102
1102
  G("div", {
1103
1103
  style: Ue(e.value.form.footer.style)
1104
1104
  }, [
1105
1105
  $(g.$slots, "f-footer-left"),
1106
- (b = (r = (A = e.value) == null ? void 0 : A.form) == null ? void 0 : r.submit) != null && b.hidden ? $e("", !0) : (i(), V(J, T({
1106
+ (b = (r = (A = e.value) == null ? void 0 : A.form) == null ? void 0 : r.submit) != null && b.hidden ? ye("", !0) : (i(), V(J, T({
1107
1107
  key: 0,
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))), {
1108
+ onClick: q[1] || (q[1] = rt((k) => e.value.form.submit.click(pe.value, e.value), ["stop"]))
1109
+ }, o($e)(e.value.form.submit, (k) => !["click"].includes(k))), {
1110
1110
  default: v(() => {
1111
1111
  var k, M, R;
1112
1112
  return [
1113
- ye(ve((R = (M = (k = e.value) == null ? void 0 : k.form) == null ? void 0 : M.submit) == null ? void 0 : R.label), 1)
1113
+ ge(ve((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 = (h = (c = e.value) == null ? void 0 : c.form) == null ? void 0 : h.reset) != null && p.hidden ? $e("", !0) : (i(), V(J, T({
1118
+ (p = (h = (c = e.value) == null ? void 0 : c.form) == null ? void 0 : h.reset) != null && p.hidden ? ye("", !0) : (i(), V(J, T({
1119
1119
  key: 1,
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))), {
1120
+ onClick: q[2] || (q[2] = (k) => e.value.form.reset.click(e.value))
1121
+ }, o($e)(e.value.form.reset, (k) => !["click"].includes(k))), {
1122
1122
  default: v(() => {
1123
1123
  var k, M, R;
1124
1124
  return [
1125
- ye(ve((R = (M = (k = e.value) == null ? void 0 : k.form) == null ? void 0 : M.reset) == null ? void 0 : R.label), 1)
1125
+ ge(ve((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
@@ -1154,7 +1154,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1154
1154
  item: _,
1155
1155
  model: e.value
1156
1156
  }, () => [
1157
- ye(ve(_.label), 1)
1157
+ ge(ve(_.label), 1)
1158
1158
  ])
1159
1159
  ]),
1160
1160
  default: v(() => [
@@ -1237,33 +1237,33 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1237
1237
  }),
1238
1238
  _: 2
1239
1239
  }, 1040))), 128)),
1240
- (Y = e.value.form.footer) != null && Y.hidden ? $e("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
1240
+ (Y = e.value.form.footer) != null && Y.hidden ? ye("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
1241
1241
  var _, j, A, r, b, c;
1242
1242
  return [
1243
1243
  G("div", {
1244
1244
  style: Ue(e.value.form.footer.style)
1245
1245
  }, [
1246
1246
  $(g.$slots, "f-footer-left"),
1247
- (A = (j = (_ = e.value) == null ? void 0 : _.form) == null ? void 0 : j.submit) != null && A.hidden ? $e("", !0) : (i(), V(J, T({
1247
+ (A = (j = (_ = e.value) == null ? void 0 : _.form) == null ? void 0 : j.submit) != null && A.hidden ? ye("", !0) : (i(), V(J, T({
1248
1248
  key: 0,
1249
- onClick: S[3] || (S[3] = rt((h) => e.value.form.submit.click(fe.value, e.value), ["stop"]))
1250
- }, o(be)(e.value.form.submit, (h) => !["click"].includes(h))), {
1249
+ onClick: q[3] || (q[3] = rt((h) => e.value.form.submit.click(pe.value, e.value), ["stop"]))
1250
+ }, o($e)(e.value.form.submit, (h) => !["click"].includes(h))), {
1251
1251
  default: v(() => {
1252
1252
  var h, p, k;
1253
1253
  return [
1254
- ye(ve((k = (p = (h = e.value) == null ? void 0 : h.form) == null ? void 0 : p.submit) == null ? void 0 : k.label), 1)
1254
+ ge(ve((k = (p = (h = e.value) == null ? void 0 : h.form) == null ? void 0 : p.submit) == null ? void 0 : k.label), 1)
1255
1255
  ];
1256
1256
  }),
1257
1257
  _: 1
1258
1258
  }, 16)),
1259
- (c = (b = (r = e.value) == null ? void 0 : r.form) == null ? void 0 : b.reset) != null && c.hidden ? $e("", !0) : (i(), V(J, T({
1259
+ (c = (b = (r = e.value) == null ? void 0 : r.form) == null ? void 0 : b.reset) != null && c.hidden ? ye("", !0) : (i(), V(J, T({
1260
1260
  key: 1,
1261
- onClick: S[4] || (S[4] = (h) => e.value.form.reset.click(e.value))
1262
- }, o(be)(e.value.form.reset, (h) => !["click"].includes(h))), {
1261
+ onClick: q[4] || (q[4] = (h) => e.value.form.reset.click(e.value))
1262
+ }, o($e)(e.value.form.reset, (h) => !["click"].includes(h))), {
1263
1263
  default: v(() => {
1264
1264
  var h, p, k;
1265
1265
  return [
1266
- ye(ve((k = (p = (h = e.value) == null ? void 0 : h.form) == null ? void 0 : p.reset) == null ? void 0 : k.label), 1)
1266
+ ge(ve((k = (p = (h = e.value) == null ? void 0 : h.form) == null ? void 0 : p.reset) == null ? void 0 : k.label), 1)
1267
1267
  ];
1268
1268
  }),
1269
1269
  _: 1
@@ -1428,7 +1428,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1428
1428
  };
1429
1429
  e.value.queryItems = Ee(x, n == null ? void 0 : n.queryItems, e.value.queryItems);
1430
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]({
1431
+ const de = Object.keys(s.slots).filter((se) => se !== "default").reduce((se, g) => (se[g] = (q) => s.slots[g]({
1432
1432
  model: e.value
1433
1433
  // 传递当前模型数据
1434
1434
  }), se), {});
@@ -1439,13 +1439,13 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1439
1439
  "onUpdate:info": (se) => I.value = se,
1440
1440
  more: z
1441
1441
  }, de);
1442
- }, fe = st(), F = () => {
1443
- var de, se, g, S, re, C, oe, ee, J;
1442
+ }, pe = st(), F = () => {
1443
+ var de, se, g, q, re, C, oe, ee, J;
1444
1444
  const s = [
1445
1445
  {
1446
1446
  key: "query",
1447
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,
1448
+ component: be,
1449
1449
  props: {
1450
1450
  ...e.value.query.query,
1451
1451
  onClick: e.value.query.query.click
@@ -1455,8 +1455,8 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1455
1455
  },
1456
1456
  {
1457
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,
1458
+ hidden: (C = (re = (q = e.value) == null ? void 0 : q.query) == null ? void 0 : re.reset) == null ? void 0 : C.hidden,
1459
+ component: be,
1460
1460
  props: {
1461
1461
  ...e.value.query.reset,
1462
1462
  onClick: e.value.query.reset.click
@@ -1467,7 +1467,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1467
1467
  {
1468
1468
  key: "more",
1469
1469
  hidden: (J = (ee = (oe = e.value) == null ? void 0 : oe.query) == null ? void 0 : ee.more) == null ? void 0 : J.hidden,
1470
- component: e.value.query.more.mode === 3 ? Re : ge,
1470
+ component: e.value.query.more.mode === 3 ? Re : be,
1471
1471
  props: e.value.query.more.mode === 3 ? { ...e.value.query.more.dialog } : {
1472
1472
  ...e.value.query.more,
1473
1473
  onClick: e.value.query.more.click
@@ -1476,20 +1476,20 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1476
1476
  sort: e.value.query.more.sort || 0,
1477
1477
  content: e.value.query.more.mode === 3 ? () => ke(Be, {
1478
1478
  class: "query-form",
1479
- ...be(e.value.query, (K) => !["query", "more", "reset"].includes(K))
1480
- }, () => P({ slots: fe }, !0)) : null
1479
+ ...$e(e.value.query, (K) => !["query", "more", "reset"].includes(K))
1480
+ }, () => P({ slots: pe }, !0)) : null
1481
1481
  }
1482
1482
  ];
1483
1483
  return s.sort((K, Y) => K.sort - Y.sort), s.filter((K) => !K.hidden).map((K) => K.key === "more" && K.component === Re ? ke(Re, K.props, {
1484
- reference: () => ke(ge, e.value.query.more, () => K.label),
1484
+ reference: () => ke(be, e.value.query.more, () => K.label),
1485
1485
  default: K.content
1486
1486
  }) : (K.props.slot = "query-" + K.key, K.label ? ke(K.component, K.props, () => K.label) : ke(K.component, K.props)));
1487
1487
  };
1488
1488
  return (s, z) => {
1489
- var se, g, S, re, C, oe, ee, J, K, Y, _, j;
1489
+ var se, g, q, re, C, oe, ee, J, K, Y, _, j;
1490
1490
  const de = B("el-drawer");
1491
1491
  return i(), N("div", qt, [
1492
- le(o(Be), Se(Ne(o(be)(e.value.query, (A) => !["query", "more", "reset"].includes(A)))), {
1492
+ le(o(Be), Se(Ne(o($e)(e.value.query, (A) => !["query", "more", "reset"].includes(A)))), {
1493
1493
  default: v(() => [
1494
1494
  (i(), V(xe(P({ slots: s.$slots }, void 0))))
1495
1495
  ]),
@@ -1507,7 +1507,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1507
1507
  ]),
1508
1508
  _: 3
1509
1509
  })) : (i(), N(Z, { key: 1 }, [
1510
- (re = (S = e.value.query) == null ? void 0 : S.btns) != null && re.group ? (i(), V(o(at), { key: 0 }, {
1510
+ (re = (q = e.value.query) == null ? void 0 : q.btns) != null && re.group ? (i(), V(o(at), { key: 0 }, {
1511
1511
  default: v(() => [
1512
1512
  (i(!0), N(Z, null, U(F(), (A) => $(s.$slots, A.props.slot, {}, () => [
1513
1513
  (i(), V(xe(A)))
@@ -1529,16 +1529,16 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1529
1529
  return [
1530
1530
  m.value && !((b = (r = (A = e.value) == null ? void 0 : A.query) == null ? void 0 : r.more) != null && b.hidden) && e.value.query.more.mode == 1 ? (i(), N("div", Ot, [
1531
1531
  G("div", At, [
1532
- e.value.query.more.mode == 1 ? Pe((i(), V(o(Be), Se(T({ key: 0 }, o(be)(e.value.query, (c) => !["query", "more", "reset"].includes(c)))), {
1532
+ e.value.query.more.mode == 1 ? Pe((i(), V(o(Be), Se(T({ key: 0 }, o($e)(e.value.query, (c) => !["query", "more", "reset"].includes(c)))), {
1533
1533
  default: v(() => [
1534
1534
  (i(), V(xe(P({ slots: s.$slots }, !0))))
1535
1535
  ]),
1536
1536
  _: 1
1537
1537
  }, 16)), [
1538
1538
  [ze, m.value]
1539
- ]) : $e("", !0)
1539
+ ]) : ye("", !0)
1540
1540
  ])
1541
- ])) : $e("", !0)
1541
+ ])) : ye("", !0)
1542
1542
  ];
1543
1543
  }),
1544
1544
  _: 1
@@ -1551,7 +1551,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1551
1551
  "show-close": !1
1552
1552
  }, e.value.query.more.dialog), ne({
1553
1553
  default: v(() => [
1554
- le(o(Be), T(o(be)(e.value.query, (A) => !["query", "more", "reset"].includes(A)), { style: { width: "98%" } }), {
1554
+ le(o(Be), T(o($e)(e.value.query, (A) => !["query", "more", "reset"].includes(A)), { style: { width: "98%" } }), {
1555
1555
  default: v(() => [
1556
1556
  le(ut, {
1557
1557
  modelValue: e.value,
@@ -1577,19 +1577,19 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1577
1577
  name: "footer",
1578
1578
  fn: v(() => [
1579
1579
  G("div", Se(Ne(e.value.query.more.dialog.footer)), [
1580
- le(o(ge), T(e.value.query.query, {
1580
+ le(o(be), T(e.value.query.query, {
1581
1581
  onClick: z[2] || (z[2] = (A) => e.value.query.query.click())
1582
1582
  }), {
1583
1583
  default: v(() => [
1584
- ye(ve(e.value.query.query.label), 1)
1584
+ ge(ve(e.value.query.query.label), 1)
1585
1585
  ]),
1586
1586
  _: 1
1587
1587
  }, 16),
1588
- le(o(ge), T(e.value.query.reset, {
1588
+ le(o(be), T(e.value.query.reset, {
1589
1589
  onClick: z[3] || (z[3] = (A) => e.value.query.reset.click())
1590
1590
  }), {
1591
1591
  default: v(() => [
1592
- ye(ve(e.value.query.reset.label), 1)
1592
+ ge(ve(e.value.query.reset.label), 1)
1593
1593
  ]),
1594
1594
  _: 1
1595
1595
  }, 16)
@@ -1597,7 +1597,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1597
1597
  ]),
1598
1598
  key: "0"
1599
1599
  }
1600
- ]), 1040, ["modelValue"])) : $e("", !0)
1600
+ ]), 1040, ["modelValue"])) : ye("", !0)
1601
1601
  ]);
1602
1602
  };
1603
1603
  }
@@ -1646,7 +1646,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1646
1646
  E && E.destroy();
1647
1647
  });
1648
1648
  }), (D, E) => {
1649
- const x = B("el-divider"), P = B("el-alert"), fe = B("el-checkbox"), F = B("el-button");
1649
+ const x = B("el-divider"), P = B("el-alert"), pe = B("el-checkbox"), F = B("el-button");
1650
1650
  return i(), N("div", It, [
1651
1651
  G("div", jt, [
1652
1652
  G("div", Rt, [
@@ -1669,7 +1669,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1669
1669
  }),
1670
1670
  E[0] || (E[0] = G("div", { style: { margin: "1px 0" } }, null, -1)),
1671
1671
  G("div", Lt, [
1672
- (i(!0), N(Z, null, U(n.value, (s) => (i(), V(fe, {
1672
+ (i(!0), N(Z, null, U(n.value, (s) => (i(), V(pe, {
1673
1673
  class: "check-box-hover",
1674
1674
  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" },
1675
1675
  "data-id": s.key,
@@ -1695,7 +1695,7 @@ const Le = /* @__PURE__ */ Ft(Tt), xt = {
1695
1695
  disabled: n.value.filter((s) => s.value).length < 1
1696
1696
  }, {
1697
1697
  default: v(() => [
1698
- ye(ve(e.commitText), 1)
1698
+ ge(ve(e.commitText), 1)
1699
1699
  ]),
1700
1700
  _: 1
1701
1701
  }, 8, ["disabled"])
@@ -1773,11 +1773,11 @@ const Qt = {
1773
1773
  //
1774
1774
  sort: !0,
1775
1775
  onEnd: () => {
1776
- x.toArray().forEach(async (fe, F) => {
1777
- t.value[fe].sort = F;
1778
- let s = t.value[fe].width || "auto";
1776
+ x.toArray().forEach(async (pe, F) => {
1777
+ t.value[pe].sort = F;
1778
+ let s = t.value[pe].width || "auto";
1779
1779
  try {
1780
- const z = await Me(t.value.table.user, d.name, fe, { sort: F, width: s });
1780
+ const z = await Me(t.value.table.user, d.name, pe, { sort: F, width: s });
1781
1781
  console.log(z);
1782
1782
  } catch (z) {
1783
1783
  console.error("列排序和宽度保存信息时出错:", z), _e({
@@ -1850,7 +1850,7 @@ const Qt = {
1850
1850
  width: x.width || "auto"
1851
1851
  })).sort((E, x) => E.sort - x.sort), m();
1852
1852
  }), (E, x) => {
1853
- const P = B("el-divider"), fe = B("el-alert"), F = B("el-checkbox");
1853
+ const P = B("el-divider"), pe = B("el-alert"), F = B("el-checkbox");
1854
1854
  return i(), N("div", null, [
1855
1855
  G("div", Qt, [
1856
1856
  G("a", { onClick: w }, "全选"),
@@ -1859,7 +1859,7 @@ const Qt = {
1859
1859
  le(P, { direction: "vertical" }),
1860
1860
  G("a", { onClick: D }, "复位")
1861
1861
  ]),
1862
- le(fe, {
1862
+ le(pe, {
1863
1863
  title: "拖动表格列标题可以改变表格列显示顺序 !",
1864
1864
  type: "warning",
1865
1865
  "show-icon": "",
@@ -1924,24 +1924,24 @@ const Qt = {
1924
1924
  load: () => {
1925
1925
  let { currentPage: l, pageSize: a } = t.value.table.page;
1926
1926
  try {
1927
- e("load", { currentPage: l, pageSize: a, ...m.value }, (y, q) => {
1927
+ e("load", { currentPage: l, pageSize: a, ...m.value }, (y, O) => {
1928
1928
  if (!Array.isArray(y)) {
1929
1929
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), _e.error("数据加载失败,请检查数据格式。");
1930
1930
  return;
1931
1931
  }
1932
- if (typeof q != "number") {
1932
+ if (typeof O != "number") {
1933
1933
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), _e.error("数据加载失败,请检查数据格式。");
1934
1934
  return;
1935
1935
  }
1936
- t.value.table.data = y, t.value.table.page.total = q, k();
1936
+ t.value.table.data = y, t.value.table.page.total = O, k();
1937
1937
  });
1938
1938
  } catch (y) {
1939
1939
  console.error("触发 load 事件时出现错误:", y), _e.error("数据加载时出现错误,请稍后重试。");
1940
1940
  }
1941
1941
  },
1942
1942
  onHeaderDragend: (l, a, y) => {
1943
- var q;
1944
- Me((q = t.value.table) == null ? void 0 : q.user, E.name, y.property, { width: l });
1943
+ var O;
1944
+ Me((O = t.value.table) == null ? void 0 : O.user, E.name, y.property, { width: l });
1945
1945
  },
1946
1946
  onRowDblclick: (l, a, y) => {
1947
1947
  t.value.table.dblclickType == "edit" ? C(l, a, y, t) : t.value.table.dblclickType == "view" && ee(l, a, y, t);
@@ -2027,14 +2027,14 @@ const Qt = {
2027
2027
  n == null ? void 0 : n.control,
2028
2028
  (te = t.value) == null ? void 0 : te.control
2029
2029
  );
2030
- const fe = {
2030
+ const pe = {
2031
2031
  type: "hidden",
2032
2032
  minWidth: 120,
2033
2033
  align: "center",
2034
- formatter: (l, a, y, q) => y
2034
+ formatter: (l, a, y, O) => y
2035
2035
  };
2036
2036
  t.value.tableColumns = Ee(
2037
- fe,
2037
+ pe,
2038
2038
  n == null ? void 0 : n.tableColumns,
2039
2039
  (ae = t.value) == null ? void 0 : ae.tableColumns
2040
2040
  );
@@ -2074,7 +2074,7 @@ const Qt = {
2074
2074
  n == null ? void 0 : n.dialog,
2075
2075
  (L = t.value) == null ? void 0 : L.dialog
2076
2076
  );
2077
- 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) => {
2077
+ const de = Object.fromEntries(Object.entries($e(t.value, (l, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([l, a]) => [l, a.value])), se = (l, a) => {
2078
2078
  let y = a;
2079
2079
  if (l.decimals && !isNaN(a) && (typeof l.decimals == "number" ? y = parseFloat(y).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? y = parseFloat(y).toFixed(l.decimals.num) : y = parseFloat(parseFloat(y).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Le(a).isValid()) {
2080
2080
  const W = {
@@ -2087,22 +2087,22 @@ const Qt = {
2087
2087
  return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, y = `<span title="${Ge(parseFloat(y))}">${hl(parseFloat(y))}</span>`), l.prefix && y && (y = `<span>${l.prefix}${y}</span>`), l.suffix && y && (y = `${y}<span>${l.suffix}</span>`), y;
2088
2088
  }, g = (l) => {
2089
2089
  m.value = l.value;
2090
- }, S = (l) => {
2090
+ }, q = (l) => {
2091
2091
  m.value = l, t.value.table.load();
2092
2092
  }, re = (l) => {
2093
2093
  var a;
2094
2094
  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((y) => {
2095
2095
  t.value[y] && (t.value[y].value = de[y]);
2096
2096
  }), w.value = !0, e("open", l, "add"));
2097
- }, C = (l, a, y, q) => {
2097
+ }, C = (l, a, y, O) => {
2098
2098
  var W;
2099
- t.value.form.modalState = "edit", (W = t.value.control.edit) != null && W.click ? t.value.control.edit.click(l, a, y, 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((Q) => {
2099
+ t.value.form.modalState = "edit", (W = t.value.control.edit) != null && W.click ? t.value.control.edit.click(l, a, y, O) : (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((Q) => {
2100
2100
  t.value[Q] && (t.value[Q].value = l[Q]);
2101
- }), w.value = !0, e("open", q, "edit", l, a, y));
2102
- }, oe = (l, a, y, q) => {
2101
+ }), w.value = !0, e("open", O, "edit", l, a, y));
2102
+ }, oe = (l, a, y, O) => {
2103
2103
  var W;
2104
2104
  if ((W = t.value.control.delete) != null && W.click)
2105
- t.value.control.delete.click(l, a, y, q);
2105
+ t.value.control.delete.click(l, a, y, O);
2106
2106
  else {
2107
2107
  let { message: Q, title: he, options: De } = t.value.control.delete.dialog;
2108
2108
  nt.confirm(Q, he, De).then(() => {
@@ -2112,11 +2112,11 @@ const Qt = {
2112
2112
  }).catch(() => {
2113
2113
  });
2114
2114
  }
2115
- }, ee = (l, a, y, q) => {
2115
+ }, ee = (l, a, y, O) => {
2116
2116
  var W;
2117
- t.value.form.modalState = void 0, (W = t.value.control.view) != null && W.click ? t.value.control.view.click(l, a, y, 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((Q) => {
2117
+ t.value.form.modalState = void 0, (W = t.value.control.view) != null && W.click ? t.value.control.view.click(l, a, y, O) : (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((Q) => {
2118
2118
  t.value[Q] && (t.value[Q].value = l[Q]);
2119
- }), w.value = !0, e("open", q, "view", l, a, y));
2119
+ }), w.value = !0, e("open", O, "view", l, a, y));
2120
2120
  }, J = (l, a) => {
2121
2121
  e("submit", t.value.form.modalState, l, a, (y) => {
2122
2122
  y && (w.value = !1, a.table.load());
@@ -2128,7 +2128,7 @@ const Qt = {
2128
2128
  if ((y = l.control.download) != null && y.click)
2129
2129
  l.control.download.click(l, a);
2130
2130
  else {
2131
- let q = Ye({
2131
+ let O = Ye({
2132
2132
  title: l.control.download.label,
2133
2133
  size: 480,
2134
2134
  width: 600,
@@ -2137,7 +2137,7 @@ const Qt = {
2137
2137
  items: a,
2138
2138
  commitText: l.control.download.excelLabel,
2139
2139
  onExcel: (W, Q) => {
2140
- e("download", W, Q), q();
2140
+ e("download", W, Q), O();
2141
2141
  }
2142
2142
  })
2143
2143
  }
@@ -2164,23 +2164,23 @@ const Qt = {
2164
2164
  { type: "edit", func: C },
2165
2165
  { type: "delete", func: oe }
2166
2166
  ], r = (l) => A.filter((a) => l.includes(a.type)).map(({ type: a, func: y }) => {
2167
- var q, W, Q;
2167
+ var O, W, Q;
2168
2168
  return {
2169
2169
  name: `control-${a}`,
2170
2170
  attr: j == null ? void 0 : j[a],
2171
2171
  func: y,
2172
- label: (q = j == null ? void 0 : j[a]) == null ? void 0 : q.label,
2172
+ label: (O = j == null ? void 0 : j[a]) == null ? void 0 : O.label,
2173
2173
  sort: ((W = j == null ? void 0 : j[a]) == null ? void 0 : W.sort) || 0,
2174
2174
  groupName: ((Q = j == null ? void 0 : j[a]) == null ? void 0 : Q.groupName) || "default"
2175
2175
  };
2176
- }).filter((a) => a.attr.auth()).sort((a, y) => a.sort - y.sort), b = (l) => r(l).reduce((a, y) => {
2177
- const q = y.groupName || "default";
2178
- return a[q] || (a[q] = []), a[q].push(y), a;
2176
+ }).sort((a, y) => a.sort - y.sort), b = (l) => r(l).reduce((a, y) => {
2177
+ const O = y.groupName || "default";
2178
+ return a[O] || (a[O] = []), a[O].push(y), a;
2179
2179
  }, {}), c = qe(() => Object.fromEntries(
2180
2180
  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)
2181
2181
  )), h = we({}), p = (l, a) => {
2182
- const y = (q, W) => {
2183
- for (const Q of q) {
2182
+ const y = (O, W) => {
2183
+ for (const Q of O) {
2184
2184
  if (Q.value == W) return Q.label;
2185
2185
  if (Q.children) {
2186
2186
  const he = y(Q.children, W);
@@ -2190,9 +2190,9 @@ const Qt = {
2190
2190
  return null;
2191
2191
  };
2192
2192
  if (l.getDicts) {
2193
- const q = a.toString();
2194
- return h.value[q] ? (l.options = h.value[q], l.formatter || (l.formatter = (W, Q, he, De) => l.options && y(l.options, he) || he), Promise.resolve()) : l.getDicts(l, t.value).then((W) => {
2195
- h.value[q] = W, l.options = W, l.formatter || (l.formatter = (Q, he, De, Ae) => l.options && y(l.options, De) || De);
2193
+ const O = a.toString();
2194
+ return h.value[O] ? (l.options = h.value[O], l.formatter || (l.formatter = (W, Q, he, De) => l.options && y(l.options, he) || he), Promise.resolve()) : l.getDicts(l, t.value).then((W) => {
2195
+ h.value[O] = W, l.options = W, l.formatter || (l.formatter = (Q, he, De, Ae) => l.options && y(l.options, De) || De);
2196
2196
  });
2197
2197
  }
2198
2198
  return Promise.resolve();
@@ -2201,15 +2201,15 @@ const Qt = {
2201
2201
  Object.keys(t.value).forEach((a) => {
2202
2202
  if (t.value[a].getDicts) {
2203
2203
  const y = p(t.value[a], a).then(() => {
2204
- t.value.table.data.forEach((q) => {
2204
+ t.value.table.data.forEach((O) => {
2205
2205
  var W;
2206
2206
  if (t.value[a].getDicts && ((W = t.value[a]) == null ? void 0 : W.forceString) !== !1) {
2207
- const Q = q[a];
2208
- q[a] = Q != null ? Q.toString() : Q;
2207
+ const Q = O[a];
2208
+ O[a] = Q != null ? Q.toString() : Q;
2209
2209
  }
2210
2210
  });
2211
- }).catch((q) => {
2212
- console.error(`加载字典${a}出错:`, q);
2211
+ }).catch((O) => {
2212
+ console.error(`加载字典${a}出错:`, O);
2213
2213
  });
2214
2214
  l.push(y);
2215
2215
  }
@@ -2251,7 +2251,7 @@ const Qt = {
2251
2251
  }
2252
2252
  }), (l, a) => {
2253
2253
  var Qe, Xe, Je, Ze, et;
2254
- const y = B("el-button-group"), q = B("el-table-column"), W = B("el-table"), Q = B("el-pagination"), he = B("el-icon"), De = B("el-dialog"), Ae = B("el-drawer");
2254
+ const y = B("el-button-group"), O = B("el-table-column"), W = B("el-table"), Q = B("el-pagination"), he = B("el-icon"), De = B("el-dialog"), Ae = B("el-drawer");
2255
2255
  return i(), N(Z, null, [
2256
2256
  G("div", tl, [
2257
2257
  ((Xe = (Qe = t.value) == null ? void 0 : Qe.query) == null ? void 0 : Xe.hidden) != !0 ? (i(), N("div", ll, [
@@ -2259,56 +2259,56 @@ const Qt = {
2259
2259
  le(Ut, {
2260
2260
  modelValue: t.value,
2261
2261
  "onUpdate:modelValue": a[0] || (a[0] = (H) => t.value = H),
2262
- onQuery: S,
2262
+ onQuery: q,
2263
2263
  onReset: g
2264
2264
  }, ne({
2265
2265
  "q-btns": v(() => [
2266
2266
  $(l.$slots, "q-btns", {}, () => [
2267
2267
  (i(!0), N(Z, null, U(b(["add", "download", "setting"]), (H, ce) => (i(), N(Z, null, [
2268
- ce == "default" ? (i(!0), N(Z, { key: 0 }, U(H, (O) => (i(), N(Z, null, [
2269
- $(l.$slots, O.name + "-left", {}, void 0, !0),
2270
- $(l.$slots, O.name, {}, () => [
2271
- O.label ? (i(), V(o(ge), T({
2268
+ ce == "default" ? (i(!0), N(Z, { key: 0 }, U(H, (S) => (i(), N(Z, null, [
2269
+ $(l.$slots, S.name + "-left", {}, void 0, !0),
2270
+ S.attr.auth() ? $(l.$slots, S.name, { key: 0 }, () => [
2271
+ S.label ? (i(), V(o(be), T({
2272
2272
  key: 0,
2273
2273
  ref_for: !0
2274
- }, O.attr, {
2275
- onClick: (X) => O.func(t.value, D.value)
2274
+ }, S.attr, {
2275
+ onClick: (X) => S.func(t.value, D.value)
2276
2276
  }), {
2277
2277
  default: v(() => [
2278
- ye(ve(O.label), 1)
2278
+ ge(ve(S.label), 1)
2279
2279
  ]),
2280
2280
  _: 2
2281
- }, 1040, ["onClick"])) : (i(), V(o(ge), T({
2281
+ }, 1040, ["onClick"])) : (i(), V(o(be), T({
2282
2282
  key: 1,
2283
2283
  ref_for: !0
2284
- }, O.attr, {
2285
- onClick: (X) => O.func(t.value, D.value)
2284
+ }, S.attr, {
2285
+ onClick: (X) => S.func(t.value, D.value)
2286
2286
  }), null, 16, ["onClick"]))
2287
- ], !0),
2288
- $(l.$slots, O.name + "-right", {}, void 0, !0)
2287
+ ], !0) : ye("", !0),
2288
+ $(l.$slots, S.name + "-right", {}, void 0, !0)
2289
2289
  ], 64))), 256)) : (i(), V(y, { key: 1 }, {
2290
2290
  default: v(() => [
2291
- (i(!0), N(Z, null, U(H, (O) => (i(), N(Z, null, [
2292
- $(l.$slots, O.name + "-left", {}, void 0, !0),
2293
- $(l.$slots, O.name, {}, () => [
2294
- O.label ? (i(), V(o(ge), T({
2291
+ (i(!0), N(Z, null, U(H, (S) => (i(), N(Z, null, [
2292
+ $(l.$slots, S.name + "-left", {}, void 0, !0),
2293
+ S.attr.auth() ? $(l.$slots, S.name, { key: 0 }, () => [
2294
+ S.label ? (i(), V(o(be), T({
2295
2295
  key: 0,
2296
2296
  ref_for: !0
2297
- }, O.attr, {
2298
- onClick: (X) => O.func(t.value, D.value)
2297
+ }, S.attr, {
2298
+ onClick: (X) => S.func(t.value, D.value)
2299
2299
  }), {
2300
2300
  default: v(() => [
2301
- ye(ve(O.label), 1)
2301
+ ge(ve(S.label), 1)
2302
2302
  ]),
2303
2303
  _: 2
2304
- }, 1040, ["onClick"])) : (i(), V(o(ge), T({
2304
+ }, 1040, ["onClick"])) : (i(), V(o(be), T({
2305
2305
  key: 1,
2306
2306
  ref_for: !0
2307
- }, O.attr, {
2308
- onClick: (X) => O.func(t.value, D.value)
2307
+ }, S.attr, {
2308
+ onClick: (X) => S.func(t.value, D.value)
2309
2309
  }), null, 16, ["onClick"]))
2310
- ], !0),
2311
- $(l.$slots, O.name + "-right", {}, void 0, !0)
2310
+ ], !0) : ye("", !0),
2311
+ $(l.$slots, S.name + "-right", {}, void 0, !0)
2312
2312
  ], 64))), 256))
2313
2313
  ]),
2314
2314
  _: 2
@@ -2318,7 +2318,7 @@ const Qt = {
2318
2318
  ]),
2319
2319
  _: 2
2320
2320
  }, [
2321
- U(l.$slots, (H, ce, O) => ({
2321
+ U(l.$slots, (H, ce, S) => ({
2322
2322
  name: ce,
2323
2323
  fn: v((X) => [
2324
2324
  $(l.$slots, ce, { model: t.value }, void 0, !0)
@@ -2326,9 +2326,9 @@ const Qt = {
2326
2326
  }))
2327
2327
  ]), 1032, ["modelValue"])
2328
2328
  ], !0)
2329
- ])) : $e("", !0),
2329
+ ])) : ye("", !0),
2330
2330
  G("div", ol, [
2331
- le(W, Se(Ne({ ...l.$attrs, ...o(be)(t.value.table, (H) => !["dblclickType", "page"].includes(H)) })), {
2331
+ le(W, Se(Ne({ ...l.$attrs, ...o($e)(t.value.table, (H) => !["dblclickType", "page"].includes(H)) })), {
2332
2332
  append: v(() => [
2333
2333
  $(l.$slots, "append", {}, void 0, !0)
2334
2334
  ]),
@@ -2337,32 +2337,32 @@ const Qt = {
2337
2337
  ]),
2338
2338
  default: v(() => [
2339
2339
  $(l.$slots, "default", {}, () => [
2340
- (i(!0), N(Z, null, U(c.value, (H, ce) => (i(), V(q, T({
2340
+ (i(!0), N(Z, null, U(c.value, (H, ce) => (i(), V(O, T({
2341
2341
  prop: ce,
2342
2342
  key: ce,
2343
2343
  ref_for: !0
2344
- }, { ...t.value.tableColumns, ...o(be)(H, (O) => I.includes(O)) }, { "header-align": "center" }), ne({
2345
- header: v(({ column: O, $index: X }) => [
2344
+ }, { ...t.value.tableColumns, ...o($e)(H, (S) => I.includes(S)) }, { "header-align": "center" }), ne({
2345
+ header: v(({ column: S, $index: X }) => [
2346
2346
  $(l.$slots, `${ce}-header`, {
2347
- column: O,
2347
+ column: S,
2348
2348
  $index: X
2349
2349
  }, void 0, !0)
2350
2350
  ]),
2351
- "filter-icon": v((O) => [
2352
- $(l.$slots, `${ce}-filter-icon`, { data: O }, void 0, !0)
2351
+ "filter-icon": v((S) => [
2352
+ $(l.$slots, `${ce}-filter-icon`, { data: S }, void 0, !0)
2353
2353
  ]),
2354
2354
  _: 2
2355
2355
  }, [
2356
2356
  H.type != "selection" && H.type != "index" && H.type != "expand" ? {
2357
2357
  name: "default",
2358
- fn: v(({ row: O, column: X, $index: me }) => [
2358
+ fn: v(({ row: S, column: X, $index: fe }) => [
2359
2359
  $(l.$slots, `${ce}`, {
2360
- row: O,
2360
+ row: S,
2361
2361
  column: X,
2362
- $index: me
2362
+ $index: fe
2363
2363
  }, () => [
2364
2364
  G("div", {
2365
- innerHTML: se(H, X.formatter(O, X, O[ce], me))
2365
+ innerHTML: se(H, X.formatter(S, X, S[ce], fe))
2366
2366
  }, null, 8, al)
2367
2367
  ], !0)
2368
2368
  ]),
@@ -2370,11 +2370,11 @@ const Qt = {
2370
2370
  } : void 0,
2371
2371
  H.type === "image" ? {
2372
2372
  name: "default",
2373
- fn: v(({ row: O, column: X, $index: me }) => [
2373
+ fn: v(({ row: S, column: X, $index: fe }) => [
2374
2374
  $(l.$slots, `${ce}`, {
2375
- row: O,
2375
+ row: S,
2376
2376
  column: X,
2377
- $index: me
2377
+ $index: fe
2378
2378
  }, () => [
2379
2379
  G("img", T({
2380
2380
  style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
@@ -2387,7 +2387,7 @@ const Qt = {
2387
2387
  } : void 0,
2388
2388
  H.type == "control" ? {
2389
2389
  name: "default",
2390
- fn: v(({ row: O, column: X, $index: me }) => {
2390
+ fn: v(({ row: S, column: X, $index: fe }) => {
2391
2391
  var tt, lt;
2392
2392
  return [
2393
2393
  G("div", {
@@ -2396,78 +2396,80 @@ const Qt = {
2396
2396
  }, [
2397
2397
  $(l.$slots, "control", {}, () => [
2398
2398
  $(l.$slots, "control-left", {
2399
- row: O,
2399
+ row: S,
2400
2400
  column: X,
2401
- $index: me
2401
+ $index: fe
2402
2402
  }, void 0, !0),
2403
2403
  (i(!0), N(Z, null, U(b(["view", "edit", "delete"]), (ot, pt) => (i(), N(Z, null, [
2404
- pt == "default" ? (i(!0), N(Z, { key: 0 }, U(ot, (pe) => (i(), N(Z, null, [
2405
- $(l.$slots, pe.name + "-left", {
2406
- row: O,
2404
+ pt == "default" ? (i(!0), N(Z, { key: 0 }, U(ot, (me) => (i(), N(Z, null, [
2405
+ $(l.$slots, me.name + "-left", {
2406
+ row: S,
2407
2407
  column: X,
2408
- $index: me
2408
+ $index: fe
2409
2409
  }, void 0, !0),
2410
- $(l.$slots, pe.name, {
2411
- row: O,
2410
+ me.attr.auth(S, X, fe) ? $(l.$slots, me.name, {
2411
+ key: 0,
2412
+ row: S,
2412
2413
  column: X,
2413
- $index: me
2414
+ $index: fe
2414
2415
  }, () => [
2415
- pe.label ? (i(), V(o(ge), T({
2416
+ me.label ? (i(), V(o(be), T({
2416
2417
  key: 0,
2417
2418
  ref_for: !0
2418
- }, pe.attr, {
2419
- onClick: (je) => pe.func(O, X, me, t.value)
2419
+ }, me.attr, {
2420
+ onClick: (je) => me.func(S, X, fe, t.value)
2420
2421
  }), {
2421
2422
  default: v(() => [
2422
- ye(ve(pe.label), 1)
2423
+ ge(ve(me.label), 1)
2423
2424
  ]),
2424
2425
  _: 2
2425
- }, 1040, ["onClick"])) : (i(), V(o(ge), T({
2426
+ }, 1040, ["onClick"])) : (i(), V(o(be), T({
2426
2427
  key: 1,
2427
2428
  ref_for: !0
2428
- }, pe.attr, {
2429
- onClick: (je) => pe.func(O, X, me, t.value)
2429
+ }, me.attr, {
2430
+ onClick: (je) => me.func(S, X, fe, t.value)
2430
2431
  }), null, 16, ["onClick"]))
2431
- ], !0),
2432
- $(l.$slots, pe.name + "-right", {
2433
- row: O,
2432
+ ], !0) : ye("", !0),
2433
+ $(l.$slots, me.name + "-right", {
2434
+ row: S,
2434
2435
  column: X,
2435
- $index: me
2436
+ $index: fe
2436
2437
  }, void 0, !0)
2437
2438
  ], 64))), 256)) : (i(), V(y, { key: 1 }, {
2438
2439
  default: v(() => [
2439
- (i(!0), N(Z, null, U(ot, (pe) => (i(), N(Z, null, [
2440
- $(l.$slots, pe.name + "-left", {
2441
- row: O,
2440
+ (i(!0), N(Z, null, U(ot, (me) => (i(), N(Z, null, [
2441
+ $(l.$slots, me.name + "-left", {
2442
+ row: S,
2442
2443
  column: X,
2443
- $index: me
2444
+ $index: fe
2444
2445
  }, void 0, !0),
2445
- $(l.$slots, pe.name, {
2446
- row: O,
2446
+ me.attr.auth(S, X, fe) ? $(l.$slots, me.name, {
2447
+ key: 0,
2448
+ row: S,
2447
2449
  column: X,
2448
- $index: me
2450
+ $index: fe
2449
2451
  }, () => [
2450
- pe.label ? (i(), V(o(ge), T({
2452
+ me.label ? (i(), V(o(be), T({
2451
2453
  key: 0,
2452
2454
  ref_for: !0
2453
- }, pe.attr, {
2454
- onClick: (je) => pe.func(O, X, me, t.value)
2455
+ }, me.attr, {
2456
+ onClick: (je) => me.func(S, X, fe, t.value)
2455
2457
  }), {
2456
2458
  default: v(() => [
2457
- ye(ve(pe.label), 1)
2459
+ ge(ve(me.label), 1)
2458
2460
  ]),
2459
2461
  _: 2
2460
- }, 1040, ["onClick"])) : (i(), V(o(ge), T({
2462
+ }, 1040, ["onClick"])) : (i(), V(o(be), T({
2461
2463
  key: 1,
2462
2464
  ref_for: !0
2463
- }, pe.attr, {
2464
- onClick: (je) => pe.func(O, X, me, t.value)
2465
+ }, me.attr, {
2466
+ onClick: (je) => me.func(S, X, fe, t.value)
2465
2467
  }), null, 16, ["onClick"]))
2466
- ], !0),
2467
- $(l.$slots, pe.name + "-right", {
2468
- row: O,
2468
+ ], !0) : ye("", !0),
2469
+ $(l.$slots, me.name + "-right", {
2470
+ row: S,
2469
2471
  column: X,
2470
- $index: me
2472
+ $index: fe
2471
2473
  }, void 0, !0)
2472
2474
  ], 64))), 256))
2473
2475
  ]),
@@ -2475,9 +2477,9 @@ const Qt = {
2475
2477
  }, 1024))
2476
2478
  ], 64))), 256)),
2477
2479
  $(l.$slots, "control-right", {
2478
- row: O,
2480
+ row: S,
2479
2481
  column: X,
2480
- $index: me
2482
+ $index: fe
2481
2483
  }, void 0, !0)
2482
2484
  ], !0)
2483
2485
  ], 6)
@@ -2490,7 +2492,7 @@ const Qt = {
2490
2492
  ]),
2491
2493
  _: 3
2492
2494
  }, 16),
2493
- (et = (Ze = (Je = t.value) == null ? void 0 : Je.table) == null ? void 0 : Ze.page) != null && et.hidden ? $e("", !0) : $(l.$slots, "page", { key: 0 }, () => [
2495
+ (et = (Ze = (Je = t.value) == null ? void 0 : Je.table) == null ? void 0 : Ze.page) != null && et.hidden ? ye("", !0) : $(l.$slots, "page", { key: 0 }, () => [
2494
2496
  le(Q, T({
2495
2497
  "page-size": t.value.table.page.pageSize,
2496
2498
  "onUpdate:pageSize": a[1] || (a[1] = (H) => t.value.table.page.pageSize = H),
@@ -2510,11 +2512,11 @@ const Qt = {
2510
2512
  modelValue: w.value,
2511
2513
  "onUpdate:modelValue": a[6] || (a[6] = (H) => w.value = H),
2512
2514
  fullscreen: t.value.dialog.fullScreen
2513
- }, o(be)(t.value.dialog, (H) => !["size"].includes(H)), {
2515
+ }, o($e)(t.value.dialog, (H) => !["size"].includes(H)), {
2514
2516
  width: o(mt)(t.value.dialog.width) + 35
2515
2517
  }), {
2516
2518
  header: v(() => {
2517
- var H, ce, O, X;
2519
+ var H, ce, S, X;
2518
2520
  return [
2519
2521
  G("div", ul, [
2520
2522
  G("div", nl, [
@@ -2524,7 +2526,7 @@ const Qt = {
2524
2526
  ]),
2525
2527
  ((ce = (H = t.value) == null ? void 0 : H.dialog) == null ? void 0 : ce.fullScreen) === !1 ? (i(), N("div", {
2526
2528
  key: 0,
2527
- onClick: a[3] || (a[3] = (me) => {
2529
+ onClick: a[3] || (a[3] = (fe) => {
2528
2530
  t.value.dialog.fullScreen = !0;
2529
2531
  }),
2530
2532
  class: "max"
@@ -2535,10 +2537,10 @@ const Qt = {
2535
2537
  ]),
2536
2538
  _: 1
2537
2539
  })
2538
- ])) : $e("", !0),
2539
- ((X = (O = t.value) == null ? void 0 : O.dialog) == null ? void 0 : X.fullScreen) === !0 ? (i(), N("div", {
2540
+ ])) : ye("", !0),
2541
+ ((X = (S = t.value) == null ? void 0 : S.dialog) == null ? void 0 : X.fullScreen) === !0 ? (i(), N("div", {
2540
2542
  key: 1,
2541
- onClick: a[4] || (a[4] = (me) => {
2543
+ onClick: a[4] || (a[4] = (fe) => {
2542
2544
  t.value.dialog.fullScreen = !1;
2543
2545
  }),
2544
2546
  class: "max"
@@ -2549,7 +2551,7 @@ const Qt = {
2549
2551
  ]),
2550
2552
  _: 1
2551
2553
  })
2552
- ])) : $e("", !0)
2554
+ ])) : ye("", !0)
2553
2555
  ])
2554
2556
  ];
2555
2557
  }),
@@ -2561,7 +2563,7 @@ const Qt = {
2561
2563
  onSubmit: J,
2562
2564
  onReset: K
2563
2565
  }, ne({ _: 2 }, [
2564
- U(l.$slots, (H, ce, O) => ({
2566
+ U(l.$slots, (H, ce, S) => ({
2565
2567
  name: ce,
2566
2568
  fn: v((X) => [
2567
2569
  $(l.$slots, ce, { model: X }, void 0, !0)
@@ -2579,7 +2581,7 @@ const Qt = {
2579
2581
  le(Ae, T({
2580
2582
  modelValue: w.value,
2581
2583
  "onUpdate:modelValue": a[8] || (a[8] = (H) => w.value = H)
2582
- }, o(be)(t.value.dialog, (H) => !["width"].includes(H))), {
2584
+ }, o($e)(t.value.dialog, (H) => !["width"].includes(H))), {
2583
2585
  header: v(() => [
2584
2586
  G("div", il, [
2585
2587
  G("div", dl, [
@@ -2596,7 +2598,7 @@ const Qt = {
2596
2598
  onSubmit: J,
2597
2599
  onReset: K
2598
2600
  }, ne({ _: 2 }, [
2599
- U(l.$slots, (H, ce, O) => ({
2601
+ U(l.$slots, (H, ce, S) => ({
2600
2602
  name: ce,
2601
2603
  fn: v((X) => [
2602
2604
  $(l.$slots, ce, { model: X }, void 0, !0)
@@ -2612,7 +2614,7 @@ const Qt = {
2612
2614
  ], 64);
2613
2615
  };
2614
2616
  }
2615
- }), fl = /* @__PURE__ */ Ie(cl, [["__scopeId", "data-v-4834e64f"]]), ml = Object.freeze({}), ft = [
2617
+ }), fl = /* @__PURE__ */ Ie(cl, [["__scopeId", "data-v-fba24016"]]), ml = Object.freeze({}), ft = [
2616
2618
  fl,
2617
2619
  He
2618
2620
  ];
@@ -2690,7 +2692,7 @@ const Ee = (...f) => {
2690
2692
  }), t);
2691
2693
  return f.forEach((t = {}) => e(d, t)), d;
2692
2694
  };
2693
- function be(f, d = (e, t) => d(e, t)) {
2695
+ function $e(f, d = (e, t) => d(e, t)) {
2694
2696
  const e = {};
2695
2697
  for (const t in f)
2696
2698
  f.hasOwnProperty(t) && d(t, f[t]) && (e[t] = f[t]);
@@ -2765,7 +2767,7 @@ export {
2765
2767
  ie as CT,
2766
2768
  mt as convertToPx,
2767
2769
  wl as default,
2768
- be as filterObject,
2770
+ $e as filterObject,
2769
2771
  vl as findTreeLabelByValue,
2770
2772
  hl as formatAmount,
2771
2773
  Ee as mergeObjects,
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .g-query-container[data-v-d383d8b7]{display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-d383d8b7]{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-d383d8b7]{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-d383d8b7],.nested-leave-active[data-v-d383d8b7]{transition:all .3s ease-in-out}.nested-leave-active[data-v-d383d8b7]{transition-delay:.25s}.nested-enter-from[data-v-d383d8b7],.nested-leave-to[data-v-d383d8b7]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-d383d8b7],.nested-leave-active .inner[data-v-d383d8b7]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-d383d8b7]{transition-delay:.25s}.nested-enter-from .inner[data-v-d383d8b7],.nested-leave-to .inner[data-v-d383d8b7]{transform:translateY(-100px);opacity:.001}.query-form[data-v-d383d8b7]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.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-4834e64f]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-4834e64f]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:14px;border:1px solid var(--el-border-color)}.table-container[data-v-4834e64f]{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-4834e64f]{cursor:pointer;color:var(--el-text-color)}.max[data-v-4834e64f]:hover{color:var(--el-color-primary)}.btns[data-v-4834e64f]{display:flex}
1
+ .g-query-container[data-v-d383d8b7]{display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-d383d8b7]{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-d383d8b7]{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-d383d8b7],.nested-leave-active[data-v-d383d8b7]{transition:all .3s ease-in-out}.nested-leave-active[data-v-d383d8b7]{transition-delay:.25s}.nested-enter-from[data-v-d383d8b7],.nested-leave-to[data-v-d383d8b7]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-d383d8b7],.nested-leave-active .inner[data-v-d383d8b7]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-d383d8b7]{transition-delay:.25s}.nested-enter-from .inner[data-v-d383d8b7],.nested-leave-to .inner[data-v-d383d8b7]{transform:translateY(-100px);opacity:.001}.query-form[data-v-d383d8b7]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.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-fba24016]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-fba24016]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:14px;border:1px solid var(--el-border-color)}.table-container[data-v-fba24016]{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-fba24016]{cursor:pointer;color:var(--el-text-color)}.max[data-v-fba24016]:hover{color:var(--el-color-primary)}.btns[data-v-fba24016]{display:flex}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-2024-ui",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 and Element Plus based plugin",