vue-2024-ui 0.2.44 → 0.2.45

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
1
  import rl, { ElForm as wt, ElButtonGroup as Et, ElButton as Ye, ElPopover as St, ElMessage as at, ElMessageBox as Yt, ElDialog as nl, ElDrawer as ol } from "element-plus";
2
- import { h as we, mergeModels as rt, ref as ne, useModel as nt, nextTick as ft, onMounted as mt, computed as it, resolveComponent as z, openBlock as m, createElementBlock as U, Fragment as le, createElementVNode as Q, createBlock as O, createCommentVNode as be, unref as P, mergeProps as B, withCtx as E, renderSlot as k, renderList as X, createTextVNode as Ie, toDisplayString as Ce, createSlots as ge, createVNode as te, normalizeStyle as Ue, normalizeProps as Mt, useSlots as Lt, inject as Ot, useAttrs as Bt, onUnmounted as ul, withModifiers as kt, resolveDynamicComponent as lt, guardReactiveProps as sl, Transition as il, withDirectives as dl, vShow as cl, onBeforeUnmount as fl, normalizeClass as Ht, watchEffect as vl, onBeforeMount as pl, watch as ml, createApp as hl } from "vue";
2
+ import { h as we, mergeModels as rt, ref as ne, useModel as nt, nextTick as ct, onMounted as mt, computed as it, resolveComponent as z, openBlock as m, createElementBlock as U, Fragment as le, createElementVNode as Q, createBlock as O, createCommentVNode as be, unref as P, mergeProps as B, withCtx as E, renderSlot as k, renderList as X, createTextVNode as Ie, toDisplayString as Ce, createSlots as ge, createVNode as te, normalizeStyle as Ue, normalizeProps as Mt, useSlots as Lt, inject as Ot, useAttrs as Bt, onUnmounted as ul, withModifiers as kt, resolveDynamicComponent as lt, guardReactiveProps as sl, Transition as il, withDirectives as dl, vShow as fl, onBeforeUnmount as cl, normalizeClass as Ht, watchEffect as vl, onBeforeMount as pl, watch as ml, createApp as hl } from "vue";
3
3
  import { CircleCheck as zt, CircleCheckFilled as yl, Refresh as Pt, Plus as gl, ZoomIn as bl, Delete as Nt, More as $l, Search as wl, InfoFilled as jt, Download as Wt, DocumentCopy as El, View as _l, Edit as kl, CirclePlus as Cl, Setting as Dl, FullScreen as Sl, CopyDocument as xl } from "@element-plus/icons-vue";
4
4
  import Gt from "sortablejs";
5
5
  import { Dexie as Ml } from "dexie";
@@ -208,8 +208,8 @@ var Qt = { exports: {} };
208
208
  return { M: u, y: b, w: v, d: c, D: ae, h: D, m: f, s: h, ms: e, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
209
209
  }, u: function(w) {
210
210
  return w === void 0;
211
- } }, ie = "en", fe = {};
212
- fe[ie] = K;
211
+ } }, ie = "en", ce = {};
212
+ ce[ie] = K;
213
213
  var $e = "$isDayjsObject", Fe = function(w) {
214
214
  return w instanceof Me || !(!w || !w[$e]);
215
215
  }, Se = function w(g, s, F) {
@@ -217,12 +217,12 @@ var Qt = { exports: {} };
217
217
  if (!g) return ie;
218
218
  if (typeof g == "string") {
219
219
  var q = g.toLowerCase();
220
- fe[q] && (_ = q), s && (fe[q] = s, _ = q);
220
+ ce[q] && (_ = q), s && (ce[q] = s, _ = q);
221
221
  var T = g.split("-");
222
222
  if (!_ && T.length > 1) return w(T[0]);
223
223
  } else {
224
224
  var Z = g.name;
225
- fe[Z] = g, _ = Z;
225
+ ce[Z] = g, _ = Z;
226
226
  }
227
227
  return !F && _ && (ie = _), _ || !F && ie;
228
228
  }, ee = function(w, g) {
@@ -432,7 +432,7 @@ var Qt = { exports: {} };
432
432
  }, g.daysInMonth = function() {
433
433
  return this.endOf(u).$D;
434
434
  }, g.$locale = function() {
435
- return fe[this.$L];
435
+ return ce[this.$L];
436
436
  }, g.locale = function(s, F) {
437
437
  if (!s) return this.$L;
438
438
  var _ = this.clone(), q = Se(s, F, !0);
@@ -457,7 +457,7 @@ var Qt = { exports: {} };
457
457
  return w.$i || (w(g, Me, ee), w.$i = !0), ee;
458
458
  }, ee.locale = Se, ee.isDayjs = Fe, ee.unix = function(w) {
459
459
  return ee(1e3 * w);
460
- }, ee.en = fe[ie], ee.Ls = fe, ee.p = {}, ee;
460
+ }, ee.en = ce[ie], ee.Ls = ce, ee.p = {}, ee;
461
461
  });
