vue-2024-ui 0.0.62 → 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.
- package/dist/index.es.js +95 -90
- 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
|
|
3
|
-
import { FullScreen as
|
|
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
|
|
6
|
-
var
|
|
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
|
-
},
|
|
184
|
-
function
|
|
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
|
-
})(
|
|
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
|
|
464
|
-
const Je = /* @__PURE__ */
|
|
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
|
-
},
|
|
467
|
+
}, Ut = {
|
|
468
468
|
key: 20,
|
|
469
469
|
style: { position: "relative" }
|
|
470
|
-
},
|
|
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
|
-
|
|
484
|
+
kt(() => {
|
|
485
|
+
q.value = u;
|
|
486
|
+
});
|
|
485
487
|
});
|
|
486
488
|
}, ne = async (V = "options") => {
|
|
487
489
|
try {
|
|
@@ -516,11 +518,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
516
518
|
}
|
|
517
519
|
})();
|
|
518
520
|
}), ct(() => t.formInfo, () => {
|
|
519
|
-
typeof e.getDicts == "function"
|
|
521
|
+
if (typeof e.getDicts == "function") {
|
|
522
|
+
if (e != null && e.multiple) return;
|
|
523
|
+
ne();
|
|
524
|
+
}
|
|
520
525
|
}, { deep: !0 }), (V, u) => {
|
|
521
526
|
var X, oe;
|
|
522
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");
|
|
523
|
-
return s(), B("div",
|
|
528
|
+
return s(), B("div", It, [
|
|
524
529
|
o(v) == o(fe).RADIO ? (s(), S(K, x({
|
|
525
530
|
key: 0,
|
|
526
531
|
modelValue: f.value,
|
|
@@ -783,7 +788,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
783
788
|
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
784
789
|
])
|
|
785
790
|
}))
|
|
786
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).MONEY ? (s(), B("div",
|
|
791
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).MONEY ? (s(), B("div", Ut, [
|
|
787
792
|
G(P, x({
|
|
788
793
|
modelValue: f.value,
|
|
789
794
|
"onUpdate:modelValue": u[19] || (u[19] = (n) => f.value = n),
|
|
@@ -797,7 +802,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
797
802
|
Q("div", {
|
|
798
803
|
title: o(tt)(f.value),
|
|
799
804
|
style: { "font-size": "10px", display: "block", width: "120px", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
800
|
-
}, pe(o(tt)(f.value)), 9,
|
|
805
|
+
}, pe(o(tt)(f.value)), 9, Rt)
|
|
801
806
|
]),
|
|
802
807
|
key: "0"
|
|
803
808
|
} : void 0,
|
|
@@ -970,7 +975,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
970
975
|
};
|
|
971
976
|
Ne(() => {
|
|
972
977
|
ne();
|
|
973
|
-
}),
|
|
978
|
+
}), Ct(() => {
|
|
974
979
|
a.value = null;
|
|
975
980
|
});
|
|
976
981
|
const ne = () => {
|
|
@@ -1274,10 +1279,10 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1274
1279
|
for (const [e, a] of f)
|
|
1275
1280
|
t[e] = a;
|
|
1276
1281
|
return t;
|
|
1277
|
-
},
|
|
1282
|
+
}, jt = {
|
|
1278
1283
|
key: 0,
|
|
1279
1284
|
class: "outer"
|
|
1280
|
-
},
|
|
1285
|
+
}, Nt = { class: "inner" }, Lt = {
|
|
1281
1286
|
__name: "g-query",
|
|
1282
1287
|
props: {
|
|
1283
1288
|
modelValue: { required: !0 },
|
|
@@ -1496,15 +1501,15 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1496
1501
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1497
1502
|
], 64))
|
|
1498
1503
|
], 4)) : ve("", !0),
|
|
1499
|
-
G(
|
|
1504
|
+
G(Dt, {
|
|
1500
1505
|
duration: 300,
|
|
1501
1506
|
name: "nested"
|
|
1502
1507
|
}, {
|
|
1503
1508
|
default: g(() => {
|
|
1504
1509
|
var w, M, P;
|
|
1505
1510
|
return [
|
|
1506
|
-
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",
|
|
1507
|
-
Q("div",
|
|
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, [
|
|
1508
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)))), {
|
|
1509
1514
|
default: g(() => [
|
|
1510
1515
|
(s(), S(qe(z({ slots: u.$slots }, !0))))
|
|
@@ -1577,10 +1582,10 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1577
1582
|
], 4);
|
|
1578
1583
|
};
|
|
1579
1584
|
}
|
|
1580
|
-
},
|
|
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 = {
|
|
1581
1586
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1582
1587
|
id: "excelSortEl"
|
|
1583
|
-
},
|
|
1588
|
+
}, Gt = ["textContent"], Qt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Xt = {
|
|
1584
1589
|
__name: "check-excel-item",
|
|
1585
1590
|
props: {
|
|
1586
1591
|
items: Array,
|
|
@@ -1618,14 +1623,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1618
1623
|
console.log(_);
|
|
1619
1624
|
}
|
|
1620
1625
|
}), E = q;
|
|
1621
|
-
|
|
1626
|
+
Vt(() => {
|
|
1622
1627
|
E && E.destroy();
|
|
1623
1628
|
});
|
|
1624
1629
|
}), (q, E) => {
|
|
1625
1630
|
const _ = R("el-divider"), z = R("el-alert"), ne = R("el-checkbox"), V = R("el-button");
|
|
1626
|
-
return s(), B("div",
|
|
1627
|
-
Q("div",
|
|
1628
|
-
Q("div",
|
|
1631
|
+
return s(), B("div", zt, [
|
|
1632
|
+
Q("div", Ht, [
|
|
1633
|
+
Q("div", Yt, [
|
|
1629
1634
|
Q("a", {
|
|
1630
1635
|
onClick: v,
|
|
1631
1636
|
style: { cursor: "pointer" }
|
|
@@ -1644,7 +1649,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1644
1649
|
style: { "margin-bottom": "10px" }
|
|
1645
1650
|
}),
|
|
1646
1651
|
E[0] || (E[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1647
|
-
Q("div",
|
|
1652
|
+
Q("div", Wt, [
|
|
1648
1653
|
(s(!0), B(W, null, U(a.value, (u) => (s(), S(ne, {
|
|
1649
1654
|
class: "check-box-hover",
|
|
1650
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" },
|
|
@@ -1658,13 +1663,13 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1658
1663
|
Q("span", {
|
|
1659
1664
|
textContent: pe(u.label),
|
|
1660
1665
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1661
|
-
}, null, 8,
|
|
1666
|
+
}, null, 8, Gt)
|
|
1662
1667
|
]),
|
|
1663
1668
|
_: 2
|
|
1664
1669
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
1665
1670
|
])
|
|
1666
1671
|
]),
|
|
1667
|
-
Q("div",
|
|
1672
|
+
Q("div", Qt, [
|
|
1668
1673
|
G(V, {
|
|
1669
1674
|
type: "primary",
|
|
1670
1675
|
onClick: T,
|
|
@@ -1679,7 +1684,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1679
1684
|
]);
|
|
1680
1685
|
};
|
|
1681
1686
|
}
|
|
1682
|
-
},
|
|
1687
|
+
}, Jt = /* @__PURE__ */ Ae(Xt, [["__scopeId", "data-v-51dfb7ef"]]), Ve = new St("gyc");
|
|
1683
1688
|
Ve.version(1).stores({
|
|
1684
1689
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1685
1690
|
tableList: "++id,name"
|
|
@@ -1693,10 +1698,10 @@ async function Re(m, f, t, e = {}) {
|
|
|
1693
1698
|
return await Ve.tableInfo.add({ user: m, page: f, key: t, ...v }), "add success";
|
|
1694
1699
|
}
|
|
1695
1700
|
}
|
|
1696
|
-
async function
|
|
1701
|
+
async function Zt(m, f) {
|
|
1697
1702
|
return await Ve.tableInfo.where({ user: m, page: f }).toArray();
|
|
1698
1703
|
}
|
|
1699
|
-
async function
|
|
1704
|
+
async function Kt(m, f) {
|
|
1700
1705
|
try {
|
|
1701
1706
|
const t = await Ve.tableInfo.where({ user: m, page: f }).delete();
|
|
1702
1707
|
return console.log("删除了" + t + "条数据"), t;
|
|
@@ -1704,19 +1709,19 @@ async function Zt(m, f) {
|
|
|
1704
1709
|
throw console.error("删除表格项设置信息时出错:", t), t;
|
|
1705
1710
|
}
|
|
1706
1711
|
}
|
|
1707
|
-
async function
|
|
1712
|
+
async function el(m) {
|
|
1708
1713
|
return await Ve.tableList.where({ name: m }).first();
|
|
1709
1714
|
}
|
|
1710
|
-
async function
|
|
1715
|
+
async function tl(m) {
|
|
1711
1716
|
return typeof m == "string" && (m = { name: m }), await Ve.tableList.add(m), "add success";
|
|
1712
1717
|
}
|
|
1713
|
-
const
|
|
1718
|
+
const ll = {
|
|
1714
1719
|
style: { margin: "10px" },
|
|
1715
1720
|
class: "allcheck"
|
|
1716
|
-
},
|
|
1721
|
+
}, ol = {
|
|
1717
1722
|
id: "cols",
|
|
1718
1723
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
1719
|
-
},
|
|
1724
|
+
}, rl = ["textContent"], al = {
|
|
1720
1725
|
__name: "columns-setting",
|
|
1721
1726
|
props: /* @__PURE__ */ Se({
|
|
1722
1727
|
name: {
|
|
@@ -1806,7 +1811,7 @@ const tl = {
|
|
|
1806
1811
|
cancelButtonText: "取消",
|
|
1807
1812
|
type: "warning"
|
|
1808
1813
|
}).then(() => {
|
|
1809
|
-
|
|
1814
|
+
Kt(e.value.table.user, f.name).then((E) => {
|
|
1810
1815
|
console.log(E), window.location.reload();
|
|
1811
1816
|
}).catch((E) => {
|
|
1812
1817
|
console.error("复位操作出错:", E), we({
|
|
@@ -1828,7 +1833,7 @@ const tl = {
|
|
|
1828
1833
|
}), (E, _) => {
|
|
1829
1834
|
const z = R("el-divider"), ne = R("el-alert"), V = R("el-checkbox");
|
|
1830
1835
|
return s(), B("div", null, [
|
|
1831
|
-
Q("div",
|
|
1836
|
+
Q("div", ll, [
|
|
1832
1837
|
Q("a", { onClick: F }, "全选"),
|
|
1833
1838
|
G(z, { direction: "vertical" }),
|
|
1834
1839
|
Q("a", { onClick: T }, "全不选"),
|
|
@@ -1843,7 +1848,7 @@ const tl = {
|
|
|
1843
1848
|
style: { "margin-bottom": "10px" }
|
|
1844
1849
|
}),
|
|
1845
1850
|
Q("div", null, [
|
|
1846
|
-
Q("div",
|
|
1851
|
+
Q("div", ol, [
|
|
1847
1852
|
(s(!0), B(W, null, U(t.value, (u) => (s(), S(V, {
|
|
1848
1853
|
modelValue: u.showCol,
|
|
1849
1854
|
"onUpdate:modelValue": (A) => u.showCol = A,
|
|
@@ -1860,7 +1865,7 @@ const tl = {
|
|
|
1860
1865
|
Q("span", {
|
|
1861
1866
|
textContent: pe(u.label),
|
|
1862
1867
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1863
|
-
}, null, 8,
|
|
1868
|
+
}, null, 8, rl)
|
|
1864
1869
|
]),
|
|
1865
1870
|
_: 2
|
|
1866
1871
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -1869,13 +1874,13 @@ const tl = {
|
|
|
1869
1874
|
]);
|
|
1870
1875
|
};
|
|
1871
1876
|
}
|
|
1872
|
-
},
|
|
1877
|
+
}, ul = /* @__PURE__ */ Ae(al, [["__scopeId", "data-v-c423ede0"]]), nl = { class: "g-table-container" }, sl = {
|
|
1873
1878
|
key: 0,
|
|
1874
1879
|
class: "table-query-container"
|
|
1875
|
-
},
|
|
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 = {
|
|
1876
1881
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
1877
1882
|
id: "table-form"
|
|
1878
|
-
},
|
|
1883
|
+
}, yl = { key: 1 }, hl = { style: { display: "flex" } }, gl = { style: { display: "flex", flex: "1" } }, bl = /* @__PURE__ */ Object.assign({
|
|
1879
1884
|
name: "g-table",
|
|
1880
1885
|
inheritAttrs: !1
|
|
1881
1886
|
}, {
|
|
@@ -2068,7 +2073,7 @@ const tl = {
|
|
|
2068
2073
|
};
|
|
2069
2074
|
h = l.format ? Je(h).format(l.format) : Je(h).format(J[l.type]);
|
|
2070
2075
|
}
|
|
2071
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, h = `<span title="${tt(parseFloat(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;
|
|
2072
2077
|
}, ce = (l) => {
|
|
2073
2078
|
v.value = l.value;
|
|
2074
2079
|
}, ie = (l) => {
|
|
@@ -2122,7 +2127,7 @@ const tl = {
|
|
|
2122
2127
|
size: 480,
|
|
2123
2128
|
width: 600,
|
|
2124
2129
|
slots: {
|
|
2125
|
-
default: () => De(
|
|
2130
|
+
default: () => De(Jt, {
|
|
2126
2131
|
items: r,
|
|
2127
2132
|
commitText: l.control.download.excelLabel,
|
|
2128
2133
|
onExcel: (J, Z) => {
|
|
@@ -2139,7 +2144,7 @@ const tl = {
|
|
|
2139
2144
|
size: 470,
|
|
2140
2145
|
width: 600,
|
|
2141
2146
|
slots: {
|
|
2142
|
-
default: () => De(
|
|
2147
|
+
default: () => De(ul, {
|
|
2143
2148
|
modelValue: l,
|
|
2144
2149
|
name: _.name
|
|
2145
2150
|
})
|
|
@@ -2210,7 +2215,7 @@ const tl = {
|
|
|
2210
2215
|
var J, Z;
|
|
2211
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;
|
|
2212
2217
|
};
|
|
2213
|
-
return
|
|
2218
|
+
return Ft(() => {
|
|
2214
2219
|
e.value.table.load();
|
|
2215
2220
|
}), Ne(async () => {
|
|
2216
2221
|
var l;
|
|
@@ -2223,19 +2228,19 @@ const tl = {
|
|
|
2223
2228
|
return;
|
|
2224
2229
|
}
|
|
2225
2230
|
try {
|
|
2226
|
-
let r = await
|
|
2231
|
+
let r = await el(_.name);
|
|
2227
2232
|
if (r) {
|
|
2228
2233
|
if (_.name !== r.name) {
|
|
2229
2234
|
we.error("此表格已经存在,请换一个名字!");
|
|
2230
2235
|
return;
|
|
2231
2236
|
}
|
|
2232
2237
|
} else
|
|
2233
|
-
await
|
|
2238
|
+
await tl({ name: _.name });
|
|
2234
2239
|
} catch (r) {
|
|
2235
2240
|
console.error("检查表格名称时出现错误:", r), we.error("检查表格名称时出现错误,请稍后重试。");
|
|
2236
2241
|
}
|
|
2237
2242
|
try {
|
|
2238
|
-
const r = await
|
|
2243
|
+
const r = await Zt(e.value.table.user, _.name);
|
|
2239
2244
|
r && r.forEach((h) => {
|
|
2240
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);
|
|
2241
2246
|
});
|
|
@@ -2246,10 +2251,10 @@ const tl = {
|
|
|
2246
2251
|
var ot, rt, at, ut, nt;
|
|
2247
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");
|
|
2248
2253
|
return s(), B(W, null, [
|
|
2249
|
-
Q("div",
|
|
2250
|
-
((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (s(), B("div",
|
|
2254
|
+
Q("div", nl, [
|
|
2255
|
+
((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (s(), B("div", sl, [
|
|
2251
2256
|
p(l.$slots, "query", {}, () => [
|
|
2252
|
-
G(
|
|
2257
|
+
G(Pt, {
|
|
2253
2258
|
modelValue: e.value,
|
|
2254
2259
|
"onUpdate:modelValue": r[0] || (r[0] = (N) => e.value = N),
|
|
2255
2260
|
onQuery: ie,
|
|
@@ -2320,7 +2325,7 @@ const tl = {
|
|
|
2320
2325
|
]), 1032, ["modelValue"])
|
|
2321
2326
|
], !0)
|
|
2322
2327
|
])) : ve("", !0),
|
|
2323
|
-
Q("div",
|
|
2328
|
+
Q("div", il, [
|
|
2324
2329
|
G(J, je(Ze({ ...l.$attrs, ...o(_e)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) })), {
|
|
2325
2330
|
append: g(() => [
|
|
2326
2331
|
p(l.$slots, "append", {}, void 0, !0)
|
|
@@ -2387,7 +2392,7 @@ const tl = {
|
|
|
2387
2392
|
style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
|
|
2388
2393
|
src: N.value,
|
|
2389
2394
|
ref_for: !0
|
|
2390
|
-
}, N), null, 16,
|
|
2395
|
+
}, N), null, 16, dl)
|
|
2391
2396
|
], !0)
|
|
2392
2397
|
]),
|
|
2393
2398
|
key: "0"
|
|
@@ -2544,7 +2549,7 @@ const tl = {
|
|
|
2544
2549
|
}, () => [
|
|
2545
2550
|
Q("div", {
|
|
2546
2551
|
innerHTML: se(N, Y.formatter(C, Y, C[ue], le))
|
|
2547
|
-
}, null, 8,
|
|
2552
|
+
}, null, 8, fl)
|
|
2548
2553
|
], !0)
|
|
2549
2554
|
]),
|
|
2550
2555
|
key: "3"
|
|
@@ -2569,7 +2574,7 @@ const tl = {
|
|
|
2569
2574
|
], !0)
|
|
2570
2575
|
])
|
|
2571
2576
|
]),
|
|
2572
|
-
e.value.dialog.mode == "dialog" && F.value ? (s(), B("div",
|
|
2577
|
+
e.value.dialog.mode == "dialog" && F.value ? (s(), B("div", cl, [
|
|
2573
2578
|
G(Me, x({
|
|
2574
2579
|
modelValue: F.value,
|
|
2575
2580
|
"onUpdate:modelValue": r[8] || (r[8] = (N) => F.value = N),
|
|
@@ -2580,8 +2585,8 @@ const tl = {
|
|
|
2580
2585
|
header: g(() => {
|
|
2581
2586
|
var N, ue, C, Y;
|
|
2582
2587
|
return [
|
|
2583
|
-
Q("div",
|
|
2584
|
-
Q("div",
|
|
2588
|
+
Q("div", ml, [
|
|
2589
|
+
Q("div", pl, [
|
|
2585
2590
|
p(l.$slots, "f-header", {}, () => [
|
|
2586
2591
|
Q("div", null, pe(e.value.dialog.title), 1)
|
|
2587
2592
|
], !0)
|
|
@@ -2595,7 +2600,7 @@ const tl = {
|
|
|
2595
2600
|
}, [
|
|
2596
2601
|
G(Ee, null, {
|
|
2597
2602
|
default: g(() => [
|
|
2598
|
-
G(o(
|
|
2603
|
+
G(o(Mt))
|
|
2599
2604
|
]),
|
|
2600
2605
|
_: 1
|
|
2601
2606
|
})
|
|
@@ -2609,7 +2614,7 @@ const tl = {
|
|
|
2609
2614
|
}, [
|
|
2610
2615
|
G(Ee, null, {
|
|
2611
2616
|
default: g(() => [
|
|
2612
|
-
G(o(
|
|
2617
|
+
G(o(qt))
|
|
2613
2618
|
]),
|
|
2614
2619
|
_: 1
|
|
2615
2620
|
})
|
|
@@ -2618,7 +2623,7 @@ const tl = {
|
|
|
2618
2623
|
];
|
|
2619
2624
|
}),
|
|
2620
2625
|
default: g(() => [
|
|
2621
|
-
Q("div",
|
|
2626
|
+
Q("div", vl, [
|
|
2622
2627
|
p(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2623
2628
|
G(Ye, {
|
|
2624
2629
|
modelValue: e.value,
|
|
@@ -2639,14 +2644,14 @@ const tl = {
|
|
|
2639
2644
|
_: 3
|
|
2640
2645
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2641
2646
|
])) : ve("", !0),
|
|
2642
|
-
e.value.dialog.mode == "drawer" && F.value ? (s(), B("div",
|
|
2647
|
+
e.value.dialog.mode == "drawer" && F.value ? (s(), B("div", yl, [
|
|
2643
2648
|
G(Le, x({
|
|
2644
2649
|
modelValue: F.value,
|
|
2645
2650
|
"onUpdate:modelValue": r[10] || (r[10] = (N) => F.value = N)
|
|
2646
2651
|
}, o(_e)(e.value.dialog, (N) => !["width"].includes(N))), {
|
|
2647
2652
|
header: g(() => [
|
|
2648
|
-
Q("div",
|
|
2649
|
-
Q("div",
|
|
2653
|
+
Q("div", hl, [
|
|
2654
|
+
Q("div", gl, [
|
|
2650
2655
|
p(l.$slots, "f-header", {}, () => [
|
|
2651
2656
|
Q("div", null, pe(e.value.dialog.title), 1)
|
|
2652
2657
|
], !0)
|
|
@@ -2684,7 +2689,7 @@ const tl = {
|
|
|
2684
2689
|
], 64);
|
|
2685
2690
|
};
|
|
2686
2691
|
}
|
|
2687
|
-
}),
|
|
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({
|
|
2688
2693
|
name: "g-tree-table",
|
|
2689
2694
|
inheritAttrs: !1
|
|
2690
2695
|
}, {
|
|
@@ -2705,7 +2710,7 @@ const tl = {
|
|
|
2705
2710
|
q.value.filter(A);
|
|
2706
2711
|
}), (A, K) => {
|
|
2707
2712
|
const ee = R("el-input"), se = R("el-tree"), ce = R("g-table");
|
|
2708
|
-
return s(), B("div",
|
|
2713
|
+
return s(), B("div", El, [
|
|
2709
2714
|
Q("div", {
|
|
2710
2715
|
class: "g-tree-left",
|
|
2711
2716
|
style: Fe({ width: a.value })
|
|
@@ -2718,7 +2723,7 @@ const tl = {
|
|
|
2718
2723
|
placeholder: "输入节点查询",
|
|
2719
2724
|
clearable: ""
|
|
2720
2725
|
}, null, 8, ["modelValue"])) : ve("", !0),
|
|
2721
|
-
Q("div",
|
|
2726
|
+
Q("div", wl, [
|
|
2722
2727
|
G(se, x({
|
|
2723
2728
|
style: { width: a.value },
|
|
2724
2729
|
"filter-node-method": E,
|
|
@@ -2746,7 +2751,7 @@ const tl = {
|
|
|
2746
2751
|
]), 1040, ["style"])
|
|
2747
2752
|
])
|
|
2748
2753
|
], 4),
|
|
2749
|
-
Q("div",
|
|
2754
|
+
Q("div", _l, [
|
|
2750
2755
|
G(ce, x({
|
|
2751
2756
|
modelValue: e.value,
|
|
2752
2757
|
"onUpdate:modelValue": K[1] || (K[1] = (ie) => e.value = ie)
|
|
@@ -2762,13 +2767,13 @@ const tl = {
|
|
|
2762
2767
|
]);
|
|
2763
2768
|
};
|
|
2764
2769
|
}
|
|
2765
|
-
}),
|
|
2770
|
+
}), Cl = /* @__PURE__ */ Ae(kl, [["__scopeId", "data-v-c07fe107"]]), Dl = {
|
|
2766
2771
|
key: 0,
|
|
2767
2772
|
class: "op-group"
|
|
2768
|
-
},
|
|
2773
|
+
}, Vl = {
|
|
2769
2774
|
key: 1,
|
|
2770
2775
|
class: "op-items"
|
|
2771
|
-
}, dt = "100px",
|
|
2776
|
+
}, dt = "100px", Fl = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
2772
2777
|
__name: "g-select-option",
|
|
2773
2778
|
props: {
|
|
2774
2779
|
columns: {
|
|
@@ -2786,7 +2791,7 @@ const tl = {
|
|
|
2786
2791
|
},
|
|
2787
2792
|
setup(m) {
|
|
2788
2793
|
const f = m;
|
|
2789
|
-
return (t, e) => f.title ? (s(), B("div",
|
|
2794
|
+
return (t, e) => f.title ? (s(), B("div", Dl, [
|
|
2790
2795
|
(s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
|
|
2791
2796
|
style: Fe({ width: (a == null ? void 0 : a.width) || dt, ...a == null ? void 0 : a.titleStyle }),
|
|
2792
2797
|
key: a.key
|
|
@@ -2795,7 +2800,7 @@ const tl = {
|
|
|
2795
2800
|
ge(pe(a.label), 1)
|
|
2796
2801
|
], !0)
|
|
2797
2802
|
], 4))), 128))
|
|
2798
|
-
])) : (s(), B("div",
|
|
2803
|
+
])) : (s(), B("div", Vl, [
|
|
2799
2804
|
(s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
|
|
2800
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 }),
|
|
2801
2806
|
key: a.key
|
|
@@ -2806,24 +2811,24 @@ const tl = {
|
|
|
2806
2811
|
], 4))), 128))
|
|
2807
2812
|
]));
|
|
2808
2813
|
}
|
|
2809
|
-
}),
|
|
2814
|
+
}), Tl = /* @__PURE__ */ Ae(Fl, [["__scopeId", "data-v-422d5210"]]), Ml = Object.freeze({}), bt = [$l, Ye, Cl, Tl];
|
|
2810
2815
|
let Ke = {};
|
|
2811
|
-
const
|
|
2816
|
+
const Rl = {
|
|
2812
2817
|
install: (m, f = {}) => {
|
|
2813
|
-
Ke = Object.freeze({ ...
|
|
2818
|
+
Ke = Object.freeze({ ...Ml, ...f }), bt.forEach((t) => {
|
|
2814
2819
|
m.component(t.name, t);
|
|
2815
2820
|
}), m.provide("options", Ke), m.config.globalProperties.$openModal = et;
|
|
2816
2821
|
}
|
|
2817
|
-
},
|
|
2822
|
+
}, ql = (m) => ({ dialog: wt, drawer: _t })[m] || null, et = (m = {}, f = "dialog") => {
|
|
2818
2823
|
if (typeof document > "u") return () => {
|
|
2819
2824
|
};
|
|
2820
2825
|
const t = document.createElement("div");
|
|
2821
2826
|
let e = () => {
|
|
2822
2827
|
};
|
|
2823
|
-
const a =
|
|
2828
|
+
const a = ql(f);
|
|
2824
2829
|
if (!a) return () => {
|
|
2825
2830
|
};
|
|
2826
|
-
const v = ye(!0), F =
|
|
2831
|
+
const v = ye(!0), F = Tt({
|
|
2827
2832
|
setup() {
|
|
2828
2833
|
return e = () => {
|
|
2829
2834
|
v.value = !1, setTimeout(() => {
|
|
@@ -2847,7 +2852,7 @@ const Ul = {
|
|
|
2847
2852
|
});
|
|
2848
2853
|
return bt.forEach((T) => {
|
|
2849
2854
|
F.component(T.name, T);
|
|
2850
|
-
}), F.provide("options", Ke), F.use(Et, { locale:
|
|
2855
|
+
}), F.provide("options", Ke), F.use(Et, { locale: Ot }), document.body.appendChild(t), F.mount(t), e;
|
|
2851
2856
|
};
|
|
2852
2857
|
function $t(m, f = window.innerWidth) {
|
|
2853
2858
|
if (typeof m == "number")
|
|
@@ -2887,12 +2892,12 @@ function _e(m, f = (t, e) => f(t, e)) {
|
|
|
2887
2892
|
m.hasOwnProperty(e) && f(e, m[e]) && (t[e] = m[e]);
|
|
2888
2893
|
return t;
|
|
2889
2894
|
}
|
|
2890
|
-
function
|
|
2895
|
+
function Sl(m, f, t = "value", e = "label", a = "children") {
|
|
2891
2896
|
for (const v of m) {
|
|
2892
2897
|
if (v[t] === f)
|
|
2893
2898
|
return v[e];
|
|
2894
2899
|
if (v[a] && v[a].length > 0) {
|
|
2895
|
-
const F =
|
|
2900
|
+
const F = Sl(v[a], f, t, e, a);
|
|
2896
2901
|
if (F)
|
|
2897
2902
|
return F;
|
|
2898
2903
|
}
|
|
@@ -2917,7 +2922,7 @@ function tt(m) {
|
|
|
2917
2922
|
}
|
|
2918
2923
|
return a + v.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
2919
2924
|
}
|
|
2920
|
-
function
|
|
2925
|
+
function Ol(m) {
|
|
2921
2926
|
if (typeof m != "number")
|
|
2922
2927
|
return "0.00";
|
|
2923
2928
|
const f = m.toFixed(2), [t, e] = f.split(".");
|
|
@@ -2955,10 +2960,10 @@ const fe = {
|
|
|
2955
2960
|
export {
|
|
2956
2961
|
fe as CT,
|
|
2957
2962
|
$t as convertToPx,
|
|
2958
|
-
|
|
2963
|
+
Rl as default,
|
|
2959
2964
|
_e as filterObject,
|
|
2960
|
-
|
|
2961
|
-
|
|
2965
|
+
Sl as findTreeLabelByValue,
|
|
2966
|
+
Ol as formatAmount,
|
|
2962
2967
|
$e as mergeObjects,
|
|
2963
2968
|
tt as moneyToChinese,
|
|
2964
2969
|
et as openModal
|