vue-2024-ui 0.0.63 → 0.0.64

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.
Files changed (2) hide show
  1. package/dist/index.es.js +91 -89
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import Et, { ElForm as Pe, ElButtonGroup as ze, ElButton as he, ElPopover as Xe, ElMessage as we, ElMessageBox as ft, ElDialog as wt, ElDrawer as _t } from "element-plus";
2
- import { mergeModels as Se, useModel as Oe, ref as ye, onMounted as Ne, watch as ct, resolveComponent as R, openBlock as s, createElementBlock as B, unref as o, createBlock as S, mergeProps as x, withCtx as g, renderSlot as p, Fragment as W, renderList as U, createTextVNode as ge, toDisplayString as pe, createSlots as de, createVNode as G, createCommentVNode as ve, normalizeProps as je, createElementVNode as Q, useSlots as mt, inject as lt, useAttrs as He, onUnmounted as kt, computed as xe, normalizeStyle as Fe, withModifiers as st, guardReactiveProps as Ze, resolveDynamicComponent as qe, Transition as Ct, withDirectives as pt, vShow as vt, h as De, onBeforeUnmount as Dt, normalizeClass as yt, watchEffect as Vt, createApp as Ft } from "vue";
3
- import { FullScreen as Tt, Remove as Mt } from "@element-plus/icons-vue";
2
+ import { mergeModels as Se, useModel as Oe, ref as ye, onMounted as Ne, watch as ct, resolveComponent as R, openBlock as s, createElementBlock as B, unref as o, createBlock as S, mergeProps as x, withCtx as g, renderSlot as p, Fragment as W, renderList as U, createTextVNode as ge, toDisplayString as pe, createSlots as de, createVNode as G, createCommentVNode as ve, normalizeProps as je, createElementVNode as Q, useSlots as mt, nextTick as kt, inject as lt, useAttrs as He, onUnmounted as Ct, computed as xe, normalizeStyle as Fe, withModifiers as st, guardReactiveProps as Ze, resolveDynamicComponent as qe, Transition as Dt, withDirectives as pt, vShow as vt, h as De, onBeforeUnmount as Vt, normalizeClass as yt, watchEffect as Ft, createApp as Tt } from "vue";
3
+ import { FullScreen as Mt, Remove as qt } from "@element-plus/icons-vue";
4
4
  import ht from "sortablejs";
