vue-2024-ui 0.2.14 → 0.2.15

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
@@ -189,7 +189,7 @@ var Ht = { exports: {} };
189
189
  (function(a, t) {
190
190
  r.exports = t();
191
191
  })(_l, function() {
192
- var a = 1e3, t = 6e4, e = 36e5, o = "millisecond", g = "second", v = "minute", F = "hour", f = "day", i = "week", u = "month", c = "quarter", _ = "year", V = "date", j = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|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, te = { 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(w) {
192
+ var a = 1e3, t = 6e4, e = 36e5, o = "millisecond", g = "second", v = "minute", F = "hour", f = "day", i = "week", u = "month", c = "quarter", _ = "year", V = "date", j = "Invalid Date", Y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|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, te = { 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(w) {
193
193
  var b = ["th", "st", "nd", "rd"], s = w % 100;
194
194
  return "[" + w + (b[(s - 20) % 10] || b[s] || b[0]) + "]";
195
195
  } }, pe = function(w, b, s) {
@@ -245,7 +245,7 @@ var Ht = { exports: {} };
245
245
  if (ae.u(k)) return /* @__PURE__ */ new Date();
246
246
  if (k instanceof Date) return new Date(k);
247
247
  if (typeof k == "string" && !/Z$/i.test(k)) {
248
- var U = k.match(R);
248
+ var U = k.match(Y);
249
249
  if (U) {
250
250
  var Z = U[2] - 1 || 0, G = (U[7] || "0").substring(0, 3);
251
251
  return C ? new Date(Date.UTC(U[1], Z, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G)) : new Date(U[1], Z, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G);
@@ -543,7 +543,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
543
543
  "show-file-list": !1,
544
544
  "file-list": [],
545
545
  showDel: (G = t.value) != null && G.showDel ? (me = t.value) == null ? void 0 : me.showDel : a.t !== "t"
546
- }), R = oe(t.value.innerHtml), L = (E) => [
546
+ }), Y = oe(t.value.innerHtml), L = (E) => [
547
547
  "year",
548
548
  "years",
549
549
  "month",
@@ -655,7 +655,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
655
655
  });
656
656
  return (E, y) => {
657
657
  var nt, z, se, x, X, ee, je, Ne, ze, Pe;
658
- const re = H("el-image-viewer"), he = H("el-radio"), be = H("el-radio-group"), $e = H("el-radio-button"), we = H("el-checkbox"), Ee = H("el-checkbox-group"), Me = H("el-checkbox-button"), xe = H("g-select-option"), Ye = H("el-option"), st = H("el-select"), it = H("el-tree-select"), dt = H("el-time-picker"), ct = H("el-time-select"), ft = H("el-date-picker"), vt = H("el-color-picker"), l = H("el-rate"), d = H("el-slider"), p = H("el-switch"), $ = H("el-transfer"), A = H("el-cascader"), Y = H("el-icon"), W = H("el-image"), fe = H("el-tooltip"), _e = H("el-upload"), Fe = H("el-autocomplete"), Re = H("el-input-number"), Le = H("el-input"), He = H("el-link"), et = H("el-text"), ot = H("el-avatar"), tt = H("el-tag");
658
+ const re = H("el-image-viewer"), he = H("el-radio"), be = H("el-radio-group"), $e = H("el-radio-button"), we = H("el-checkbox"), Ee = H("el-checkbox-group"), Me = H("el-checkbox-button"), xe = H("g-select-option"), Ye = H("el-option"), st = H("el-select"), it = H("el-tree-select"), dt = H("el-time-picker"), ct = H("el-time-select"), ft = H("el-date-picker"), vt = H("el-color-picker"), l = H("el-rate"), d = H("el-slider"), p = H("el-switch"), $ = H("el-transfer"), A = H("el-cascader"), R = H("el-icon"), W = H("el-image"), fe = H("el-tooltip"), _e = H("el-upload"), Fe = H("el-autocomplete"), Re = H("el-input-number"), Le = H("el-input"), He = H("el-link"), et = H("el-text"), ot = H("el-avatar"), tt = H("el-tag");
659
659
  return m(), I(J, null, [
660
660
  Q("div", null, [
661
661
  f.value ? (m(), B(re, {
@@ -1033,7 +1033,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1033
1033
  _: 1
1034
1034
  })) : ge("", !0)
1035
1035
  ], 32)
1036
- ])) : (m(), B(Y, { key: 0 }, {
1036
+ ])) : (m(), B(R, { key: 0 }, {
1037
1037
  default: D(() => [
1038
1038
  K(P(dl))
1039
1039
  ]),
@@ -1109,7 +1109,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1109
1109
  }, [
1110
1110
  K(He, O(t.value, {
1111
1111
  type: o.value.replace("link-", ""),
1112
- innerHTML: R.value || n.value
1112
+ innerHTML: Y.value || n.value
1113
1113
  }), null, 16, ["type", "innerHTML"])
1114
1114
  ], 4)) : o.value != "textarea" && ((x = o.value) != null && x.startsWith("text")) ? (m(), I("div", {
1115
1115
  key: 21,
@@ -1117,15 +1117,15 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1117
1117
  }, [
1118
1118
  K(et, O(t.value, {
1119
1119
  type: o.value.replace("text-", ""),
1120
- innerHTML: R.value || n.value
1120
+ innerHTML: Y.value || n.value
1121
1121
  }), null, 16, ["type", "innerHTML"])
1122
1122
  ], 4)) : o.value == "avatar" ? (m(), I("div", {
1123
1123
  key: 22,
1124
1124
  style: qe(u.value)
1125
1125
  }, [
1126
- R.value ? (m(), B(ot, Et(O({ key: 0 }, t.value)), {
1126
+ Y.value ? (m(), B(ot, Et(O({ key: 0 }, t.value)), {
1127
1127
  default: D(() => [
1128
- Q("div", { innerHTML: R.value }, null, 8, Ml)
1128
+ Q("div", { innerHTML: Y.value }, null, 8, Ml)
1129
1129
  ]),
1130
1130
  _: 1
1131
1131
  }, 16)) : (m(), B(ot, Et(O({ key: 1 }, t.value)), null, 16))
@@ -1133,7 +1133,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1133
1133
  key: 23,
1134
1134
  style: qe(u.value)
1135
1135
  }, [
1136
- Array.isArray(R.value) && R.value.length > 0 ? (m(!0), I(J, { key: 0 }, N(R.value, (h, S) => (m(), I(J, { key: S }, [
1136
+ Array.isArray(Y.value) && Y.value.length > 0 ? (m(!0), I(J, { key: 0 }, N(Y.value, (h, S) => (m(), I(J, { key: S }, [
1137
1137
  typeof h == "object" ? (m(), B(tt, O({
1138
1138
  key: 0,
1139
1139
  ref_for: !0
@@ -1150,13 +1150,13 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1150
1150
  }), null, 16, ["type", "innerHTML"]))
1151
1151
  ], 64))), 128)) : (m(), B(tt, O({ key: 1 }, t.value, {
1152
1152
  type: o.value.replace("tag-", ""),
1153
- innerHTML: R.value || n.value
1153
+ innerHTML: Y.value || n.value
1154
1154
  }), null, 16, ["type", "innerHTML"]))
1155
1155
  ], 4)) : o.value == "div" ? (m(), I("div", O({ key: 24 }, t.value, {
1156
- innerHTML: R.value || n.value,
1156
+ innerHTML: Y.value || n.value,
1157
1157
  style: u.value
1158
1158
  }), null, 16, Tl)) : o.value == "span" ? (m(), I("span", O({ key: 25 }, t.value, {
1159
- innerHTML: R.value || n.value,
1159
+ innerHTML: Y.value || n.value,
1160
1160
  style: u.value
1161
1161
  }), null, 16, Fl)) : (m(), B(Le, O({
1162
1162
  key: 26,
@@ -1258,7 +1258,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1258
1258
  for (; s > 0; ) {
1259
1259
  if (await rt(), o.value) {
1260
1260
  o.value.validate((q, k) => {
1261
- q ? (e("submit", T, w, b), o.value.resetFields()) : console.error("表单验证不通过!", k);
1261
+ q ? e("submit", T, w, b) : console.error("表单验证不通过!", k);
1262
1262
  });
1263
1263
  return;
1264
1264
  }
@@ -1377,7 +1377,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1377
1377
  return { ...s, ...G };
1378
1378
  }
1379
1379
  return s;
1380
- }, R = (T) => {
1380
+ }, Y = (T) => {
1381
1381
  var b, s, q, k, C;
1382
1382
  const w = typeof T.editor == "function" ? T.editor(v.value, (b = t.value.form) == null ? void 0 : b.modalState) : T.editor;
1383
1383
  return ((s = t.value.form) == null ? void 0 : s.modalState) === "edit" ? ((q = w == null ? void 0 : w.ep) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? T.type : ((k = t.value.form) == null ? void 0 : k.modalState) === "add" ? ((C = w == null ? void 0 : w.ap) == null ? void 0 : C.type) ?? (w == null ? void 0 : w.type) ?? T.type : (w == null ? void 0 : w.type) ?? T.type;
@@ -1529,7 +1529,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1529
1529
  "onUpdate:modelValue": ($e) => v.value[y.key] = $e,
1530
1530
  item: j(y),
1531
1531
  ctrlKey: y.key,
1532
- ctrlType: R(y == null ? void 0 : y.item),
1532
+ ctrlType: Y(y == null ? void 0 : y.item),
1533
1533
  model: t.value,
1534
1534
  key: `${y.key}-${F.value}`,
1535
1535
  class: "g-ctrl-container",
@@ -1596,7 +1596,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1596
1596
  "onUpdate:modelValue": (he) => v.value[y] = he,
1597
1597
  item: j(E, !0),
1598
1598
  ctrlKey: y,
1599
- ctrlType: R(E),
1599
+ ctrlType: Y(E),
1600
1600
  key: `${y}-${F.value}`,
1601
1601
  model: t.value,
1602
1602
  class: "g-ctrl-container",
@@ -1651,7 +1651,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1651
1651
  ]);
1652
1652
  };
1653
1653
  }
1654
- }), _t = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-a8d2f408"]]), Ft = {
1654
+ }), _t = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-1235909e"]]), Ft = {
1655
1655
  __name: "g-query-item",
1656
1656
  props: /* @__PURE__ */ Xe(["more"], {
1657
1657
  modelValue: { required: !0 },
@@ -1818,7 +1818,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1818
1818
  };
1819
1819
  a.value.queryItems = Ve(f, e == null ? void 0 : e.queryItems, a.value.queryItems);
1820
1820
  const i = (V, j) => {
1821
- const R = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (pe) => V.slots[te]({
1821
+ const Y = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (pe) => V.slots[te]({
1822
1822
  model: a.value
1823
1823
  // 传递当前模型数据
1824
1824
  }), L), {});
@@ -1828,13 +1828,13 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1828
1828
  info: g.value,
1829
1829
  "onUpdate:info": (L) => g.value = L,
1830
1830
  more: j
1831
- }, R);
1831
+ }, Y);
1832
1832
  }, u = At(), c = () => {
1833
- var R, L, te, pe, ie, ce, de, Ce, Te;
1833
+ var Y, L, te, pe, ie, ce, de, Ce, Te;
1834
1834
  const V = [
1835
1835
  {
1836
1836
  key: "query",
1837
- hidden: (te = (L = (R = a.value) == null ? void 0 : R.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
1837
+ hidden: (te = (L = (Y = a.value) == null ? void 0 : Y.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
1838
1838
  component: Be,
1839
1839
  props: {
1840
1840
  ...a.value.query.query,
@@ -1880,7 +1880,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1880
1880
  }));
1881
1881
  return (V, j) => {
1882
1882
  var te, pe, ie, ce, de, Ce, Te, le, ne, ae, Ie, T, w, b, s, q, k;
1883
- const R = H("el-form-item"), L = H("el-drawer");
1883
+ const Y = H("el-form-item"), L = H("el-drawer");
1884
1884
  return m(), I(J, null, [
1885
1885
  Q("div", {
1886
1886
  class: "g-query-container",
@@ -1894,7 +1894,7 @@ const wt = /* @__PURE__ */ Lt(kl), zt = {
1894
1894
  var C, U;
1895
1895
  return [
1896
1896
  (m(), B(We(i({ slots: V.$slots }, void 0)))),
1897
- ((U = (C = a.value.query) == null ? void 0 : C.container) == null ? void 0 : U.inline) === !0 ? (m(), B(R, { key: 0 }, {
1897
+ ((U = (C = a.value.query) == null ? void 0 : C.container) == null ? void 0 : U.inline) === !0 ? (m(), B(Y, { key: 0 }, {
1898
1898
  default: D(() => {
1899
1899
  var Z, G, me, E, y;
1900
1900
  return [
@@ -2363,21 +2363,21 @@ const na = {
2363
2363
  }),
2364
2364
  Q("div", null, [
2365
2365
  Q("div", ua, [
2366
- (m(!0), I(J, null, N(e.value, (R) => (m(), B(j, {
2367
- modelValue: R.showCol,
2368
- "onUpdate:modelValue": (L) => R.showCol = L,
2369
- "data-id": R.value,
2370
- class: Bt(["check-box-hover", R.value == "control" ? "filtered" : ""]),
2371
- onChange: (L) => g(L, R.value),
2366
+ (m(!0), I(J, null, N(e.value, (Y) => (m(), B(j, {
2367
+ modelValue: Y.showCol,
2368
+ "onUpdate:modelValue": (L) => Y.showCol = L,
2369
+ "data-id": Y.value,
2370
+ class: Bt(["check-box-hover", Y.value == "control" ? "filtered" : ""]),
2371
+ onChange: (L) => g(L, Y.value),
2372
2372
  style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
2373
- value: R.value,
2374
- title: R.label,
2375
- disabled: R.alwaysShow,
2376
- key: R.value
2373
+ value: Y.value,
2374
+ title: Y.label,
2375
+ disabled: Y.alwaysShow,
2376
+ key: Y.value
2377
2377
  }, {
2378
2378
  default: D(() => [
2379
2379
  Q("span", {
2380
- textContent: De(R.label),
2380
+ textContent: De(Y.label),
2381
2381
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2382
2382
  }, null, 8, sa)
2383
2383
  ]),
@@ -2537,9 +2537,9 @@ function ya(r) {
2537
2537
  for (var v = r.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, u = -1732584194, c = 271733878, _ = 0; _ < v.length; _++)
2538
2538
  v[_] = (v[_] << 8 | v[_] >>> 24) & 16711935 | (v[_] << 24 | v[_] >>> 8) & 4278255360;
2539
2539
  v[F >>> 5] |= 128 << F % 32, v[(F + 64 >>> 9 << 4) + 14] = F;
2540
- for (var V = e._ff, j = e._gg, R = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
2540
+ for (var V = e._ff, j = e._gg, Y = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
2541
2541
  var te = f, pe = i, ie = u, ce = c;
2542
- f = V(f, i, u, c, v[_ + 0], 7, -680876936), c = V(c, f, i, u, v[_ + 1], 12, -389564586), u = V(u, c, f, i, v[_ + 2], 17, 606105819), i = V(i, u, c, f, v[_ + 3], 22, -1044525330), f = V(f, i, u, c, v[_ + 4], 7, -176418897), c = V(c, f, i, u, v[_ + 5], 12, 1200080426), u = V(u, c, f, i, v[_ + 6], 17, -1473231341), i = V(i, u, c, f, v[_ + 7], 22, -45705983), f = V(f, i, u, c, v[_ + 8], 7, 1770035416), c = V(c, f, i, u, v[_ + 9], 12, -1958414417), u = V(u, c, f, i, v[_ + 10], 17, -42063), i = V(i, u, c, f, v[_ + 11], 22, -1990404162), f = V(f, i, u, c, v[_ + 12], 7, 1804603682), c = V(c, f, i, u, v[_ + 13], 12, -40341101), u = V(u, c, f, i, v[_ + 14], 17, -1502002290), i = V(i, u, c, f, v[_ + 15], 22, 1236535329), f = j(f, i, u, c, v[_ + 1], 5, -165796510), c = j(c, f, i, u, v[_ + 6], 9, -1069501632), u = j(u, c, f, i, v[_ + 11], 14, 643717713), i = j(i, u, c, f, v[_ + 0], 20, -373897302), f = j(f, i, u, c, v[_ + 5], 5, -701558691), c = j(c, f, i, u, v[_ + 10], 9, 38016083), u = j(u, c, f, i, v[_ + 15], 14, -660478335), i = j(i, u, c, f, v[_ + 4], 20, -405537848), f = j(f, i, u, c, v[_ + 9], 5, 568446438), c = j(c, f, i, u, v[_ + 14], 9, -1019803690), u = j(u, c, f, i, v[_ + 3], 14, -187363961), i = j(i, u, c, f, v[_ + 8], 20, 1163531501), f = j(f, i, u, c, v[_ + 13], 5, -1444681467), c = j(c, f, i, u, v[_ + 2], 9, -51403784), u = j(u, c, f, i, v[_ + 7], 14, 1735328473), i = j(i, u, c, f, v[_ + 12], 20, -1926607734), f = R(f, i, u, c, v[_ + 5], 4, -378558), c = R(c, f, i, u, v[_ + 8], 11, -2022574463), u = R(u, c, f, i, v[_ + 11], 16, 1839030562), i = R(i, u, c, f, v[_ + 14], 23, -35309556), f = R(f, i, u, c, v[_ + 1], 4, -1530992060), c = R(c, f, i, u, v[_ + 4], 11, 1272893353), u = R(u, c, f, i, v[_ + 7], 16, -155497632), i = R(i, u, c, f, v[_ + 10], 23, -1094730640), f = R(f, i, u, c, v[_ + 13], 4, 681279174), c = R(c, f, i, u, v[_ + 0], 11, -358537222), u = R(u, c, f, i, v[_ + 3], 16, -722521979), i = R(i, u, c, f, v[_ + 6], 23, 76029189), f = R(f, i, u, c, v[_ + 9], 4, -640364487), c = R(c, f, i, u, v[_ + 12], 11, -421815835), u = R(u, c, f, i, v[_ + 15], 16, 530742520), i = R(i, u, c, f, v[_ + 2], 23, -995338651), f = L(f, i, u, c, v[_ + 0], 6, -198630844), c = L(c, f, i, u, v[_ + 7], 10, 1126891415), u = L(u, c, f, i, v[_ + 14], 15, -1416354905), i = L(i, u, c, f, v[_ + 5], 21, -57434055), f = L(f, i, u, c, v[_ + 12], 6, 1700485571), c = L(c, f, i, u, v[_ + 3], 10, -1894986606), u = L(u, c, f, i, v[_ + 10], 15, -1051523), i = L(i, u, c, f, v[_ + 1], 21, -2054922799), f = L(f, i, u, c, v[_ + 8], 6, 1873313359), c = L(c, f, i, u, v[_ + 15], 10, -30611744), u = L(u, c, f, i, v[_ + 6], 15, -1560198380), i = L(i, u, c, f, v[_ + 13], 21, 1309151649), f = L(f, i, u, c, v[_ + 4], 6, -145523070), c = L(c, f, i, u, v[_ + 11], 10, -1120210379), u = L(u, c, f, i, v[_ + 2], 15, 718787259), i = L(i, u, c, f, v[_ + 9], 21, -343485551), f = f + te >>> 0, i = i + pe >>> 0, u = u + ie >>> 0, c = c + ce >>> 0;
2542
+ f = V(f, i, u, c, v[_ + 0], 7, -680876936), c = V(c, f, i, u, v[_ + 1], 12, -389564586), u = V(u, c, f, i, v[_ + 2], 17, 606105819), i = V(i, u, c, f, v[_ + 3], 22, -1044525330), f = V(f, i, u, c, v[_ + 4], 7, -176418897), c = V(c, f, i, u, v[_ + 5], 12, 1200080426), u = V(u, c, f, i, v[_ + 6], 17, -1473231341), i = V(i, u, c, f, v[_ + 7], 22, -45705983), f = V(f, i, u, c, v[_ + 8], 7, 1770035416), c = V(c, f, i, u, v[_ + 9], 12, -1958414417), u = V(u, c, f, i, v[_ + 10], 17, -42063), i = V(i, u, c, f, v[_ + 11], 22, -1990404162), f = V(f, i, u, c, v[_ + 12], 7, 1804603682), c = V(c, f, i, u, v[_ + 13], 12, -40341101), u = V(u, c, f, i, v[_ + 14], 17, -1502002290), i = V(i, u, c, f, v[_ + 15], 22, 1236535329), f = j(f, i, u, c, v[_ + 1], 5, -165796510), c = j(c, f, i, u, v[_ + 6], 9, -1069501632), u = j(u, c, f, i, v[_ + 11], 14, 643717713), i = j(i, u, c, f, v[_ + 0], 20, -373897302), f = j(f, i, u, c, v[_ + 5], 5, -701558691), c = j(c, f, i, u, v[_ + 10], 9, 38016083), u = j(u, c, f, i, v[_ + 15], 14, -660478335), i = j(i, u, c, f, v[_ + 4], 20, -405537848), f = j(f, i, u, c, v[_ + 9], 5, 568446438), c = j(c, f, i, u, v[_ + 14], 9, -1019803690), u = j(u, c, f, i, v[_ + 3], 14, -187363961), i = j(i, u, c, f, v[_ + 8], 20, 1163531501), f = j(f, i, u, c, v[_ + 13], 5, -1444681467), c = j(c, f, i, u, v[_ + 2], 9, -51403784), u = j(u, c, f, i, v[_ + 7], 14, 1735328473), i = j(i, u, c, f, v[_ + 12], 20, -1926607734), f = Y(f, i, u, c, v[_ + 5], 4, -378558), c = Y(c, f, i, u, v[_ + 8], 11, -2022574463), u = Y(u, c, f, i, v[_ + 11], 16, 1839030562), i = Y(i, u, c, f, v[_ + 14], 23, -35309556), f = Y(f, i, u, c, v[_ + 1], 4, -1530992060), c = Y(c, f, i, u, v[_ + 4], 11, 1272893353), u = Y(u, c, f, i, v[_ + 7], 16, -155497632), i = Y(i, u, c, f, v[_ + 10], 23, -1094730640), f = Y(f, i, u, c, v[_ + 13], 4, 681279174), c = Y(c, f, i, u, v[_ + 0], 11, -358537222), u = Y(u, c, f, i, v[_ + 3], 16, -722521979), i = Y(i, u, c, f, v[_ + 6], 23, 76029189), f = Y(f, i, u, c, v[_ + 9], 4, -640364487), c = Y(c, f, i, u, v[_ + 12], 11, -421815835), u = Y(u, c, f, i, v[_ + 15], 16, 530742520), i = Y(i, u, c, f, v[_ + 2], 23, -995338651), f = L(f, i, u, c, v[_ + 0], 6, -198630844), c = L(c, f, i, u, v[_ + 7], 10, 1126891415), u = L(u, c, f, i, v[_ + 14], 15, -1416354905), i = L(i, u, c, f, v[_ + 5], 21, -57434055), f = L(f, i, u, c, v[_ + 12], 6, 1700485571), c = L(c, f, i, u, v[_ + 3], 10, -1894986606), u = L(u, c, f, i, v[_ + 10], 15, -1051523), i = L(i, u, c, f, v[_ + 1], 21, -2054922799), f = L(f, i, u, c, v[_ + 8], 6, 1873313359), c = L(c, f, i, u, v[_ + 15], 10, -30611744), u = L(u, c, f, i, v[_ + 6], 15, -1560198380), i = L(i, u, c, f, v[_ + 13], 21, 1309151649), f = L(f, i, u, c, v[_ + 4], 6, -145523070), c = L(c, f, i, u, v[_ + 11], 10, -1120210379), u = L(u, c, f, i, v[_ + 2], 15, 718787259), i = L(i, u, c, f, v[_ + 9], 21, -343485551), f = f + te >>> 0, i = i + pe >>> 0, u = u + ie >>> 0, c = c + ce >>> 0;
2543
2543
  }
2544
2544
  return r.endian([f, i, u, c]);
2545
2545
  };
@@ -2620,7 +2620,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2620
2620
  "filter-multiple",
2621
2621
  "filter-method",
2622
2622
  "filtered-value"
2623
- ], c = oe([]), _ = Tt(), V = oe({}), j = oe([]), R = oe(null), L = oe(""), te = oe("/"), pe = oe({
2623
+ ], c = oe([]), _ = Tt(), V = oe({}), j = oe([]), Y = oe(null), L = oe(""), te = oe("/"), pe = oe({
2624
2624
  autoWatch: !1,
2625
2625
  data: [],
2626
2626
  border: !0,
@@ -2635,7 +2635,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2635
2635
  t(
2636
2636
  "load",
2637
2637
  { currentPage: l, pageSize: d, ...g.value },
2638
- (p = [], $ = 0, { fields: A = [], sums: Y = {} } = {}) => {
2638
+ (p = [], $ = 0, { fields: A = [], sums: R = {} } = {}) => {
2639
2639
  var W;
2640
2640
  if (!Array.isArray(p)) {
2641
2641
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
@@ -2645,9 +2645,9 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2645
2645
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
2646
2646
  return;
2647
2647
  }
2648
- e.value.table.data = p, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(R.value), e.value.table.page.total = $, j.value = A, V.value = Y, $e(), L.value = Math.random().toString(36).substring(2);
2648
+ e.value.table.data = p, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(Y.value), e.value.table.page.total = $, j.value = A, V.value = R, $e(), L.value = Math.random().toString(36).substring(2);
2649
2649
  },
2650
- R.value
2650
+ Y.value
2651
2651
  );
2652
2652
  } catch (p) {
2653
2653
  console.error("触发 load 事件时出现错误:", p), Ge.error("数据加载时出现错误,请稍后重试。");
@@ -2789,8 +2789,8 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2789
2789
  size: "small",
2790
2790
  auth: () => !($.control.add($).inline === !0 && p == 0),
2791
2791
  onClick: () => {
2792
- var Y;
2793
- let A = (Y = de(l, d, p, $)) == null ? void 0 : Y.operate;
2792
+ var R;
2793
+ let A = (R = de(l, d, p, $)) == null ? void 0 : R.operate;
2794
2794
  A === "edit" ? w(l, d, p, $) : A === "delete" ? b(l, d, p, $) : A === "view" && s(l, d, p, $);
2795
2795
  },
2796
2796
  "button-props": { round: !0, plain: !0 }
@@ -2802,16 +2802,16 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2802
2802
  (it = e.value) == null ? void 0 : it.control
2803
2803
  );
2804
2804
  const ce = (l, d = !0) => {
2805
- const p = e.value.control[l], $ = d ? (A, Y, W, fe) => {
2805
+ const p = e.value.control[l], $ = d ? (A, R, W, fe) => {
2806
2806
  var Le, He, et;
2807
- if (!A || !Y || W == null)
2807
+ if (!A || !R || W == null)
2808
2808
  return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
2809
- const _e = ((Le = ie[l]) == null ? void 0 : Le.call(ie, A, Y, W, fe)) || {}, Fe = ((et = (He = o == null ? void 0 : o.control) == null ? void 0 : He[l]) == null ? void 0 : et.call(He, A, Y, W, fe)) || {}, Re = (p == null ? void 0 : p(A, Y, W, fe)) || {};
2809
+ const _e = ((Le = ie[l]) == null ? void 0 : Le.call(ie, A, R, W, fe)) || {}, Fe = ((et = (He = o == null ? void 0 : o.control) == null ? void 0 : He[l]) == null ? void 0 : et.call(He, A, R, W, fe)) || {}, Re = (p == null ? void 0 : p(A, R, W, fe)) || {};
2810
2810
  return Ve(_e, Fe, Re) || {};
2811
2811
  } : (A) => {
2812
2812
  var _e, Fe, Re;
2813
- const Y = ((_e = ie[l]) == null ? void 0 : _e.call(ie, A)) || {}, W = ((Re = (Fe = o == null ? void 0 : o.control) == null ? void 0 : Fe[l]) == null ? void 0 : Re.call(Fe, A)) || {}, fe = (p == null ? void 0 : p(A)) || {};
2814
- return Ve(Y, W, fe) || {};
2813
+ const R = ((_e = ie[l]) == null ? void 0 : _e.call(ie, A)) || {}, W = ((Re = (Fe = o == null ? void 0 : o.control) == null ? void 0 : Fe[l]) == null ? void 0 : Re.call(Fe, A)) || {}, fe = (p == null ? void 0 : p(A)) || {};
2814
+ return Ve(R, W, fe) || {};
2815
2815
  };
2816
2816
  e.value.control[l] = $;
2817
2817
  };
@@ -2820,8 +2820,8 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2820
2820
  var fe, _e, Fe, Re, Le, He;
2821
2821
  if (!l || !d || p == null)
2822
2822
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
2823
- const A = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, p, $)) || {}, Y = ((Fe = (_e = o == null ? void 0 : o.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Fe.call(_e, l, d, p, $)) || {}, W = ((He = (Le = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Le.dropdown) == null ? void 0 : He.call(Le, l, d, p, $)) || {};
2824
- return Ve(A, Y, W) || {};
2823
+ const A = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, p, $)) || {}, R = ((Fe = (_e = o == null ? void 0 : o.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Fe.call(_e, l, d, p, $)) || {}, W = ((He = (Le = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Le.dropdown) == null ? void 0 : He.call(Le, l, d, p, $)) || {};
2824
+ return Ve(A, R, W) || {};
2825
2825
  }, Ce = {
2826
2826
  type: "hidden",
2827
2827
  "min-width": 100,
@@ -2899,16 +2899,16 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2899
2899
  var d, p;
2900
2900
  e.value.form.modalState = "add";
2901
2901
  try {
2902
- if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { initFormData: R.value, m: l }))) return;
2902
+ if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { row: Y.value, m: l }))) return;
2903
2903
  } catch ($) {
2904
2904
  console.error("验证失败:", $);
2905
2905
  return;
2906
2906
  }
2907
- (p = e.value.control.add(l)) != null && p.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(R.value), t("open", "row-add", { initFormData: R.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(l).mode, e.value.dialog.title = e.value.control.add(l).title || e.value.control.add(l).label || "新增", Object.keys(R.value).forEach(($) => {
2908
- e.value[$] && (e.value[$].value = R.value[$]);
2907
+ (p = e.value.control.add(l)) != null && p.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(Y.value), t("open", "row-add", { initFormData: Y.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.saveSubmit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(l).mode, e.value.dialog.title = e.value.control.add(l).title || e.value.control.add(l).label || "新增", Object.keys(Y.value).forEach(($) => {
2908
+ e.value[$] && (e.value[$].value = Y.value[$]);
2909
2909
  }), i.value = !0, t("open", "add", { m: l }), gt());
2910
2910
  }, w = async (l, d, p, $) => {
2911
- var A, Y;
2911
+ var A, R;
2912
2912
  e.value.form.modalState = "edit";
2913
2913
  try {
2914
2914
  if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: d, index: p, m: $ }))) return;
@@ -2916,18 +2916,18 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2916
2916
  console.error("验证失败:", W);
2917
2917
  return;
2918
2918
  }
2919
- (Y = e.value.control.edit(l, d, p, $)) != null && Y.click ? e.value.control.edit(l, d, p, $).click(l, d, p, $) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, d, p, $).mode, e.value.dialog.title = e.value.control.edit(l, d, p, $).title || e.value.control.edit(l, d, p, $).label || "编辑", Object.keys(l).forEach((W) => {
2919
+ (R = e.value.control.edit(l, d, p, $)) != null && R.click ? e.value.control.edit(l, d, p, $).click(l, d, p, $) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.saveSubmit.hidden = !0, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, d, p, $).mode, e.value.dialog.title = e.value.control.edit(l, d, p, $).title || e.value.control.edit(l, d, p, $).label || "编辑", Object.keys(l).forEach((W) => {
2920
2920
  e.value[W] && (e.value[W].value = l[W]);
2921
2921
  }), i.value = !0, t("open", "edit", { m: $, row: l, column: d, index: p }), gt());
2922
2922
  }, b = async (l, d, p, $) => {
2923
- var A, Y;
2923
+ var A, R;
2924
2924
  try {
2925
2925
  if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: d, index: p, m: $ }))) return;
2926
2926
  } catch (W) {
2927
2927
  console.error("验证失败:", W);
2928
2928
  return;
2929
2929
  }
2930
- if ((Y = e.value.control.delete(l, d, p, $)) != null && Y.click)
2930
+ if ((R = e.value.control.delete(l, d, p, $)) != null && R.click)
2931
2931
  e.value.control.delete(l, d, p, $).click(l, d, p, $);
2932
2932
  else {
2933
2933
  let { message: W, title: fe, options: _e } = e.value.control.delete(l, d, p, $).dialog;
@@ -2943,7 +2943,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2943
2943
  });
2944
2944
  }
2945
2945
  }, s = async (l, d, p, $) => {
2946
- var A, Y;
2946
+ var A, R;
2947
2947
  e.value.form.modalState = void 0;
2948
2948
  try {
2949
2949
  if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: d, index: p, m: $ }))) return;
@@ -2951,7 +2951,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2951
2951
  console.error("验证失败:", W);
2952
2952
  return;
2953
2953
  }
2954
- (Y = e.value.control.view(l, d, p, $)) != null && Y.click ? e.value.control.view(l, d, p, $).click(l, d, p, $) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(l, d, p, $).mode, e.value.dialog.title = e.value.control.view(l, d, p, $).title || e.value.control.view(l, d, p, $).label || "查看", Object.keys(l).forEach((W) => {
2954
+ (R = e.value.control.view(l, d, p, $)) != null && R.click ? e.value.control.view(l, d, p, $).click(l, d, p, $) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(l, d, p, $).mode, e.value.dialog.title = e.value.control.view(l, d, p, $).title || e.value.control.view(l, d, p, $).label || "查看", Object.keys(l).forEach((W) => {
2955
2955
  e.value[W] && (e.value[W].value = l[W]);
2956
2956
  }), i.value = !0, t("open", "view", { m: $, row: l, column: d, index: p }), gt());
2957
2957
  }, q = (l, d, p, $) => {
@@ -2959,9 +2959,9 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2959
2959
  (A = e.value.control.save(l, d, p, $)) != null && A.click ? e.value.control.save(l, d, p, $).click(l, d, p, $) : t(
2960
2960
  "row-save",
2961
2961
  { row: l, column: d, index: p, data: e.value.table.data },
2962
- (Y = !0, W = !0) => {
2963
- Y && e.value.table.load(), W && rt(() => {
2964
- R.value = Object.assign(
2962
+ (R = !0, W = !0) => {
2963
+ R && e.value.table.load(), W && rt(() => {
2964
+ Y.value = Object.assign(
2965
2965
  {},
2966
2966
  Object.fromEntries(
2967
2967
  Object.entries(
@@ -2974,7 +2974,9 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2974
2974
  );
2975
2975
  }, k = (l, d, p) => {
2976
2976
  t("submit", e.value.form.modalState, l, d, ($) => {
2977
- $ && (p === 1 && (i.value = !1), d.table.load());
2977
+ $ && (p === 1 && (i.value = !1), Object.keys(Y.value).forEach((A) => {
2978
+ l[A] = Y.value[A];
2979
+ }), d.table.load());
2978
2980
  });
2979
2981
  }, C = (l) => {
2980
2982
  t("reset", l);
@@ -2992,8 +2994,8 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
2992
2994
  default: () => ke(Xl, {
2993
2995
  items: d,
2994
2996
  commitText: l.control.download(l).excelLabel,
2995
- onExcel: (A, Y) => {
2996
- t("download", A, g.value, Y), $();
2997
+ onExcel: (A, R) => {
2998
+ t("download", A, g.value, R), $();
2997
2999
  }
2998
3000
  })
2999
3001
  }
@@ -3031,29 +3033,29 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3031
3033
  { type: "edit", func: w },
3032
3034
  { type: "delete", func: b },
3033
3035
  { type: "save", func: q }
3034
- ], E = (l, d, p, $, A) => me.filter((Y) => l.includes(Y.type)).map(({ type: Y, func: W }) => {
3036
+ ], E = (l, d, p, $, A) => me.filter((R) => l.includes(R.type)).map(({ type: R, func: W }) => {
3035
3037
  var fe, _e, Fe;
3036
3038
  return {
3037
- name: `control-${Y}`,
3038
- attr: G == null ? void 0 : G[Y](d, p, $, A),
3039
+ name: `control-${R}`,
3040
+ attr: G == null ? void 0 : G[R](d, p, $, A),
3039
3041
  func: W,
3040
- label: (fe = G == null ? void 0 : G[Y](d, p, $, A)) == null ? void 0 : fe.label,
3041
- sort: ((_e = G == null ? void 0 : G[Y](d, p, $, A)) == null ? void 0 : _e.sort) || 0,
3042
- groupName: ((Fe = G == null ? void 0 : G[Y](d, p, $, A)) == null ? void 0 : Fe.groupName) || "default"
3042
+ label: (fe = G == null ? void 0 : G[R](d, p, $, A)) == null ? void 0 : fe.label,
3043
+ sort: ((_e = G == null ? void 0 : G[R](d, p, $, A)) == null ? void 0 : _e.sort) || 0,
3044
+ groupName: ((Fe = G == null ? void 0 : G[R](d, p, $, A)) == null ? void 0 : Fe.groupName) || "default"
3043
3045
  };
3044
- }).sort((Y, W) => Y.sort - W.sort), y = (l, d, p, $, A) => E(l, d, p, $, A).reduce((Y, W) => {
3046
+ }).sort((R, W) => R.sort - W.sort), y = (l, d, p, $, A) => E(l, d, p, $, A).reduce((R, W) => {
3045
3047
  const fe = W.groupName || "default";
3046
- return Y[fe] || (Y[fe] = []), Y[fe].push(W), Y;
3048
+ return R[fe] || (R[fe] = []), R[fe].push(W), R;
3047
3049
  }, {}), re = Je(
3048
3050
  () => Object.fromEntries(
3049
3051
  Object.entries(e.value).filter(([l, d]) => d.type !== "hidden").filter(([l, d]) => d.hidden !== !0).filter(([l, d]) => d.visible !== !1).filter(([l, d]) => d.showCol !== !1).map(([l, d]) => (d.sort = typeof d.sort == "number" ? d.sort : 0, [l, d])).sort((l, d) => l[1].sort - d[1].sort)
3050
3052
  )
3051
3053
  ), he = oe({}), be = (l, d) => {
3052
3054
  const p = ($, A) => {
3053
- for (const Y of $) {
3054
- if (Y.value == A) return Y.label;
3055
- if (Y.children) {
3056
- const W = p(Y.children, A);
3055
+ for (const R of $) {
3056
+ if (R.value == A) return R.label;
3057
+ if (R.children) {
3058
+ const W = p(R.children, A);
3057
3059
  if (W) return W;
3058
3060
  }
3059
3061
  }
@@ -3061,8 +3063,8 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3061
3063
  };
3062
3064
  if (l.getDicts) {
3063
3065
  const $ = d.toString();
3064
- return he.value[$] ? (l.options = he.value[$], l.formatter || (l.formatter = (A, Y, W, fe) => l.options && p(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((A) => {
3065
- he.value[$] = A, l.options = A, l.formatter || (l.formatter = (Y, W, fe, _e) => l.options && p(l.options, fe) || fe);
3066
+ return he.value[$] ? (l.options = he.value[$], l.formatter || (l.formatter = (A, R, W, fe) => l.options && p(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((A) => {
3067
+ he.value[$] = A, l.options = A, l.formatter || (l.formatter = (R, W, fe, _e) => l.options && p(l.options, fe) || fe);
3066
3068
  });
3067
3069
  }
3068
3070
  return Promise.resolve();
@@ -3074,8 +3076,8 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3074
3076
  e.value.table.data.forEach(($) => {
3075
3077
  var A;
3076
3078
  if (e.value[d].getDicts && ((A = e.value[d]) == null ? void 0 : A.forceString) !== !1) {
3077
- const Y = $[d];
3078
- $[d] = Y != null ? Y.toString() : Y;
3079
+ const R = $[d];
3080
+ $[d] = R != null ? R.toString() : R;
3079
3081
  }
3080
3082
  });
3081
3083
  }).catch(($) => {
@@ -3087,8 +3089,8 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3087
3089
  console.error("字典加载过程中发生错误:", d);
3088
3090
  });
3089
3091
  }, we = (l, d, p, $) => {
3090
- var A, Y;
3091
- return l.table ? (A = l.table(d, p, $)) != null && A.auth ? (Y = l.table(d, p, $)) == null ? void 0 : Y.auth(d, p, $) : !0 : !1;
3092
+ var A, R;
3093
+ return l.table ? (A = l.table(d, p, $)) != null && A.auth ? (R = l.table(d, p, $)) == null ? void 0 : R.auth(d, p, $) : !0 : !1;
3092
3094
  }, Ee = () => {
3093
3095
  if (e.value.dialog.mode == "drawer")
3094
3096
  F.value.handleClose();
@@ -3115,8 +3117,8 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3115
3117
  const A = e.value[$.key];
3116
3118
  A && (A.width = $.width);
3117
3119
  }), d && Array.isArray(d) && d.forEach(($, A) => {
3118
- const Y = e.value[$];
3119
- Y && (Y.sort = A);
3120
+ const R = e.value[$];
3121
+ R && (R.sort = A);
3120
3122
  }), p && Array.isArray(p) && p.length > 0 ? p.forEach(($) => {
3121
3123
  const A = e.value[$];
3122
3124
  A && (A.showCol = !1);
@@ -3142,7 +3144,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3142
3144
  const l = Object.entries(e.value).filter(
3143
3145
  ([d, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
3144
3146
  );
3145
- R.value = Object.fromEntries(
3147
+ Y.value = Object.fromEntries(
3146
3148
  l.map(([d, p]) => [d, p.value])
3147
3149
  ), await Me();
3148
3150
  } catch (l) {
@@ -3151,7 +3153,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3151
3153
  e.value.table.autoWatch || e.value.table.load();
3152
3154
  }), n({ addRow: T, editRow: w, deleteRow: b, readForm: s, saveRowData: q, closeDialog: Ee }), (l, d) => {
3153
3155
  var He, et, ot, tt, nt;
3154
- const p = H("el-icon"), $ = H("el-dialog"), A = H("el-drawer"), Y = H("el-button-group"), W = H("el-dropdown-item"), fe = H("el-dropdown-menu"), _e = H("el-dropdown"), Fe = H("el-table-column"), Re = H("el-table"), Le = H("el-pagination");
3156
+ const p = H("el-icon"), $ = H("el-dialog"), A = H("el-drawer"), R = H("el-button-group"), W = H("el-dropdown-item"), fe = H("el-dropdown-menu"), _e = H("el-dropdown"), Fe = H("el-table-column"), Re = H("el-table"), Le = H("el-pagination");
3155
3157
  return m(), I(J, null, [
3156
3158
  e.value.dialog.mode == "dialog" && i.value ? (m(), I("div", $a, [
3157
3159
  K($, O(
@@ -3307,7 +3309,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3307
3309
  }), null, 16, ["title", "onClick"]))
3308
3310
  ], !0) : ge("", !0),
3309
3311
  M(l.$slots, x.name + "-right", {}, void 0, !0)
3310
- ], 64))), 256)) : (m(), B(Y, { key: 1 }, {
3312
+ ], 64))), 256)) : (m(), B(R, { key: 1 }, {
3311
3313
  default: D(() => [
3312
3314
  (m(!0), I(J, null, N(z, (x) => (m(), I(J, null, [
3313
3315
  M(l.$slots, x.name + "-left", {}, void 0, !0),
@@ -3533,7 +3535,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3533
3535
  ];
3534
3536
  }),
3535
3537
  _: 2
3536
- }, 1040)) : (m(), B(Y, { key: 2 }, {
3538
+ }, 1040)) : (m(), B(R, { key: 2 }, {
3537
3539
  default: D(() => [
3538
3540
  (m(!0), I(J, null, N(ze, (S) => (m(), I(J, null, [
3539
3541
  M(l.$slots, S.name + "-left", {
@@ -3662,7 +3664,7 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3662
3664
  ], 64);
3663
3665
  };
3664
3666
  }
3665
- }), Va = /* @__PURE__ */ Ze(xa, [["__scopeId", "data-v-a313ed34"]]), qa = { class: "g-tree-table" }, Aa = { class: "g-tree-container" }, Ba = { class: "g-tree-table-container" }, Oa = /* @__PURE__ */ Object.assign({
3667
+ }), Va = /* @__PURE__ */ Ze(xa, [["__scopeId", "data-v-05100a54"]]), qa = { class: "g-tree-table" }, Aa = { class: "g-tree-container" }, Ba = { class: "g-tree-table-container" }, Oa = /* @__PURE__ */ Object.assign({
3666
3668
  name: "g-tree-table",
3667
3669
  inheritAttrs: !1
3668
3670
  }, {
@@ -3673,10 +3675,10 @@ const ba = /* @__PURE__ */ Lt(ga), $a = { key: 0 }, wa = { style: { display: "fl
3673
3675
  },
3674
3676
  emits: /* @__PURE__ */ Xe(["load"], ["update:modelValue"]),
3675
3677
  setup(r, { emit: n }) {
3676
- var _, V, j, R;
3678
+ var _, V, j, Y;
3677
3679
  const a = n, t = Qe(r, "modelValue"), e = Tt(), o = oe(
3678
3680
  typeof ((_ = e == null ? void 0 : e.tree) == null ? void 0 : _.width) == "number" ? `${e.tree.width}px` : ((V = e == null ? void 0 : e.tree) == null ? void 0 : V.width) || "180px"
3679
- ), g = oe(((j = e == null ? void 0 : e.tree) == null ? void 0 : j.search) === void 0 ? !0 : (R = e == null ? void 0 : e.tree) == null ? void 0 : R.search), v = oe({}), F = oe(""), f = oe(null), i = (L, te) => {
3681
+ ), g = oe(((j = e == null ? void 0 : e.tree) == null ? void 0 : j.search) === void 0 ? !0 : (Y = e == null ? void 0 : e.tree) == null ? void 0 : Y.search), v = oe({}), F = oe(""), f = oe(null), i = (L, te) => {
3680
3682
  var ie, ce;
3681
3683
  if (!L) return !0;
3682
3684
  const pe = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .custom-upload[data-v-83528f03]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-83528f03] .custom-upload img{width:100%;height:100%}[data-v-83528f03] .custom-upload .el-upload--picture-card,[data-v-83528f03] .custom-upload .el-upload-dragger,[data-v-83528f03] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-83528f03] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-83528f03] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-83528f03] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-83528f03]:hover{background-color:#0003}.g-form-container[data-v-a8d2f408]{width:100%;display:flex;flex-direction:column}.g-query-container[data-v-3f2b77d6]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-3f2b77d6]{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-3f2b77d6]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-3f2b77d6],.nested-leave-active[data-v-3f2b77d6]{transition:all .3s ease-in-out}.nested-leave-active[data-v-3f2b77d6]{transition-delay:.25s}.nested-enter-from[data-v-3f2b77d6],.nested-leave-to[data-v-3f2b77d6]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-3f2b77d6],.nested-leave-active .inner[data-v-3f2b77d6]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-3f2b77d6]{transition-delay:.25s}.nested-enter-from .inner[data-v-3f2b77d6],.nested-leave-to .inner[data-v-3f2b77d6]{transform:translateY(-100px);opacity:.001}.query-form[data-v-3f2b77d6]{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-630c4ced]:hover,.check-box-hover[data-v-adb08f30]:hover{background:var(--el-border-color)}.allcheck a[data-v-adb08f30]{cursor:pointer}.filtered[data-v-adb08f30]{pointer-events:none}.g-cell-toopTip[data-v-f28912da]{max-height:400px;border-radius:var(--el-border-radius-base);padding:12px;transition:all .3s ease}.g-cell-toopTip .title[data-v-f28912da]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:24px;border-bottom:1px solid var(--el-border-color)}.g-cell-toopTip .title .title-text[data-v-f28912da]{font-weight:700;line-height:24px}.g-cell-toopTip .content[data-v-f28912da]{max-height:300px;overflow-y:auto;line-height:1.5;padding:4px 0}.copy-btn[data-v-f28912da]{width:16px;height:16px;cursor:pointer}.copy-btn[data-v-f28912da]:hover{color:var(--el-color-success)}.control .el-button[data-v-a313ed34]{padding:0 3px;margin:0 3px}.g-table-container[data-v-a313ed34]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-a313ed34]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-a313ed34]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-a313ed34]{cursor:pointer;color:var(--el-text-color)}.max[data-v-a313ed34]:hover{color:var(--el-color-primary)}.btns[data-v-a313ed34]{display:flex}[data-v-a313ed34] .drag-dialog{resize:both;overflow:auto}[data-v-a313ed34] .el-dialog__header,[data-v-a313ed34] .el-dialog__body{pointer-events:auto!important}.g-tree-table[data-v-c888e4fc]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-c888e4fc]{display:flex;width:100%;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%;border:1px solid var(--el-border-color-lighter)}.g-tree-table-container[data-v-c888e4fc]{display:flex;flex:1;overflow:auto}.g-tree-left[data-v-c888e4fc]{display:flex;flex-direction:column;box-sizing:border-box;margin-right:10px;overflow:auto}.op-group[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#fff;padding:5px 25px;box-sizing:border-box;background-color:var(--el-color-primary-light-3)}.op-items[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-c0ac6b77]{background-color:var(--el-color-primary-light-7);border-radius:3px;margin:2px 2px 0 0;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
1
+ .custom-upload[data-v-83528f03]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-83528f03] .custom-upload img{width:100%;height:100%}[data-v-83528f03] .custom-upload .el-upload--picture-card,[data-v-83528f03] .custom-upload .el-upload-dragger,[data-v-83528f03] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-83528f03] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-83528f03] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-83528f03] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-83528f03]:hover{background-color:#0003}.g-form-container[data-v-1235909e]{width:100%;display:flex;flex-direction:column}.g-query-container[data-v-3f2b77d6]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-3f2b77d6]{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-3f2b77d6]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-3f2b77d6],.nested-leave-active[data-v-3f2b77d6]{transition:all .3s ease-in-out}.nested-leave-active[data-v-3f2b77d6]{transition-delay:.25s}.nested-enter-from[data-v-3f2b77d6],.nested-leave-to[data-v-3f2b77d6]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-3f2b77d6],.nested-leave-active .inner[data-v-3f2b77d6]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-3f2b77d6]{transition-delay:.25s}.nested-enter-from .inner[data-v-3f2b77d6],.nested-leave-to .inner[data-v-3f2b77d6]{transform:translateY(-100px);opacity:.001}.query-form[data-v-3f2b77d6]{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-630c4ced]:hover,.check-box-hover[data-v-adb08f30]:hover{background:var(--el-border-color)}.allcheck a[data-v-adb08f30]{cursor:pointer}.filtered[data-v-adb08f30]{pointer-events:none}.g-cell-toopTip[data-v-f28912da]{max-height:400px;border-radius:var(--el-border-radius-base);padding:12px;transition:all .3s ease}.g-cell-toopTip .title[data-v-f28912da]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:24px;border-bottom:1px solid var(--el-border-color)}.g-cell-toopTip .title .title-text[data-v-f28912da]{font-weight:700;line-height:24px}.g-cell-toopTip .content[data-v-f28912da]{max-height:300px;overflow-y:auto;line-height:1.5;padding:4px 0}.copy-btn[data-v-f28912da]{width:16px;height:16px;cursor:pointer}.copy-btn[data-v-f28912da]:hover{color:var(--el-color-success)}.control .el-button[data-v-05100a54]{padding:0 3px;margin:0 3px}.g-table-container[data-v-05100a54]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-05100a54]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-05100a54]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-05100a54]{cursor:pointer;color:var(--el-text-color)}.max[data-v-05100a54]:hover{color:var(--el-color-primary)}.btns[data-v-05100a54]{display:flex}[data-v-05100a54] .drag-dialog{resize:both;overflow:auto}[data-v-05100a54] .el-dialog__header,[data-v-05100a54] .el-dialog__body{pointer-events:auto!important}.g-tree-table[data-v-c888e4fc]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-c888e4fc]{display:flex;width:100%;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%;border:1px solid var(--el-border-color-lighter)}.g-tree-table-container[data-v-c888e4fc]{display:flex;flex:1;overflow:auto}.g-tree-left[data-v-c888e4fc]{display:flex;flex-direction:column;box-sizing:border-box;margin-right:10px;overflow:auto}.op-group[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#fff;padding:5px 25px;box-sizing:border-box;background-color:var(--el-color-primary-light-3)}.op-items[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-c0ac6b77]{background-color:var(--el-color-primary-light-7);border-radius:3px;margin:2px 2px 0 0;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-2024-ui",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 and Element Plus based plugin",