vue-2024-ui 0.0.82 → 0.0.83

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 $t = { exports: {} };
189
189
  (function(t, e) {
190
190
  f.exports = e();
191
191
  })(Yt, function() {
192
- var t = 1e3, e = 6e4, a = 36e5, d = "millisecond", U = "second", T = "minute", F = "hour", E = "day", D = "week", z = "month", te = "quarter", R = "year", V = "date", b = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ae = /\[([^\]]+)]|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, K = { 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(B) {
192
+ var t = 1e3, e = 6e4, a = 36e5, d = "millisecond", U = "second", T = "minute", F = "hour", E = "day", D = "week", z = "month", le = "quarter", R = "year", V = "date", b = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ae = /\[([^\]]+)]|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, K = { 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(B) {
193
193
  var $ = ["th", "st", "nd", "rd"], g = B % 100;
194
194
  return "[" + B + ($[(g - 20) % 10] || $[g] || $[0]) + "]";
195
195
  } }, ue = function(B, $, g) {
@@ -205,7 +205,7 @@ var $t = { exports: {} };
205
205
  }, a: function(B) {
206
206
  return B < 0 ? Math.ceil(B) || 0 : Math.floor(B);
207
207
  }, p: function(B) {
208
- return { M: z, y: R, w: D, d: E, D: V, h: F, m: T, s: U, ms: d, Q: te }[B] || String(B || "").toLowerCase().replace(/s$/, "");
208
+ return { M: z, y: R, w: D, d: E, D: V, h: F, m: T, s: U, ms: d, Q: le }[B] || String(B || "").toLowerCase().replace(/s$/, "");
209
209
  }, u: function(B) {
210
210
  return B === void 0;
211
211
  } }, me = "en", pe = {};
@@ -407,7 +407,7 @@ var $t = { exports: {} };
407
407
  case z:
408
408
  i = he();
409
409
  break;
410
- case te:
410
+ case le:
411
411
  i = he() / 3;
412
412
  break;
413
413
  case D:
@@ -502,7 +502,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
502
502
  daterange: "YYYY-MM-DD",
503
503
  monthrange: "YYYY-MM",
504
504
  yearrange: "YYYY"
505
- })[b] || "YYYY-MM-DD", te = ye({
505
+ })[b] || "YYYY-MM-DD", le = ye({
506
506
  filterable: !0,
507
507
  remote: !!(e && e["remote-method"]),
508
508
  ...e
@@ -531,7 +531,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
531
531
  };
532
532
  return Ne(async () => {
533
533
  var ae, K;
534
- e && e["remote-method"] && (te.value["remote-method"] = R), (K = (ae = U[a]) == null ? void 0 : ae.options) != null && K.length && (F.value = U[a].options);
534
+ e && e["remote-method"] && (le.value["remote-method"] = R), (K = (ae = U[a]) == null ? void 0 : ae.options) != null && K.length && (F.value = U[a].options);
535
535
  const b = (ue, de = "options", me = U[a]) => {
536
536
  typeof e.getDicts == "function" && V(de).catch((pe) => {
537
537
  console.error(`Failed to load ${de} for ${ue}:`, pe);
@@ -630,14 +630,14 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
630
630
  modelValue: c.value,
631
631
  "onUpdate:modelValue": w[5] || (w[5] = (u) => c.value = u),
632
632
  placeholder: o(U)[o(a)].label
633
- }, te.value), fe({
633
+ }, le.value), fe({
634
634
  default: y(() => [
635
635
  p(b.$slots, `${t.t}-${o(a)}`, { options: F.value }, () => [
636
636
  (n(!0), x(P, null, Y(F.value, (u) => (n(), x(P, {
637
637
  key: u.value
638
638
  }, [
639
639
  Z(M, S({ ref_for: !0 }, o(ke)(u, (N) => N != "children"), {
640
- onClick: (N) => te.value.change && te.value.change(u)
640
+ onClick: (N) => le.value.change && le.value.change(u)
641
641
  }), {
642
642
  default: y(() => {
643
643
  var N;
@@ -674,7 +674,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
674
674
  key: N.value,
675
675
  ref_for: !0
676
676
  }, o(ke)(N, (ie) => ie != "children"), {
677
- onClick: (ie) => te.value.change && te.value.change(N)
677
+ onClick: (ie) => le.value.change && le.value.change(N)
678
678
  }), {
679
679
  default: y(() => {
680
680
  var ie;
@@ -1081,7 +1081,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1081
1081
  return { ...h, ...g };
1082
1082
  }
1083
1083
  return h;
1084
- }, te = (m) => {
1084
+ }, le = (m) => {
1085
1085
  var C, h, I, ee, ne;
1086
1086
  const M = typeof m.editor == "function" ? m.editor(b.value, (C = t.value.form) == null ? void 0 : C.modalState) : m.editor;
1087
1087
  return ((h = t.value.form) == null ? void 0 : h.modalState) === "edit" ? ((I = M == null ? void 0 : M.ep) == null ? void 0 : I.type) ?? (M == null ? void 0 : M.type) ?? m.type : ((ee = t.value.form) == null ? void 0 : ee.modalState) === "add" ? ((ne = M == null ? void 0 : M.ap) == null ? void 0 : ne.type) ?? (M == null ? void 0 : M.type) ?? m.type : (M == null ? void 0 : M.type) ?? m.type;
@@ -1186,7 +1186,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1186
1186
  "onUpdate:modelValue": (se) => t.value[i.key].value = se,
1187
1187
  item: z(i),
1188
1188
  ctrlKey: i.key,
1189
- ctrlType: te(i == null ? void 0 : i.item),
1189
+ ctrlType: le(i == null ? void 0 : i.item),
1190
1190
  model: t.value,
1191
1191
  key: i.key,
1192
1192
  class: "g-ctrl-container",
@@ -1277,7 +1277,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1277
1277
  "onUpdate:modelValue": (H) => t.value[i].value = H,
1278
1278
  item: z(s, !0),
1279
1279
  ctrlKey: i,
1280
- ctrlType: te(s),
1280
+ ctrlType: le(s),
1281
1281
  key: i,
1282
1282
  model: t.value,
1283
1283
  class: "g-ctrl-container",
@@ -1367,7 +1367,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1367
1367
  default: y(() => [
1368
1368
  Z(Xe, {
1369
1369
  modelValue: e.value[z],
1370
- "onUpdate:modelValue": (te) => e.value[z] = te,
1370
+ "onUpdate:modelValue": (le) => e.value[z] = le,
1371
1371
  item: { ...D == null ? void 0 : D.editor, ...d(D) },
1372
1372
  ctrlKey: z,
1373
1373
  ctrlType: U(D),
@@ -1375,10 +1375,10 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1375
1375
  t: "q",
1376
1376
  formInfo: e.value
1377
1377
  }, fe({ _: 2 }, [
1378
- Y(Object.keys(T.$slots), (te) => ({
1379
- name: te,
1378
+ Y(Object.keys(T.$slots), (le) => ({
1379
+ name: le,
1380
1380
  fn: y((R) => [
1381
- p(T.$slots, te, {
1381
+ p(T.$slots, le, {
1382
1382
  data: R,
1383
1383
  item: D,
1384
1384
  model: c.value
@@ -1500,7 +1500,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1500
1500
  "onUpdate:info": (ae) => T.value = ae,
1501
1501
  more: b
1502
1502
  }, w);
1503
- }, te = ht(), R = () => {
1503
+ }, le = ht(), R = () => {
1504
1504
  var w, ae, K, ue, de, me, pe, m, M;
1505
1505
  const V = [
1506
1506
  {
@@ -1538,7 +1538,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1538
1538
  content: t.value.query.more.mode === 3 ? () => qe(We, {
1539
1539
  class: "query-form",
1540
1540
  ...ke(t.value.query, (C) => !["query", "more", "reset"].includes(C))
1541
- }, () => z({ slots: te }, !0)) : null
1541
+ }, () => z({ slots: le }, !0)) : null
1542
1542
  }
1543
1543
  ];
1544
1544
  return V.sort((C, h) => C.sort - h.sort), V.filter((C) => !C.hidden).map((C) => C.key === "more" && C.component === Ke ? qe(Ke, C.props, {
@@ -1750,7 +1750,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1750
1750
  E && E.destroy();
1751
1751
  });
1752
1752
  }), (F, E) => {
1753
- const D = L("el-divider"), z = L("el-alert"), te = L("el-checkbox"), R = L("el-button");
1753
+ const D = L("el-divider"), z = L("el-alert"), le = L("el-checkbox"), R = L("el-button");
1754
1754
  return n(), x("div", Zt, [
1755
1755
  J("div", Kt, [
1756
1756
  J("div", el, [
@@ -1773,7 +1773,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
1773
1773
  }),
1774
1774
  E[0] || (E[0] = J("div", { style: { margin: "1px 0" } }, null, -1)),
1775
1775
  J("div", tl, [
1776
- (n(!0), x(P, null, Y(a.value, (V) => (n(), q(te, {
1776
+ (n(!0), x(P, null, Y(a.value, (V) => (n(), q(le, {
1777
1777
  class: "check-box-hover",
1778
1778
  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" },
1779
1779
  "data-id": V.key,
@@ -1877,11 +1877,11 @@ const dl = {
1877
1877
  //
1878
1878
  sort: !0,
1879
1879
  onEnd: () => {
1880
- D.toArray().forEach(async (te, R) => {
1881
- e.value[te].sort = R;
1882
- let V = e.value[te].width || "auto";
1880
+ D.toArray().forEach(async (le, R) => {
1881
+ e.value[le].sort = R;
1882
+ let V = e.value[le].width || "auto";
1883
1883
  try {
1884
- const b = await He(e.value.table.user, c.name, te, { sort: R, width: V });
1884
+ const b = await He(e.value.table.user, c.name, le, { sort: R, width: V });
1885
1885
  console.log(b);
1886
1886
  } catch (b) {
1887
1887
  console.error("列排序和宽度保存信息时出错:", b), Te({
@@ -1954,7 +1954,7 @@ const dl = {
1954
1954
  width: D.width || "auto"
1955
1955
  })).sort((E, D) => E.sort - D.sort), d();
1956
1956
  }), (E, D) => {
1957
- const z = L("el-divider"), te = L("el-alert"), R = L("el-checkbox");
1957
+ const z = L("el-divider"), le = L("el-alert"), R = L("el-checkbox");
1958
1958
  return n(), x("div", null, [
1959
1959
  J("div", dl, [
1960
1960
  J("a", { onClick: U }, "全选"),
@@ -1963,7 +1963,7 @@ const dl = {
1963
1963
  Z(z, { direction: "vertical" }),
1964
1964
  J("a", { onClick: F }, "复位")
1965
1965
  ]),
1966
- Z(te, {
1966
+ Z(le, {
1967
1967
  title: "拖动表格列标题可以改变表格列显示顺序 !",
1968
1968
  type: "warning",
1969
1969
  "show-icon": "",
@@ -2020,7 +2020,7 @@ const dl = {
2020
2020
  var Ce, Fe, De, u, N, ie, Ve;
2021
2021
  const t = c, e = Ie(f, "modelValue"), a = at("options"), d = ye({}), U = Object.entries(e.value).filter(([l, r]) => (r == null ? void 0 : r.search) !== void 0).map(([l, r]) => [l, r.value]);
2022
2022
  d.value = Object.fromEntries(U);
2023
- const T = ye(!1), F = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], E = ye([]), D = f, z = nt(), te = ye({}), R = ye([]), V = {
2023
+ const T = ye(!1), F = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], E = ye([]), D = f, z = nt(), le = ye({}), R = ye([]), V = {
2024
2024
  autoWatch: !1,
2025
2025
  data: [],
2026
2026
  border: !0,
@@ -2032,7 +2032,7 @@ const dl = {
2032
2032
  let { currentPage: l, pageSize: r } = e.value.table.page;
2033
2033
  try {
2034
2034
  t("load", { currentPage: l, pageSize: r, ...d.value }, (v, O, { fields: G = [], sums: Q = {} } = {}) => {
2035
- var le, Se;
2035
+ var oe, Se;
2036
2036
  if (!Array.isArray(v)) {
2037
2037
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Te.error("数据加载失败,请检查数据格式。");
2038
2038
  return;
@@ -2041,7 +2041,7 @@ const dl = {
2041
2041
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Te.error("数据加载失败,请检查数据格式。");
2042
2042
  return;
2043
2043
  }
2044
- e.value.table.data = v, ((Se = (le = e.value.control) == null ? void 0 : le.add) == null ? void 0 : Se.inline) === !0 && e.value.table.data.unshift(de), e.value.table.page.total = O, R.value = G, te.value = Q, ce();
2044
+ e.value.table.data = v, ((Se = (oe = e.value.control) == null ? void 0 : oe.add) == null ? void 0 : Se.inline) === !0 && e.value.table.data.unshift(de), e.value.table.page.total = O, R.value = G, le.value = Q, ce();
2045
2045
  });
2046
2046
  } catch (v) {
2047
2047
  console.error("触发 load 事件时出现错误:", v), Te.error("数据加载时出现错误,请稍后重试。");
@@ -2244,26 +2244,26 @@ const dl = {
2244
2244
  e.value.form.modalState = "edit";
2245
2245
  try {
2246
2246
  if (!await ((G = e.value.control) == null ? void 0 : G.validate("edit", { row: l, column: r, $index: v, m: O }))) return;
2247
- } catch (le) {
2248
- console.error("验证失败:", le);
2247
+ } catch (oe) {
2248
+ console.error("验证失败:", oe);
2249
2249
  return;
2250
2250
  }
2251
- (Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, r, v, O) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((le) => {
2252
- e.value[le] && (e.value[le].value = l[le]);
2251
+ (Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, r, v, O) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((oe) => {
2252
+ e.value[oe] && (e.value[oe].value = l[oe]);
2253
2253
  }), T.value = !0, t("open", "edit", { m: O, row: l, column: r, $index: v }));
2254
2254
  }, h = async (l, r, v, O) => {
2255
2255
  var G, Q;
2256
2256
  try {
2257
2257
  if (!await ((G = e.value.control) == null ? void 0 : G.validate("delete", { row: l, column: r, $index: v, m: O }))) return;
2258
- } catch (le) {
2259
- console.error("验证失败:", le);
2258
+ } catch (oe) {
2259
+ console.error("验证失败:", oe);
2260
2260
  return;
2261
2261
  }
2262
2262
  if ((Q = e.value.control.delete) != null && Q.click)
2263
2263
  e.value.control.delete.click(l, r, v, O);
2264
2264
  else {
2265
- let { message: le, title: Se, options: Pe } = e.value.control.delete.dialog;
2266
- vt.confirm(le, Se, Pe).then(() => {
2265
+ let { message: oe, title: Se, options: Pe } = e.value.control.delete.dialog;
2266
+ vt.confirm(oe, Se, Pe).then(() => {
2267
2267
  t("delete", { row: l, column: r, $index: v }, (ze) => {
2268
2268
  ze && (e.value.table.data.splice(v, 1), e.value.table.page.total--);
2269
2269
  });
@@ -2275,12 +2275,12 @@ const dl = {
2275
2275
  e.value.form.modalState = void 0;
2276
2276
  try {
2277
2277
  if (!await ((G = e.value.control) == null ? void 0 : G.validate("view", { row: l, column: r, $index: v, m: O }))) return;
2278
- } catch (le) {
2279
- console.error("验证失败:", le);
2278
+ } catch (oe) {
2279
+ console.error("验证失败:", oe);
2280
2280
  return;
2281
2281
  }
2282
- (Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, r, v, O) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((le) => {
2283
- e.value[le] && (e.value[le].value = l[le]);
2282
+ (Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, r, v, O) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((oe) => {
2283
+ e.value[oe] && (e.value[oe].value = l[oe]);
2284
2284
  }), T.value = !0, t("open", "view", { m: O, row: l, column: r, $index: v }));
2285
2285
  }, ee = (l, r, v, O) => {
2286
2286
  var G;
@@ -2354,16 +2354,16 @@ const dl = {
2354
2354
  for (const Q of O) {
2355
2355
  if (Q.value == G) return Q.label;
2356
2356
  if (Q.children) {
2357
- const le = v(Q.children, G);
2358
- if (le) return le;
2357
+ const oe = v(Q.children, G);
2358
+ if (oe) return oe;
2359
2359
  }
2360
2360
  }
2361
2361
  return null;
2362
2362
  };
2363
2363
  if (l.getDicts) {
2364
2364
  const O = r.toString();
2365
- return X.value[O] ? (l.options = X.value[O], l.formatter || (l.formatter = (G, Q, le, Se) => l.options && v(l.options, le) || le), Promise.resolve()) : l.getDicts(e.value.table.data).then((G) => {
2366
- X.value[O] = G, l.options = G, l.formatter || (l.formatter = (Q, le, Se, Pe) => l.options && v(l.options, Se) || Se);
2365
+ return X.value[O] ? (l.options = X.value[O], l.formatter || (l.formatter = (G, Q, oe, Se) => l.options && v(l.options, oe) || oe), Promise.resolve()) : l.getDicts(e.value.table.data).then((G) => {
2366
+ X.value[O] = G, l.options = G, l.formatter || (l.formatter = (Q, oe, Se, Pe) => l.options && v(l.options, Se) || Se);
2367
2367
  });
2368
2368
  }
2369
2369
  return Promise.resolve();
@@ -2426,7 +2426,7 @@ const dl = {
2426
2426
  e.value.table.autoWatch || e.value.table.load();
2427
2427
  }), (l, r) => {
2428
2428
  var ze, ut, st, it, dt;
2429
- const v = L("el-button-group"), O = L("el-table-column"), G = L("el-table"), Q = L("el-pagination"), le = L("el-icon"), Se = L("el-dialog"), Pe = L("el-drawer");
2429
+ const v = L("el-button-group"), O = L("el-table-column"), G = L("el-table"), Q = L("el-pagination"), oe = L("el-icon"), Se = L("el-dialog"), Pe = L("el-drawer");
2430
2430
  return n(), x(P, null, [
2431
2431
  J("div", vl, [
2432
2432
  ((ut = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : ut.hidden) != !0 ? (n(), x("div", yl, [
@@ -2439,8 +2439,8 @@ const dl = {
2439
2439
  }, fe({
2440
2440
  "q-btns": y(() => [
2441
2441
  p(l.$slots, "q-btns", {}, () => [
2442
- (n(!0), x(P, null, Y(A(["add", "download", "setting"]), (j, oe) => (n(), x(P, null, [
2443
- oe == "default" ? (n(!0), x(P, { key: 0 }, Y(j, (k) => (n(), x(P, null, [
2442
+ (n(!0), x(P, null, Y(A(["add", "download", "setting"]), (j, te) => (n(), x(P, null, [
2443
+ te == "default" ? (n(!0), x(P, { key: 0 }, Y(j, (k) => (n(), x(P, null, [
2444
2444
  p(l.$slots, k.name + "-left", {}, void 0, !0),
2445
2445
  (k.name === "control-add" ? k.attr.auth() && k.attr.inline === !1 : k.attr.auth()) ? p(l.$slots, k.name, { key: 0 }, () => [
2446
2446
  k.label ? (n(), q(o(_e), S({
@@ -2493,10 +2493,10 @@ const dl = {
2493
2493
  ]),
2494
2494
  _: 2
2495
2495
  }, [
2496
- Y(l.$slots, (j, oe, k) => ({
2497
- name: oe,
2496
+ Y(l.$slots, (j, te, k) => ({
2497
+ name: te,
2498
2498
  fn: y((W) => [
2499
- p(l.$slots, oe, { model: e.value }, void 0, !0)
2499
+ p(l.$slots, te, { model: e.value }, void 0, !0)
2500
2500
  ])
2501
2501
  }))
2502
2502
  ]), 1032, ["modelValue"])
@@ -2504,10 +2504,10 @@ const dl = {
2504
2504
  ])) : $e("", !0),
2505
2505
  J("div", hl, [
2506
2506
  Z(G, S({ ...l.$attrs, ...o(ke)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) }, {
2507
- "summary-method": (j) => e.value.table["summary-method"](j, { fields: R.value, sums: te.value }),
2507
+ "summary-method": (j) => e.value.table["summary-method"](j, { fields: R.value, sums: le.value }),
2508
2508
  onSortChange: r[1] || (r[1] = (j) => {
2509
- var oe, k;
2510
- e.value.table.onSortChange(j, d.value), ((oe = j == null ? void 0 : j.column) == null ? void 0 : oe.sortable) === "custom" && ((k = e.value.table) == null || k.load());
2509
+ var te, k;
2510
+ e.value.table.onSortChange(j, d.value), ((te = j == null ? void 0 : j.column) == null ? void 0 : te.sortable) === "custom" && ((k = e.value.table) == null || k.load());
2511
2511
  })
2512
2512
  }), {
2513
2513
  append: y(() => [
@@ -2518,40 +2518,40 @@ const dl = {
2518
2518
  ]),
2519
2519
  default: y(() => [
2520
2520
  p(l.$slots, "default", {}, () => [
2521
- (n(!0), x(P, null, Y(H.value, (j, oe) => (n(), q(O, S({
2522
- prop: oe,
2523
- key: oe,
2521
+ (n(!0), x(P, null, Y(H.value, (j, te) => (n(), q(O, S({
2522
+ prop: te,
2523
+ key: te,
2524
2524
  ref_for: !0
2525
2525
  }, { ...e.value.tableColumns, ...o(ke)(j, (k) => F.includes(k)) }, { "header-align": "center" }), fe({
2526
2526
  header: y(({ column: k, $index: W }) => [
2527
- oe == "control" ? p(l.$slots, `${oe}-header`, {
2527
+ te == "control" ? p(l.$slots, `${te}-header`, {
2528
2528
  key: 0,
2529
2529
  column: k,
2530
2530
  $index: W
2531
2531
  }, () => [
2532
2532
  r[10] || (r[10] = J("span", null, "操作", -1))
2533
- ], !0) : p(l.$slots, `${oe}-header`, {
2533
+ ], !0) : p(l.$slots, `${te}-header`, {
2534
2534
  key: 1,
2535
2535
  column: k,
2536
2536
  $index: W
2537
2537
  }, void 0, !0)
2538
2538
  ]),
2539
2539
  "filter-icon": y((k) => [
2540
- p(l.$slots, `${oe}-filter-icon`, { data: k }, void 0, !0)
2540
+ p(l.$slots, `${te}-filter-icon`, { data: k }, void 0, !0)
2541
2541
  ]),
2542
2542
  _: 2
2543
2543
  }, [
2544
2544
  j.type === "image" ? {
2545
2545
  name: "default",
2546
2546
  fn: y(({ row: k, column: W, $index: re }) => [
2547
- p(l.$slots, `${oe}`, {
2547
+ p(l.$slots, `${te}`, {
2548
2548
  row: k,
2549
2549
  column: W,
2550
2550
  $index: re
2551
2551
  }, () => [
2552
2552
  J("img", S({
2553
2553
  style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
2554
- src: j.value,
2554
+ src: k[te],
2555
2555
  ref_for: !0
2556
2556
  }, j), null, 16, gl)
2557
2557
  ], !0)
@@ -2560,7 +2560,7 @@ const dl = {
2560
2560
  } : j.type === "expand" ? {
2561
2561
  name: "default",
2562
2562
  fn: y(({ row: k, column: W, $index: re }) => [
2563
- p(l.$slots, `${oe}`, {
2563
+ p(l.$slots, `${te}`, {
2564
2564
  row: k,
2565
2565
  column: W,
2566
2566
  $index: re
@@ -2671,7 +2671,7 @@ const dl = {
2671
2671
  } : j.type != "selection" && j.type != "index" ? {
2672
2672
  name: "default",
2673
2673
  fn: y(({ row: k, column: W, $index: re }) => [
2674
- he(j, k, W, re) && re != -1 ? p(l.$slots, `${oe}`, {
2674
+ he(j, k, W, re) && re != -1 ? p(l.$slots, `${te}`, {
2675
2675
  key: 0,
2676
2676
  row: k,
2677
2677
  column: W,
@@ -2680,11 +2680,11 @@ const dl = {
2680
2680
  var je;
2681
2681
  return [
2682
2682
  (n(), q(Xe, {
2683
- modelValue: k[oe],
2684
- "onUpdate:modelValue": (Le) => k[oe] = Le,
2683
+ modelValue: k[te],
2684
+ "onUpdate:modelValue": (Le) => k[te] = Le,
2685
2685
  item: j == null ? void 0 : j.table(k, W, re),
2686
- ctrlKey: oe,
2687
- key: oe + "-" + re,
2686
+ ctrlKey: te,
2687
+ key: te + "-" + re,
2688
2688
  ctrlType: (je = j.table(k, W, re)) != null && je.type ? j.table(k, W, re).type : j.type,
2689
2689
  model: e.value,
2690
2690
  class: "g-ctrl-container",
@@ -2703,14 +2703,14 @@ const dl = {
2703
2703
  }))
2704
2704
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
2705
2705
  ];
2706
- }, !0) : p(l.$slots, `${oe}`, {
2706
+ }, !0) : p(l.$slots, `${te}`, {
2707
2707
  key: 1,
2708
2708
  row: k,
2709
2709
  column: W,
2710
2710
  $index: re
2711
2711
  }, () => [
2712
2712
  J("div", {
2713
- innerHTML: me(j, W.formatter(k, W, k[oe], re))
2713
+ innerHTML: me(j, W.formatter(k, W, k[te], re))
2714
2714
  }, null, 8, bl)
2715
2715
  ], !0)
2716
2716
  ]),
@@ -2745,7 +2745,7 @@ const dl = {
2745
2745
  width: o(wt)(e.value.dialog.width) + 35
2746
2746
  }), {
2747
2747
  header: y(() => {
2748
- var j, oe, k, W;
2748
+ var j, te, k, W;
2749
2749
  return [
2750
2750
  J("div", El, [
2751
2751
  J("div", wl, [
@@ -2753,14 +2753,14 @@ const dl = {
2753
2753
  J("div", null, Ee(e.value.dialog.title), 1)
2754
2754
  ], !0)
2755
2755
  ]),
2756
- ((oe = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (n(), x("div", {
2756
+ ((te = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : te.fullScreen) === !1 ? (n(), x("div", {
2757
2757
  key: 0,
2758
2758
  onClick: r[4] || (r[4] = (re) => {
2759
2759
  e.value.dialog.fullScreen = !0;
2760
2760
  }),
2761
2761
  class: "max"
2762
2762
  }, [
2763
- Z(le, null, {
2763
+ Z(oe, null, {
2764
2764
  default: y(() => [
2765
2765
  Z(o(Ot))
2766
2766
  ]),
@@ -2774,7 +2774,7 @@ const dl = {
2774
2774
  }),
2775
2775
  class: "max"
2776
2776
  }, [
2777
- Z(le, null, {
2777
+ Z(oe, null, {
2778
2778
  default: y(() => [
2779
2779
  Z(o(At))
2780
2780
  ]),
@@ -2793,10 +2793,10 @@ const dl = {
2793
2793
  onSubmit: ne,
2794
2794
  onReset: B
2795
2795
  }, fe({ _: 2 }, [
2796
- Y(l.$slots, (j, oe, k) => ({
2797
- name: oe,
2796
+ Y(l.$slots, (j, te, k) => ({
2797
+ name: te,
2798
2798
  fn: y((W) => [
2799
- p(l.$slots, oe, { model: W }, void 0, !0)
2799
+ p(l.$slots, te, { model: W }, void 0, !0)
2800
2800
  ])
2801
2801
  }))
2802
2802
  ]), 1032, ["modelValue"])
@@ -2828,10 +2828,10 @@ const dl = {
2828
2828
  onSubmit: ne,
2829
2829
  onReset: B
2830
2830
  }, fe({ _: 2 }, [
2831
- Y(l.$slots, (j, oe, k) => ({
2832
- name: oe,
2831
+ Y(l.$slots, (j, te, k) => ({
2832
+ name: te,
2833
2833
  fn: y((W) => [
2834
- p(l.$slots, oe, { model: W }, void 0, !0)
2834
+ p(l.$slots, te, { model: W }, void 0, !0)
2835
2835
  ])
2836
2836
  }))
2837
2837
  ]), 1032, ["modelValue"])
@@ -2843,7 +2843,7 @@ const dl = {
2843
2843
  ], 64);
2844
2844
  };
2845
2845
  }
2846
- }), Ml = /* @__PURE__ */ Ue(Vl, [["__scopeId", "data-v-66a3cf08"]]), Tl = { class: "g-tree-table" }, Fl = { class: "g-tree-container" }, Sl = { class: "g-tree-table-container" }, ql = /* @__PURE__ */ Object.assign({
2846
+ }), Ml = /* @__PURE__ */ Ue(Vl, [["__scopeId", "data-v-491299e5"]]), Tl = { class: "g-tree-table" }, Fl = { class: "g-tree-container" }, Sl = { class: "g-tree-table-container" }, ql = /* @__PURE__ */ Object.assign({
2847
2847
  name: "g-tree-table",
2848
2848
  inheritAttrs: !1
2849
2849
  }, {
@@ -2861,7 +2861,7 @@ const dl = {
2861
2861
  return V[b].includes(R);
2862
2862
  }, z = (R, V) => {
2863
2863
  t("load", T.value, R, V);
2864
- }, te = (R) => {
2864
+ }, le = (R) => {
2865
2865
  T.value = R, e.value.table.load();
2866
2866
  };
2867
2867
  return qt(F, (R) => {
@@ -2888,7 +2888,7 @@ const dl = {
2888
2888
  "expand-on-click-node": !1,
2889
2889
  ref_key: "treeRef",
2890
2890
  ref: E,
2891
- onNodeClick: te
2891
+ onNodeClick: le
2892
2892
  }, R.$attrs.tree), fe({
2893
2893
  default: y(({ node: K, data: ue }) => [
2894
2894
  p(R.$slots, "tree", {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .g-query-container[data-v-2a0af9cc]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-2a0af9cc]{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-2a0af9cc]{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-2a0af9cc],.nested-leave-active[data-v-2a0af9cc]{transition:all .3s ease-in-out}.nested-leave-active[data-v-2a0af9cc]{transition-delay:.25s}.nested-enter-from[data-v-2a0af9cc],.nested-leave-to[data-v-2a0af9cc]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-2a0af9cc],.nested-leave-active .inner[data-v-2a0af9cc]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-2a0af9cc]{transition-delay:.25s}.nested-enter-from .inner[data-v-2a0af9cc],.nested-leave-to .inner[data-v-2a0af9cc]{transform:translateY(-100px);opacity:.001}.query-form[data-v-2a0af9cc]{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-66a3cf08]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-66a3cf08]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:10px;border:1px solid var(--el-border-color)}.table-container[data-v-66a3cf08]{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-66a3cf08]{cursor:pointer;color:var(--el-text-color)}.max[data-v-66a3cf08]:hover{color:var(--el-color-primary)}.btns[data-v-66a3cf08]{display:flex}.g-tree-table[data-v-5fb88c8a]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-5fb88c8a]{display:flex;width:100%;padding:10px;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%}.g-tree-table-container[data-v-5fb88c8a]{display:flex;flex:1;overflow:auto;border-radius:4px}.g-tree-left[data-v-5fb88c8a]{display:flex;flex-direction:column;padding:10px;box-sizing:border-box;margin-right:10px;border-radius:4px;border:1px solid var(--el-border-color);overflow:auto}.op-group[data-v-ba0fcda6]{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-ba0fcda6]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-ba0fcda6]{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
+ .g-query-container[data-v-2a0af9cc]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-2a0af9cc]{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-2a0af9cc]{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-2a0af9cc],.nested-leave-active[data-v-2a0af9cc]{transition:all .3s ease-in-out}.nested-leave-active[data-v-2a0af9cc]{transition-delay:.25s}.nested-enter-from[data-v-2a0af9cc],.nested-leave-to[data-v-2a0af9cc]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-2a0af9cc],.nested-leave-active .inner[data-v-2a0af9cc]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-2a0af9cc]{transition-delay:.25s}.nested-enter-from .inner[data-v-2a0af9cc],.nested-leave-to .inner[data-v-2a0af9cc]{transform:translateY(-100px);opacity:.001}.query-form[data-v-2a0af9cc]{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-491299e5]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-491299e5]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:10px;border:1px solid var(--el-border-color)}.table-container[data-v-491299e5]{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-491299e5]{cursor:pointer;color:var(--el-text-color)}.max[data-v-491299e5]:hover{color:var(--el-color-primary)}.btns[data-v-491299e5]{display:flex}.g-tree-table[data-v-5fb88c8a]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-5fb88c8a]{display:flex;width:100%;padding:10px;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%}.g-tree-table-container[data-v-5fb88c8a]{display:flex;flex:1;overflow:auto;border-radius:4px}.g-tree-left[data-v-5fb88c8a]{display:flex;flex-direction:column;padding:10px;box-sizing:border-box;margin-right:10px;border-radius:4px;border:1px solid var(--el-border-color);overflow:auto}.op-group[data-v-ba0fcda6]{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-ba0fcda6]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-ba0fcda6]{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.0.82",
3
+ "version": "0.0.83",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 and Element Plus based plugin",