5
- import { Dexie as qt } from "dexie";
6
- var St = {
5
+ import { Dexie as St } from "dexie";
6
+ var Ot = {
7
7
  name: "zh-cn",
8
8
  el: {
9
9
  breadcrumb: {
@@ -180,15 +180,15 @@ var St = {
180
180
  indicator: "幻灯片切换至索引 {index}"
181
181
  }
182
182
  }
183
- }, Ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
184
- function xt(m) {
183
+ }, xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
184
+ function At(m) {
185
185
  return m && m.__esModule && Object.prototype.hasOwnProperty.call(m, "default") ? m.default : m;
186
186
  }
187
187
  var gt = { exports: {} };
188
188
  (function(m, f) {
189
189
  (function(t, e) {
190
190
  m.exports = e();
191
- })(Ot, function() {
191
+ })(xt, function() {
192
192
  var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", F = "second", T = "minute", q = "hour", E = "day", _ = "week", z = "month", ne = "quarter", V = "year", u = "date", A = "Invalid Date", K = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ee = /\[([^\]]+)]|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, se = { 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(k) {
193
193
  var $ = ["th", "st", "nd", "rd"], b = k % 100;
194
194
  return "[" + k + ($[(b - 20) % 10] || $[b] || $[0]) + "]";
@@ -460,14 +460,14 @@ var gt = { exports: {} };
460
460
  }, L.en = d[re], L.Ls = d, L.p = {}, L;
461
461
  });
462
462
  })(gt);
463
- var At = gt.exports;
464
- const Je = /* @__PURE__ */ xt(At), Bt = {
463
+ var Bt = gt.exports;
464
+ const Je = /* @__PURE__ */ At(Bt), It = {
465
465
  style: { display: "flex", width: "100%" },
466
466
  class: "g-ctrl-container"
467
- }, It = {
467
+ }, Ut = {
468
468
  key: 20,
469
469
  style: { position: "relative" }
470
- }, Ut = ["title"], We = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
470
+ }, Rt = ["title"], We = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
471
471
  __name: "g-ctrl",
472
472
  props: /* @__PURE__ */ Se(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
473
473
  modelValue: { required: !0 },
@@ -481,7 +481,9 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
481
481
  ...e
482
482
  }, z = (V) => {
483
483
  e["remote-method"](V, (u) => {
484
- q.value = u;
484
+ kt(() => {
485
+ q.value = u;
486
+ });
485
487
  });
486
488
  }, ne = async (V = "options") => {
487
489
  try {
@@ -523,7 +525,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
523
525
  }, { deep: !0 }), (V, u) => {
524
526
  var X, oe;
525
527
  const A = R("el-radio"), K = R("el-radio-group"), ee = R("el-radio-button"), se = R("el-checkbox"), ce = R("el-checkbox-group"), ie = R("el-checkbox-button"), re = R("el-option"), d = R("el-select"), D = R("el-tree-select"), I = R("el-time-picker"), y = R("el-time-select"), L = R("el-date-picker"), O = R("el-color-picker"), te = R("el-rate"), be = R("el-slider"), k = R("el-switch"), $ = R("el-transfer"), b = R("el-cascader"), c = R("el-button"), i = R("el-upload"), w = R("el-autocomplete"), M = R("el-input-number"), P = R("el-input");
526
- return s(), B("div", Bt, [
528
+ return s(), B("div", It, [
527
529
  o(v) == o(fe).RADIO ? (s(), S(K, x({
528
530
  key: 0,
529
531
  modelValue: f.value,
@@ -786,7 +788,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
786
788
  p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
787
789
  ])
788
790
  }))
789
- ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).MONEY ? (s(), B("div", It, [
791
+ ]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).MONEY ? (s(), B("div", Ut, [
790
792
  G(P, x({
791
793
  modelValue: f.value,
792
794
  "onUpdate:modelValue": u[19] || (u[19] = (n) => f.value = n),
@@ -800,7 +802,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
800
802
  Q("div", {
801
803
  title: o(tt)(f.value),
802
804
  style: { "font-size": "10px", display: "block", width: "120px", overflow: "hidden", "text-overflow": "ellipsis" }
803
- }, pe(o(tt)(f.value)), 9, Ut)
805
+ }, pe(o(tt)(f.value)), 9, Rt)
804
806
  ]),
805
807
  key: "0"
806
808
  } : void 0,
@@ -973,7 +975,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
973
975
  };
974
976
  Ne(() => {
975
977
  ne();
976
- }), kt(() => {
978
+ }), Ct(() => {
977
979
  a.value = null;
978
980
  });
979
981
  const ne = () => {
@@ -1277,10 +1279,10 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
1277
1279
  for (const [e, a] of f)
1278
1280
  t[e] = a;
1279
1281
  return t;
1280
- }, Rt = {
1282
+ }, jt = {
1281
1283
  key: 0,
1282
1284
  class: "outer"
1283
- }, jt = { class: "inner" }, Nt = {
1285
+ }, Nt = { class: "inner" }, Lt = {
1284
1286
  __name: "g-query",
1285
1287
  props: {
1286
1288
  modelValue: { required: !0 },
@@ -1499,15 +1501,15 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
1499
1501
  p(u.$slots, "q-btns", {}, void 0, !0)
1500
1502
  ], 64))
1501
1503
  ], 4)) : ve("", !0),
1502
- G(Ct, {
1504
+ G(Dt, {
1503
1505
  duration: 300,
1504
1506
  name: "nested"
1505
1507
  }, {
1506
1508
  default: g(() => {
1507
1509
  var w, M, P;
1508
1510
  return [
1509
- v.value && !((P = (M = (w = t.value) == null ? void 0 : w.query) == null ? void 0 : M.more) != null && P.hidden) && t.value.query.more.mode == 1 ? (s(), B("div", Rt, [
1510
- Q("div", jt, [
1511
+ v.value && !((P = (M = (w = t.value) == null ? void 0 : w.query) == null ? void 0 : M.more) != null && P.hidden) && t.value.query.more.mode == 1 ? (s(), B("div", jt, [
1512
+ Q("div", Nt, [
1511
1513
  t.value.query.more.mode == 1 ? pt((s(), S(o(Pe), je(x({ key: 0 }, o(_e)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
1512
1514
  default: g(() => [
1513
1515
  (s(), S(qe(z({ slots: u.$slots }, !0))))
@@ -1580,10 +1582,10 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
1580
1582
  ], 4);
1581
1583
  };
1582
1584
  }
1583
- }, Lt = /* @__PURE__ */ Ae(Nt, [["__scopeId", "data-v-561bb961"]]), Pt = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, zt = { style: { padding: "10px", "box-sizing": "border-box" } }, Ht = { style: { margin: "10px" } }, Yt = {
1585
+ }, Pt = /* @__PURE__ */ Ae(Lt, [["__scopeId", "data-v-561bb961"]]), zt = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Ht = { style: { padding: "10px", "box-sizing": "border-box" } }, Yt = { style: { margin: "10px" } }, Wt = {
1584
1586
  style: { display: "flex", "flex-wrap": "wrap" },
1585
1587
  id: "excelSortEl"
1586
- }, Wt = ["textContent"], Gt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Qt = {
1588
+ }, Gt = ["textContent"], Qt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Xt = {
1587
1589
  __name: "check-excel-item",
1588
1590
  props: {
1589
1591
  items: Array,
@@ -1621,14 +1623,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
1621
1623
  console.log(_);
1622
1624
  }
1623
1625
  }), E = q;
1624
- Dt(() => {
1626
+ Vt(() => {
1625
1627
  E && E.destroy();
1626
1628
  });
1627
1629
  }), (q, E) => {
1628
1630
  const _ = R("el-divider"), z = R("el-alert"), ne = R("el-checkbox"), V = R("el-button");
1629
- return s(), B("div", Pt, [
1630
- Q("div", zt, [
1631
- Q("div", Ht, [
1631
+ return s(), B("div", zt, [
1632
+ Q("div", Ht, [
1633
+ Q("div", Yt, [
1632
1634
  Q("a", {
1633
1635
  onClick: v,
1634
1636
  style: { cursor: "pointer" }
@@ -1647,7 +1649,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
1647
1649
  style: { "margin-bottom": "10px" }
1648
1650
  }),
1649
1651
  E[0] || (E[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
1650
- Q("div", Yt, [
1652
+ Q("div", Wt, [
1651
1653
  (s(!0), B(W, null, U(a.value, (u) => (s(), S(ne, {
1652
1654
  class: "check-box-hover",
1653
1655
  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" },
@@ -1661,13 +1663,13 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
1661
1663
  Q("span", {
1662
1664
  textContent: pe(u.label),
1663
1665
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
1664
- }, null, 8, Wt)
1666
+ }, null, 8, Gt)
1665
1667
  ]),
1666
1668
  _: 2
1667
1669
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
1668
1670
  ])
1669
1671
  ]),
1670
- Q("div", Gt, [
1672
+ Q("div", Qt, [
1671
1673
  G(V, {
1672
1674
  type: "primary",
1673
1675
  onClick: T,
@@ -1682,7 +1684,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
1682
1684
  ]);
1683
1685
  };
1684
1686
  }
1685
- }, Xt = /* @__PURE__ */ Ae(Qt, [["__scopeId", "data-v-51dfb7ef"]]), Ve = new qt("gyc");
1687
+ }, Jt = /* @__PURE__ */ Ae(Xt, [["__scopeId", "data-v-51dfb7ef"]]), Ve = new St("gyc");
1686
1688
  Ve.version(1).stores({
1687
1689
  tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
1688
1690
  tableList: "++id,name"
@@ -1696,10 +1698,10 @@ async function Re(m, f, t, e = {}) {
1696
1698
  return await Ve.tableInfo.add({ user: m, page: f, key: t, ...v }), "add success";
1697
1699
  }
1698
1700
  }
1699
- async function Jt(m, f) {
1701
+ async function Zt(m, f) {
1700
1702
  return await Ve.tableInfo.where({ user: m, page: f }).toArray();
1701
1703
  }
1702
- async function Zt(m, f) {
1704
+ async function Kt(m, f) {
1703
1705
  try {
1704
1706
  const t = await Ve.tableInfo.where({ user: m, page: f }).delete();
1705
1707
  return console.log("删除了" + t + "条数据"), t;
@@ -1707,19 +1709,19 @@ async function Zt(m, f) {
1707
1709
  throw console.error("删除表格项设置信息时出错:", t), t;
1708
1710
  }
1709
1711
  }
1710
- async function Kt(m) {
1712
+ async function el(m) {
1711
1713
  return await Ve.tableList.where({ name: m }).first();
1712
1714
  }
1713
- async function el(m) {
1715
+ async function tl(m) {
1714
1716
  return typeof m == "string" && (m = { name: m }), await Ve.tableList.add(m), "add success";
1715
1717
  }
1716
- const tl = {
1718
+ const ll = {
1717
1719
  style: { margin: "10px" },
1718
1720
  class: "allcheck"
1719
- }, ll = {
1721
+ }, ol = {
1720
1722
  id: "cols",
1721
1723
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
1722
- }, ol = ["textContent"], rl = {
1724
+ }, rl = ["textContent"], al = {
1723
1725
  __name: "columns-setting",
1724
1726
  props: /* @__PURE__ */ Se({
1725
1727
  name: {
@@ -1809,7 +1811,7 @@ const tl = {
1809
1811
  cancelButtonText: "取消",
1810
1812
  type: "warning"
1811
1813
  }).then(() => {
1812
- Zt(e.value.table.user, f.name).then((E) => {
1814
+ Kt(e.value.table.user, f.name).then((E) => {
1813
1815
  console.log(E), window.location.reload();
1814
1816
  }).catch((E) => {
1815
1817
  console.error("复位操作出错:", E), we({
@@ -1831,7 +1833,7 @@ const tl = {
1831
1833
  }), (E, _) => {
1832
1834
  const z = R("el-divider"), ne = R("el-alert"), V = R("el-checkbox");
1833
1835
  return s(), B("div", null, [
1834
- Q("div", tl, [
1836
+ Q("div", ll, [
1835
1837
  Q("a", { onClick: F }, "全选"),
1836
1838
  G(z, { direction: "vertical" }),
1837
1839
  Q("a", { onClick: T }, "全不选"),
@@ -1846,7 +1848,7 @@ const tl = {
1846
1848
  style: { "margin-bottom": "10px" }
1847
1849
  }),
1848
1850
  Q("div", null, [
1849
- Q("div", ll, [
1851
+ Q("div", ol, [
1850
1852
  (s(!0), B(W, null, U(t.value, (u) => (s(), S(V, {
1851
1853
  modelValue: u.showCol,
1852
1854
  "onUpdate:modelValue": (A) => u.showCol = A,
@@ -1863,7 +1865,7 @@ const tl = {
1863
1865
  Q("span", {
1864
1866
  textContent: pe(u.label),
1865
1867
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
1866
- }, null, 8, ol)
1868
+ }, null, 8, rl)
1867
1869
  ]),
1868
1870
  _: 2
1869
1871
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -1872,13 +1874,13 @@ const tl = {
1872
1874
  ]);
1873
1875
  };
1874
1876
  }
1875
- }, al = /* @__PURE__ */ Ae(rl, [["__scopeId", "data-v-c423ede0"]]), ul = { class: "g-table-container" }, nl = {
1877
+ }, ul = /* @__PURE__ */ Ae(al, [["__scopeId", "data-v-c423ede0"]]), nl = { class: "g-table-container" }, sl = {
1876
1878
  key: 0,
1877
1879
  class: "table-query-container"
1878
- }, sl = { class: "table-container" }, il = ["src"], dl = ["innerHTML"], fl = { key: 0 }, cl = { style: { display: "flex", "margin-top": "-2px" } }, ml = { style: { display: "flex", flex: "1" } }, pl = {
1880
+ }, il = { class: "table-container" }, dl = ["src"], fl = ["innerHTML"], cl = { key: 0 }, ml = { style: { display: "flex", "margin-top": "-2px" } }, pl = { style: { display: "flex", flex: "1" } }, vl = {
1879
1881
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
1880
1882
  id: "table-form"
1881
- }, vl = { key: 1 }, yl = { style: { display: "flex" } }, hl = { style: { display: "flex", flex: "1" } }, gl = /* @__PURE__ */ Object.assign({
1883
+ }, yl = { key: 1 }, hl = { style: { display: "flex" } }, gl = { style: { display: "flex", flex: "1" } }, bl = /* @__PURE__ */ Object.assign({
1882
1884
  name: "g-table",
1883
1885
  inheritAttrs: !1
1884
1886
  }, {
@@ -2071,7 +2073,7 @@ const tl = {
2071
2073
  };
2072
2074
  h = l.format ? Je(h).format(l.format) : Je(h).format(J[l.type]);
2073
2075
  }
2074
- return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, h = `<span title="${tt(parseFloat(h))}">${Sl(parseFloat(h))}</span>`), l.prefix && h && (h = `<span>${l.prefix}${h}</span>`), l.suffix && h && (h = `${h}<span>${l.suffix}</span>`), h;
2076
+ return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, h = `<span title="${tt(parseFloat(h))}">${Ol(parseFloat(h))}</span>`), l.prefix && h && (h = `<span>${l.prefix}${h}</span>`), l.suffix && h && (h = `${h}<span>${l.suffix}</span>`), h;
2075
2077
  }, ce = (l) => {
2076
2078
  v.value = l.value;
2077
2079
  }, ie = (l) => {
@@ -2125,7 +2127,7 @@ const tl = {
2125
2127
  size: 480,
2126
2128
  width: 600,
2127
2129
  slots: {
2128
- default: () => De(Xt, {
2130
+ default: () => De(Jt, {
2129
2131
  items: r,
2130
2132
  commitText: l.control.download.excelLabel,
2131
2133
  onExcel: (J, Z) => {
@@ -2142,7 +2144,7 @@ const tl = {
2142
2144
  size: 470,
2143
2145
  width: 600,
2144
2146
  slots: {
2145
- default: () => De(al, {
2147
+ default: () => De(ul, {
2146
2148
  modelValue: l,
2147
2149
  name: _.name
2148
2150
  })
@@ -2213,7 +2215,7 @@ const tl = {
2213
2215
  var J, Z;
2214
2216
  return l.table ? (J = l.table(r, h, j)) != null && J.auth ? (Z = l.table(r, h, j)) == null ? void 0 : Z.auth(r, h, j) : !0 : !1;
2215
2217
  };
2216
- return Vt(() => {
2218
+ return Ft(() => {
2217
2219
  e.value.table.load();
2218
2220
  }), Ne(async () => {
2219
2221
  var l;
@@ -2226,19 +2228,19 @@ const tl = {
2226
2228
  return;
2227
2229
  }
2228
2230
  try {
2229
- let r = await Kt(_.name);
2231
+ let r = await el(_.name);
2230
2232
  if (r) {
2231
2233
  if (_.name !== r.name) {
2232
2234
  we.error("此表格已经存在,请换一个名字!");
2233
2235
  return;
2234
2236
  }
2235
2237
  } else
2236
- await el({ name: _.name });
2238
+ await tl({ name: _.name });
2237
2239
  } catch (r) {
2238
2240
  console.error("检查表格名称时出现错误:", r), we.error("检查表格名称时出现错误,请稍后重试。");
2239
2241
  }
2240
2242
  try {
2241
- const r = await Jt(e.value.table.user, _.name);
2243
+ const r = await Zt(e.value.table.user, _.name);
2242
2244
  r && r.forEach((h) => {
2243
2245
  e.value[h.key] && (e.value[h.key].width = h.width, e.value[h.key].showCol = h.showCol, e.value[h.key].sort = h.sort);
2244
2246
  });
@@ -2249,10 +2251,10 @@ const tl = {
2249
2251
  var ot, rt, at, ut, nt;
2250
2252
  const h = R("el-button-group"), j = R("el-table-column"), J = R("el-table"), Z = R("el-pagination"), Ee = R("el-icon"), Me = R("el-dialog"), Le = R("el-drawer");
2251
2253
  return s(), B(W, null, [
2252
- Q("div", ul, [
2253
- ((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (s(), B("div", nl, [
2254
+ Q("div", nl, [
2255
+ ((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (s(), B("div", sl, [
2254
2256
  p(l.$slots, "query", {}, () => [
2255
- G(Lt, {
2257
+ G(Pt, {
2256
2258
  modelValue: e.value,
2257
2259
  "onUpdate:modelValue": r[0] || (r[0] = (N) => e.value = N),
2258
2260
  onQuery: ie,
@@ -2323,7 +2325,7 @@ const tl = {
2323
2325
  ]), 1032, ["modelValue"])
2324
2326
  ], !0)
2325
2327
  ])) : ve("", !0),
2326
- Q("div", sl, [
2328
+ Q("div", il, [
2327
2329
  G(J, je(Ze({ ...l.$attrs, ...o(_e)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) })), {
2328
2330
  append: g(() => [
2329
2331
  p(l.$slots, "append", {}, void 0, !0)
@@ -2390,7 +2392,7 @@ const tl = {
2390
2392
  style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
2391
2393
  src: N.value,
2392
2394
  ref_for: !0
2393
- }, N), null, 16, il)
2395
+ }, N), null, 16, dl)
2394
2396
  ], !0)
2395
2397
  ]),
2396
2398
  key: "0"
@@ -2547,7 +2549,7 @@ const tl = {
2547
2549
  }, () => [
2548
2550
  Q("div", {
2549
2551
  innerHTML: se(N, Y.formatter(C, Y, C[ue], le))
2550
- }, null, 8, dl)
2552
+ }, null, 8, fl)
2551
2553
  ], !0)
2552
2554
  ]),
2553
2555
  key: "3"
@@ -2572,7 +2574,7 @@ const tl = {
2572
2574
  ], !0)
2573
2575
  ])
2574
2576
  ]),
2575
- e.value.dialog.mode == "dialog" && F.value ? (s(), B("div", fl, [
2577
+ e.value.dialog.mode == "dialog" && F.value ? (s(), B("div", cl, [
2576
2578
  G(Me, x({
2577
2579
  modelValue: F.value,
2578
2580
  "onUpdate:modelValue": r[8] || (r[8] = (N) => F.value = N),
@@ -2583,8 +2585,8 @@ const tl = {
2583
2585
  header: g(() => {
2584
2586
  var N, ue, C, Y;
2585
2587
  return [
2586
- Q("div", cl, [
2587
- Q("div", ml, [
2588
+ Q("div", ml, [
2589
+ Q("div", pl, [
2588
2590
  p(l.$slots, "f-header", {}, () => [
2589
2591
  Q("div", null, pe(e.value.dialog.title), 1)
2590
2592
  ], !0)
@@ -2598,7 +2600,7 @@ const tl = {
2598
2600
  }, [
2599
2601
  G(Ee, null, {
2600
2602
  default: g(() => [
2601
- G(o(Tt))
2603
+ G(o(Mt))
2602
2604
  ]),
2603
2605
  _: 1
2604
2606
  })
@@ -2612,7 +2614,7 @@ const tl = {
2612
2614
  }, [
2613
2615
  G(Ee, null, {
2614
2616
  default: g(() => [
2615
- G(o(Mt))
2617
+ G(o(qt))
2616
2618
  ]),
2617
2619
  _: 1
2618
2620
  })
@@ -2621,7 +2623,7 @@ const tl = {
2621
2623
  ];
2622
2624
  }),
2623
2625
  default: g(() => [
2624
- Q("div", pl, [
2626
+ Q("div", vl, [
2625
2627
  p(l.$slots, "table-dialog-form", { model: e.value }, () => [
2626
2628
  G(Ye, {
2627
2629
  modelValue: e.value,
@@ -2642,14 +2644,14 @@ const tl = {
2642
2644
  _: 3
2643
2645
  }, 16, ["modelValue", "fullscreen", "width"])
2644
2646
  ])) : ve("", !0),
2645
- e.value.dialog.mode == "drawer" && F.value ? (s(), B("div", vl, [
2647
+ e.value.dialog.mode == "drawer" && F.value ? (s(), B("div", yl, [
2646
2648
  G(Le, x({
2647
2649
  modelValue: F.value,
2648
2650
  "onUpdate:modelValue": r[10] || (r[10] = (N) => F.value = N)
2649
2651
  }, o(_e)(e.value.dialog, (N) => !["width"].includes(N))), {
2650
2652
  header: g(() => [
2651
- Q("div", yl, [
2652
- Q("div", hl, [
2653
+ Q("div", hl, [
2654
+ Q("div", gl, [
2653
2655
  p(l.$slots, "f-header", {}, () => [
2654
2656
  Q("div", null, pe(e.value.dialog.title), 1)
2655
2657
  ], !0)
@@ -2687,7 +2689,7 @@ const tl = {
2687
2689
  ], 64);
2688
2690
  };
2689
2691
  }
2690
- }), bl = /* @__PURE__ */ Ae(gl, [["__scopeId", "data-v-23ac23e4"]]), $l = { class: "g-tree-table" }, El = { class: "g-tree-container" }, wl = { class: "g-tree-table-container" }, _l = /* @__PURE__ */ Object.assign({
2692
+ }), $l = /* @__PURE__ */ Ae(bl, [["__scopeId", "data-v-23ac23e4"]]), El = { class: "g-tree-table" }, wl = { class: "g-tree-container" }, _l = { class: "g-tree-table-container" }, kl = /* @__PURE__ */ Object.assign({
2691
2693
  name: "g-tree-table",
2692
2694
  inheritAttrs: !1
2693
2695
  }, {
@@ -2708,7 +2710,7 @@ const tl = {
2708
2710
  q.value.filter(A);
2709
2711
  }), (A, K) => {
2710
2712
  const ee = R("el-input"), se = R("el-tree"), ce = R("g-table");
2711
- return s(), B("div", $l, [
2713
+ return s(), B("div", El, [
2712
2714
  Q("div", {
2713
2715
  class: "g-tree-left",
2714
2716
  style: Fe({ width: a.value })
@@ -2721,7 +2723,7 @@ const tl = {
2721
2723
  placeholder: "输入节点查询",
2722
2724
  clearable: ""
2723
2725
  }, null, 8, ["modelValue"])) : ve("", !0),
2724
- Q("div", El, [
2726
+ Q("div", wl, [
2725
2727
  G(se, x({
2726
2728
  style: { width: a.value },
2727
2729
  "filter-node-method": E,
@@ -2749,7 +2751,7 @@ const tl = {
2749
2751
  ]), 1040, ["style"])
2750
2752
  ])
2751
2753
  ], 4),
2752
- Q("div", wl, [
2754
+ Q("div", _l, [
2753
2755
  G(ce, x({
2754
2756
  modelValue: e.value,
2755
2757
  "onUpdate:modelValue": K[1] || (K[1] = (ie) => e.value = ie)
@@ -2765,13 +2767,13 @@ const tl = {
2765
2767
  ]);
2766
2768
  };
2767
2769
  }
2768
- }), kl = /* @__PURE__ */ Ae(_l, [["__scopeId", "data-v-c07fe107"]]), Cl = {
2770
+ }), Cl = /* @__PURE__ */ Ae(kl, [["__scopeId", "data-v-c07fe107"]]), Dl = {
2769
2771
  key: 0,
2770
2772
  class: "op-group"
2771
- }, Dl = {
2773
+ }, Vl = {
2772
2774
  key: 1,
2773
2775
  class: "op-items"
2774
- }, dt = "100px", Vl = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
2776
+ }, dt = "100px", Fl = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
2775
2777
  __name: "g-select-option",
2776
2778
  props: {
2777
2779
  columns: {
@@ -2789,7 +2791,7 @@ const tl = {
2789
2791
  },
2790
2792
  setup(m) {
2791
2793
  const f = m;
2792
- return (t, e) => f.title ? (s(), B("div", Cl, [
2794
+ return (t, e) => f.title ? (s(), B("div", Dl, [
2793
2795
  (s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
2794
2796
  style: Fe({ width: (a == null ? void 0 : a.width) || dt, ...a == null ? void 0 : a.titleStyle }),
2795
2797
  key: a.key
@@ -2798,7 +2800,7 @@ const tl = {
2798
2800
  ge(pe(a.label), 1)
2799
2801
  ], !0)
2800
2802
  ], 4))), 128))
2801
- ])) : (s(), B("div", Dl, [
2803
+ ])) : (s(), B("div", Vl, [
2802
2804
  (s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
2803
2805
  style: Fe({ width: (a == null ? void 0 : a.width) || dt, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
2804
2806
  key: a.key
@@ -2809,24 +2811,24 @@ const tl = {
2809
2811
  ], 4))), 128))
2810
2812
  ]));
2811
2813
  }
2812
- }), Fl = /* @__PURE__ */ Ae(Vl, [["__scopeId", "data-v-422d5210"]]), Tl = Object.freeze({}), bt = [bl, Ye, kl, Fl];
2814
+ }), Tl = /* @__PURE__ */ Ae(Fl, [["__scopeId", "data-v-422d5210"]]), Ml = Object.freeze({}), bt = [$l, Ye, Cl, Tl];
2813
2815
  let Ke = {};
2814
- const Ul = {
2816
+ const Rl = {
2815
2817
  install: (m, f = {}) => {
2816
- Ke = Object.freeze({ ...Tl, ...f }), bt.forEach((t) => {
2818
+ Ke = Object.freeze({ ...Ml, ...f }), bt.forEach((t) => {
2817
2819
  m.component(t.name, t);
2818
2820
  }), m.provide("options", Ke), m.config.globalProperties.$openModal = et;
2819
2821
  }
2820
- }, Ml = (m) => ({ dialog: wt, drawer: _t })[m] || null, et = (m = {}, f = "dialog") => {
2822
+ }, ql = (m) => ({ dialog: wt, drawer: _t })[m] || null, et = (m = {}, f = "dialog") => {
2821
2823
  if (typeof document > "u") return () => {
2822
2824
  };
2823
2825
  const t = document.createElement("div");
2824
2826
  let e = () => {
2825
2827
  };
2826
- const a = Ml(f);
2828
+ const a = ql(f);
2827
2829
  if (!a) return () => {
2828
2830
  };
2829
- const v = ye(!0), F = Ft({
2831
+ const v = ye(!0), F = Tt({
2830
2832
  setup() {
2831
2833
  return e = () => {
2832
2834
  v.value = !1, setTimeout(() => {
@@ -2850,7 +2852,7 @@ const Ul = {
2850
2852
  });
2851
2853
  return bt.forEach((T) => {
2852
2854
  F.component(T.name, T);
2853
- }), F.provide("options", Ke), F.use(Et, { locale: St }), document.body.appendChild(t), F.mount(t), e;
2855
+ }), F.provide("options", Ke), F.use(Et, { locale: Ot }), document.body.appendChild(t), F.mount(t), e;
2854
2856
  };
2855
2857
  function $t(m, f = window.innerWidth) {
2856
2858
  if (typeof m == "number")
@@ -2890,12 +2892,12 @@ function _e(m, f = (t, e) => f(t, e)) {
2890
2892
  m.hasOwnProperty(e) && f(e, m[e]) && (t[e] = m[e]);
2891
2893
  return t;
2892
2894
  }
2893
- function ql(m, f, t = "value", e = "label", a = "children") {
2895
+ function Sl(m, f, t = "value", e = "label", a = "children") {
2894
2896
  for (const v of m) {
2895
2897
  if (v[t] === f)
2896
2898
  return v[e];
2897
2899
  if (v[a] && v[a].length > 0) {
2898
- const F = ql(v[a], f, t, e, a);
2900
+ const F = Sl(v[a], f, t, e, a);
2899
2901
  if (F)
2900
2902
  return F;
2901
2903
  }
@@ -2920,7 +2922,7 @@ function tt(m) {
2920
2922
  }
2921
2923
  return a + v.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
2922
2924
  }
2923
- function Sl(m) {
2925
+ function Ol(m) {
2924
2926
  if (typeof m != "number")
2925
2927
  return "0.00";
2926
2928
  const f = m.toFixed(2), [t, e] = f.split(".");
@@ -2958,10 +2960,10 @@ const fe = {
2958
2960
  export {
2959
2961
  fe as CT,
2960
2962
  $t as convertToPx,
2961
- Ul as default,
2963
+ Rl as default,
2962
2964
  _e as filterObject,
2963
- ql as findTreeLabelByValue,
2964
- Sl as formatAmount,
2965
+ Sl as findTreeLabelByValue,
2966
+ Ol as formatAmount,
2965
2967
  $e as mergeObjects,
2966
2968
  tt as moneyToChinese,
2967
2969
  et as openModal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-2024-ui",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 and Element Plus based plugin",