462
462
  })(Qt);
463
463
  var Vl = Qt.exports;
@@ -576,9 +576,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
576
576
  filterable: !0,
577
577
  remote: !!(t.value && t.value["remote-method"]),
578
578
  ...t.value
579
- }), fe = ne((A) => {
579
+ }), ce = ne((A) => {
580
580
  t.value["remote-method"](A, (C) => {
581
- ft(() => {
581
+ ct(() => {
582
582
  D.value = C;
583
583
  });
584
584
  });
@@ -646,7 +646,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
646
646
  };
647
647
  mt(async () => {
648
648
  var N, xe, qe, Ae, Je;
649
- t.value && t.value["remote-method"] && (ie.value["remote-method"] = fe), (xe = (N = h.value[n.value]) == null ? void 0 : N.options) != null && xe.length && (D.value = h.value[n.value].options);
649
+ t.value && t.value["remote-method"] && (ie.value["remote-method"] = ce), (xe = (N = h.value[n.value]) == null ? void 0 : N.options) != null && xe.length && (D.value = h.value[n.value].options);
650
650
  const A = (Le, Ne = "options", je = h.value[n.value]) => {
651
651
  typeof t.value.getDicts == "function" && $e(Ne).catch((We) => {
652
652
  console.error(`Failed to load ${Ne} for ${Le}:`, We);
@@ -802,15 +802,15 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
802
802
  (m(!0), U(le, null, X(D.value, (y) => (m(), U(le, {
803
803
  key: y.value
804
804
  }, [
805
- te(We, B({ ref_for: !0 }, P(Ge)(y, (ce) => ce != "children"), {
806
- onClick: (ce) => {
805
+ te(We, B({ ref_for: !0 }, P(Ge)(y, (fe) => fe != "children"), {
806
+ onClick: (fe) => {
807
807
  ie.value.change && ie.value.change(y), Fe();
808
808
  }
809
809
  }), {
810
810
  default: E(() => {
811
- var ce;
811
+ var fe;
812
812
  return [
813
- (ce = t.value) != null && ce.columns ? k(A.$slots, `${i.t}-${n.value}-options`, {
813
+ (fe = t.value) != null && fe.columns ? k(A.$slots, `${i.t}-${n.value}-options`, {
814
814
  key: 0,
815
815
  option: y
816
816
  }, () => {
@@ -821,7 +821,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
821
821
  data: y,
822
822
  t: i.t
823
823
  }, ge({ _: 2 }, [
824
- X(A.$slots, (ct, pt) => ({
824
+ X(A.$slots, (ft, pt) => ({
825
825
  name: pt,
826
826
  fn: E(($t) => [
827
827
  k(A.$slots, pt, {
@@ -838,13 +838,13 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
838
838
  }),
839
839
  _: 2
840
840
  }, 1040, ["onClick"]),
841
- y.children && y.children.length ? (m(!0), U(le, { key: 0 }, X(y.children, (ce) => (m(), O(We, B({
841
+ y.children && y.children.length ? (m(!0), U(le, { key: 0 }, X(y.children, (fe) => (m(), O(We, B({
842
842
  style: { "margin-left": "20px" },
843
- key: ce.value,
843
+ key: fe.value,
844
844
  ref_for: !0
845
- }, P(Ge)(ce, (ye) => ye != "children"), {
845
+ }, P(Ge)(fe, (ye) => ye != "children"), {
846
846
  onClick: (ye) => {
847
- ie.value.change && ie.value.change(ce), Fe();
847
+ ie.value.change && ie.value.change(fe), Fe();
848
848
  }
849
849
  }), {
850
850
  default: E(() => {
@@ -852,20 +852,20 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
852
852
  return [
853
853
  (ye = t.value) != null && ye.columns ? k(A.$slots, `${i.t}-${n.value}-options`, {
854
854
  key: 0,
855
- option: ce
855
+ option: fe
856
856
  }, () => {
857
- var ct;
857
+ var ft;
858
858
  return [
859
859
  te(je, {
860
- columns: (ct = t.value) == null ? void 0 : ct.columns,
861
- data: ce,
860
+ columns: (ft = t.value) == null ? void 0 : ft.columns,
861
+ data: fe,
862
862
  t: i.t
863
863
  }, ge({ _: 2 }, [
864
864
  X(A.$slots, (pt, $t) => ({
865
865
  name: $t,
866
866
  fn: E((al) => [
867
867
  k(A.$slots, $t, {
868
- option: ce,
868
+ option: fe,
869
869
  data: al,
870
870
  form: o.formInfo
871
871
  }, void 0, !0)
@@ -893,10 +893,10 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
893
893
  title: !0,
894
894
  t: i.t
895
895
  }, ge({ _: 2 }, [
896
- X(A.$slots, (ce, ye) => ({
896
+ X(A.$slots, (fe, ye) => ({
897
897
  name: ye,
898
- fn: E((ct) => [
899
- k(A.$slots, ye, { data: ct }, void 0, !0)
898
+ fn: E((ft) => [
899
+ k(A.$slots, ye, { data: ft }, void 0, !0)
900
900
  ])
901
901
  }))
902
902
  ]), 1032, ["columns", "t"])
@@ -906,7 +906,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
906
906
  } : void 0,
907
907
  X(R(), (y) => ({
908
908
  name: y,
909
- fn: E((ce) => [
909
+ fn: E((fe) => [
910
910
  k(A.$slots, `${i.t}-${n.value}-${y}`, { form: o.formInfo }, void 0, !0)
911
911
  ])
912
912
  }))
@@ -919,8 +919,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
919
919
  }, t.value, { data: f.value }), ge({ _: 2 }, [
920
920
  X(R(), (y) => ({
921
921
  name: y,
922
- fn: E((ce) => [
923
- k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
922
+ fn: E((fe) => [
923
+ k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
924
924
  ])
925
925
  }))
926
926
  ]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == P(ke).TIME ? (m(), O(p, B({
@@ -949,8 +949,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
949
949
  }, t.value), ge({ _: 2 }, [
950
950
  X(R(), (y) => ({
951
951
  name: y,
952
- fn: E((ce) => [
953
- k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
952
+ fn: E((fe) => [
953
+ k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
954
954
  ])
955
955
  }))
956
956
  ]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == P(ke).COLOR ? (m(), O(I, B({
@@ -976,8 +976,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
976
976
  }, t.value), ge({ _: 2 }, [
977
977
  X(R(), (y) => ({
978
978
  name: y,
979
- fn: E((ce) => [
980
- k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
979
+ fn: E((fe) => [
980
+ k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
981
981
  ])
982
982
  }))
983
983
  ]), 1040, ["modelValue", "disabled"])) : e.value == P(ke).TRANSFER ? (m(), O(Re, B({
@@ -987,8 +987,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
987
987
  }, t.value), ge({ _: 2 }, [
988
988
  X(R(), (y) => ({
989
989
  name: y,
990
- fn: E((ce) => [
991
- k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
990
+ fn: E((fe) => [
991
+ k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
992
992
  ])
993
993
  }))
994
994
  ]), 1040, ["modelValue"])) : e.value == P(ke).CASCADER ? (m(), O(He, B({
@@ -998,8 +998,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
998
998
  }, t.value, { options: D.value }), ge({ _: 2 }, [
999
999
  X(R(), (y) => ({
1000
1000
  name: y,
1001
- fn: E((ce) => [
1002
- k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
1001
+ fn: E((fe) => [
1002
+ k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
1003
1003
  ])
1004
1004
  }))
1005
1005
  ]), 1040, ["modelValue", "options"])) : e.value == P(ke).IMAGE ? (m(), O(ht, B({
@@ -1014,7 +1014,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1014
1014
  ref: Me
1015
1015
  }), ge({
1016
1016
  default: E(() => {
1017
- var y, ce;
1017
+ var y, fe;
1018
1018
  return [
1019
1019
  !l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (m(), O(Pe, { key: 0 }, {
1020
1020
  default: E(() => [
@@ -1030,8 +1030,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1030
1030
  te(Xe, B({
1031
1031
  style: { width: "var(--up-width)", height: "var(--up-height)" },
1032
1032
  src: l.value
1033
- }, { fit: "cover", lazy: !0, ...(ce = t.value) == null ? void 0 : ce.img }), ge({ _: 2 }, [
1034
- X(R(), (ye, ct) => ({
1033
+ }, { fit: "cover", lazy: !0, ...(fe = t.value) == null ? void 0 : fe.img }), ge({ _: 2 }, [
1034
+ X(R(), (ye, ft) => ({
1035
1035
  name: ye,
1036
1036
  fn: E((pt) => [
1037
1037
  k(A.$slots, `${i.t}-${n.value}-${ye}`, { data: pt }, void 0, !0)
@@ -1079,7 +1079,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1079
1079
  }),
1080
1080
  _: 2
1081
1081
  }, [
1082
- X(R(), (y, ce) => ({
1082
+ X(R(), (y, fe) => ({
1083
1083
  name: y,
1084
1084
  fn: E((ye) => [
1085
1085
  k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ye }, void 0, !0)
@@ -1090,7 +1090,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1090
1090
  modelValue: l.value,
1091
1091
  "onUpdate:modelValue": C[22] || (C[22] = (y) => l.value = y)
1092
1092
  }, t.value, { placeholder: d.value }), ge({ _: 2 }, [
1093
- X(R(), (y, ce) => ({
1093
+ X(R(), (y, fe) => ({
1094
1094
  name: y,
1095
1095
  fn: E((ye) => [
1096
1096
  k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ye }, void 0, !0)
@@ -1105,7 +1105,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1105
1105
  placeholder: d.value,
1106
1106
  disabled: h.value[n.value].disabled
1107
1107
  }, t.value), ge({ _: 2 }, [
1108
- X(R(), (y, ce) => ({
1108
+ X(R(), (y, fe) => ({
1109
1109
  name: y,
1110
1110
  fn: E((ye) => [
1111
1111
  k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ye }, void 0, !0)
@@ -1131,7 +1131,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1131
1131
  ]),
1132
1132
  _: 2
1133
1133
  }, [
1134
- X(R(), (y, ce) => ({
1134
+ X(R(), (y, fe) => ({
1135
1135
  name: y,
1136
1136
  fn: E((ye) => [
1137
1137
  k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ye }, void 0, !0)
@@ -1168,7 +1168,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1168
1168
  key: 23,
1169
1169
  style: Ue(b.value)
1170
1170
  }, [
1171
- Array.isArray(K.value) && K.value.length > 0 ? (m(!0), U(le, { key: 0 }, X(K.value, (y, ce) => (m(), U(le, { key: ce }, [
1171
+ Array.isArray(K.value) && K.value.length > 0 ? (m(!0), U(le, { key: 0 }, X(K.value, (y, fe) => (m(), U(le, { key: fe }, [
1172
1172
  typeof y == "object" ? (m(), O(se, B({
1173
1173
  key: 0,
1174
1174
  "disable-transitions": "",
@@ -1206,8 +1206,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1206
1206
  maxlength: ((L = t.value) == null ? void 0 : L.max) || 25,
1207
1207
  clearable: !0,
1208
1208
  onInput: C[27] || (C[27] = (y) => {
1209
- var ce;
1210
- return e.value == P(ke).NUMBER ? M(y, ((ce = t.value) == null ? void 0 : ce.precision) || 2) : y;
1209
+ var fe;
1210
+ return e.value == P(ke).NUMBER ? M(y, ((fe = t.value) == null ? void 0 : fe.precision) || 2) : y;
1211
1211
  }),
1212
1212
  onClear: C[28] || (C[28] = () => {
1213
1213
  i.t == "q" && h.value.table.load();
@@ -1262,7 +1262,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1262
1262
  }),
1263
1263
  key: "3"
1264
1264
  } : void 0,
1265
- X(R(), (y, ce) => ({
1265
+ X(R(), (y, fe) => ({
1266
1266
  name: y,
1267
1267
  fn: E((ye) => [
1268
1268
  k(A.$slots, `${i.t}-${n.value}-${y}`, {
@@ -1300,7 +1300,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1300
1300
  const v = async (M, w, g) => {
1301
1301
  let s = 5;
1302
1302
  for (; s > 0; ) {
1303
- if (await ft(), e.value) {
1303
+ if (await ct(), e.value) {
1304
1304
  e.value.validate((F, _) => {
1305
1305
  F ? n("submit", M, w, g) : console.error("表单验证不通过!", _);
1306
1306
  });
@@ -1312,7 +1312,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1312
1312
  }, u = async (M, w) => {
1313
1313
  let g = 5;
1314
1314
  for (; g > 0; ) {
1315
- if (await ft(), e.value)
1315
+ if (await ct(), e.value)
1316
1316
  try {
1317
1317
  e.value.resetFields(), n("reset", M, w);
1318
1318
  return;
@@ -1504,7 +1504,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1504
1504
  originalOrder: 1
1505
1505
  // 添加原始顺序标识
1506
1506
  }
1507
- ]), fe = it(() => ie.value.filter((M) => !M.hidden).sort((M, w) => M.sort - w.sort || M.originalOrder - w.originalOrder));
1507
+ ]), ce = it(() => ie.value.filter((M) => !M.hidden).sort((M, w) => M.sort - w.sort || M.originalOrder - w.originalOrder));
1508
1508
  return i({
1509
1509
  submit: v,
1510
1510
  saveSubmit: v,
@@ -1675,7 +1675,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1675
1675
  style: Ue(l.value.form.footer.style)
1676
1676
  }, [
1677
1677
  k(M.$slots, "f-footer-left", {}, void 0, !0),
1678
- (m(!0), U(le, null, X(fe.value, (j) => (m(), U(le, null, [
1678
+ (m(!0), U(le, null, X(ce.value, (j) => (m(), U(le, null, [
1679
1679
  k(M.$slots, j.name + "-left", {}, void 0, !0),
1680
1680
  k(M.$slots, j.name, {}, () => {
1681
1681
  var W;
@@ -1883,7 +1883,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1883
1883
  more: R
1884
1884
  }, V);
1885
1885
  }, u = Lt(), d = () => {
1886
- var V, K, ve, Ee, ie, fe, $e, Fe, Se;
1886
+ var V, K, ve, Ee, ie, ce, $e, Fe, Se;
1887
1887
  const Y = [
1888
1888
  {
1889
1889
  key: "query",
@@ -1898,7 +1898,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1898
1898
  },
1899
1899
  {
1900
1900
  key: "reset",
1901
- hidden: (fe = (ie = (Ee = t.value) == null ? void 0 : Ee.query) == null ? void 0 : ie.reset) == null ? void 0 : fe.hidden,
1901
+ hidden: (ce = (ie = (Ee = t.value) == null ? void 0 : Ee.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1902
1902
  component: Ye,
1903
1903
  props: {
1904
1904
  ...t.value.query.reset,
@@ -1934,7 +1934,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1934
1934
  alert("查询设置,正在开发中......");
1935
1935
  };
1936
1936
  return (Y, R) => {
1937
- var ve, Ee, ie, fe, $e, Fe, Se, ee, oe, Me, M, w, g, s, F, _, q;
1937
+ var ve, Ee, ie, ce, $e, Fe, Se, ee, oe, Me, M, w, g, s, F, _, q;
1938
1938
  const V = z("el-form-item"), K = z("el-drawer");
1939
1939
  return m(), U(le, null, [
1940
1940
  Q("div", {
@@ -1987,7 +1987,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
1987
1987
  }),
1988
1988
  _: 3
1989
1989
  }, 16),
1990
- (($e = (fe = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : fe.container) == null ? void 0 : $e.inline) === !1 ? (m(), U("div", {
1990
+ (($e = (ce = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : ce.container) == null ? void 0 : $e.inline) === !1 ? (m(), U("div", {
1991
1991
  key: 0,
1992
1992
  style: Ue((Se = (Fe = t.value.query) == null ? void 0 : Fe.btns) == null ? void 0 : Se.style)
1993
1993
  }, [
@@ -2092,7 +2092,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
2092
2092
  ]),
2093
2093
  _: 1
2094
2094
  }, 16)), [
2095
- [cl, e.value]
2095
+ [fl, e.value]
2096
2096
  ]) : be("", !0)
2097
2097
  ])
2098
2098
  ])) : be("", !0)
@@ -2143,7 +2143,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
2143
2143
  D.toArray();
2144
2144
  }
2145
2145
  }), c = D;
2146
- fl(() => {
2146
+ cl(() => {
2147
2147
  c && c.destroy();
2148
2148
  });
2149
2149
  }), (D, c) => {
@@ -2290,7 +2290,7 @@ async function da({ page: o, size: i }) {
2290
2290
  throw console.error(`保存分页条数时出错 (page: ${o}):`, t), t;
2291
2291
  }
2292
2292
  }
2293
- async function ca(o) {
2293
+ async function fa(o) {
2294
2294
  dt(o);
2295
2295
  try {
2296
2296
  const i = await pe.pageInfo.where({ page: o }).first();
@@ -2299,7 +2299,7 @@ async function ca(o) {
2299
2299
  throw console.error(`获取分页条数时出错 (page: ${o}):`, i), i;
2300
2300
  }
2301
2301
  }
2302
- async function fa(o, i) {
2302
+ async function ca(o, i) {
2303
2303
  dt(o);
2304
2304
  try {
2305
2305
  const t = await pe.sorts.where({ page: o }).first();
@@ -2348,7 +2348,7 @@ const pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { st
2348
2348
  onEnd: async () => {
2349
2349
  let b = d.toArray();
2350
2350
  try {
2351
- fa(t.tuid, b).then((ae) => {
2351
+ ca(t.tuid, b).then((ae) => {
2352
2352
  l("setting-drag-end");
2353
2353
  });
2354
2354
  } catch (ae) {
@@ -2713,7 +2713,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
2713
2713
  fit: !1,
2714
2714
  type: "hidden",
2715
2715
  load: async () => {
2716
- e.value.table.page.pageSize = await ca(ve.value);
2716
+ e.value.table.page.pageSize = await fa(ve.value);
2717
2717
  let { currentPage: a, pageSize: r } = e.value.table.page;
2718
2718
  try {
2719
2719
  n(
@@ -2888,7 +2888,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
2888
2888
  h == null ? void 0 : h.control,
2889
2889
  (Je = e.value) == null ? void 0 : Je.control
2890
2890
  );
2891
- const fe = (a, r = !0) => {
2891
+ const ce = (a, r = !0) => {
2892
2892
  const p = e.value.control[a], $ = r ? (S, I, G, he) => {
2893
2893
  var Pe, Xe, ut;
2894
2894
  if (!S || !I || G == null)
@@ -2902,7 +2902,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
2902
2902
  };
2903
2903
  e.value.control[a] = $;
2904
2904
  };
2905
- fe("edit"), fe("delete"), fe("view"), fe("save"), fe("add", !1), fe("download", !1), fe("setting", !1);
2905
+ ce("edit"), ce("delete"), ce("view"), ce("save"), ce("add", !1), ce("download", !1), ce("setting", !1);
2906
2906
  const $e = (a, r, p, $) => {
2907
2907
  var he, _e, Re, He, Pe, Xe;
2908
2908
  if (!a || !r || p == null)
@@ -3047,7 +3047,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
3047
3047
  "row-save",
3048
3048
  { row: a, column: r, index: p, data: e.value.table.data },
3049
3049
  (I = !0, G = !0) => {
3050
- I && e.value.table.load(), G && ft(() => {
3050
+ I && e.value.table.load(), G && ct(() => {
3051
3051
  V.value = Object.assign(
3052
3052
  {},
3053
3053
  Object.fromEntries(
@@ -3229,7 +3229,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
3229
3229
  value: !0
3230
3230
  }));
3231
3231
  try {
3232
- await ft();
3232
+ await ct();
3233
3233
  const a = Object.entries(e.value).filter(
3234
3234
  ([r, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
3235
3235
  );
@@ -3443,6 +3443,10 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
3443
3443
  ]), 1032, ["modelValue", "info"])
3444
3444
  ], !0)
3445
3445
  ])) : be("", !0),
3446
+ k(a.$slots, "table-title", {
3447
+ model: e.value,
3448
+ queryInfo: f.value
3449
+ }, void 0, !0),
3446
3450
  Q("div", La, [
3447
3451
  te(He, B({
3448
3452
  ...a.$attrs,
@@ -3755,7 +3759,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
3755
3759
  ], 64);
3756
3760
  };
3757
3761
  }
3758
- }), Pa = /* @__PURE__ */ ot(za, [["__scopeId", "data-v-4b6cf957"]]), Na = { class: "g-tree-table" }, ja = { class: "g-tree-container" }, Wa = { class: "g-tree-table-container" }, Ga = /* @__PURE__ */ Object.assign({
3762
+ }), Pa = /* @__PURE__ */ ot(za, [["__scopeId", "data-v-0b837d7b"]]), Na = { class: "g-tree-table" }, ja = { class: "g-tree-container" }, Wa = { class: "g-tree-table-container" }, Ga = /* @__PURE__ */ Object.assign({
3759
3763
  name: "g-tree-table",
3760
3764
  inheritAttrs: !1
3761
3765
  }, {
@@ -3791,7 +3795,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
3791
3795
  h.value ? (m(), O(ve, {
3792
3796
  key: 0,
3793
3797
  modelValue: D.value,
3794
- "onUpdate:modelValue": K[0] || (K[0] = (fe) => D.value = fe),
3798
+ "onUpdate:modelValue": K[0] || (K[0] = (ce) => D.value = ce),
3795
3799
  style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
3796
3800
  placeholder: "输入节点查询",
3797
3801
  clearable: ""
@@ -3805,17 +3809,17 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
3805
3809
  ref: c,
3806
3810
  onNodeClick: d
3807
3811
  }, V.$attrs.tree), ge({
3808
- default: E(({ node: fe, data: $e }) => [
3812
+ default: E(({ node: ce, data: $e }) => [
3809
3813
  k(V.$slots, "tree", {
3810
- node: fe,
3814
+ node: ce,
3811
3815
  data: $e
3812
3816
  }, () => [
3813
- Q("span", null, Ce(fe.label), 1)
3817
+ Q("span", null, Ce(ce.label), 1)
3814
3818
  ], !0)
3815
3819
  ]),
3816
3820
  _: 2
3817
3821
  }, [
3818
- X(V.$slots, (fe, $e, Fe) => ({
3822
+ X(V.$slots, (ce, $e, Fe) => ({
3819
3823
  name: $e,
3820
3824
  fn: E((Se) => [
3821
3825
  k(V.$slots, $e, { data: Se }, void 0, !0)
@@ -3827,9 +3831,9 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
3827
3831
  Q("div", Wa, [
3828
3832
  te(ie, B({
3829
3833
  modelValue: l.value,
3830
- "onUpdate:modelValue": K[1] || (K[1] = (fe) => l.value = fe)
3834
+ "onUpdate:modelValue": K[1] || (K[1] = (ce) => l.value = ce)
3831
3835
  }, V.$attrs, { onLoad: u }), ge({ _: 2 }, [
3832
- X(V.$slots, (fe, $e, Fe) => ({
3836
+ X(V.$slots, (ce, $e, Fe) => ({
3833
3837
  name: $e,
3834
3838
  fn: E((Se) => [
3835
3839
  k(V.$slots, $e, { data: Se }, void 0, !0)
@@ -4065,7 +4069,7 @@ const ke = {
4065
4069
  TEXTAREA: "textarea",
4066
4070
  TEL: "tel"
4067
4071
  }, Ct = () => {
4068
- ft(() => {
4072
+ ct(() => {
4069
4073
  const o = document.querySelector(".el-dialog");
4070
4074
  if (!o || o.querySelector(".dialog-resize-handle"))
4071
4075
  return;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .custom-upload[data-v-9ac2ced7]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-9ac2ced7] .custom-upload img{width:100%;height:100%}[data-v-9ac2ced7] .custom-upload .el-upload--picture-card,[data-v-9ac2ced7] .custom-upload .el-upload-dragger,[data-v-9ac2ced7] .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-9ac2ced7] .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-9ac2ced7] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-9ac2ced7] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-9ac2ced7]:hover{background-color:#0003}.g-form-container[data-v-3b3ffd4d]{width:100%;display:flex;flex-direction:column}.g-query-container[data-v-fbc339ad]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-fbc339ad]{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-fbc339ad]{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-fbc339ad],.nested-leave-active[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-leave-active[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from[data-v-fbc339ad],.nested-leave-to[data-v-fbc339ad]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-fbc339ad],.nested-leave-active .inner[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from .inner[data-v-fbc339ad],.nested-leave-to .inner[data-v-fbc339ad]{transform:translateY(-100px);opacity:.001}.query-form[data-v-fbc339ad]{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-13575747]:hover,.check-box-hover[data-v-428381ae]:hover{background:var(--el-border-color)}.allcheck a[data-v-428381ae]{cursor:pointer}.filtered[data-v-428381ae]{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-4b6cf957]{padding:0 3px;margin:0 3px}.g-table-container[data-v-4b6cf957]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-4b6cf957]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-4b6cf957]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-4b6cf957]{cursor:pointer;color:var(--el-text-color)}.max[data-v-4b6cf957]:hover{color:var(--el-color-primary)}.btns[data-v-4b6cf957]{display:flex}[data-v-4b6cf957] .drag-dialog{resize:both;overflow:auto}[data-v-4b6cf957] .el-dialog__header,[data-v-4b6cf957] .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-9ac2ced7]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-9ac2ced7] .custom-upload img{width:100%;height:100%}[data-v-9ac2ced7] .custom-upload .el-upload--picture-card,[data-v-9ac2ced7] .custom-upload .el-upload-dragger,[data-v-9ac2ced7] .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-9ac2ced7] .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-9ac2ced7] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-9ac2ced7] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-9ac2ced7]:hover{background-color:#0003}.g-form-container[data-v-3b3ffd4d]{width:100%;display:flex;flex-direction:column}.g-query-container[data-v-fbc339ad]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-fbc339ad]{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-fbc339ad]{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-fbc339ad],.nested-leave-active[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-leave-active[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from[data-v-fbc339ad],.nested-leave-to[data-v-fbc339ad]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-fbc339ad],.nested-leave-active .inner[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from .inner[data-v-fbc339ad],.nested-leave-to .inner[data-v-fbc339ad]{transform:translateY(-100px);opacity:.001}.query-form[data-v-fbc339ad]{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-13575747]:hover,.check-box-hover[data-v-428381ae]:hover{background:var(--el-border-color)}.allcheck a[data-v-428381ae]{cursor:pointer}.filtered[data-v-428381ae]{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-0b837d7b]{padding:0 3px;margin:0 3px}.g-table-container[data-v-0b837d7b]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-0b837d7b]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-0b837d7b]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-0b837d7b]{cursor:pointer;color:var(--el-text-color)}.max[data-v-0b837d7b]:hover{color:var(--el-color-primary)}.btns[data-v-0b837d7b]{display:flex}[data-v-0b837d7b] .drag-dialog{resize:both;overflow:auto}[data-v-0b837d7b] .el-dialog__header,[data-v-0b837d7b] .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.44",
3
+ "version": "0.2.45",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 and Element Plus based plugin",