vue-2024-ui 0.0.41 → 0.0.42

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 lt, { ElMessage as ye, ElMessageBox as Ke, ElDialog as ot, ElDrawer as at } from "element-plus";
2
- import { mergeModels as ke, useModel as Ve, ref as be, onMounted as Fe, resolveComponent as A, openBlock as w, createElementBlock as le, unref as a, createBlock as O, mergeProps as D, withCtx as d, renderSlot as $, Fragment as fe, renderList as P, createTextVNode as se, toDisplayString as Z, createSlots as Q, normalizeProps as Ce, createVNode as R, createElementVNode as Y, useSlots as rt, inject as Pe, useAttrs as ut, computed as xe, normalizeStyle as Me, withModifiers as Xe, createCommentVNode as ue, guardReactiveProps as Oe, Transition as nt, withDirectives as qe, vShow as Be, onBeforeUnmount as st, normalizeClass as Qe, watchEffect as it, h as Ue, createApp as dt } from "vue";
2
+ import { mergeModels as ke, useModel as Ve, ref as be, onMounted as Fe, resolveComponent as A, openBlock as w, createElementBlock as le, unref as a, createBlock as O, mergeProps as D, withCtx as d, renderSlot as $, Fragment as fe, renderList as P, createTextVNode as se, toDisplayString as Z, createSlots as Q, normalizeProps as Ce, createVNode as R, createElementVNode as W, useSlots as rt, inject as Pe, useAttrs as ut, computed as xe, normalizeStyle as Me, withModifiers as Xe, createCommentVNode as ue, guardReactiveProps as Oe, Transition as nt, withDirectives as qe, vShow as Be, onBeforeUnmount as st, normalizeClass as Qe, watchEffect as it, h as Ue, createApp as dt } from "vue";
3
3
  import { FullScreen as ct, Remove as ft } from "@element-plus/icons-vue";
4
4
  import Je from "sortablejs";
5
5
  import { Dexie as mt } from "dexie";
@@ -211,7 +211,7 @@ var Ze = { exports: {} };
211
211
  } }, C = "en", te = {};
212
212
  te[C] = g;
213
213
  var J = "$isDayjsObject", K = function(u) {
214
- return u instanceof W || !(!u || !u[J]);
214
+ return u instanceof Y || !(!u || !u[J]);
215
215
  }, me = function u(b, i, v) {
216
216
  var p;
217
217
  if (!b) return C;
@@ -228,12 +228,12 @@ var Ze = { exports: {} };
228
228
  }, S = function(u, b) {
229
229
  if (K(u)) return u.clone();
230
230
  var i = typeof b == "object" ? b : {};
231
- return i.date = u, i.args = arguments, new W(i);
231
+ return i.date = u, i.args = arguments, new Y(i);
232
232
  }, h = oe;
233
233
  h.l = me, h.i = K, h.w = function(u, b) {
234
234
  return S(u, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
235
235
  };
236
- var W = function() {
236
+ var Y = function() {
237
237
  function u(i) {
238
238
  this.$L = me(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[J] = !0;
239
239
  }
@@ -448,13 +448,13 @@ var Ze = { exports: {} };
448
448
  }, b.toString = function() {
449
449
  return this.$d.toUTCString();
450
450
  }, u;
451
- }(), z = W.prototype;
451
+ }(), z = Y.prototype;
452
452
  return S.prototype = z, [["$ms", f], ["$s", E], ["$m", I], ["$H", x], ["$W", y], ["$M", q], ["$y", V], ["$D", m]].forEach(function(u) {
453
453
  z[u[1]] = function(b) {
454
454
  return this.$g(b, u[0], u[1]);
455
455
  };
456
456
  }), S.extend = function(u, b) {
457
- return u.$i || (u(b, W, S), u.$i = !0), S;
457
+ return u.$i || (u(b, Y, S), u.$i = !0), S;
458
458
  }, S.locale = me, S.isDayjs = K, S.unix = function(u) {
459
459
  return S(1e3 * u);
460
460
  }, S.en = te[C], S.Ls = te, S.p = {}, S;
@@ -507,7 +507,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
507
507
  })();
508
508
  }), (V, m) => {
509
509
  var o, r;
510
- const ee = A("el-radio"), ce = A("el-radio-group"), ge = A("el-radio-button"), g = A("el-checkbox"), U = A("el-checkbox-group"), oe = A("el-checkbox-button"), C = A("el-option"), te = A("el-option-group"), J = A("el-select"), K = A("el-tree-select"), me = A("el-time-picker"), S = A("el-time-select"), h = A("el-date-picker"), W = A("el-color-picker"), z = A("el-rate"), u = A("el-slider"), b = A("el-switch"), i = A("el-transfer"), v = A("el-cascader"), p = A("el-button"), _ = A("el-upload"), T = A("el-autocomplete"), j = A("el-input-number"), L = A("el-input");
510
+ const ee = A("el-radio"), ce = A("el-radio-group"), ge = A("el-radio-button"), g = A("el-checkbox"), U = A("el-checkbox-group"), oe = A("el-checkbox-button"), C = A("el-option"), te = A("el-option-group"), J = A("el-select"), K = A("el-tree-select"), me = A("el-time-picker"), S = A("el-time-select"), h = A("el-date-picker"), Y = A("el-color-picker"), z = A("el-rate"), u = A("el-slider"), b = A("el-switch"), i = A("el-transfer"), v = A("el-cascader"), p = A("el-button"), _ = A("el-upload"), T = A("el-autocomplete"), j = A("el-input-number"), L = A("el-input");
511
511
  return w(), le("div", yt, [
512
512
  a(f) == a(re).RADIO ? (w(), O(ce, D({
513
513
  key: 0,
@@ -687,7 +687,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
687
687
  $(V.$slots, `${t.t}-${a(n)}-${l}`, { data: k })
688
688
  ])
689
689
  }))
690
- ]), 1040, ["modelValue", "type", "placeholder"])) : a(f) == a(re).COLOR ? (w(), O(W, D({
690
+ ]), 1040, ["modelValue", "type", "placeholder"])) : a(f) == a(re).COLOR ? (w(), O(Y, D({
691
691
  key: 11,
692
692
  modelValue: s.value,
693
693
  "onUpdate:modelValue": m[11] || (m[11] = (l) => s.value = l)
@@ -789,7 +789,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
789
789
  s.value ? {
790
790
  name: "suffix",
791
791
  fn: d(() => [
792
- Y("div", {
792
+ W("div", {
793
793
  title: a(Le)(s.value),
794
794
  style: { "font-size": "10px", display: "block", width: "120px", overflow: "hidden", "text-overflow": "ellipsis" }
795
795
  }, Z(a(Le)(s.value)), 9, $t)
@@ -980,7 +980,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
980
980
  }, a(pe)(t.value.form, (S) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(S)), { class: "g-form-container" }), {
981
981
  default: d(() => [
982
982
  V.value.length > 0 ? $(g.$slots, "default", { key: 0 }, () => {
983
- var S, h, W;
983
+ var S, h, Y;
984
984
  return [
985
985
  R(J, D({
986
986
  class: "demo-tabs",
@@ -1096,10 +1096,10 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1096
1096
  ]),
1097
1097
  _: 3
1098
1098
  }, 16, ["modelValue"]),
1099
- (W = (h = (S = t.value) == null ? void 0 : S.form) == null ? void 0 : h.footer) != null && W.hidden ? ue("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
1099
+ (Y = (h = (S = t.value) == null ? void 0 : S.form) == null ? void 0 : h.footer) != null && Y.hidden ? ue("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
1100
1100
  var z, u, b, i, v, p;
1101
1101
  return [
1102
- Y("div", {
1102
+ W("div", {
1103
1103
  style: Me(t.value.form.footer.style)
1104
1104
  }, [
1105
1105
  $(g.$slots, "f-footer-left"),
@@ -1135,8 +1135,8 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1135
1135
  }) : $(g.$slots, "default", { key: 1 }, () => {
1136
1136
  var S;
1137
1137
  return [
1138
- (w(!0), le(fe, null, P(q.value, (h, W) => (w(), O(C, D({ ref_for: !0 }, { ...t.value.form.cols, ...h.col }, {
1139
- key: W,
1138
+ (w(!0), le(fe, null, P(q.value, (h, Y) => (w(), O(C, D({ ref_for: !0 }, { ...t.value.form.cols, ...h.col }, {
1139
+ key: Y,
1140
1140
  style: { width: "100%" }
1141
1141
  }), {
1142
1142
  default: d(() => {
@@ -1144,12 +1144,12 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1144
1144
  return [
1145
1145
  R(oe, D({
1146
1146
  label: h.label,
1147
- prop: `${W}.value`,
1147
+ prop: `${Y}.value`,
1148
1148
  rules: y(h),
1149
1149
  ref_for: !0
1150
1150
  }, { ...(z = t.value) == null ? void 0 : z.formItems, ...h == null ? void 0 : h.formItem }, { style: { width: "100%" } }), {
1151
1151
  label: d((u) => [
1152
- $(g.$slots, `f-${W}-label`, {
1152
+ $(g.$slots, `f-${Y}-label`, {
1153
1153
  data: u,
1154
1154
  item: h,
1155
1155
  model: t.value
@@ -1158,7 +1158,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1158
1158
  ])
1159
1159
  ]),
1160
1160
  default: d(() => [
1161
- $(g.$slots, "f-" + W, {
1161
+ $(g.$slots, "f-" + Y, {
1162
1162
  item: h,
1163
1163
  model: t.value
1164
1164
  }, () => {
@@ -1166,10 +1166,10 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1166
1166
  return [
1167
1167
  t.value.form.modalState === "edit" ? (w(), O(_e, {
1168
1168
  key: 0,
1169
- modelValue: t.value[W].value,
1170
- "onUpdate:modelValue": (i) => t.value[W].value = i,
1169
+ modelValue: t.value[Y].value,
1170
+ "onUpdate:modelValue": (i) => t.value[Y].value = i,
1171
1171
  item: { ...(h == null ? void 0 : h.editor) || {}, ...((u = h == null ? void 0 : h.editor) == null ? void 0 : u.ep) || {} },
1172
- ctrlKey: W,
1172
+ ctrlKey: Y,
1173
1173
  ctrlType: h.type,
1174
1174
  model: t.value,
1175
1175
  class: "g-ctrl-container",
@@ -1187,10 +1187,10 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1187
1187
  }))
1188
1188
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model"])) : t.value.form.modalState === "add" ? (w(), O(_e, {
1189
1189
  key: 1,
1190
- modelValue: t.value[W].value,
1191
- "onUpdate:modelValue": (i) => t.value[W].value = i,
1190
+ modelValue: t.value[Y].value,
1191
+ "onUpdate:modelValue": (i) => t.value[Y].value = i,
1192
1192
  item: { ...(h == null ? void 0 : h.editor) || {}, ...((b = h == null ? void 0 : h.editor) == null ? void 0 : b.ap) || {} },
1193
- ctrlKey: W,
1193
+ ctrlKey: Y,
1194
1194
  ctrlType: h.type,
1195
1195
  model: t.value,
1196
1196
  class: "g-ctrl-container",
@@ -1208,10 +1208,10 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1208
1208
  }))
1209
1209
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model"])) : (w(), O(_e, {
1210
1210
  key: 2,
1211
- modelValue: t.value[W].value,
1212
- "onUpdate:modelValue": (i) => t.value[W].value = i,
1211
+ modelValue: t.value[Y].value,
1212
+ "onUpdate:modelValue": (i) => t.value[Y].value = i,
1213
1213
  item: h == null ? void 0 : h.editor,
1214
- ctrlKey: W,
1214
+ ctrlKey: Y,
1215
1215
  ctrlType: h.type,
1216
1216
  model: t.value,
1217
1217
  class: "g-ctrl-container",
@@ -1238,13 +1238,13 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1238
1238
  _: 2
1239
1239
  }, 1040))), 128)),
1240
1240
  (S = t.value.form.footer) != null && S.hidden ? ue("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
1241
- var h, W, z, u, b, i;
1241
+ var h, Y, z, u, b, i;
1242
1242
  return [
1243
- Y("div", {
1243
+ W("div", {
1244
1244
  style: Me(t.value.form.footer.style)
1245
1245
  }, [
1246
1246
  $(g.$slots, "f-footer-left"),
1247
- (z = (W = (h = t.value) == null ? void 0 : h.form) == null ? void 0 : W.submit) != null && z.hidden ? ue("", !0) : (w(), O(K, D({
1247
+ (z = (Y = (h = t.value) == null ? void 0 : h.form) == null ? void 0 : Y.submit) != null && z.hidden ? ue("", !0) : (w(), O(K, D({
1248
1248
  key: 0,
1249
1249
  onClick: U[3] || (U[3] = Xe((v) => t.value.form.submit.click(B.value, t.value), ["stop"]))
1250
1250
  }, a(pe)(t.value.form.submit, (v) => !["click"].includes(v))), {
@@ -1438,7 +1438,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1438
1438
  "onUpdate:info": B[1] || (B[1] = (S) => I.value = S),
1439
1439
  more: void 0
1440
1440
  }, Q({ _: 2 }, [
1441
- P(q.$slots, (S, h, W) => ({
1441
+ P(q.$slots, (S, h, Y) => ({
1442
1442
  name: h,
1443
1443
  fn: d((z) => [
1444
1444
  $(q.$slots, h, { model: t.value }, void 0, !0)
@@ -1452,12 +1452,12 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1452
1452
  default: d(() => [
1453
1453
  R(ce, { style: { width: "100%", "margin-bottom": "0" } }, {
1454
1454
  default: d(() => {
1455
- var S, h, W, z, u, b, i, v, p, _, T, j;
1455
+ var S, h, Y, z, u, b, i, v, p, _, T, j;
1456
1456
  return [
1457
- Y("div", {
1457
+ W("div", {
1458
1458
  style: Me(t.value.query.btns.style)
1459
1459
  }, [
1460
- ((W = (h = (S = t.value) == null ? void 0 : S.query) == null ? void 0 : h.query) == null ? void 0 : W.hidden) != !0 ? (w(), O(m, D({ key: 0 }, t.value.query.query, {
1460
+ ((Y = (h = (S = t.value) == null ? void 0 : S.query) == null ? void 0 : h.query) == null ? void 0 : Y.hidden) != !0 ? (w(), O(m, D({ key: 0 }, t.value.query.query, {
1461
1461
  onClick: B[2] || (B[2] = (L) => t.value.query.query.click())
1462
1462
  }), {
1463
1463
  default: d(() => [
@@ -1527,10 +1527,10 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1527
1527
  name: "nested"
1528
1528
  }, {
1529
1529
  default: d(() => {
1530
- var S, h, W;
1530
+ var S, h, Y;
1531
1531
  return [
1532
- f.value && !((W = (h = (S = t.value) == null ? void 0 : S.query) == null ? void 0 : h.more) != null && W.hidden) && t.value.query.more.mode == 1 ? (w(), le("div", wt, [
1533
- Y("div", _t, [
1532
+ f.value && !((Y = (h = (S = t.value) == null ? void 0 : S.query) == null ? void 0 : h.more) != null && Y.hidden) && t.value.query.more.mode == 1 ? (w(), le("div", wt, [
1533
+ W("div", _t, [
1534
1534
  t.value.query.more.mode == 1 ? qe((w(), O(V, Ce(D({ key: 0 }, a(pe)(t.value.query, (z) => !["query", "more", "reset"].includes(z)))), {
1535
1535
  default: d(() => [
1536
1536
  R(Te, {
@@ -1575,7 +1575,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1575
1575
  "onUpdate:info": B[10] || (B[10] = (S) => I.value = S),
1576
1576
  more: !0
1577
1577
  }, Q({ _: 2 }, [
1578
- P(q.$slots, (S, h, W) => ({
1578
+ P(q.$slots, (S, h, Y) => ({
1579
1579
  name: h,
1580
1580
  fn: d((z) => [
1581
1581
  $(q.$slots, h, { model: t.value }, void 0, !0)
@@ -1591,7 +1591,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1591
1591
  (me = (K = (J = (te = (C = t.value) == null ? void 0 : C.query) == null ? void 0 : te.more) == null ? void 0 : J.dialog) == null ? void 0 : K.footer) != null && me.hidden ? void 0 : {
1592
1592
  name: "footer",
1593
1593
  fn: d(() => [
1594
- Y("div", Ce(Oe(t.value.query.more.dialog.footer)), [
1594
+ W("div", Ce(Oe(t.value.query.more.dialog.footer)), [
1595
1595
  R(m, D(t.value.query.query, {
1596
1596
  onClick: B[11] || (B[11] = (S) => t.value.query.query.click())
1597
1597
  }), {
@@ -1663,14 +1663,14 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1663
1663
  }), (x, y) => {
1664
1664
  const M = A("el-divider"), q = A("el-alert"), B = A("el-checkbox"), V = A("el-button");
1665
1665
  return w(), le("div", Ct, [
1666
- Y("div", Dt, [
1667
- Y("div", xt, [
1668
- Y("a", {
1666
+ W("div", Dt, [
1667
+ W("div", xt, [
1668
+ W("a", {
1669
1669
  onClick: f,
1670
1670
  style: { cursor: "pointer" }
1671
1671
  }, "全选"),
1672
1672
  R(M, { direction: "vertical" }),
1673
- Y("a", {
1673
+ W("a", {
1674
1674
  onClick: E,
1675
1675
  style: { cursor: "pointer" }
1676
1676
  }, "全不选")
@@ -1682,8 +1682,8 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1682
1682
  closable: !1,
1683
1683
  style: { "margin-bottom": "10px" }
1684
1684
  }),
1685
- y[0] || (y[0] = Y("div", { style: { margin: "1px 0" } }, null, -1)),
1686
- Y("div", Ft, [
1685
+ y[0] || (y[0] = W("div", { style: { margin: "1px 0" } }, null, -1)),
1686
+ W("div", Ft, [
1687
1687
  (w(!0), le(fe, null, P(n.value, (m) => (w(), O(B, {
1688
1688
  class: "check-box-hover",
1689
1689
  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" },
@@ -1694,7 +1694,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1694
1694
  title: m.label
1695
1695
  }, {
1696
1696
  default: d(() => [
1697
- Y("span", {
1697
+ W("span", {
1698
1698
  textContent: Z(m.label),
1699
1699
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
1700
1700
  }, null, 8, Tt)
@@ -1703,7 +1703,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
1703
1703
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
1704
1704
  ])
1705
1705
  ]),
1706
- Y("div", Mt, [
1706
+ W("div", Mt, [
1707
1707
  R(V, {
1708
1708
  type: "primary",
1709
1709
  onClick: I,
@@ -1867,12 +1867,12 @@ const It = {
1867
1867
  }), (y, M) => {
1868
1868
  const q = A("el-divider"), B = A("el-alert"), V = A("el-checkbox");
1869
1869
  return w(), le("div", null, [
1870
- Y("div", It, [
1871
- Y("a", { onClick: E }, "全选"),
1870
+ W("div", It, [
1871
+ W("a", { onClick: E }, "全选"),
1872
1872
  R(q, { direction: "vertical" }),
1873
- Y("a", { onClick: I }, "全不选"),
1873
+ W("a", { onClick: I }, "全不选"),
1874
1874
  R(q, { direction: "vertical" }),
1875
- Y("a", { onClick: x }, "复位")
1875
+ W("a", { onClick: x }, "复位")
1876
1876
  ]),
1877
1877
  R(B, {
1878
1878
  title: "拖动表格列标题可以改变表格列显示顺序 !",
@@ -1881,8 +1881,8 @@ const It = {
1881
1881
  closable: !1,
1882
1882
  style: { "margin-bottom": "10px" }
1883
1883
  }),
1884
- Y("div", null, [
1885
- Y("div", jt, [
1884
+ W("div", null, [
1885
+ W("div", jt, [
1886
1886
  (w(!0), le(fe, null, P(t.value, (m) => (w(), O(V, {
1887
1887
  modelValue: m.showCol,
1888
1888
  "onUpdate:modelValue": (ee) => m.showCol = ee,
@@ -1896,7 +1896,7 @@ const It = {
1896
1896
  key: m.value
1897
1897
  }, {
1898
1898
  default: d(() => [
1899
- Y("span", {
1899
+ W("span", {
1900
1900
  textContent: Z(m.label),
1901
1901
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
1902
1902
  }, null, 8, Rt)
@@ -1908,11 +1908,11 @@ const It = {
1908
1908
  ]);
1909
1909
  };
1910
1910
  }
1911
- }, Pt = /* @__PURE__ */ Se(Lt, [["__scopeId", "data-v-fe875b13"]]), Nt = { style: { "background-color": "#f2f2f2", padding: "5px", "box-sizing": "border-box" } }, zt = {
1911
+ }, Pt = /* @__PURE__ */ Se(Lt, [["__scopeId", "data-v-fe875b13"]]), Nt = {
1912
1912
  key: 0,
1913
1913
  class: "table-query-container",
1914
- style: { "background-color": "#fff", "border-radius": "2px", "margin-bottom": "5px" }
1915
- }, Ht = { class: "btns" }, Wt = { class: "btns" }, Yt = ["innerHTML"], Gt = ["src"], Xt = { style: { display: "flex", "margin-top": "-2px" } }, Kt = { style: { display: "flex", flex: "1" } }, Qt = {
1914
+ style: { "background-color": "#fff", "border-radius": "10px", "margin-bottom": "14px" }
1915
+ }, zt = { class: "btns" }, Ht = { class: "btns" }, Wt = { style: { padding: "16px", "box-sizing": "border-box", "background-color": "#fff", "border-radius": "10px" } }, Yt = ["innerHTML"], Gt = ["src"], Xt = { style: { display: "flex", "margin-top": "-2px" } }, Kt = { style: { display: "flex", flex: "1" } }, Qt = {
1916
1916
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
1917
1917
  id: "table-form"
1918
1918
  }, Jt = { style: { display: "flex" } }, Zt = { style: { display: "flex", flex: "1" } }, el = /* @__PURE__ */ Object.assign({
@@ -1972,7 +1972,7 @@ const It = {
1972
1972
  style: {
1973
1973
  display: "flex",
1974
1974
  justifyContent: "flex-end",
1975
- padding: "10px",
1975
+ "padding-top": "16px",
1976
1976
  backgroundColor: "#fff"
1977
1977
  },
1978
1978
  hidden: !1
@@ -2181,7 +2181,7 @@ const It = {
2181
2181
  })
2182
2182
  }
2183
2183
  }, o.control.setting.mode);
2184
- }, W = xe(() => Object.fromEntries(
2184
+ }, Y = xe(() => Object.fromEntries(
2185
2185
  Object.entries(e.value).filter(([o, r]) => r.type !== "hidden").filter(([o, r]) => r.visible !== !1).filter(([o, r]) => r.showCol !== !1).map(([o, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [o, r])).sort((o, r) => o[1].sort - r[1].sort)
2186
2186
  )), z = be({}), u = (o, r) => {
2187
2187
  const l = (k, F) => {
@@ -2258,8 +2258,8 @@ const It = {
2258
2258
  var Ee, we, Ne, ze, He;
2259
2259
  const l = A("el-button"), k = A("el-table-column"), F = A("el-table"), H = A("el-pagination"), ne = A("el-icon"), ae = A("el-dialog"), ve = A("el-drawer");
2260
2260
  return w(), le(fe, null, [
2261
- Y("div", Nt, [
2262
- ((we = (Ee = e.value) == null ? void 0 : Ee.query) == null ? void 0 : we.hidden) != !0 ? (w(), le("div", zt, [
2261
+ W("div", null, [
2262
+ ((we = (Ee = e.value) == null ? void 0 : Ee.query) == null ? void 0 : we.hidden) != !0 ? (w(), le("div", Nt, [
2263
2263
  $(o.$slots, "query", {}, () => [
2264
2264
  R(Vt, {
2265
2265
  modelValue: e.value,
@@ -2269,7 +2269,7 @@ const It = {
2269
2269
  }, Q({
2270
2270
  "q-btns": d(() => [
2271
2271
  $(o.$slots, "q-btns", {}, () => [
2272
- Y("div", Ht, [
2272
+ W("div", zt, [
2273
2273
  $(o.$slots, "control-add-left", {}, void 0, !0),
2274
2274
  e.value.control.add.auth() ? $(o.$slots, "control-add", { key: 0 }, () => [
2275
2275
  R(l, D(e.value.control.add, {
@@ -2283,7 +2283,7 @@ const It = {
2283
2283
  ], !0) : ue("", !0),
2284
2284
  $(o.$slots, "control-add-right", {}, void 0, !0)
2285
2285
  ]),
2286
- Y("div", Wt, [
2286
+ W("div", Ht, [
2287
2287
  e.value.control.download.auth() ? $(o.$slots, "control-download", { key: 0 }, () => [
2288
2288
  R(l, D(e.value.control.download, {
2289
2289
  onClick: r[1] || (r[1] = (N) => S(e.value, x.value))
@@ -2318,164 +2318,166 @@ const It = {
2318
2318
  ]), 1032, ["modelValue"])
2319
2319
  ], !0)
2320
2320
  ])) : ue("", !0),
2321
- R(F, D({ class: "g-table-container" }, { ...o.$attrs, ...a(pe)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) }), {
2322
- append: d(() => [
2323
- $(o.$slots, "append", {}, void 0, !0)
2324
- ]),
2325
- empty: d(() => [
2326
- $(o.$slots, "empty", {}, void 0, !0)
2327
- ]),
2328
- default: d(() => [
2329
- $(o.$slots, "default", {}, () => [
2330
- (w(!0), le(fe, null, P(W.value, (N, de) => (w(), O(k, D({
2331
- prop: de,
2332
- key: de,
2333
- ref_for: !0
2334
- }, { ...e.value.tableColumns, ...a(pe)(N, (G) => I.includes(G)) }, { "header-align": "center" }), Q({
2335
- header: d(({ column: G, $index: X }) => [
2336
- $(o.$slots, `${de}-header`, {
2337
- column: G,
2338
- $index: X
2339
- }, void 0, !0)
2340
- ]),
2341
- "filter-icon": d((G) => [
2342
- $(o.$slots, `${de}-filter-icon`, { data: G }, void 0, !0)
2343
- ]),
2344
- _: 2
2345
- }, [
2346
- N.type != "selection" && N.type != "index" && N.type != "expand" ? {
2347
- name: "default",
2348
- fn: d(({ row: G, column: X, $index: ie }) => [
2349
- $(o.$slots, `${de}`, {
2350
- row: G,
2351
- column: X,
2352
- $index: ie
2353
- }, () => [
2354
- Y("div", {
2355
- innerHTML: ge(N, X.formatter(G, X, G[de], ie))
2356
- }, null, 8, Yt)
2357
- ], !0)
2321
+ W("div", Wt, [
2322
+ R(F, D({ class: "g-table-container" }, { ...o.$attrs, ...a(pe)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) }), {
2323
+ append: d(() => [
2324
+ $(o.$slots, "append", {}, void 0, !0)
2325
+ ]),
2326
+ empty: d(() => [
2327
+ $(o.$slots, "empty", {}, void 0, !0)
2328
+ ]),
2329
+ default: d(() => [
2330
+ $(o.$slots, "default", {}, () => [
2331
+ (w(!0), le(fe, null, P(Y.value, (N, de) => (w(), O(k, D({
2332
+ prop: de,
2333
+ key: de,
2334
+ ref_for: !0
2335
+ }, { ...e.value.tableColumns, ...a(pe)(N, (G) => I.includes(G)) }, { "header-align": "center" }), Q({
2336
+ header: d(({ column: G, $index: X }) => [
2337
+ $(o.$slots, `${de}-header`, {
2338
+ column: G,
2339
+ $index: X
2340
+ }, void 0, !0)
2358
2341
  ]),
2359
- key: "0"
2360
- } : void 0,
2361
- N.type === "image" ? {
2362
- name: "default",
2363
- fn: d(({ row: G, column: X, $index: ie }) => [
2364
- $(o.$slots, `${de}`, {
2365
- row: G,
2366
- column: X,
2367
- $index: ie
2368
- }, () => [
2369
- Y("img", D({
2370
- style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
2371
- src: N.value,
2372
- ref_for: !0
2373
- }, N), null, 16, Gt)
2374
- ], !0)
2342
+ "filter-icon": d((G) => [
2343
+ $(o.$slots, `${de}-filter-icon`, { data: G }, void 0, !0)
2375
2344
  ]),
2376
- key: "1"
2377
- } : void 0,
2378
- N.type == "control" ? {
2379
- name: "default",
2380
- fn: d(({ row: G, column: X, $index: ie }) => {
2381
- var We, Ye;
2382
- return [
2383
- Y("div", {
2384
- class: Qe(["control", (We = e.value.control) == null ? void 0 : We.class]),
2385
- style: Me((Ye = e.value.control) == null ? void 0 : Ye.style)
2386
- }, [
2387
- $(o.$slots, "control", {}, () => [
2388
- $(o.$slots, "control-left", {
2389
- row: G,
2390
- column: X,
2391
- $index: ie
2392
- }, void 0, !0),
2393
- e.value.control.view.auth(G, X, ie) ? $(o.$slots, "control-view", {
2394
- key: 0,
2395
- row: G,
2396
- column: X,
2397
- $index: ie
2398
- }, () => [
2399
- R(l, D({ ref_for: !0 }, e.value.control.view, {
2400
- onClick: (Ge) => J(G, X, ie, e.value)
2401
- }), {
2402
- default: d(() => [
2403
- se(Z(e.value.control.view.label), 1)
2404
- ]),
2405
- _: 2
2406
- }, 1040, ["onClick"])
2407
- ], !0) : ue("", !0),
2408
- $(o.$slots, "control-edit-left", {
2409
- row: G,
2410
- column: X,
2411
- $index: ie
2412
- }, void 0, !0),
2413
- e.value.control.edit.auth(G, X, ie) ? $(o.$slots, "control-edit", {
2414
- key: 1,
2415
- row: G,
2416
- column: X,
2417
- $index: ie
2418
- }, () => [
2419
- R(l, D({ ref_for: !0 }, e.value.control.edit, {
2420
- onClick: (Ge) => C(G, X, ie, e.value)
2421
- }), {
2422
- default: d(() => [
2423
- se(Z(e.value.control.edit.label), 1)
2424
- ]),
2425
- _: 2
2426
- }, 1040, ["onClick"])
2427
- ], !0) : ue("", !0),
2428
- $(o.$slots, "control-edit-right", {
2429
- row: G,
2430
- column: X,
2431
- $index: ie
2432
- }, void 0, !0),
2433
- e.value.control.delete.auth(G, X, ie) ? $(o.$slots, "control-delete", {
2434
- key: 2,
2435
- row: G,
2436
- column: X,
2437
- $index: ie
2438
- }, () => [
2439
- R(l, D({ ref_for: !0 }, e.value.control.delete, {
2440
- onClick: (Ge) => te(G, X, ie, e.value)
2441
- }), {
2442
- default: d(() => [
2443
- se(Z(e.value.control.delete.label), 1)
2444
- ]),
2445
- _: 2
2446
- }, 1040, ["onClick"])
2447
- ], !0) : ue("", !0),
2448
- $(o.$slots, "control-right", {
2449
- row: G,
2450
- column: X,
2451
- $index: ie
2452
- }, void 0, !0)
2453
- ], !0)
2454
- ], 6)
2455
- ];
2456
- }),
2457
- key: "2"
2458
- } : void 0
2459
- ]), 1040, ["prop"]))), 128))
2460
- ], !0)
2461
- ]),
2462
- _: 3
2463
- }, 16),
2464
- (He = (ze = (Ne = e.value) == null ? void 0 : Ne.table) == null ? void 0 : ze.page) != null && He.hidden ? ue("", !0) : $(o.$slots, "page", { key: 1 }, () => [
2465
- R(H, D({
2466
- "page-size": e.value.table.page.pageSize,
2467
- "onUpdate:pageSize": r[4] || (r[4] = (N) => e.value.table.page.pageSize = N),
2468
- "current-page": e.value.table.page.currentPage,
2469
- "onUpdate:currentPage": r[5] || (r[5] = (N) => e.value.table.page.currentPage = N)
2470
- }, e.value.table.page), {
2471
- default: d(() => [
2472
- $(o.$slots, "table-page", {}, void 0, !0)
2345
+ _: 2
2346
+ }, [
2347
+ N.type != "selection" && N.type != "index" && N.type != "expand" ? {
2348
+ name: "default",
2349
+ fn: d(({ row: G, column: X, $index: ie }) => [
2350
+ $(o.$slots, `${de}`, {
2351
+ row: G,
2352
+ column: X,
2353
+ $index: ie
2354
+ }, () => [
2355
+ W("div", {
2356
+ innerHTML: ge(N, X.formatter(G, X, G[de], ie))
2357
+ }, null, 8, Yt)
2358
+ ], !0)
2359
+ ]),
2360
+ key: "0"
2361
+ } : void 0,
2362
+ N.type === "image" ? {
2363
+ name: "default",
2364
+ fn: d(({ row: G, column: X, $index: ie }) => [
2365
+ $(o.$slots, `${de}`, {
2366
+ row: G,
2367
+ column: X,
2368
+ $index: ie
2369
+ }, () => [
2370
+ W("img", D({
2371
+ style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
2372
+ src: N.value,
2373
+ ref_for: !0
2374
+ }, N), null, 16, Gt)
2375
+ ], !0)
2376
+ ]),
2377
+ key: "1"
2378
+ } : void 0,
2379
+ N.type == "control" ? {
2380
+ name: "default",
2381
+ fn: d(({ row: G, column: X, $index: ie }) => {
2382
+ var We, Ye;
2383
+ return [
2384
+ W("div", {
2385
+ class: Qe(["control", (We = e.value.control) == null ? void 0 : We.class]),
2386
+ style: Me((Ye = e.value.control) == null ? void 0 : Ye.style)
2387
+ }, [
2388
+ $(o.$slots, "control", {}, () => [
2389
+ $(o.$slots, "control-left", {
2390
+ row: G,
2391
+ column: X,
2392
+ $index: ie
2393
+ }, void 0, !0),
2394
+ e.value.control.view.auth(G, X, ie) ? $(o.$slots, "control-view", {
2395
+ key: 0,
2396
+ row: G,
2397
+ column: X,
2398
+ $index: ie
2399
+ }, () => [
2400
+ R(l, D({ ref_for: !0 }, e.value.control.view, {
2401
+ onClick: (Ge) => J(G, X, ie, e.value)
2402
+ }), {
2403
+ default: d(() => [
2404
+ se(Z(e.value.control.view.label), 1)
2405
+ ]),
2406
+ _: 2
2407
+ }, 1040, ["onClick"])
2408
+ ], !0) : ue("", !0),
2409
+ $(o.$slots, "control-edit-left", {
2410
+ row: G,
2411
+ column: X,
2412
+ $index: ie
2413
+ }, void 0, !0),
2414
+ e.value.control.edit.auth(G, X, ie) ? $(o.$slots, "control-edit", {
2415
+ key: 1,
2416
+ row: G,
2417
+ column: X,
2418
+ $index: ie
2419
+ }, () => [
2420
+ R(l, D({ ref_for: !0 }, e.value.control.edit, {
2421
+ onClick: (Ge) => C(G, X, ie, e.value)
2422
+ }), {
2423
+ default: d(() => [
2424
+ se(Z(e.value.control.edit.label), 1)
2425
+ ]),
2426
+ _: 2
2427
+ }, 1040, ["onClick"])
2428
+ ], !0) : ue("", !0),
2429
+ $(o.$slots, "control-edit-right", {
2430
+ row: G,
2431
+ column: X,
2432
+ $index: ie
2433
+ }, void 0, !0),
2434
+ e.value.control.delete.auth(G, X, ie) ? $(o.$slots, "control-delete", {
2435
+ key: 2,
2436
+ row: G,
2437
+ column: X,
2438
+ $index: ie
2439
+ }, () => [
2440
+ R(l, D({ ref_for: !0 }, e.value.control.delete, {
2441
+ onClick: (Ge) => te(G, X, ie, e.value)
2442
+ }), {
2443
+ default: d(() => [
2444
+ se(Z(e.value.control.delete.label), 1)
2445
+ ]),
2446
+ _: 2
2447
+ }, 1040, ["onClick"])
2448
+ ], !0) : ue("", !0),
2449
+ $(o.$slots, "control-right", {
2450
+ row: G,
2451
+ column: X,
2452
+ $index: ie
2453
+ }, void 0, !0)
2454
+ ], !0)
2455
+ ], 6)
2456
+ ];
2457
+ }),
2458
+ key: "2"
2459
+ } : void 0
2460
+ ]), 1040, ["prop"]))), 128))
2461
+ ], !0)
2473
2462
  ]),
2474
2463
  _: 3
2475
- }, 16, ["page-size", "current-page"])
2476
- ], !0)
2464
+ }, 16),
2465
+ (He = (ze = (Ne = e.value) == null ? void 0 : Ne.table) == null ? void 0 : ze.page) != null && He.hidden ? ue("", !0) : $(o.$slots, "page", { key: 0 }, () => [
2466
+ R(H, D({
2467
+ "page-size": e.value.table.page.pageSize,
2468
+ "onUpdate:pageSize": r[4] || (r[4] = (N) => e.value.table.page.pageSize = N),
2469
+ "current-page": e.value.table.page.currentPage,
2470
+ "onUpdate:currentPage": r[5] || (r[5] = (N) => e.value.table.page.currentPage = N)
2471
+ }, e.value.table.page), {
2472
+ default: d(() => [
2473
+ $(o.$slots, "table-page", {}, void 0, !0)
2474
+ ]),
2475
+ _: 3
2476
+ }, 16, ["page-size", "current-page"])
2477
+ ], !0)
2478
+ ])
2477
2479
  ]),
2478
- qe(Y("div", null, [
2480
+ qe(W("div", null, [
2479
2481
  R(ae, D({
2480
2482
  modelValue: E.value,
2481
2483
  "onUpdate:modelValue": r[9] || (r[9] = (N) => E.value = N),
@@ -2486,10 +2488,10 @@ const It = {
2486
2488
  header: d(() => {
2487
2489
  var N, de, G, X;
2488
2490
  return [
2489
- Y("div", Xt, [
2490
- Y("div", Kt, [
2491
+ W("div", Xt, [
2492
+ W("div", Kt, [
2491
2493
  $(o.$slots, "f-header", {}, () => [
2492
- Y("div", null, Z(e.value.dialog.title), 1)
2494
+ W("div", null, Z(e.value.dialog.title), 1)
2493
2495
  ], !0)
2494
2496
  ]),
2495
2497
  ((de = (N = e.value) == null ? void 0 : N.dialog) == null ? void 0 : de.fullScreen) === !1 ? (w(), le("div", {
@@ -2524,7 +2526,7 @@ const It = {
2524
2526
  ];
2525
2527
  }),
2526
2528
  default: d(() => [
2527
- Y("div", Qt, [
2529
+ W("div", Qt, [
2528
2530
  R(Ie, {
2529
2531
  modelValue: e.value,
2530
2532
  "onUpdate:modelValue": r[8] || (r[8] = (N) => e.value = N),
@@ -2545,16 +2547,16 @@ const It = {
2545
2547
  ], 512), [
2546
2548
  [Be, e.value.dialog.mode == "dialog"]
2547
2549
  ]),
2548
- qe(Y("div", null, [
2550
+ qe(W("div", null, [
2549
2551
  R(ve, D({
2550
2552
  modelValue: E.value,
2551
2553
  "onUpdate:modelValue": r[11] || (r[11] = (N) => E.value = N)
2552
2554
  }, a(pe)(e.value.dialog, (N) => !["width"].includes(N))), {
2553
2555
  header: d(() => [
2554
- Y("div", Jt, [
2555
- Y("div", Zt, [
2556
+ W("div", Jt, [
2557
+ W("div", Zt, [
2556
2558
  $(o.$slots, "f-header", {}, () => [
2557
- Y("div", null, Z(e.value.dialog.title), 1)
2559
+ W("div", null, Z(e.value.dialog.title), 1)
2558
2560
  ], !0)
2559
2561
  ])
2560
2562
  ])
@@ -2582,7 +2584,7 @@ const It = {
2582
2584
  ], 64);
2583
2585
  };
2584
2586
  }
2585
- }), tl = /* @__PURE__ */ Se(el, [["__scopeId", "data-v-7404bd81"]]), ll = Object.freeze({}), et = [
2587
+ }), tl = /* @__PURE__ */ Se(el, [["__scopeId", "data-v-7de3f557"]]), ll = Object.freeze({}), et = [
2586
2588
  tl,
2587
2589
  Ie
2588
2590
  ];
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .g-query-container[data-v-0ea0cd78]{display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-0ea0cd78]{min-height:100px;border-radius:10px;background-color:#fffc;box-shadow:0 0 10px #0000001a;top:60px;padding:10px;width:100%;box-sizing:border-box}.inner[data-v-0ea0cd78]{border-radius:6px;min-height:100px;border:1px solid #f2f2f2;padding:20px;box-sizing:border-box;width:100%;background-color:#fffc}.nested-enter-active[data-v-0ea0cd78],.nested-leave-active[data-v-0ea0cd78]{transition:all .3s ease-in-out}.nested-leave-active[data-v-0ea0cd78]{transition-delay:.25s}.nested-enter-from[data-v-0ea0cd78],.nested-leave-to[data-v-0ea0cd78]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-0ea0cd78],.nested-leave-active .inner[data-v-0ea0cd78]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-0ea0cd78]{transition-delay:.25s}.nested-enter-from .inner[data-v-0ea0cd78],.nested-leave-to .inner[data-v-0ea0cd78]{transform:translateY(-100px);opacity:.001}.check-box-hover[data-v-64e6e1c0]:hover,.check-box-hover[data-v-fe875b13]:hover{background:#f5f1f1}.allcheck a[data-v-fe875b13]{cursor:pointer}.filtered[data-v-fe875b13]{pointer-events:none}.max[data-v-7404bd81]{cursor:pointer;color:#333}.max[data-v-7404bd81]:hover{color:var(--el-color-primary)}.btns[data-v-7404bd81]{display:flex}
1
+ .g-query-container[data-v-0ea0cd78]{display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-0ea0cd78]{min-height:100px;border-radius:10px;background-color:#fffc;box-shadow:0 0 10px #0000001a;top:60px;padding:10px;width:100%;box-sizing:border-box}.inner[data-v-0ea0cd78]{border-radius:6px;min-height:100px;border:1px solid #f2f2f2;padding:20px;box-sizing:border-box;width:100%;background-color:#fffc}.nested-enter-active[data-v-0ea0cd78],.nested-leave-active[data-v-0ea0cd78]{transition:all .3s ease-in-out}.nested-leave-active[data-v-0ea0cd78]{transition-delay:.25s}.nested-enter-from[data-v-0ea0cd78],.nested-leave-to[data-v-0ea0cd78]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-0ea0cd78],.nested-leave-active .inner[data-v-0ea0cd78]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-0ea0cd78]{transition-delay:.25s}.nested-enter-from .inner[data-v-0ea0cd78],.nested-leave-to .inner[data-v-0ea0cd78]{transform:translateY(-100px);opacity:.001}.check-box-hover[data-v-64e6e1c0]:hover,.check-box-hover[data-v-fe875b13]:hover{background:#f5f1f1}.allcheck a[data-v-fe875b13]{cursor:pointer}.filtered[data-v-fe875b13]{pointer-events:none}.max[data-v-7de3f557]{cursor:pointer;color:#333}.max[data-v-7de3f557]:hover{color:var(--el-color-primary)}.btns[data-v-7de3f557]{display:flex}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-2024-ui",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 and Element Plus based plugin",