@gonsin/gview 2.1.20 → 2.1.21
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.mjs +510 -497
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -38,7 +38,7 @@ function yu(t, u) {
|
|
|
38
38
|
function ku(t) {
|
|
39
39
|
return yu(t, "Function");
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const $a = (t) => typeof t < "u", Tn = (t) => !$a(t), co = (t) => t !== null && yu(t, "Object");
|
|
42
42
|
function lM(t) {
|
|
43
43
|
return yu(t, "Date");
|
|
44
44
|
}
|
|
@@ -48,7 +48,7 @@ function rM(t) {
|
|
|
48
48
|
function MM(t) {
|
|
49
49
|
return yu(t, "AsyncFunction");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Va(t) {
|
|
52
52
|
return yu(t, "Promise") && co(t) && ku(t.then) && ku(t.catch);
|
|
53
53
|
}
|
|
54
54
|
function sM(t) {
|
|
@@ -662,7 +662,7 @@ function Mi(t, u) {
|
|
|
662
662
|
}
|
|
663
663
|
return t.forEach((a) => n(a)), e;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Vu(t) {
|
|
666
666
|
const u = t.querySelector(".t-input__inner");
|
|
667
667
|
if (u) {
|
|
668
668
|
const e = u.clientWidth, o = document.createElement("span");
|
|
@@ -1296,7 +1296,7 @@ const No = vu("column", {
|
|
|
1296
1296
|
const { tabMenuList: P } = i;
|
|
1297
1297
|
if (P.length > 0) {
|
|
1298
1298
|
i.subtractCurrentTabMenuItem({ path: W, itemIdx: h });
|
|
1299
|
-
const L = P.find((O,
|
|
1299
|
+
const L = P.find((O, $) => $ == h + 1) ?? P.find((O, $) => $ == h - 1);
|
|
1300
1300
|
if (L) {
|
|
1301
1301
|
const O = decodeURIComponent(n.fullPath);
|
|
1302
1302
|
W === O && o.push({
|
|
@@ -1345,7 +1345,7 @@ const No = vu("column", {
|
|
|
1345
1345
|
}, 0) > E.value - 100) {
|
|
1346
1346
|
let P = 0, L = -1;
|
|
1347
1347
|
for (const O of W) {
|
|
1348
|
-
const
|
|
1348
|
+
const $ = parseInt(getComputedStyle(O).paddingLeft) + parseInt(getComputedStyle(O).paddingRight), H = (O.clientWidth ?? 0) + $;
|
|
1349
1349
|
if (P + H <= E.value - 100)
|
|
1350
1350
|
P += H, L++;
|
|
1351
1351
|
else
|
|
@@ -1355,9 +1355,9 @@ const No = vu("column", {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
1357
|
return l.value.length;
|
|
1358
|
-
}), f = k(() => c.value > 0 ? l.value.slice(0, c.value) : []),
|
|
1358
|
+
}), f = k(() => c.value > 0 ? l.value.slice(0, c.value) : []), V = k(
|
|
1359
1359
|
() => c.value > 0 ? l.value.slice(c.value) : l.value
|
|
1360
|
-
),
|
|
1360
|
+
), I = k(() => V.value.map((W) => W.path)), B = F(null), j = F(150);
|
|
1361
1361
|
F(0);
|
|
1362
1362
|
const Q = F(!1);
|
|
1363
1363
|
function v(W) {
|
|
@@ -1366,7 +1366,7 @@ const No = vu("column", {
|
|
|
1366
1366
|
});
|
|
1367
1367
|
}
|
|
1368
1368
|
return (W, h) => {
|
|
1369
|
-
const P = G("t-menu-item"), L = G("t-head-menu"), O = G("t-dropdown-item"),
|
|
1369
|
+
const P = G("t-menu-item"), L = G("t-head-menu"), O = G("t-dropdown-item"), $ = G("t-dropdown-menu"), H = G("t-dropdown"), te = G("t-divider"), je = G("t-button"), Se = G("t-submenu");
|
|
1370
1370
|
return g(), w(L, {
|
|
1371
1371
|
ref_key: "GLayoutHeaderRef",
|
|
1372
1372
|
ref: b,
|
|
@@ -1418,7 +1418,7 @@ const No = vu("column", {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
}, {
|
|
1420
1420
|
dropdown: z(() => [
|
|
1421
|
-
U(
|
|
1421
|
+
U($, null, {
|
|
1422
1422
|
default: z(() => [
|
|
1423
1423
|
U(O, {
|
|
1424
1424
|
onClick: h[0] || (h[0] = () => A({ path: "/HomePage" }))
|
|
@@ -1465,7 +1465,7 @@ const No = vu("column", {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
}, {
|
|
1467
1467
|
dropdown: z(() => [
|
|
1468
|
-
U(
|
|
1468
|
+
U($, null, {
|
|
1469
1469
|
default: z(() => [
|
|
1470
1470
|
U(O, {
|
|
1471
1471
|
onClick: () => A(ae)
|
|
@@ -1561,23 +1561,23 @@ const No = vu("column", {
|
|
|
1561
1561
|
]),
|
|
1562
1562
|
_: 2
|
|
1563
1563
|
}, 1032, ["popup-props"]))), 128)),
|
|
1564
|
-
|
|
1564
|
+
V.value && V.value.length ? (g(), w(Se, {
|
|
1565
1565
|
key: 0,
|
|
1566
1566
|
popupProps: {
|
|
1567
1567
|
trigger: "click",
|
|
1568
1568
|
overlayInnerClassName: `${e}--popup`,
|
|
1569
1569
|
overlayInnerStyle: {
|
|
1570
|
-
width: `${
|
|
1570
|
+
width: `${j.value}px`,
|
|
1571
1571
|
overflowY: "auto"
|
|
1572
1572
|
}
|
|
1573
1573
|
},
|
|
1574
|
-
value:
|
|
1574
|
+
value: I.value.includes(m.value) ? m.value : ""
|
|
1575
1575
|
}, {
|
|
1576
1576
|
title: z(() => [
|
|
1577
1577
|
U(T(ma))
|
|
1578
1578
|
]),
|
|
1579
1579
|
default: z(() => [
|
|
1580
|
-
(g(!0), R(Me, null, Ee(
|
|
1580
|
+
(g(!0), R(Me, null, Ee(V.value, (ae, De) => (g(), R("div", {
|
|
1581
1581
|
ref_for: !0,
|
|
1582
1582
|
ref_key: "omittedMenuRef",
|
|
1583
1583
|
ref: B,
|
|
@@ -1593,7 +1593,7 @@ const No = vu("column", {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
}, {
|
|
1595
1595
|
dropdown: z(() => [
|
|
1596
|
-
U(
|
|
1596
|
+
U($, null, {
|
|
1597
1597
|
default: z(() => [
|
|
1598
1598
|
U(O, {
|
|
1599
1599
|
onClick: () => A(ae, f.value.length + De - 1)
|
|
@@ -1762,21 +1762,21 @@ const _i = { render: Fi }, Pi = {
|
|
|
1762
1762
|
height: "24",
|
|
1763
1763
|
fill: "none",
|
|
1764
1764
|
viewBox: "0 0 48 48"
|
|
1765
|
-
},
|
|
1765
|
+
}, $i = /* @__PURE__ */ J("path", {
|
|
1766
1766
|
fill: "currentColor",
|
|
1767
1767
|
stroke: "currentColor",
|
|
1768
1768
|
"stroke-linejoin": "round",
|
|
1769
1769
|
"stroke-width": "4",
|
|
1770
1770
|
d: "m34 41 10-17L34 7H14L4 24l10 17h20Z"
|
|
1771
|
-
}, null, -1),
|
|
1771
|
+
}, null, -1), Vi = /* @__PURE__ */ J("path", {
|
|
1772
1772
|
fill: "var(--td-bg-color-container)",
|
|
1773
1773
|
stroke: "var(--td-bg-color-container)",
|
|
1774
1774
|
"stroke-linejoin": "round",
|
|
1775
1775
|
"stroke-width": "4",
|
|
1776
1776
|
d: "M24 29a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z"
|
|
1777
1777
|
}, null, -1), Ri = [
|
|
1778
|
-
|
|
1779
|
-
|
|
1778
|
+
$i,
|
|
1779
|
+
Vi
|
|
1780
1780
|
];
|
|
1781
1781
|
function Wi(t, u) {
|
|
1782
1782
|
return g(), R("svg", Pi, [...Ri]);
|
|
@@ -1815,7 +1815,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1815
1815
|
}, 500);
|
|
1816
1816
|
}
|
|
1817
1817
|
return (E, c) => {
|
|
1818
|
-
const f = G("t-button"),
|
|
1818
|
+
const f = G("t-button"), V = G("t-icon"), I = G("t-badge"), B = G("t-popup"), j = G("t-dropdown-item"), Q = G("t-dropdown-menu"), v = G("t-dropdown"), W = G("t-head-menu"), h = G("t-header");
|
|
1819
1819
|
return g(), w(h, {
|
|
1820
1820
|
class: Z(e),
|
|
1821
1821
|
onMouseleave: d
|
|
@@ -1867,7 +1867,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1867
1867
|
(g(!0), R(Me, null, Ee(T(i), (L, O) => (g(), R(Me, { key: O }, [
|
|
1868
1868
|
L != null && L.isPopup ? (g(), w(B, hu(Ae({ key: 0 }, L == null ? void 0 : L.popupProps)), {
|
|
1869
1869
|
default: z(() => [
|
|
1870
|
-
U(
|
|
1870
|
+
U(I, hu(Ju(L == null ? void 0 : L.badgeProps)), {
|
|
1871
1871
|
default: z(() => [
|
|
1872
1872
|
U(f, Ae({
|
|
1873
1873
|
theme: "default",
|
|
@@ -1879,7 +1879,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1879
1879
|
...L.buttonProps
|
|
1880
1880
|
}), {
|
|
1881
1881
|
icon: z(() => {
|
|
1882
|
-
var
|
|
1882
|
+
var $;
|
|
1883
1883
|
return [
|
|
1884
1884
|
L != null && L.iconSrc && (L == null ? void 0 : L.iconSrc) != "" ? (g(), R("span", {
|
|
1885
1885
|
key: 0,
|
|
@@ -1887,7 +1887,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1887
1887
|
style: Mu({
|
|
1888
1888
|
width: "20px",
|
|
1889
1889
|
height: "20px",
|
|
1890
|
-
...(
|
|
1890
|
+
...($ = L.buttonProps) != null && $.disabled ? {
|
|
1891
1891
|
background: `url(${L.iconDisableSrc ?? L.iconSrc}) no-repeat`
|
|
1892
1892
|
} : {
|
|
1893
1893
|
background: `url(${L.iconSrc}) no-repeat`
|
|
@@ -1898,7 +1898,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1898
1898
|
];
|
|
1899
1899
|
}),
|
|
1900
1900
|
default: z(() => [
|
|
1901
|
-
L != null && L.iconName && (L == null ? void 0 : L.iconName) != "" ? (g(), w(
|
|
1901
|
+
L != null && L.iconName && (L == null ? void 0 : L.iconName) != "" ? (g(), w(V, {
|
|
1902
1902
|
key: 0,
|
|
1903
1903
|
name: L.iconName
|
|
1904
1904
|
}, null, 8, ["name"])) : q("", !0),
|
|
@@ -1911,7 +1911,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1911
1911
|
}, 1040)
|
|
1912
1912
|
]),
|
|
1913
1913
|
_: 2
|
|
1914
|
-
}, 1040)) : (g(), w(
|
|
1914
|
+
}, 1040)) : (g(), w(I, hu(Ae({ key: 1 }, L == null ? void 0 : L.badgeProps)), {
|
|
1915
1915
|
default: z(() => [
|
|
1916
1916
|
U(f, Ae({
|
|
1917
1917
|
theme: "default",
|
|
@@ -1923,7 +1923,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1923
1923
|
...L.buttonProps
|
|
1924
1924
|
}), {
|
|
1925
1925
|
icon: z(() => {
|
|
1926
|
-
var
|
|
1926
|
+
var $;
|
|
1927
1927
|
return [
|
|
1928
1928
|
L != null && L.iconSrc && (L == null ? void 0 : L.iconSrc) != "" ? (g(), R("span", {
|
|
1929
1929
|
key: 0,
|
|
@@ -1931,7 +1931,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1931
1931
|
style: Mu({
|
|
1932
1932
|
width: "20px",
|
|
1933
1933
|
height: "20px",
|
|
1934
|
-
...(
|
|
1934
|
+
...($ = L.buttonProps) != null && $.disabled ? {
|
|
1935
1935
|
background: `url(${L.iconDisableSrc ?? L.iconSrc}) no-repeat`
|
|
1936
1936
|
} : {
|
|
1937
1937
|
background: `url(${L.iconSrc}) no-repeat`
|
|
@@ -1942,7 +1942,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1942
1942
|
];
|
|
1943
1943
|
}),
|
|
1944
1944
|
default: z(() => [
|
|
1945
|
-
L != null && L.iconName && (L == null ? void 0 : L.iconName) != "" ? (g(), w(
|
|
1945
|
+
L != null && L.iconName && (L == null ? void 0 : L.iconName) != "" ? (g(), w(V, {
|
|
1946
1946
|
key: 0,
|
|
1947
1947
|
name: L.iconName
|
|
1948
1948
|
}, null, 8, ["name"])) : q("", !0),
|
|
@@ -1963,7 +1963,7 @@ const pn = { render: Wi }, Gi = { class: "username" }, Hi = /* @__PURE__ */ ue({
|
|
|
1963
1963
|
dropdown: z(() => [
|
|
1964
1964
|
U(Q, null, {
|
|
1965
1965
|
default: z(() => [
|
|
1966
|
-
U(
|
|
1966
|
+
U(j, {
|
|
1967
1967
|
onClick: C,
|
|
1968
1968
|
title: T(u).t("退出登录")
|
|
1969
1969
|
}, {
|
|
@@ -2214,9 +2214,9 @@ const au = (t, u) => {
|
|
|
2214
2214
|
var C;
|
|
2215
2215
|
if (!D.value && s.value) {
|
|
2216
2216
|
const m = (C = s.value.$el) == null ? void 0 : C.querySelectorAll(".t-menu__content"), b = Array.from(m).map((E) => {
|
|
2217
|
-
var
|
|
2218
|
-
const c = parseInt(getComputedStyle(E.parentElement).paddingLeft), f = ((
|
|
2219
|
-
return E.clientWidth + c + f +
|
|
2217
|
+
var I, B;
|
|
2218
|
+
const c = parseInt(getComputedStyle(E.parentElement).paddingLeft), f = ((I = E == null ? void 0 : E.parentElement.querySelector(".t-icon")) == null ? void 0 : I.clientWidth) || 0, V = ((B = E == null ? void 0 : E.parentElement.querySelector(".t-fake-arrow")) == null ? void 0 : B.clientWidth) || 0;
|
|
2219
|
+
return E.clientWidth + c + f + V;
|
|
2220
2220
|
}).filter((E) => E > 0), d = Math.max(...b);
|
|
2221
2221
|
o.setSideMenuWidth(d + 50), o.sideMenuMaxWidth = M.value + 100;
|
|
2222
2222
|
}
|
|
@@ -2556,9 +2556,9 @@ const ol = /* @__PURE__ */ au(ul, [["render", tl]]), nl = /* @__PURE__ */ ue({
|
|
|
2556
2556
|
if (!((c = o.value) != null && c.$el))
|
|
2557
2557
|
return;
|
|
2558
2558
|
const d = o.value.$el.querySelectorAll(".t-menu__content"), E = Array.from(d).map((f) => {
|
|
2559
|
-
var
|
|
2560
|
-
const
|
|
2561
|
-
return f.clientWidth +
|
|
2559
|
+
var j, Q;
|
|
2560
|
+
const V = parseInt(getComputedStyle(f.parentElement).paddingLeft), I = ((j = f.parentElement.querySelector(".t-icon")) == null ? void 0 : j.clientWidth) || 0, B = ((Q = f.parentElement.querySelector(".t-fake-arrow")) == null ? void 0 : Q.clientWidth) || 0;
|
|
2561
|
+
return f.clientWidth + V + I + B + 30;
|
|
2562
2562
|
}).filter(Boolean);
|
|
2563
2563
|
M.value = Math.max(e.level === 1 ? 232 : 150, ...E);
|
|
2564
2564
|
}, 150), S = (d) => {
|
|
@@ -2587,14 +2587,14 @@ const ol = /* @__PURE__ */ au(ul, [["render", tl]]), nl = /* @__PURE__ */ ue({
|
|
|
2587
2587
|
}
|
|
2588
2588
|
});
|
|
2589
2589
|
return (d, E) => {
|
|
2590
|
-
const c = G("t-menu-item"), f = G("t-submenu"),
|
|
2590
|
+
const c = G("t-menu-item"), f = G("t-submenu"), V = G("t-menu"), I = G("t-drawer"), B = G("GLayoutSideHoverMenuItem", !0);
|
|
2591
2591
|
return g(), R(Me, null, [
|
|
2592
|
-
U(
|
|
2592
|
+
U(I, {
|
|
2593
2593
|
class: Z([s, m.value ? "" : "no-transition"]),
|
|
2594
2594
|
size: `${M.value}px`,
|
|
2595
2595
|
placement: "left",
|
|
2596
2596
|
visible: b.value,
|
|
2597
|
-
"onUpdate:visible": E[0] || (E[0] = (
|
|
2597
|
+
"onUpdate:visible": E[0] || (E[0] = (j) => b.value = j),
|
|
2598
2598
|
showOverlay: !1,
|
|
2599
2599
|
header: !1,
|
|
2600
2600
|
footer: !1,
|
|
@@ -2603,7 +2603,7 @@ const ol = /* @__PURE__ */ au(ul, [["render", tl]]), nl = /* @__PURE__ */ ue({
|
|
|
2603
2603
|
style: Mu({ marginLeft: `${d.parentWidth}px` })
|
|
2604
2604
|
}, {
|
|
2605
2605
|
default: z(() => [
|
|
2606
|
-
U(
|
|
2606
|
+
U(V, {
|
|
2607
2607
|
ref_key: "menuRef",
|
|
2608
2608
|
ref: o,
|
|
2609
2609
|
width: "100%",
|
|
@@ -2612,54 +2612,54 @@ const ol = /* @__PURE__ */ au(ul, [["render", tl]]), nl = /* @__PURE__ */ ue({
|
|
|
2612
2612
|
expandType: "popup"
|
|
2613
2613
|
}, {
|
|
2614
2614
|
default: z(() => [
|
|
2615
|
-
(g(!0), R(Me, null, Ee(d.menuItems, (
|
|
2615
|
+
(g(!0), R(Me, null, Ee(d.menuItems, (j) => {
|
|
2616
2616
|
var Q;
|
|
2617
2617
|
return g(), R(Me, {
|
|
2618
|
-
key:
|
|
2618
|
+
key: j.name
|
|
2619
2619
|
}, [
|
|
2620
|
-
(Q =
|
|
2620
|
+
(Q = j.children) != null && Q.length ? (g(), w(f, {
|
|
2621
2621
|
key: 1,
|
|
2622
|
-
class: Z(A(
|
|
2623
|
-
name:
|
|
2624
|
-
value:
|
|
2622
|
+
class: Z(A(j)),
|
|
2623
|
+
name: j.name,
|
|
2624
|
+
value: j.name,
|
|
2625
2625
|
"popup-props": {
|
|
2626
2626
|
visible: !1,
|
|
2627
2627
|
overlayInnerClassName: `${D}--popup`
|
|
2628
2628
|
},
|
|
2629
|
-
onMouseenter: (v) => p(
|
|
2629
|
+
onMouseenter: (v) => p(j)
|
|
2630
2630
|
}, Pu({
|
|
2631
2631
|
title: z(() => [
|
|
2632
|
-
U(It, { item:
|
|
2632
|
+
U(It, { item: j }, null, 8, ["item"])
|
|
2633
2633
|
]),
|
|
2634
2634
|
_: 2
|
|
2635
2635
|
}, [
|
|
2636
|
-
|
|
2636
|
+
j.level === 1 ? {
|
|
2637
2637
|
name: "icon",
|
|
2638
2638
|
fn: z(() => [
|
|
2639
2639
|
U(At, {
|
|
2640
|
-
icon:
|
|
2640
|
+
icon: j.icon
|
|
2641
2641
|
}, null, 8, ["icon"])
|
|
2642
2642
|
]),
|
|
2643
2643
|
key: "0"
|
|
2644
2644
|
} : void 0
|
|
2645
2645
|
]), 1032, ["class", "name", "value", "popup-props", "onMouseenter"])) : (g(), w(c, {
|
|
2646
2646
|
key: 0,
|
|
2647
|
-
class: Z(y(
|
|
2648
|
-
name:
|
|
2649
|
-
value:
|
|
2650
|
-
onClick: (v) => d.$emit("menuClick",
|
|
2651
|
-
onMouseenter: (v) => S(
|
|
2647
|
+
class: Z(y(j)),
|
|
2648
|
+
name: j.path,
|
|
2649
|
+
value: j.path,
|
|
2650
|
+
onClick: (v) => d.$emit("menuClick", j.path),
|
|
2651
|
+
onMouseenter: (v) => S(j)
|
|
2652
2652
|
}, Pu({
|
|
2653
2653
|
content: z(() => [
|
|
2654
|
-
U(It, { item:
|
|
2654
|
+
U(It, { item: j }, null, 8, ["item"])
|
|
2655
2655
|
]),
|
|
2656
2656
|
_: 2
|
|
2657
2657
|
}, [
|
|
2658
|
-
|
|
2658
|
+
j.level === 1 ? {
|
|
2659
2659
|
name: "icon",
|
|
2660
2660
|
fn: z(() => [
|
|
2661
2661
|
U(At, {
|
|
2662
|
-
icon:
|
|
2662
|
+
icon: j.icon
|
|
2663
2663
|
}, null, 8, ["icon"])
|
|
2664
2664
|
]),
|
|
2665
2665
|
key: "0"
|
|
@@ -2681,7 +2681,7 @@ const ol = /* @__PURE__ */ au(ul, [["render", tl]]), nl = /* @__PURE__ */ ue({
|
|
|
2681
2681
|
"display-mode": d.displayMode,
|
|
2682
2682
|
"is-visible": a.value,
|
|
2683
2683
|
"parent-width": r.value,
|
|
2684
|
-
onMenuClick: E[1] || (E[1] = (
|
|
2684
|
+
onMenuClick: E[1] || (E[1] = (j) => d.$emit("menuClick", j))
|
|
2685
2685
|
}, null, 8, ["menu-items", "level", "active-path", "display-mode", "is-visible", "parent-width"])) : q("", !0)
|
|
2686
2686
|
], 64);
|
|
2687
2687
|
};
|
|
@@ -2974,7 +2974,7 @@ const mM = Re(sl), cl = /* @__PURE__ */ ue({
|
|
|
2974
2974
|
};
|
|
2975
2975
|
}
|
|
2976
2976
|
});
|
|
2977
|
-
const Nl = Re(cl),
|
|
2977
|
+
const Nl = Re(cl), $t = () => {
|
|
2978
2978
|
}, yt = {
|
|
2979
2979
|
// 普通上传文件 POST
|
|
2980
2980
|
baseUploadFile: "/api/base/upload",
|
|
@@ -3020,9 +3020,9 @@ const Zu = (t) => {
|
|
|
3020
3020
|
fileReadyKey: M,
|
|
3021
3021
|
thread: l,
|
|
3022
3022
|
chunkSize: N,
|
|
3023
|
-
onProgress: r =
|
|
3024
|
-
onSuccess: s =
|
|
3025
|
-
onError: D =
|
|
3023
|
+
onProgress: r = $t,
|
|
3024
|
+
onSuccess: s = $t,
|
|
3025
|
+
onError: D = $t
|
|
3026
3026
|
}) => {
|
|
3027
3027
|
var b;
|
|
3028
3028
|
const y = _o(u, t) || "file", A = _o(e, t), x = su(), _ = i ? `${yt.pieceUploadFiles}?sessionId=${x}` : `${yt.baseUploadFile}?sessionId=${x}`, S = ce.getItem(Xt) ?? "zh-CN", p = [];
|
|
@@ -3033,9 +3033,9 @@ const Zu = (t) => {
|
|
|
3033
3033
|
}), d = c > 0 ? Math.min(Math.floor(c / a * 100), 99) / 100 : 0, r(d, E);
|
|
3034
3034
|
}
|
|
3035
3035
|
function m(d, E) {
|
|
3036
|
-
let c = 0, f = 0,
|
|
3037
|
-
const B = d.length,
|
|
3038
|
-
if (
|
|
3036
|
+
let c = 0, f = 0, V = !1, I = [];
|
|
3037
|
+
const B = d.length, j = async () => {
|
|
3038
|
+
if (V)
|
|
3039
3039
|
return;
|
|
3040
3040
|
const v = d.shift();
|
|
3041
3041
|
if (v) {
|
|
@@ -3044,49 +3044,49 @@ const Zu = (t) => {
|
|
|
3044
3044
|
const L = P.total > 0 ? Jt.round(P.loaded / P.total, 2) : 0;
|
|
3045
3045
|
p[W] = P.loaded, C(L, P);
|
|
3046
3046
|
}, h.onerror = function(L) {
|
|
3047
|
-
|
|
3047
|
+
V = !0, D(L);
|
|
3048
3048
|
}, h.onload = () => {
|
|
3049
3049
|
if (h.status < 200 || h.status >= 300) {
|
|
3050
3050
|
D(Zu(h));
|
|
3051
3051
|
return;
|
|
3052
3052
|
}
|
|
3053
3053
|
if (c == B - 1) {
|
|
3054
|
-
const P =
|
|
3054
|
+
const P = I.map((L) => Zu(L));
|
|
3055
3055
|
s(P);
|
|
3056
3056
|
} else
|
|
3057
|
-
c++,
|
|
3057
|
+
c++, j();
|
|
3058
3058
|
}, h.open("post", _ ?? "", !0);
|
|
3059
3059
|
for (const P of Object.keys(o))
|
|
3060
3060
|
h.setRequestHeader(P, o[P]);
|
|
3061
|
-
h.setRequestHeader("lang", S), h.send(v),
|
|
3061
|
+
h.setRequestHeader("lang", S), h.send(v), I.push(h);
|
|
3062
3062
|
} else if (c === B) {
|
|
3063
|
-
const W =
|
|
3063
|
+
const W = I.map((h) => Zu(h));
|
|
3064
3064
|
s(W);
|
|
3065
3065
|
}
|
|
3066
3066
|
}, Q = () => {
|
|
3067
|
-
E <= 0 ||
|
|
3067
|
+
E <= 0 || V || (j(), setTimeout(Q, Math.random() * 1e3), E--);
|
|
3068
3068
|
};
|
|
3069
|
-
return Q(),
|
|
3069
|
+
return Q(), I;
|
|
3070
3070
|
}
|
|
3071
3071
|
if (i && M) {
|
|
3072
3072
|
let d = [];
|
|
3073
3073
|
for (let f = 0; f < a; f = f + N) {
|
|
3074
|
-
const
|
|
3075
|
-
d.push(
|
|
3074
|
+
const V = (b = t.file) == null ? void 0 : b.slice(f, Math.min(f + N, a));
|
|
3075
|
+
d.push(V);
|
|
3076
3076
|
}
|
|
3077
|
-
const E = d == null ? void 0 : d.map((f,
|
|
3078
|
-
const
|
|
3077
|
+
const E = d == null ? void 0 : d.map((f, V) => {
|
|
3078
|
+
const I = new FormData(), B = {
|
|
3079
3079
|
key: M,
|
|
3080
|
-
end:
|
|
3081
|
-
index:
|
|
3080
|
+
end: V == d.length - 1,
|
|
3081
|
+
index: V,
|
|
3082
3082
|
piece: f
|
|
3083
3083
|
};
|
|
3084
3084
|
if (A)
|
|
3085
|
-
for (const
|
|
3086
|
-
|
|
3087
|
-
for (const
|
|
3088
|
-
|
|
3089
|
-
return
|
|
3085
|
+
for (const j of Object.keys(A))
|
|
3086
|
+
I.append(j, A[j]);
|
|
3087
|
+
for (const j of Object.keys(B))
|
|
3088
|
+
I.append(j, B[j]);
|
|
3089
|
+
return I;
|
|
3090
3090
|
});
|
|
3091
3091
|
let c = [];
|
|
3092
3092
|
try {
|
|
@@ -3227,7 +3227,7 @@ const Zu = (t) => {
|
|
|
3227
3227
|
if (!a.disabled) {
|
|
3228
3228
|
if (ku(a.onButtonClick)) {
|
|
3229
3229
|
const y = a.onButtonClick(D);
|
|
3230
|
-
if (
|
|
3230
|
+
if (Va(y)) {
|
|
3231
3231
|
y.then((A) => {
|
|
3232
3232
|
a.uploadFiles(Po(A));
|
|
3233
3233
|
});
|
|
@@ -3948,7 +3948,7 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
3948
3948
|
showButtonProgress: S
|
|
3949
3949
|
} = sa(n), p = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), m = F([]), b = k(() => n.directory ? m.value.length ? hn(m.value) : { fileId: "" } : { fileId: "" }), d = k(() => n.limit > 0 && m.value.length >= n.limit), E = k(() => n.buttonText ? n.buttonText : n.directory ? d.value ? `${o.t("重新选择")}` : `${o.t("上传文件夹")}` : d.value ? `${o.t("重新选择")}` : `${o.t("上传文件")}`), c = (O) => {
|
|
3950
3950
|
p.clear();
|
|
3951
|
-
const
|
|
3951
|
+
const $ = O == null ? void 0 : O.map((H, te) => {
|
|
3952
3952
|
const je = H.status ? H.status : H.url ? "done" : "error", Se = Ot({
|
|
3953
3953
|
...H,
|
|
3954
3954
|
fileId: H.fileId ?? `${et(10)}-${H.filename}`,
|
|
@@ -3957,7 +3957,7 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
3957
3957
|
});
|
|
3958
3958
|
return p.set(Se.fileId, Se), Se;
|
|
3959
3959
|
});
|
|
3960
|
-
m.value =
|
|
3960
|
+
m.value = $ ?? [];
|
|
3961
3961
|
};
|
|
3962
3962
|
c(n.defaultFileList), de(
|
|
3963
3963
|
() => M == null ? void 0 : M.value,
|
|
@@ -3968,18 +3968,18 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
3968
3968
|
);
|
|
3969
3969
|
const f = (O) => {
|
|
3970
3970
|
a("update:fileList", m.value), a("change", m.value, O);
|
|
3971
|
-
},
|
|
3972
|
-
const
|
|
3971
|
+
}, V = async (O) => {
|
|
3972
|
+
const $ = await Dl({
|
|
3973
3973
|
suffix: Ln(O.name).split(".")[1]
|
|
3974
3974
|
// url: file.name,
|
|
3975
3975
|
});
|
|
3976
|
-
if (
|
|
3977
|
-
return
|
|
3978
|
-
},
|
|
3976
|
+
if ($.state == 200)
|
|
3977
|
+
return $.data;
|
|
3978
|
+
}, I = async (O) => {
|
|
3979
3979
|
var Ke;
|
|
3980
|
-
const
|
|
3980
|
+
const $ = ((Ke = O.file) == null ? void 0 : Ke.size) ?? 1, H = $ > n.largeLimit;
|
|
3981
3981
|
let te = "";
|
|
3982
|
-
H && (te = await
|
|
3982
|
+
H && (te = await V(O.file));
|
|
3983
3983
|
const je = (we, K) => {
|
|
3984
3984
|
const oe = p.get(O.fileId);
|
|
3985
3985
|
oe && (oe.status = "uploading", oe.percent = we, a("progress", oe, K));
|
|
@@ -4007,7 +4007,7 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
4007
4007
|
data: n.data,
|
|
4008
4008
|
headers: n.headers,
|
|
4009
4009
|
withCredentials: n.withCredentials,
|
|
4010
|
-
fileSize:
|
|
4010
|
+
fileSize: $,
|
|
4011
4011
|
isLargeFile: H,
|
|
4012
4012
|
fileReadyKey: te,
|
|
4013
4013
|
thread: n.thread,
|
|
@@ -4021,21 +4021,21 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
4021
4021
|
C.set(O.fileId, Pe);
|
|
4022
4022
|
}, B = (O) => {
|
|
4023
4023
|
var H;
|
|
4024
|
-
const
|
|
4025
|
-
if (
|
|
4026
|
-
if (xu(
|
|
4027
|
-
|
|
4024
|
+
const $ = C.get(O.fileId);
|
|
4025
|
+
if ($)
|
|
4026
|
+
if (xu($)) {
|
|
4027
|
+
$.forEach((je) => {
|
|
4028
4028
|
var Se;
|
|
4029
4029
|
(Se = je.abort) == null || Se.call(je);
|
|
4030
4030
|
});
|
|
4031
4031
|
const te = p.get(O.fileId);
|
|
4032
4032
|
te && (te.status = "error", te.percent = 0, f(te));
|
|
4033
4033
|
} else {
|
|
4034
|
-
(H =
|
|
4034
|
+
(H = $ == null ? void 0 : $.abort) == null || H.call($), C.delete(O.fileId);
|
|
4035
4035
|
const te = p.get(O.fileId);
|
|
4036
4036
|
te && (te.status = "error", te.percent = 0, f(te));
|
|
4037
4037
|
}
|
|
4038
|
-
},
|
|
4038
|
+
}, j = () => {
|
|
4039
4039
|
if (m.value.length > 0)
|
|
4040
4040
|
for (const O of m.value)
|
|
4041
4041
|
B(O);
|
|
@@ -4043,7 +4043,7 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
4043
4043
|
if (m.value.length > 0)
|
|
4044
4044
|
for (const O of m.value)
|
|
4045
4045
|
h(O);
|
|
4046
|
-
}, v = async (O,
|
|
4046
|
+
}, v = async (O, $) => {
|
|
4047
4047
|
const H = `${et(10)}-${O.name}`, te = void 0, je = Ot({
|
|
4048
4048
|
fileId: H,
|
|
4049
4049
|
file: O,
|
|
@@ -4054,7 +4054,7 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
4054
4054
|
percent: 0,
|
|
4055
4055
|
fileUploadType: "file"
|
|
4056
4056
|
});
|
|
4057
|
-
p.set(H, je), m.value = [...m.value, je], f(je), n.autoUpload &&
|
|
4057
|
+
p.set(H, je), m.value = [...m.value, je], f(je), n.autoUpload && I(je);
|
|
4058
4058
|
}, W = (O) => {
|
|
4059
4059
|
if (n.limit > 0 && m.value.length + O.length > n.limit) {
|
|
4060
4060
|
if (m.value.length > O.length)
|
|
@@ -4062,8 +4062,8 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
4062
4062
|
m.value.length == O.length && (m.value = []);
|
|
4063
4063
|
}
|
|
4064
4064
|
n.directory && n.multiple == !1 && (m.value = []);
|
|
4065
|
-
for (let
|
|
4066
|
-
const H = O[
|
|
4065
|
+
for (let $ = 0; $ < O.length; $++) {
|
|
4066
|
+
const H = O[$];
|
|
4067
4067
|
ku(n.onBeforeUpload) ? Promise.resolve(n.onBeforeUpload(H)).then((te) => {
|
|
4068
4068
|
te && v(Ra(te) ? H : te);
|
|
4069
4069
|
}).catch((te) => {
|
|
@@ -4071,12 +4071,12 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
4071
4071
|
}) : v(H);
|
|
4072
4072
|
}
|
|
4073
4073
|
}, h = (O) => {
|
|
4074
|
-
m.value = m.value.filter((
|
|
4074
|
+
m.value = m.value.filter(($) => $.fileId !== O.fileId), f(O);
|
|
4075
4075
|
}, P = (O) => {
|
|
4076
|
-
ku(n.onBeforeRemove) ? Promise.resolve(n.onBeforeRemove(O)).then((
|
|
4077
|
-
|
|
4078
|
-
}).catch((
|
|
4079
|
-
console.error(
|
|
4076
|
+
ku(n.onBeforeRemove) ? Promise.resolve(n.onBeforeRemove(O)).then(($) => {
|
|
4077
|
+
$ && h(O);
|
|
4078
|
+
}).catch(($) => {
|
|
4079
|
+
console.error($);
|
|
4080
4080
|
}) : h(O);
|
|
4081
4081
|
}, L = k(() => {
|
|
4082
4082
|
if (n.accept)
|
|
@@ -4100,14 +4100,14 @@ const On = /* @__PURE__ */ au(ml, [["__scopeId", "data-v-8a486150"]]), El = /* @
|
|
|
4100
4100
|
imageLoading: A,
|
|
4101
4101
|
download: x,
|
|
4102
4102
|
slots: i,
|
|
4103
|
-
onUpload:
|
|
4103
|
+
onUpload: I,
|
|
4104
4104
|
onAbort: B,
|
|
4105
4105
|
onRemove: P
|
|
4106
4106
|
})
|
|
4107
4107
|
), u({
|
|
4108
|
-
abortAllDownload:
|
|
4108
|
+
abortAllDownload: j,
|
|
4109
4109
|
clearAllFile: Q
|
|
4110
|
-
}), (O,
|
|
4110
|
+
}), (O, $) => {
|
|
4111
4111
|
var H;
|
|
4112
4112
|
return g(), R("div", {
|
|
4113
4113
|
class: Z([`${T(Mt)}`])
|
|
@@ -4455,7 +4455,7 @@ const wn = /* @__PURE__ */ au(Ul, [["__scopeId", "data-v-b9a9d3f9"]]), Ql = ["ti
|
|
|
4455
4455
|
});
|
|
4456
4456
|
const N = F(), r = F(!1);
|
|
4457
4457
|
be(() => {
|
|
4458
|
-
r.value =
|
|
4458
|
+
r.value = Vu(N.value);
|
|
4459
4459
|
});
|
|
4460
4460
|
const s = ve(pt);
|
|
4461
4461
|
return (D, y) => {
|
|
@@ -4784,7 +4784,7 @@ const Qn = /* @__PURE__ */ ue({
|
|
|
4784
4784
|
});
|
|
4785
4785
|
const x = F(), _ = F(!1);
|
|
4786
4786
|
be(() => {
|
|
4787
|
-
x.value && (_.value =
|
|
4787
|
+
x.value && (_.value = Vu(x.value));
|
|
4788
4788
|
});
|
|
4789
4789
|
const S = ve(pt);
|
|
4790
4790
|
return (p, C) => {
|
|
@@ -4857,7 +4857,7 @@ const Qn = /* @__PURE__ */ ue({
|
|
|
4857
4857
|
);
|
|
4858
4858
|
const l = F(), N = F(!1);
|
|
4859
4859
|
return be(() => {
|
|
4860
|
-
l.value && (N.value =
|
|
4860
|
+
l.value && (N.value = Vu(l.value));
|
|
4861
4861
|
}), (r, s) => {
|
|
4862
4862
|
var A, x, _, S, p;
|
|
4863
4863
|
const D = G("t-date-picker"), y = G("t-time-picker");
|
|
@@ -4946,7 +4946,7 @@ const Qn = /* @__PURE__ */ ue({
|
|
|
4946
4946
|
});
|
|
4947
4947
|
const s = F(), D = F(!1);
|
|
4948
4948
|
be(() => {
|
|
4949
|
-
s.value && (D.value =
|
|
4949
|
+
s.value && (D.value = Vu(s.value));
|
|
4950
4950
|
});
|
|
4951
4951
|
const y = F(e.modelValue);
|
|
4952
4952
|
de(() => e.modelValue, (x) => {
|
|
@@ -4985,7 +4985,7 @@ const Qn = /* @__PURE__ */ ue({
|
|
|
4985
4985
|
}, null, 8, ["modelValue", "data", "placeholder", "multiple", "treeProps", "disabled"])], 8, Pl);
|
|
4986
4986
|
};
|
|
4987
4987
|
}
|
|
4988
|
-
}),
|
|
4988
|
+
}), $l = ["title"], Fn = /* @__PURE__ */ ue({
|
|
4989
4989
|
__name: "GFormCascader",
|
|
4990
4990
|
props: {
|
|
4991
4991
|
modelValue: {},
|
|
@@ -5030,7 +5030,7 @@ const Qn = /* @__PURE__ */ ue({
|
|
|
5030
5030
|
});
|
|
5031
5031
|
const s = F(), D = F(!1);
|
|
5032
5032
|
be(() => {
|
|
5033
|
-
s.value && (D.value =
|
|
5033
|
+
s.value && (D.value = Vu(s.value));
|
|
5034
5034
|
});
|
|
5035
5035
|
const y = F(e.modelValue);
|
|
5036
5036
|
return de(
|
|
@@ -5063,7 +5063,7 @@ const Qn = /* @__PURE__ */ ue({
|
|
|
5063
5063
|
onChange: N,
|
|
5064
5064
|
onBlur: r
|
|
5065
5065
|
}, null, 8, ["modelValue", "options", "multiple", "disabled", "placeholder"])
|
|
5066
|
-
], 8,
|
|
5066
|
+
], 8, $l);
|
|
5067
5067
|
};
|
|
5068
5068
|
}
|
|
5069
5069
|
}), _n = /* @__PURE__ */ ue({
|
|
@@ -5153,7 +5153,7 @@ const Qn = /* @__PURE__ */ ue({
|
|
|
5153
5153
|
};
|
|
5154
5154
|
}
|
|
5155
5155
|
});
|
|
5156
|
-
var
|
|
5156
|
+
var Vl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5157
5157
|
function Rl(t) {
|
|
5158
5158
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5159
5159
|
}
|
|
@@ -5161,7 +5161,7 @@ var Pn = { exports: {} };
|
|
|
5161
5161
|
(function(t, u) {
|
|
5162
5162
|
(function(e, o) {
|
|
5163
5163
|
t.exports = o();
|
|
5164
|
-
})(
|
|
5164
|
+
})(Vl, function() {
|
|
5165
5165
|
var e, o, n = 1e3, a = 6e4, i = 36e5, M = 864e5, l = /\[([^\]]+)]|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, N = 31536e6, r = 2628e6, s = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, D = { years: N, months: r, days: M, hours: i, minutes: a, seconds: n, milliseconds: 1, weeks: 6048e5 }, y = function(d) {
|
|
5166
5166
|
return d instanceof m;
|
|
5167
5167
|
}, A = function(d, E, c) {
|
|
@@ -5177,23 +5177,23 @@ var Pn = { exports: {} };
|
|
|
5177
5177
|
}, C = function(d, E) {
|
|
5178
5178
|
return d ? _(d) ? { negative: !0, format: "" + p(d) + E } : { negative: !1, format: "" + d + E } : { negative: !1, format: "" };
|
|
5179
5179
|
}, m = function() {
|
|
5180
|
-
function d(c, f,
|
|
5181
|
-
var
|
|
5182
|
-
if (this.$d = {}, this.$l =
|
|
5180
|
+
function d(c, f, V) {
|
|
5181
|
+
var I = this;
|
|
5182
|
+
if (this.$d = {}, this.$l = V, c === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), f)
|
|
5183
5183
|
return A(c * D[x(f)], this);
|
|
5184
5184
|
if (typeof c == "number")
|
|
5185
5185
|
return this.$ms = c, this.parseFromMilliseconds(), this;
|
|
5186
5186
|
if (typeof c == "object")
|
|
5187
5187
|
return Object.keys(c).forEach(function(Q) {
|
|
5188
|
-
|
|
5188
|
+
I.$d[x(Q)] = c[Q];
|
|
5189
5189
|
}), this.calMilliseconds(), this;
|
|
5190
5190
|
if (typeof c == "string") {
|
|
5191
5191
|
var B = c.match(s);
|
|
5192
5192
|
if (B) {
|
|
5193
|
-
var
|
|
5193
|
+
var j = B.slice(2).map(function(Q) {
|
|
5194
5194
|
return Q != null ? Number(Q) : 0;
|
|
5195
5195
|
});
|
|
5196
|
-
return this.$d.years =
|
|
5196
|
+
return this.$d.years = j[0], this.$d.months = j[1], this.$d.weeks = j[2], this.$d.days = j[3], this.$d.hours = j[4], this.$d.minutes = j[5], this.$d.seconds = j[6], this.calMilliseconds(), this;
|
|
5197
5197
|
}
|
|
5198
5198
|
}
|
|
5199
5199
|
return this;
|
|
@@ -5201,34 +5201,34 @@ var Pn = { exports: {} };
|
|
|
5201
5201
|
var E = d.prototype;
|
|
5202
5202
|
return E.calMilliseconds = function() {
|
|
5203
5203
|
var c = this;
|
|
5204
|
-
this.$ms = Object.keys(this.$d).reduce(function(f,
|
|
5205
|
-
return f + (c.$d[
|
|
5204
|
+
this.$ms = Object.keys(this.$d).reduce(function(f, V) {
|
|
5205
|
+
return f + (c.$d[V] || 0) * D[V];
|
|
5206
5206
|
}, 0);
|
|
5207
5207
|
}, E.parseFromMilliseconds = function() {
|
|
5208
5208
|
var c = this.$ms;
|
|
5209
5209
|
this.$d.years = S(c / N), c %= N, this.$d.months = S(c / r), c %= r, this.$d.days = S(c / M), c %= M, this.$d.hours = S(c / i), c %= i, this.$d.minutes = S(c / a), c %= a, this.$d.seconds = S(c / n), c %= n, this.$d.milliseconds = c;
|
|
5210
5210
|
}, E.toISOString = function() {
|
|
5211
|
-
var c = C(this.$d.years, "Y"), f = C(this.$d.months, "M"),
|
|
5212
|
-
this.$d.weeks && (
|
|
5213
|
-
var
|
|
5211
|
+
var c = C(this.$d.years, "Y"), f = C(this.$d.months, "M"), V = +this.$d.days || 0;
|
|
5212
|
+
this.$d.weeks && (V += 7 * this.$d.weeks);
|
|
5213
|
+
var I = C(V, "D"), B = C(this.$d.hours, "H"), j = C(this.$d.minutes, "M"), Q = this.$d.seconds || 0;
|
|
5214
5214
|
this.$d.milliseconds && (Q += this.$d.milliseconds / 1e3, Q = Math.round(1e3 * Q) / 1e3);
|
|
5215
|
-
var v = C(Q, "S"), W = c.negative || f.negative ||
|
|
5215
|
+
var v = C(Q, "S"), W = c.negative || f.negative || I.negative || B.negative || j.negative || v.negative, h = B.format || j.format || v.format ? "T" : "", P = (W ? "-" : "") + "P" + c.format + f.format + I.format + h + B.format + j.format + v.format;
|
|
5216
5216
|
return P === "P" || P === "-P" ? "P0D" : P;
|
|
5217
5217
|
}, E.toJSON = function() {
|
|
5218
5218
|
return this.toISOString();
|
|
5219
5219
|
}, E.format = function(c) {
|
|
5220
|
-
var f = c || "YYYY-MM-DDTHH:mm:ss",
|
|
5221
|
-
return f.replace(l, function(
|
|
5222
|
-
return B || String(
|
|
5220
|
+
var f = c || "YYYY-MM-DDTHH:mm:ss", V = { Y: this.$d.years, YY: o.s(this.$d.years, 2, "0"), YYYY: o.s(this.$d.years, 4, "0"), M: this.$d.months, MM: o.s(this.$d.months, 2, "0"), D: this.$d.days, DD: o.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: o.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: o.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: o.s(this.$d.seconds, 2, "0"), SSS: o.s(this.$d.milliseconds, 3, "0") };
|
|
5221
|
+
return f.replace(l, function(I, B) {
|
|
5222
|
+
return B || String(V[I]);
|
|
5223
5223
|
});
|
|
5224
5224
|
}, E.as = function(c) {
|
|
5225
5225
|
return this.$ms / D[x(c)];
|
|
5226
5226
|
}, E.get = function(c) {
|
|
5227
|
-
var f = this.$ms,
|
|
5228
|
-
return
|
|
5229
|
-
}, E.add = function(c, f,
|
|
5230
|
-
var
|
|
5231
|
-
return
|
|
5227
|
+
var f = this.$ms, V = x(c);
|
|
5228
|
+
return V === "milliseconds" ? f %= 1e3 : f = V === "weeks" ? S(f / D[V]) : this.$d[V], f || 0;
|
|
5229
|
+
}, E.add = function(c, f, V) {
|
|
5230
|
+
var I;
|
|
5231
|
+
return I = f ? c * D[x(f)] : y(c) ? c.$ms : A(c, this).$ms, A(this.$ms + I * (V ? -1 : 1), this);
|
|
5232
5232
|
}, E.subtract = function(c, f) {
|
|
5233
5233
|
return this.add(c, f, !0);
|
|
5234
5234
|
}, E.locale = function(c) {
|
|
@@ -5277,15 +5277,15 @@ var Pn = { exports: {} };
|
|
|
5277
5277
|
return d.add(E.years() * c, "y").add(E.months() * c, "M").add(E.days() * c, "d").add(E.hours() * c, "h").add(E.minutes() * c, "m").add(E.seconds() * c, "s").add(E.milliseconds() * c, "ms");
|
|
5278
5278
|
};
|
|
5279
5279
|
return function(d, E, c) {
|
|
5280
|
-
e = c, o = c().$utils(), c.duration = function(
|
|
5281
|
-
var
|
|
5282
|
-
return A(
|
|
5280
|
+
e = c, o = c().$utils(), c.duration = function(I, B) {
|
|
5281
|
+
var j = c.locale();
|
|
5282
|
+
return A(I, { $l: j }, B);
|
|
5283
5283
|
}, c.isDuration = y;
|
|
5284
|
-
var f = E.prototype.add,
|
|
5285
|
-
E.prototype.add = function(
|
|
5286
|
-
return y(
|
|
5287
|
-
}, E.prototype.subtract = function(
|
|
5288
|
-
return y(
|
|
5284
|
+
var f = E.prototype.add, V = E.prototype.subtract;
|
|
5285
|
+
E.prototype.add = function(I, B) {
|
|
5286
|
+
return y(I) ? b(this, I, 1) : f.bind(this)(I, B);
|
|
5287
|
+
}, E.prototype.subtract = function(I, B) {
|
|
5288
|
+
return y(I) ? b(this, I, -1) : V.bind(this)(I, B);
|
|
5289
5289
|
};
|
|
5290
5290
|
};
|
|
5291
5291
|
});
|
|
@@ -5342,7 +5342,7 @@ const Gl = /* @__PURE__ */ Rl(Wl), Hl = ["title"], Zl = /* @__PURE__ */ ue({
|
|
|
5342
5342
|
);
|
|
5343
5343
|
const l = F(), N = F(!1);
|
|
5344
5344
|
return be(() => {
|
|
5345
|
-
l.value && (N.value =
|
|
5345
|
+
l.value && (N.value = Vu(l.value));
|
|
5346
5346
|
}), (r, s) => {
|
|
5347
5347
|
var y;
|
|
5348
5348
|
const D = G("t-time-picker");
|
|
@@ -5659,7 +5659,7 @@ const Jl = ["id"], Xl = /* @__PURE__ */ ue({
|
|
|
5659
5659
|
getDisableFlag: y,
|
|
5660
5660
|
setBlockShowFlag: A
|
|
5661
5661
|
}), (c, f) => {
|
|
5662
|
-
const
|
|
5662
|
+
const V = G("t-divider"), I = G("t-tooltip"), B = G("t-form-item");
|
|
5663
5663
|
return g(), R("div", {
|
|
5664
5664
|
ref_key: "formItemRef",
|
|
5665
5665
|
ref: d,
|
|
@@ -5667,7 +5667,7 @@ const Jl = ["id"], Xl = /* @__PURE__ */ ue({
|
|
|
5667
5667
|
id: x.value
|
|
5668
5668
|
}, [
|
|
5669
5669
|
D.value ? (g(), R(Me, { key: 0 }, [
|
|
5670
|
-
c.formItem.itemType === "line" && c.formItem.name && T(M)(c.formItem.showIf, c.formItem) ? (g(), w(
|
|
5670
|
+
c.formItem.itemType === "line" && c.formItem.name && T(M)(c.formItem.showIf, c.formItem) ? (g(), w(V, {
|
|
5671
5671
|
key: 0,
|
|
5672
5672
|
align: "left"
|
|
5673
5673
|
}, {
|
|
@@ -5686,7 +5686,7 @@ const Jl = ["id"], Xl = /* @__PURE__ */ ue({
|
|
|
5686
5686
|
...c.enableLabelEllipsis ? {} : { labelWidth: b.value }
|
|
5687
5687
|
}), {
|
|
5688
5688
|
label: z(() => [
|
|
5689
|
-
U(
|
|
5689
|
+
U(I, {
|
|
5690
5690
|
trigger: "hover",
|
|
5691
5691
|
theme: "light",
|
|
5692
5692
|
disabled: !C.value,
|
|
@@ -5707,7 +5707,7 @@ const Jl = ["id"], Xl = /* @__PURE__ */ ue({
|
|
|
5707
5707
|
}, 8, ["disabled", "content"])
|
|
5708
5708
|
]),
|
|
5709
5709
|
default: z(() => {
|
|
5710
|
-
var
|
|
5710
|
+
var j, Q, v, W;
|
|
5711
5711
|
return [
|
|
5712
5712
|
c.formItem.itemType === "label" ? (g(), w(wn, {
|
|
5713
5713
|
key: 0,
|
|
@@ -5717,7 +5717,7 @@ const Jl = ["id"], Xl = /* @__PURE__ */ ue({
|
|
|
5717
5717
|
}, null, 8, ["formItem", "formModel", "modelValue"])) : q("", !0),
|
|
5718
5718
|
c.formItem.itemType === "text_input" && c.formItem.inputType != "RE_PASSWORD" ? (g(), w(io, Ae({ key: 1 }, c.componentProps, {
|
|
5719
5719
|
formItem: c.formItem,
|
|
5720
|
-
inputType: (Q = (
|
|
5720
|
+
inputType: (Q = (j = c.formItem) == null ? void 0 : j.inputType) == null ? void 0 : Q.toLowerCase(),
|
|
5721
5721
|
modelValue: T(le)(i.value, c.formItem.keyName),
|
|
5722
5722
|
placeholder: S.value,
|
|
5723
5723
|
disabled: s.value,
|
|
@@ -5828,7 +5828,7 @@ const Jl = ["id"], Xl = /* @__PURE__ */ ue({
|
|
|
5828
5828
|
};
|
|
5829
5829
|
}
|
|
5830
5830
|
});
|
|
5831
|
-
const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id"],
|
|
5831
|
+
const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id"], $n = /* @__PURE__ */ ue({
|
|
5832
5832
|
__name: "GFormBlock",
|
|
5833
5833
|
props: {
|
|
5834
5834
|
name: {},
|
|
@@ -5876,8 +5876,8 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
5876
5876
|
emits: ["confirm-form", "confirm-and-close", "close-dialog"],
|
|
5877
5877
|
setup(t, { expose: u, emit: e }) {
|
|
5878
5878
|
const { T: o } = Te(), n = t, a = F(160), i = k(() => {
|
|
5879
|
-
var
|
|
5880
|
-
return (
|
|
5879
|
+
var I;
|
|
5880
|
+
return (I = n.board) == null ? void 0 : I.formItems;
|
|
5881
5881
|
}), M = F({}), { handleItemShowIf: l } = jo({ formModel: M });
|
|
5882
5882
|
de(
|
|
5883
5883
|
() => n.formData,
|
|
@@ -5890,97 +5890,97 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
5890
5890
|
}
|
|
5891
5891
|
);
|
|
5892
5892
|
const N = F(), r = k(() => {
|
|
5893
|
-
var
|
|
5894
|
-
return (
|
|
5893
|
+
var I;
|
|
5894
|
+
return (I = N.value) == null ? void 0 : I.tFormRef;
|
|
5895
5895
|
}), s = F({});
|
|
5896
5896
|
async function D() {
|
|
5897
|
-
let
|
|
5898
|
-
return A.value && (
|
|
5899
|
-
const { formItem:
|
|
5900
|
-
return
|
|
5897
|
+
let I = [];
|
|
5898
|
+
return A.value && (I = A == null ? void 0 : A.value.map((B) => {
|
|
5899
|
+
const { formItem: j } = B, Q = [];
|
|
5900
|
+
return j.required && j.keyName && Q.push({
|
|
5901
5901
|
validator: () => {
|
|
5902
|
-
const v = le(M.value,
|
|
5902
|
+
const v = le(M.value, j.keyName);
|
|
5903
5903
|
return jt(v) ? {
|
|
5904
5904
|
result: !1,
|
|
5905
|
-
message: `${
|
|
5905
|
+
message: `${j.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "")}${o.t("为必填项")}`
|
|
5906
5906
|
} : { result: !0 };
|
|
5907
5907
|
},
|
|
5908
5908
|
trigger: "blur"
|
|
5909
|
-
}),
|
|
5909
|
+
}), j.inputType === "RE_PASSWORD" && Q.push({
|
|
5910
5910
|
validator: () => ({
|
|
5911
5911
|
result: le(M.value, "password") === le(M.value, "rePassword"),
|
|
5912
5912
|
message: `${o.t("两次输入密码不一致")}`
|
|
5913
5913
|
}),
|
|
5914
5914
|
trigger: "blur"
|
|
5915
|
-
}), (
|
|
5915
|
+
}), (j.keyName === "startTime" || j.keyName === "endTime") && Q.push({
|
|
5916
5916
|
validator: () => ({
|
|
5917
5917
|
result: le(M.value, "endTime") - le(M.value, "startTime") > 0,
|
|
5918
5918
|
message: `${o.t("结束时间不能早于开始时间")}`
|
|
5919
5919
|
})
|
|
5920
5920
|
}), {
|
|
5921
|
-
keyName:
|
|
5921
|
+
keyName: j.inputType !== "RE_PASSWORD" ? j.keyName : "rePassword",
|
|
5922
5922
|
rules: Q
|
|
5923
5923
|
};
|
|
5924
|
-
})),
|
|
5924
|
+
})), I == null ? void 0 : I.reduce((B, j) => (j.rules.length && (B[j.keyName] = j.rules), B), {});
|
|
5925
5925
|
}
|
|
5926
5926
|
function y() {
|
|
5927
5927
|
if (N.value) {
|
|
5928
|
-
const
|
|
5929
|
-
if (
|
|
5930
|
-
const B =
|
|
5928
|
+
const I = N.value.$el;
|
|
5929
|
+
if (I) {
|
|
5930
|
+
const B = I.querySelectorAll(".t-form__label label");
|
|
5931
5931
|
if (B) {
|
|
5932
|
-
const
|
|
5932
|
+
const j = Array.from(B).map((v) => v.offsetWidth), Q = Math.max(...j);
|
|
5933
5933
|
a.value = Q + 30;
|
|
5934
5934
|
}
|
|
5935
5935
|
}
|
|
5936
5936
|
}
|
|
5937
5937
|
}
|
|
5938
5938
|
const A = F(), x = F();
|
|
5939
|
-
function _(
|
|
5939
|
+
function _(I, B, j) {
|
|
5940
5940
|
A.value && A.value.forEach((Q) => {
|
|
5941
|
-
Q.formItemId && B.includes(Q.formItemId) && Q.$el.classList.contains(
|
|
5941
|
+
Q.formItemId && B.includes(Q.formItemId) && Q.$el.classList.contains(I) && Q.setBlockShowFlag(j);
|
|
5942
5942
|
});
|
|
5943
5943
|
}
|
|
5944
5944
|
be(async () => {
|
|
5945
5945
|
s.value = await D();
|
|
5946
5946
|
});
|
|
5947
|
-
function S(
|
|
5948
|
-
Ze(M.value,
|
|
5947
|
+
function S(I, B) {
|
|
5948
|
+
Ze(M.value, I, B), r.value && p([I]), y();
|
|
5949
5949
|
}
|
|
5950
|
-
async function p(
|
|
5950
|
+
async function p(I = []) {
|
|
5951
5951
|
var Q;
|
|
5952
5952
|
const B = C();
|
|
5953
|
-
return (
|
|
5954
|
-
fields:
|
|
5953
|
+
return (I.length ? I.some((v) => B.includes(v)) : !0) ? (Q = r.value) == null ? void 0 : Q.validate({
|
|
5954
|
+
fields: I.length ? I : B
|
|
5955
5955
|
}) : Promise.resolve({});
|
|
5956
5956
|
}
|
|
5957
5957
|
const C = () => {
|
|
5958
|
-
var
|
|
5959
|
-
return (
|
|
5960
|
-
const { formItem:
|
|
5961
|
-
return (
|
|
5958
|
+
var I;
|
|
5959
|
+
return (I = A == null ? void 0 : A.value) == null ? void 0 : I.flatMap((B) => {
|
|
5960
|
+
const { formItem: j } = B;
|
|
5961
|
+
return (j.keyName ?? "") != "" && !B.getDisableFlag() ? j.inputType !== "RE_PASSWORD" ? j.keyName : "rePassword" : [];
|
|
5962
5962
|
});
|
|
5963
5963
|
}, m = k(() => {
|
|
5964
|
-
var
|
|
5965
|
-
return (
|
|
5964
|
+
var I;
|
|
5965
|
+
return (I = n.board) == null ? void 0 : I.okButton;
|
|
5966
5966
|
}), b = k(() => {
|
|
5967
|
-
var
|
|
5968
|
-
return (
|
|
5967
|
+
var I;
|
|
5968
|
+
return (I = n.board) == null ? void 0 : I.cancelButton;
|
|
5969
5969
|
}), d = e;
|
|
5970
|
-
function E(
|
|
5971
|
-
for (const B in
|
|
5972
|
-
const
|
|
5973
|
-
if (
|
|
5974
|
-
return { ...
|
|
5970
|
+
function E(I) {
|
|
5971
|
+
for (const B in I) {
|
|
5972
|
+
const j = I[B].find((Q) => Q.result === !1);
|
|
5973
|
+
if (j)
|
|
5974
|
+
return { ...j };
|
|
5975
5975
|
}
|
|
5976
5976
|
return null;
|
|
5977
5977
|
}
|
|
5978
|
-
function c(
|
|
5979
|
-
let B = ft(
|
|
5980
|
-
const
|
|
5981
|
-
if (i.value &&
|
|
5978
|
+
function c(I) {
|
|
5979
|
+
let B = ft(I);
|
|
5980
|
+
const j = Object.keys(B);
|
|
5981
|
+
if (i.value && j.length) {
|
|
5982
5982
|
const Q = i.value.filter((W) => W.itemType == "file" && W.fileUploadType == "path").map((W) => W.keyName);
|
|
5983
|
-
|
|
5983
|
+
j.length && j.forEach((W) => {
|
|
5984
5984
|
Q.includes(W) && B[W] && xu(B[W]) && (B[W] = B[W].filter(
|
|
5985
5985
|
(h) => h && h.url
|
|
5986
5986
|
));
|
|
@@ -5992,16 +5992,16 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
5992
5992
|
}
|
|
5993
5993
|
return B;
|
|
5994
5994
|
}
|
|
5995
|
-
function f(
|
|
5996
|
-
switch (
|
|
5995
|
+
function f(I) {
|
|
5996
|
+
switch (I.action) {
|
|
5997
5997
|
case "CONFIRM": {
|
|
5998
5998
|
p().then((B) => {
|
|
5999
5999
|
if (Object.keys(B).length) {
|
|
6000
|
-
const
|
|
6001
|
-
me.warning(
|
|
6000
|
+
const j = E(B);
|
|
6001
|
+
me.warning(j == null ? void 0 : j.message);
|
|
6002
6002
|
} else {
|
|
6003
|
-
const
|
|
6004
|
-
d("confirm-form",
|
|
6003
|
+
const j = c(M.value);
|
|
6004
|
+
d("confirm-form", j, I.buttonId);
|
|
6005
6005
|
}
|
|
6006
6006
|
});
|
|
6007
6007
|
break;
|
|
@@ -6009,11 +6009,11 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
6009
6009
|
case "CONFIRM_AND_CLOSE": {
|
|
6010
6010
|
p().then((B) => {
|
|
6011
6011
|
if (Object.keys(B).length) {
|
|
6012
|
-
const
|
|
6013
|
-
me.warning(
|
|
6012
|
+
const j = E(B);
|
|
6013
|
+
me.warning(j == null ? void 0 : j.message);
|
|
6014
6014
|
} else {
|
|
6015
|
-
const
|
|
6016
|
-
d("confirm-and-close",
|
|
6015
|
+
const j = c(M.value);
|
|
6016
|
+
d("confirm-and-close", j, I.buttonId);
|
|
6017
6017
|
}
|
|
6018
6018
|
});
|
|
6019
6019
|
break;
|
|
@@ -6023,14 +6023,14 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
6023
6023
|
break;
|
|
6024
6024
|
}
|
|
6025
6025
|
default: {
|
|
6026
|
-
console.log(
|
|
6026
|
+
console.log(I);
|
|
6027
6027
|
break;
|
|
6028
6028
|
}
|
|
6029
6029
|
}
|
|
6030
6030
|
}
|
|
6031
|
-
const
|
|
6031
|
+
const V = F(!1);
|
|
6032
6032
|
return u({
|
|
6033
|
-
formOkButtonLoading:
|
|
6033
|
+
formOkButtonLoading: V
|
|
6034
6034
|
}), an(
|
|
6035
6035
|
() => {
|
|
6036
6036
|
setTimeout(() => {
|
|
@@ -6040,8 +6040,8 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
6040
6040
|
{
|
|
6041
6041
|
flush: "post"
|
|
6042
6042
|
}
|
|
6043
|
-
), (
|
|
6044
|
-
const
|
|
6043
|
+
), (I, B) => {
|
|
6044
|
+
const j = G("t-button");
|
|
6045
6045
|
return g(), w(T(Cn), {
|
|
6046
6046
|
ref_key: "commonFormRef",
|
|
6047
6047
|
ref: N,
|
|
@@ -6056,7 +6056,7 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
6056
6056
|
(g(!0), R(Me, null, Ee(i.value, (Q) => (g(), R(Me, {
|
|
6057
6057
|
key: `${Q.name}_${Q.keyName}`
|
|
6058
6058
|
}, [
|
|
6059
|
-
Q.itemType === "block_start" || Q.itemType === "block_end" ? (g(), w(
|
|
6059
|
+
Q.itemType === "block_start" || Q.itemType === "block_end" ? (g(), w($n, {
|
|
6060
6060
|
key: 0,
|
|
6061
6061
|
ref_for: !0,
|
|
6062
6062
|
ref_key: "formBlockRef",
|
|
@@ -6072,7 +6072,7 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
6072
6072
|
ref: A,
|
|
6073
6073
|
formModel: M.value,
|
|
6074
6074
|
formItem: Q,
|
|
6075
|
-
viewName:
|
|
6075
|
+
viewName: I.viewName,
|
|
6076
6076
|
onAfterUpdateValue: S
|
|
6077
6077
|
}, null, 8, ["formModel", "formItem", "viewName"]))
|
|
6078
6078
|
], 64))), 128))
|
|
@@ -6080,7 +6080,7 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
6080
6080
|
footer: z(() => {
|
|
6081
6081
|
var Q;
|
|
6082
6082
|
return [
|
|
6083
|
-
b.value && b.value.name != "" && b.value.action !== "NONE" ? (g(), w(
|
|
6083
|
+
b.value && b.value.name != "" && b.value.action !== "NONE" ? (g(), w(j, {
|
|
6084
6084
|
key: 0,
|
|
6085
6085
|
theme: "default",
|
|
6086
6086
|
onClick: B[0] || (B[0] = (v) => b.value && f(b.value))
|
|
@@ -6093,16 +6093,16 @@ const mt = /* @__PURE__ */ au(Xl, [["__scopeId", "data-v-a507a307"]]), e4 = ["id
|
|
|
6093
6093
|
}),
|
|
6094
6094
|
_: 1
|
|
6095
6095
|
})) : q("", !0),
|
|
6096
|
-
m.value && m.value.name != "" && ((Q = m.value) == null ? void 0 : Q.action) !== "NONE" ? (g(), w(
|
|
6096
|
+
m.value && m.value.name != "" && ((Q = m.value) == null ? void 0 : Q.action) !== "NONE" ? (g(), w(j, {
|
|
6097
6097
|
key: 1,
|
|
6098
6098
|
theme: "primary",
|
|
6099
6099
|
onClick: B[1] || (B[1] = (v) => m.value && f(m.value)),
|
|
6100
|
-
loading:
|
|
6100
|
+
loading: V.value
|
|
6101
6101
|
}, {
|
|
6102
6102
|
default: z(() => {
|
|
6103
6103
|
var v;
|
|
6104
6104
|
return [
|
|
6105
|
-
|
|
6105
|
+
V.value ? (g(), R(Me, { key: 1 }, [
|
|
6106
6106
|
ie(ee(T(o).t("提交中")), 1)
|
|
6107
6107
|
], 64)) : (g(), R(Me, { key: 0 }, [
|
|
6108
6108
|
ie(ee((v = m.value) == null ? void 0 : v.name), 1)
|
|
@@ -6362,8 +6362,8 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6362
6362
|
const { formItem: L } = P, O = [];
|
|
6363
6363
|
return L.required && L.keyName && O.push({
|
|
6364
6364
|
validator: () => {
|
|
6365
|
-
const
|
|
6366
|
-
return jt(
|
|
6365
|
+
const $ = le(r.value, L.keyName);
|
|
6366
|
+
return jt($) ? {
|
|
6367
6367
|
result: !1,
|
|
6368
6368
|
message: `${L.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "")}${o.t("为必填项")}`
|
|
6369
6369
|
} : { result: !0 };
|
|
@@ -6392,7 +6392,7 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6392
6392
|
if (h) {
|
|
6393
6393
|
const P = h.querySelectorAll(".t-form__label label");
|
|
6394
6394
|
if (P) {
|
|
6395
|
-
const L = Array.from(P).map((
|
|
6395
|
+
const L = Array.from(P).map(($) => $.offsetWidth), O = Math.max(...L);
|
|
6396
6396
|
l.value = O + 15;
|
|
6397
6397
|
}
|
|
6398
6398
|
}
|
|
@@ -6413,7 +6413,7 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6413
6413
|
async function c(h = []) {
|
|
6414
6414
|
var O;
|
|
6415
6415
|
const P = f();
|
|
6416
|
-
return (h.length ? h.some((
|
|
6416
|
+
return (h.length ? h.some(($) => P.includes($)) : !0) ? (O = _.value) == null ? void 0 : O.validate({
|
|
6417
6417
|
fields: h.length ? h : P
|
|
6418
6418
|
}) : Promise.resolve({});
|
|
6419
6419
|
}
|
|
@@ -6423,14 +6423,14 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6423
6423
|
const { formItem: L } = P;
|
|
6424
6424
|
return (L.keyName ?? "") != "" && !P.getDisableFlag() ? L.inputType !== "RE_PASSWORD" ? L.keyName : "rePassword" : [];
|
|
6425
6425
|
});
|
|
6426
|
-
},
|
|
6426
|
+
}, V = k(() => {
|
|
6427
6427
|
var h;
|
|
6428
6428
|
return (h = M.board) == null ? void 0 : h.okButton;
|
|
6429
|
-
}),
|
|
6429
|
+
}), I = k(() => {
|
|
6430
6430
|
var h;
|
|
6431
6431
|
return (h = M.board) == null ? void 0 : h.cancelButton;
|
|
6432
6432
|
}), B = e;
|
|
6433
|
-
function
|
|
6433
|
+
function j(h) {
|
|
6434
6434
|
for (const P in h) {
|
|
6435
6435
|
const L = h[P].find((O) => O.result === !1);
|
|
6436
6436
|
if (L)
|
|
@@ -6448,8 +6448,8 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6448
6448
|
(te) => te && te.url
|
|
6449
6449
|
));
|
|
6450
6450
|
});
|
|
6451
|
-
const
|
|
6452
|
-
|
|
6451
|
+
const $ = N.value.filter((H) => H.itemType == "hidden");
|
|
6452
|
+
$.length && $.forEach((H) => {
|
|
6453
6453
|
H.keyName && H.valueName && (P[H.keyName] = M.formData[H.valueName]);
|
|
6454
6454
|
});
|
|
6455
6455
|
}
|
|
@@ -6460,7 +6460,7 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6460
6460
|
case "CONFIRM": {
|
|
6461
6461
|
c().then((P) => {
|
|
6462
6462
|
if (Object.keys(P).length) {
|
|
6463
|
-
const L =
|
|
6463
|
+
const L = j(P);
|
|
6464
6464
|
me.warning(L == null ? void 0 : L.message);
|
|
6465
6465
|
} else {
|
|
6466
6466
|
const L = Q(r.value);
|
|
@@ -6472,7 +6472,7 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6472
6472
|
case "CONFIRM_AND_CLOSE": {
|
|
6473
6473
|
c().then((P) => {
|
|
6474
6474
|
if (Object.keys(P).length) {
|
|
6475
|
-
const L =
|
|
6475
|
+
const L = j(P);
|
|
6476
6476
|
me.warning(L == null ? void 0 : L.message);
|
|
6477
6477
|
} else {
|
|
6478
6478
|
const L = Q(r.value);
|
|
@@ -6508,25 +6508,25 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6508
6508
|
class: "buttons"
|
|
6509
6509
|
}, {
|
|
6510
6510
|
default: z(() => {
|
|
6511
|
-
var
|
|
6511
|
+
var $;
|
|
6512
6512
|
return [
|
|
6513
|
-
|
|
6513
|
+
I.value && I.value.name != "" && I.value.action !== "NONE" ? (g(), w(L, {
|
|
6514
6514
|
key: 0,
|
|
6515
6515
|
theme: "default",
|
|
6516
|
-
onClick: P[0] || (P[0] = (H) =>
|
|
6516
|
+
onClick: P[0] || (P[0] = (H) => I.value && v(I.value))
|
|
6517
6517
|
}, {
|
|
6518
6518
|
default: z(() => {
|
|
6519
6519
|
var H;
|
|
6520
6520
|
return [
|
|
6521
|
-
ie(ee((H =
|
|
6521
|
+
ie(ee((H = I.value) == null ? void 0 : H.name), 1)
|
|
6522
6522
|
];
|
|
6523
6523
|
}),
|
|
6524
6524
|
_: 1
|
|
6525
6525
|
})) : q("", !0),
|
|
6526
|
-
|
|
6526
|
+
V.value && V.value.name != "" && (($ = V.value) == null ? void 0 : $.action) !== "NONE" ? (g(), w(L, {
|
|
6527
6527
|
key: 1,
|
|
6528
6528
|
theme: "primary",
|
|
6529
|
-
onClick: P[1] || (P[1] = (H) =>
|
|
6529
|
+
onClick: P[1] || (P[1] = (H) => V.value && v(V.value)),
|
|
6530
6530
|
loading: W.value
|
|
6531
6531
|
}, {
|
|
6532
6532
|
default: z(() => {
|
|
@@ -6535,7 +6535,7 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6535
6535
|
W.value ? (g(), R(Me, { key: 1 }, [
|
|
6536
6536
|
ie(ee(T(o).t("提交中")), 1)
|
|
6537
6537
|
], 64)) : (g(), R(Me, { key: 0 }, [
|
|
6538
|
-
ie(ee((H =
|
|
6538
|
+
ie(ee((H = V.value) == null ? void 0 : H.name), 1)
|
|
6539
6539
|
], 64))
|
|
6540
6540
|
];
|
|
6541
6541
|
}),
|
|
@@ -6557,17 +6557,17 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6557
6557
|
}
|
|
6558
6558
|
}, {
|
|
6559
6559
|
body: z(() => [
|
|
6560
|
-
(g(!0), R(Me, null, Ee(N.value, (
|
|
6561
|
-
key: `${
|
|
6560
|
+
(g(!0), R(Me, null, Ee(N.value, ($) => (g(), R(Me, {
|
|
6561
|
+
key: `${$.name}_${$.keyName}`
|
|
6562
6562
|
}, [
|
|
6563
|
-
|
|
6563
|
+
$.itemType === "block_start" || $.itemType === "block_end" ? (g(), w($n, {
|
|
6564
6564
|
key: 0,
|
|
6565
6565
|
ref_for: !0,
|
|
6566
6566
|
ref_key: "formBlockRef",
|
|
6567
6567
|
ref: b,
|
|
6568
|
-
name:
|
|
6569
|
-
blockType:
|
|
6570
|
-
showIf: T(s)(
|
|
6568
|
+
name: $.name,
|
|
6569
|
+
blockType: $.itemType,
|
|
6570
|
+
showIf: T(s)($.showIf),
|
|
6571
6571
|
onBlockShowIfChange: d
|
|
6572
6572
|
}, null, 8, ["name", "blockType", "showIf"])) : (g(), w(mt, {
|
|
6573
6573
|
key: 1,
|
|
@@ -6575,7 +6575,7 @@ const a4 = Re(n4), i4 = { class: "g-form" }, l4 = { class: "g-form-header" }, r4
|
|
|
6575
6575
|
ref_key: "formItemRef",
|
|
6576
6576
|
ref: m,
|
|
6577
6577
|
formModel: r.value,
|
|
6578
|
-
formItem:
|
|
6578
|
+
formItem: $,
|
|
6579
6579
|
viewName: h.viewName,
|
|
6580
6580
|
onAfterUpdateValue: E
|
|
6581
6581
|
}, null, 8, ["formModel", "formItem", "viewName"]))
|
|
@@ -6728,56 +6728,56 @@ const s4 = /* @__PURE__ */ au(M4, [["__scopeId", "data-v-0e96ba67"]]), c4 = Re(s
|
|
|
6728
6728
|
}), tu("isHeaderFormItem", !0);
|
|
6729
6729
|
const b = ve("tableSelectedRow", F([]));
|
|
6730
6730
|
return (d, E) => {
|
|
6731
|
-
const c = G("t-button"), f = G("t-space"),
|
|
6731
|
+
const c = G("t-button"), f = G("t-space"), V = G("t-form");
|
|
6732
6732
|
return g(), R("div", D4, [a.value && a.value.length ? (g(), w(f, {
|
|
6733
6733
|
key: 0,
|
|
6734
6734
|
class: "g-header-button",
|
|
6735
6735
|
size: "8px"
|
|
6736
6736
|
}, {
|
|
6737
|
-
default: z(() => [(g(!0), R(Me, null, Ee(a.value, (
|
|
6738
|
-
key:
|
|
6739
|
-
}, [
|
|
6737
|
+
default: z(() => [(g(!0), R(Me, null, Ee(a.value, (I) => (g(), R(Me, {
|
|
6738
|
+
key: I.buttonId
|
|
6739
|
+
}, [I.action == "UPLOAD_FILE" ? (g(), w(N4, {
|
|
6740
6740
|
key: 0,
|
|
6741
|
-
button:
|
|
6741
|
+
button: I,
|
|
6742
6742
|
viewName: d.viewName
|
|
6743
|
-
}, null, 8, ["button", "viewName"])) :
|
|
6743
|
+
}, null, 8, ["button", "viewName"])) : I.action === "BATCH" ? (g(), w(c, {
|
|
6744
6744
|
key: 1,
|
|
6745
6745
|
theme: T(b).length > 0 ? "danger" : "default",
|
|
6746
6746
|
disabled: T(b).length == 0,
|
|
6747
|
-
onClick: (B) => i(
|
|
6747
|
+
onClick: (B) => i(I)
|
|
6748
6748
|
}, {
|
|
6749
|
-
default: z(() => [ie(ee(
|
|
6749
|
+
default: z(() => [ie(ee(I.name), 1)]),
|
|
6750
6750
|
_: 2
|
|
6751
6751
|
}, 1032, ["theme", "disabled", "onClick"])) : (g(), w(c, {
|
|
6752
6752
|
key: 2,
|
|
6753
6753
|
theme: "primary",
|
|
6754
|
-
onClick: (B) => i(
|
|
6754
|
+
onClick: (B) => i(I)
|
|
6755
6755
|
}, {
|
|
6756
|
-
default: z(() => [ie(ee(
|
|
6756
|
+
default: z(() => [ie(ee(I.name), 1)]),
|
|
6757
6757
|
_: 2
|
|
6758
6758
|
}, 1032, ["onClick"]))], 64))), 128))]),
|
|
6759
6759
|
_: 1
|
|
6760
6760
|
})) : q("", !0), J("div", g4, [U(f, {
|
|
6761
6761
|
size: "8px"
|
|
6762
6762
|
}, {
|
|
6763
|
-
default: z(() => [U(
|
|
6763
|
+
default: z(() => [U(V, {
|
|
6764
6764
|
labelAlign: "left",
|
|
6765
6765
|
layout: "inline",
|
|
6766
6766
|
colon: ""
|
|
6767
6767
|
}, {
|
|
6768
|
-
default: z(() => [(g(!0), R(Me, null, Ee(l.value, (
|
|
6768
|
+
default: z(() => [(g(!0), R(Me, null, Ee(l.value, (I, B) => (g(), w(mt, {
|
|
6769
6769
|
ref_for: !0,
|
|
6770
6770
|
ref: "gFormItemRefs",
|
|
6771
6771
|
key: B,
|
|
6772
6772
|
formItem: {
|
|
6773
|
-
...
|
|
6773
|
+
...I,
|
|
6774
6774
|
required: !1
|
|
6775
6775
|
},
|
|
6776
6776
|
formModel: D.value,
|
|
6777
6777
|
viewName: d.viewName,
|
|
6778
6778
|
onAfterUpdateValue: A,
|
|
6779
6779
|
isLabelNameShow: !0,
|
|
6780
|
-
componentProps: x(
|
|
6780
|
+
componentProps: x(I),
|
|
6781
6781
|
"enable-label-ellipsis": !1
|
|
6782
6782
|
}, null, 8, ["formItem", "formModel", "viewName", "componentProps"]))), 128))]),
|
|
6783
6783
|
_: 1
|
|
@@ -6786,15 +6786,15 @@ const s4 = /* @__PURE__ */ au(M4, [["__scopeId", "data-v-0e96ba67"]]), c4 = Re(s
|
|
|
6786
6786
|
}), U(f, {
|
|
6787
6787
|
size: "8px"
|
|
6788
6788
|
}, {
|
|
6789
|
-
default: z(() => [(g(!0), R(Me, null, Ee(N.value, (
|
|
6789
|
+
default: z(() => [(g(!0), R(Me, null, Ee(N.value, (I, B) => (g(), R("div", {
|
|
6790
6790
|
key: B
|
|
6791
6791
|
}, [U(mt, {
|
|
6792
|
-
formItem:
|
|
6792
|
+
formItem: I,
|
|
6793
6793
|
formModel: D.value,
|
|
6794
6794
|
viewName: d.viewName,
|
|
6795
6795
|
onAfterUpdateValue: A,
|
|
6796
6796
|
isLabelNameShow: !1,
|
|
6797
|
-
componentProps: x(
|
|
6797
|
+
componentProps: x(I)
|
|
6798
6798
|
}, null, 8, ["formItem", "formModel", "viewName", "componentProps"])]))), 128)), l.value.length || N.value.length ? (g(), w(c, {
|
|
6799
6799
|
key: 0,
|
|
6800
6800
|
theme: "default",
|
|
@@ -6934,7 +6934,7 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
6934
6934
|
}), 128))
|
|
6935
6935
|
], 2));
|
|
6936
6936
|
}
|
|
6937
|
-
}),
|
|
6937
|
+
}), Vt = 32, st = 16 * 2, A4 = /* @__PURE__ */ ue({
|
|
6938
6938
|
__name: "GTableOperations",
|
|
6939
6939
|
props: {
|
|
6940
6940
|
buttons: {},
|
|
@@ -6956,12 +6956,12 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
6956
6956
|
if (!N.value || !l.value)
|
|
6957
6957
|
return y.value.length;
|
|
6958
6958
|
if (l.value < D.value) {
|
|
6959
|
-
let c = l.value, f = 0,
|
|
6960
|
-
y.value.length > s.value && (c -=
|
|
6961
|
-
for (const
|
|
6962
|
-
const B = A(
|
|
6963
|
-
if (
|
|
6964
|
-
|
|
6959
|
+
let c = l.value, f = 0, V = st;
|
|
6960
|
+
y.value.length > s.value && (c -= Vt);
|
|
6961
|
+
for (const I of y.value) {
|
|
6962
|
+
const B = A(I);
|
|
6963
|
+
if (V + B < c)
|
|
6964
|
+
V += B, f++;
|
|
6965
6965
|
else
|
|
6966
6966
|
break;
|
|
6967
6967
|
}
|
|
@@ -6972,15 +6972,15 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
6972
6972
|
de(
|
|
6973
6973
|
() => _.value,
|
|
6974
6974
|
(c) => {
|
|
6975
|
-
c <= 0 && (l.value =
|
|
6975
|
+
c <= 0 && (l.value = Vt);
|
|
6976
6976
|
}
|
|
6977
6977
|
);
|
|
6978
6978
|
const m = (c, f) => {
|
|
6979
6979
|
o.value && (o.value = !1), n("table-button-action", c, f);
|
|
6980
6980
|
}, b = async () => {
|
|
6981
|
-
M.value.forEach((f,
|
|
6982
|
-
const
|
|
6983
|
-
|
|
6981
|
+
M.value.forEach((f, V) => {
|
|
6982
|
+
const I = y.value[V];
|
|
6983
|
+
I && I.name && (f != null && f.$el) && r.value.set(I.name, f.$el.offsetWidth);
|
|
6984
6984
|
}), await tn();
|
|
6985
6985
|
const c = x.value + st;
|
|
6986
6986
|
D.value = c, l.value = c, N.value = !0;
|
|
@@ -6992,7 +6992,7 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
6992
6992
|
if (!N.value)
|
|
6993
6993
|
return 0;
|
|
6994
6994
|
const c = y.value[0];
|
|
6995
|
-
return (c ? A(c) : 0) + (C.value ?
|
|
6995
|
+
return (c ? A(c) : 0) + (C.value ? Vt : 0) + st;
|
|
6996
6996
|
}), E = k(
|
|
6997
6997
|
() => D.value || x.value + st
|
|
6998
6998
|
);
|
|
@@ -7003,8 +7003,8 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
7003
7003
|
},
|
|
7004
7004
|
{ deep: !0 }
|
|
7005
7005
|
), (c, f) => {
|
|
7006
|
-
const
|
|
7007
|
-
return N.value ? (g(), w(
|
|
7006
|
+
const V = G("t-button"), I = G("t-space"), B = G("t-popup");
|
|
7007
|
+
return N.value ? (g(), w(I, {
|
|
7008
7008
|
key: 0,
|
|
7009
7009
|
ref_key: "GTableOperationsRef",
|
|
7010
7010
|
ref: a,
|
|
@@ -7015,41 +7015,41 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
7015
7015
|
}
|
|
7016
7016
|
}, {
|
|
7017
7017
|
default: z(() => [
|
|
7018
|
-
(g(!0), R(Me, null, Ee(S.value, (
|
|
7019
|
-
key:
|
|
7018
|
+
(g(!0), R(Me, null, Ee(S.value, (j) => (g(), w(V, {
|
|
7019
|
+
key: j.name,
|
|
7020
7020
|
ref_for: !0,
|
|
7021
7021
|
ref_key: "buttonRefs",
|
|
7022
7022
|
ref: i,
|
|
7023
7023
|
theme: "primary",
|
|
7024
7024
|
variant: "text",
|
|
7025
|
-
onClick: (Q) => m(
|
|
7025
|
+
onClick: (Q) => m(j, c.row)
|
|
7026
7026
|
}, {
|
|
7027
7027
|
default: z(() => [
|
|
7028
|
-
ie(ee(
|
|
7028
|
+
ie(ee(j.name), 1)
|
|
7029
7029
|
]),
|
|
7030
7030
|
_: 2
|
|
7031
7031
|
}, 1032, ["onClick"]))), 128)),
|
|
7032
7032
|
C.value ? (g(), w(B, {
|
|
7033
7033
|
key: 0,
|
|
7034
7034
|
visible: o.value,
|
|
7035
|
-
"onUpdate:visible": f[0] || (f[0] = (
|
|
7035
|
+
"onUpdate:visible": f[0] || (f[0] = (j) => o.value = j),
|
|
7036
7036
|
trigger: "hover",
|
|
7037
7037
|
overlayClassName: "omitted-dropdown"
|
|
7038
7038
|
}, {
|
|
7039
7039
|
content: z(() => [
|
|
7040
|
-
U(
|
|
7040
|
+
U(I, {
|
|
7041
7041
|
direction: "vertical",
|
|
7042
7042
|
size: "0"
|
|
7043
7043
|
}, {
|
|
7044
7044
|
default: z(() => [
|
|
7045
|
-
(g(!0), R(Me, null, Ee(p.value, (
|
|
7046
|
-
key:
|
|
7045
|
+
(g(!0), R(Me, null, Ee(p.value, (j) => (g(), w(V, {
|
|
7046
|
+
key: j.name,
|
|
7047
7047
|
theme: "primary",
|
|
7048
7048
|
variant: "text",
|
|
7049
|
-
onClick: (Q) => m(
|
|
7049
|
+
onClick: (Q) => m(j, c.row)
|
|
7050
7050
|
}, {
|
|
7051
7051
|
default: z(() => [
|
|
7052
|
-
ie(ee(
|
|
7052
|
+
ie(ee(j.name), 1)
|
|
7053
7053
|
]),
|
|
7054
7054
|
_: 2
|
|
7055
7055
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -7058,7 +7058,7 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
7058
7058
|
})
|
|
7059
7059
|
]),
|
|
7060
7060
|
default: z(() => [
|
|
7061
|
-
U(
|
|
7061
|
+
U(V, {
|
|
7062
7062
|
variant: "text",
|
|
7063
7063
|
shape: "circle"
|
|
7064
7064
|
}, {
|
|
@@ -7072,7 +7072,7 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
7072
7072
|
}, 8, ["visible"])) : q("", !0)
|
|
7073
7073
|
]),
|
|
7074
7074
|
_: 1
|
|
7075
|
-
}, 512)) : (g(), w(
|
|
7075
|
+
}, 512)) : (g(), w(I, {
|
|
7076
7076
|
key: 1,
|
|
7077
7077
|
ref_key: "GTableOperationsRef",
|
|
7078
7078
|
ref: a,
|
|
@@ -7083,8 +7083,8 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
7083
7083
|
}
|
|
7084
7084
|
}, {
|
|
7085
7085
|
default: z(() => [
|
|
7086
|
-
(g(!0), R(Me, null, Ee(y.value, (
|
|
7087
|
-
key:
|
|
7086
|
+
(g(!0), R(Me, null, Ee(y.value, (j) => (g(), w(V, {
|
|
7087
|
+
key: j.name,
|
|
7088
7088
|
ref_for: !0,
|
|
7089
7089
|
ref_key: "initButtonRefs",
|
|
7090
7090
|
ref: M,
|
|
@@ -7092,7 +7092,7 @@ const d4 = /* @__PURE__ */ au(T4, [["__scopeId", "data-v-63db2f69"]]), j4 = Re(d
|
|
|
7092
7092
|
variant: "text"
|
|
7093
7093
|
}, {
|
|
7094
7094
|
default: z(() => [
|
|
7095
|
-
ie(ee(
|
|
7095
|
+
ie(ee(j.name), 1)
|
|
7096
7096
|
]),
|
|
7097
7097
|
_: 2
|
|
7098
7098
|
}, 1024))), 128))
|
|
@@ -7120,7 +7120,7 @@ function iu(t) {
|
|
|
7120
7120
|
if (typeof t != "string")
|
|
7121
7121
|
throw new TypeError("Path must be a string. Received " + JSON.stringify(t));
|
|
7122
7122
|
}
|
|
7123
|
-
function
|
|
7123
|
+
function $o(t, u) {
|
|
7124
7124
|
for (var e = "", o = 0, n = -1, a = 0, i, M = 0; M <= t.length; ++M) {
|
|
7125
7125
|
if (M < t.length)
|
|
7126
7126
|
i = t.charCodeAt(M);
|
|
@@ -7164,13 +7164,13 @@ var Su = {
|
|
|
7164
7164
|
var a;
|
|
7165
7165
|
n >= 0 ? a = arguments[n] : (o === void 0 && (o = process.cwd()), a = o), iu(a), a.length !== 0 && (u = a + "/" + u, e = a.charCodeAt(0) === 47);
|
|
7166
7166
|
}
|
|
7167
|
-
return u =
|
|
7167
|
+
return u = $o(u, !e), e ? u.length > 0 ? "/" + u : "/" : u.length > 0 ? u : ".";
|
|
7168
7168
|
},
|
|
7169
7169
|
normalize: function(u) {
|
|
7170
7170
|
if (iu(u), u.length === 0)
|
|
7171
7171
|
return ".";
|
|
7172
7172
|
var e = u.charCodeAt(0) === 47, o = u.charCodeAt(u.length - 1) === 47;
|
|
7173
|
-
return u =
|
|
7173
|
+
return u = $o(u, !e), u.length === 0 && !e && (u = "."), u.length > 0 && o && (u += "/"), e ? "/" + u : u;
|
|
7174
7174
|
},
|
|
7175
7175
|
isAbsolute: function(u) {
|
|
7176
7176
|
return iu(u), u.length > 0 && u.charCodeAt(0) === 47;
|
|
@@ -7309,7 +7309,7 @@ var Su = {
|
|
|
7309
7309
|
posix: null
|
|
7310
7310
|
};
|
|
7311
7311
|
Su.posix = Su;
|
|
7312
|
-
const E4 = Su.extname,
|
|
7312
|
+
const E4 = Su.extname, Vn = Su.basename;
|
|
7313
7313
|
class f4 {
|
|
7314
7314
|
constructor() {
|
|
7315
7315
|
let u = (() => typeof global > "u")(), e = "image/png", o = "image/jpeg", n = "image/jpeg", a = "image/webp", i = "application/pdf", M = "image/svg+xml";
|
|
@@ -7362,7 +7362,7 @@ function p4(t, {
|
|
|
7362
7362
|
"The quality option must be an number in the 0.0–1.0 range"
|
|
7363
7363
|
);
|
|
7364
7364
|
if (M === void 0) {
|
|
7365
|
-
let d = (e ||
|
|
7365
|
+
let d = (e || Vn(u, A)).match(/@(\d+)x$/i);
|
|
7366
7366
|
M = d ? parseInt(d[1], 10) : 1;
|
|
7367
7367
|
} else if (typeof M != "number" || !Number.isInteger(M) || M < 1)
|
|
7368
7368
|
throw new TypeError("The density option must be a non-negative integer");
|
|
@@ -7469,7 +7469,7 @@ const Io = (t, u, e, o) => {
|
|
|
7469
7469
|
}, x4 = (...t) => Io(...t).then((u) => u.arrayBuffer()), z4 = async (t, u, e, o, n) => {
|
|
7470
7470
|
Rn(n, await Io(t, u, e, o));
|
|
7471
7471
|
}, C4 = async (t, u, e, o, n, a, i) => {
|
|
7472
|
-
let M = (r) => a.replace("{}", String(r + 1).padStart(i, "0")), l =
|
|
7472
|
+
let M = (r) => a.replace("{}", String(r + 1).padStart(i, "0")), l = Vn(n, ".zip") || "archive", N = new Ct(l);
|
|
7473
7473
|
await Promise.all(
|
|
7474
7474
|
t.map(async (r, s) => {
|
|
7475
7475
|
let D = M(s);
|
|
@@ -7484,7 +7484,7 @@ const Io = (t, u, e, o) => {
|
|
|
7484
7484
|
return o.canvas;
|
|
7485
7485
|
let n = document.createElement("canvas"), a = n.getContext("2d"), i = o.canvas ? o.canvas : o;
|
|
7486
7486
|
return n.width = i.width * u, n.height = i.height * u, e && (a.fillStyle = e, a.fillRect(0, 0, n.width, n.height)), a.scale(u, u), a.drawImage(i, 0, 0), n;
|
|
7487
|
-
}), h4 = { asBuffer: x4, asDownload: z4, asZipDownload: C4, atScale: L4, options: p4 }, { asBuffer: Gt, asDownload: O4, asZipDownload: k4, atScale: Ht, options: Zt } = h4,
|
|
7487
|
+
}), h4 = { asBuffer: x4, asDownload: z4, asZipDownload: C4, atScale: L4, options: p4 }, { asBuffer: Gt, asDownload: O4, asZipDownload: k4, atScale: Ht, options: Zt } = h4, Vo = Symbol.for("toDataURL"), S4 = (t) => new Promise(
|
|
7488
7488
|
(u, e) => Object.assign(new Wn(), {
|
|
7489
7489
|
crossOrigin: "Anonymous",
|
|
7490
7490
|
onload: u,
|
|
@@ -7536,10 +7536,10 @@ let w4 = class {
|
|
|
7536
7536
|
let N = Zt(this.pages, { extension: M, ...l }), { mime: r, quality: s, matte: D, pages: y, density: A } = N, x = Ht(y, A, D)[0];
|
|
7537
7537
|
return Gt(x, r, s, D);
|
|
7538
7538
|
},
|
|
7539
|
-
[
|
|
7539
|
+
[Vo]: o.toDataURL.bind(o),
|
|
7540
7540
|
toDataURL(M = "png", l = {}) {
|
|
7541
7541
|
l = typeof l == "number" ? { quality: l } : l;
|
|
7542
|
-
let N = Zt(this.pages, { extension: M, ...l }), { mime: r, quality: s, matte: D, pages: y, density: A } = N, x = Ht(y, A, D)[0], _ = x[x === o ?
|
|
7542
|
+
let N = Zt(this.pages, { extension: M, ...l }), { mime: r, quality: s, matte: D, pages: y, density: A } = N, x = Ht(y, A, D)[0], _ = x[x === o ? Vo : "toDataURL"](r, s);
|
|
7543
7543
|
return Promise.resolve(_);
|
|
7544
7544
|
}
|
|
7545
7545
|
});
|
|
@@ -7579,7 +7579,7 @@ const {
|
|
|
7579
7579
|
return e;
|
|
7580
7580
|
}, wu = (t, u) => (e, o, n, a) => {
|
|
7581
7581
|
u(e, o, n) && a(e, t, o, n);
|
|
7582
|
-
},
|
|
7582
|
+
}, $4 = (t, u) => (e, o, n, a) => {
|
|
7583
7583
|
const i = [];
|
|
7584
7584
|
let M = e.pos;
|
|
7585
7585
|
for (; u(e, o, n); ) {
|
|
@@ -7589,7 +7589,7 @@ const {
|
|
|
7589
7589
|
M = e.pos, i.push(l);
|
|
7590
7590
|
}
|
|
7591
7591
|
return i;
|
|
7592
|
-
},
|
|
7592
|
+
}, V4 = (t) => ({
|
|
7593
7593
|
data: t,
|
|
7594
7594
|
pos: 0
|
|
7595
7595
|
}), Je = () => (t) => t.data[t.pos++], Gn = (t = 0) => (u) => u.data[u.pos + t], cu = (t) => (u) => u.data.subarray(u.pos, u.pos += t), Lt = (t) => (u) => u.data.subarray(u.pos, u.pos + t), lo = (t) => (u) => Array.from(cu(t)(u)).map((e) => String.fromCharCode(e)).join(""), Lu = (t) => (u) => {
|
|
@@ -7748,7 +7748,7 @@ const W4 = wu(
|
|
|
7748
7748
|
),
|
|
7749
7749
|
// content frames
|
|
7750
7750
|
{
|
|
7751
|
-
frames:
|
|
7751
|
+
frames: $4(
|
|
7752
7752
|
[W4, Z4, K4, G4, H4],
|
|
7753
7753
|
(t) => {
|
|
7754
7754
|
var u = Gn()(t);
|
|
@@ -7799,7 +7799,7 @@ const W4 = wu(
|
|
|
7799
7799
|
return _;
|
|
7800
7800
|
}, e0 = (t) => {
|
|
7801
7801
|
const u = new Uint8Array(t);
|
|
7802
|
-
return qu(
|
|
7802
|
+
return qu(V4(u), q4);
|
|
7803
7803
|
}, u0 = (t) => {
|
|
7804
7804
|
const u = t.pixels.length, e = new Uint8ClampedArray(u * 4);
|
|
7805
7805
|
for (var o = 0; o < u; o++) {
|
|
@@ -7830,16 +7830,16 @@ function n0(t, u, e) {
|
|
|
7830
7830
|
const o = Zn(u), n = t - 1;
|
|
7831
7831
|
let a = 0;
|
|
7832
7832
|
switch (e) {
|
|
7833
|
-
case
|
|
7833
|
+
case $e.L:
|
|
7834
7834
|
a = lu[n][0];
|
|
7835
7835
|
break;
|
|
7836
|
-
case
|
|
7836
|
+
case $e.M:
|
|
7837
7837
|
a = lu[n][1];
|
|
7838
7838
|
break;
|
|
7839
|
-
case
|
|
7839
|
+
case $e.Q:
|
|
7840
7840
|
a = lu[n][2];
|
|
7841
7841
|
break;
|
|
7842
|
-
case
|
|
7842
|
+
case $e.H:
|
|
7843
7843
|
a = lu[n][3];
|
|
7844
7844
|
break;
|
|
7845
7845
|
}
|
|
@@ -7849,16 +7849,16 @@ function a0(t, u) {
|
|
|
7849
7849
|
for (var e = 1, o = Zn(t), n = 0, a = lu.length; n < a; n++) {
|
|
7850
7850
|
var i = 0;
|
|
7851
7851
|
switch (u) {
|
|
7852
|
-
case
|
|
7852
|
+
case $e.L:
|
|
7853
7853
|
i = lu[n][0];
|
|
7854
7854
|
break;
|
|
7855
|
-
case
|
|
7855
|
+
case $e.M:
|
|
7856
7856
|
i = lu[n][1];
|
|
7857
7857
|
break;
|
|
7858
|
-
case
|
|
7858
|
+
case $e.Q:
|
|
7859
7859
|
i = lu[n][2];
|
|
7860
7860
|
break;
|
|
7861
|
-
case
|
|
7861
|
+
case $e.H:
|
|
7862
7862
|
i = lu[n][3];
|
|
7863
7863
|
break;
|
|
7864
7864
|
}
|
|
@@ -7893,7 +7893,7 @@ class i0 {
|
|
|
7893
7893
|
}
|
|
7894
7894
|
}
|
|
7895
7895
|
class pu {
|
|
7896
|
-
constructor(u = -1, e =
|
|
7896
|
+
constructor(u = -1, e = $e.L) {
|
|
7897
7897
|
this.moduleCount = 0, this.dataList = [], this.typeNumber = u, this.errorCorrectLevel = e, this.moduleCount = 0, this.dataList = [];
|
|
7898
7898
|
}
|
|
7899
7899
|
addData(u) {
|
|
@@ -8026,7 +8026,7 @@ class pu {
|
|
|
8026
8026
|
for (var N = 0; N < i[l].length; N++)
|
|
8027
8027
|
i[l][N] = 255 & u.buffer[N + o];
|
|
8028
8028
|
o += y;
|
|
8029
|
-
const x = ye.getErrorCorrectPolynomial(A), S = new
|
|
8029
|
+
const x = ye.getErrorCorrectPolynomial(A), S = new $u(i[l], x.getLength() - 1).mod(x);
|
|
8030
8030
|
M[l] = new Array(x.getLength() - 1);
|
|
8031
8031
|
for (var N = 0; N < M[l].length; N++) {
|
|
8032
8032
|
const C = N + S.getLength() - M[l].length;
|
|
@@ -8049,7 +8049,7 @@ class pu {
|
|
|
8049
8049
|
}
|
|
8050
8050
|
pu.PAD0 = 236;
|
|
8051
8051
|
pu.PAD1 = 17;
|
|
8052
|
-
const
|
|
8052
|
+
const $e = { L: 1, M: 0, Q: 3, H: 2 }, He = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, gu = {
|
|
8053
8053
|
PATTERN000: 0,
|
|
8054
8054
|
PATTERN001: 1,
|
|
8055
8055
|
PATTERN010: 2,
|
|
@@ -8104,9 +8104,9 @@ class ye {
|
|
|
8104
8104
|
}
|
|
8105
8105
|
}
|
|
8106
8106
|
static getErrorCorrectPolynomial(u) {
|
|
8107
|
-
let e = new
|
|
8107
|
+
let e = new $u([1], 0);
|
|
8108
8108
|
for (let o = 0; o < u; o++)
|
|
8109
|
-
e = e.multiply(new
|
|
8109
|
+
e = e.multiply(new $u([1, he.gexp(o)], 0));
|
|
8110
8110
|
return e;
|
|
8111
8111
|
}
|
|
8112
8112
|
static getLengthInBits(u, e) {
|
|
@@ -8253,7 +8253,7 @@ he._constructor = function() {
|
|
|
8253
8253
|
for (var t = 0; t < 255; t++)
|
|
8254
8254
|
he.LOG_TABLE[he.EXP_TABLE[t]] = t;
|
|
8255
8255
|
}();
|
|
8256
|
-
class
|
|
8256
|
+
class $u {
|
|
8257
8257
|
constructor(u, e) {
|
|
8258
8258
|
if (u.length == null)
|
|
8259
8259
|
throw new Error(`${u.length}/${e}`);
|
|
@@ -8275,7 +8275,7 @@ class Vu {
|
|
|
8275
8275
|
for (let o = 0; o < this.getLength(); o++)
|
|
8276
8276
|
for (let n = 0; n < u.getLength(); n++)
|
|
8277
8277
|
e[o + n] ^= he.gexp(he.glog(this.get(o)) + he.glog(u.get(n)));
|
|
8278
|
-
return new
|
|
8278
|
+
return new $u(e, 0);
|
|
8279
8279
|
}
|
|
8280
8280
|
mod(u) {
|
|
8281
8281
|
if (this.getLength() - u.getLength() < 0)
|
|
@@ -8285,7 +8285,7 @@ class Vu {
|
|
|
8285
8285
|
o[n] = this.get(n);
|
|
8286
8286
|
for (var n = 0; n < u.getLength(); n++)
|
|
8287
8287
|
o[n] ^= he.gexp(he.glog(u.get(n)) + e);
|
|
8288
|
-
return new
|
|
8288
|
+
return new $u(o, 0).mod(u);
|
|
8289
8289
|
}
|
|
8290
8290
|
}
|
|
8291
8291
|
class Tu {
|
|
@@ -8306,13 +8306,13 @@ class Tu {
|
|
|
8306
8306
|
}
|
|
8307
8307
|
static getRsBlockTable(u, e) {
|
|
8308
8308
|
switch (e) {
|
|
8309
|
-
case
|
|
8309
|
+
case $e.L:
|
|
8310
8310
|
return Tu.RS_BLOCK_TABLE[(u - 1) * 4 + 0];
|
|
8311
|
-
case
|
|
8311
|
+
case $e.M:
|
|
8312
8312
|
return Tu.RS_BLOCK_TABLE[(u - 1) * 4 + 1];
|
|
8313
|
-
case
|
|
8313
|
+
case $e.Q:
|
|
8314
8314
|
return Tu.RS_BLOCK_TABLE[(u - 1) * 4 + 2];
|
|
8315
|
-
case
|
|
8315
|
+
case $e.H:
|
|
8316
8316
|
return Tu.RS_BLOCK_TABLE[(u - 1) * 4 + 3];
|
|
8317
8317
|
default:
|
|
8318
8318
|
return;
|
|
@@ -8560,13 +8560,13 @@ function j0(t, u) {
|
|
|
8560
8560
|
e[p][0] -= S * (e[p][0] - C) / ct, e[p][1] -= S * (e[p][1] - m) / ct, e[p][2] -= S * (e[p][2] - b) / ct;
|
|
8561
8561
|
}
|
|
8562
8562
|
function r(S, p, C, m, b) {
|
|
8563
|
-
for (var d = Math.abs(p - S), E = Math.min(p + S, Qe), c = p + 1, f = p - 1,
|
|
8564
|
-
B = i[
|
|
8563
|
+
for (var d = Math.abs(p - S), E = Math.min(p + S, Qe), c = p + 1, f = p - 1, V = 1, I, B; c < E || f > d; )
|
|
8564
|
+
B = i[V++], c < E && (I = e[c++], I[0] -= B * (I[0] - C) / Fu, I[1] -= B * (I[1] - m) / Fu, I[2] -= B * (I[2] - b) / Fu), f > d && (I = e[f--], I[0] -= B * (I[0] - C) / Fu, I[1] -= B * (I[1] - m) / Fu, I[2] -= B * (I[2] - b) / Fu);
|
|
8565
8565
|
}
|
|
8566
8566
|
function s(S, p, C) {
|
|
8567
|
-
var m = 2147483647, b = m, d = -1, E = d, c, f,
|
|
8567
|
+
var m = 2147483647, b = m, d = -1, E = d, c, f, V, I, B;
|
|
8568
8568
|
for (c = 0; c < Qe; c++)
|
|
8569
|
-
f = e[c],
|
|
8569
|
+
f = e[c], V = Math.abs(f[0] - S) + Math.abs(f[1] - p) + Math.abs(f[2] - C), V < m && (m = V, d = c), I = V - (n[c] >> Kn - Eu), I < b && (b = I, E = c), B = a[c] >> mo, a[c] -= B, n[c] += B << qn;
|
|
8570
8570
|
return a[d] += M0, n[d] -= s0, E;
|
|
8571
8571
|
}
|
|
8572
8572
|
function D() {
|
|
@@ -8584,8 +8584,8 @@ function j0(t, u) {
|
|
|
8584
8584
|
o[p] = Ro;
|
|
8585
8585
|
}
|
|
8586
8586
|
function y(S, p, C) {
|
|
8587
|
-
for (var m, b, d, E = 1e3, c = -1, f = o[p],
|
|
8588
|
-
f < Qe && (b = e[f], d = b[1] - p, d >= E ? f = Qe : (f++, d < 0 && (d = -d), m = b[0] - S, m < 0 && (m = -m), d += m, d < E && (m = b[2] - C, m < 0 && (m = -m), d += m, d < E && (E = d, c = b[3])))),
|
|
8587
|
+
for (var m, b, d, E = 1e3, c = -1, f = o[p], V = f - 1; f < Qe || V >= 0; )
|
|
8588
|
+
f < Qe && (b = e[f], d = b[1] - p, d >= E ? f = Qe : (f++, d < 0 && (d = -d), m = b[0] - S, m < 0 && (m = -m), d += m, d < E && (m = b[2] - C, m < 0 && (m = -m), d += m, d < E && (E = d, c = b[3])))), V >= 0 && (b = e[V], d = p - b[1], d >= E ? V = -1 : (V--, d < 0 && (d = -d), m = b[0] - S, m < 0 && (m = -m), d += m, d < E && (m = b[2] - C, m < 0 && (m = -m), d += m, d < E && (E = d, c = b[3]))));
|
|
8589
8589
|
return c;
|
|
8590
8590
|
}
|
|
8591
8591
|
function A() {
|
|
@@ -8594,11 +8594,11 @@ function j0(t, u) {
|
|
|
8594
8594
|
i[S] = d * ((c * c - S * S) * Wo / (c * c));
|
|
8595
8595
|
var f;
|
|
8596
8596
|
p < d0 ? (u = 1, f = 3) : p % Go !== 0 ? f = 3 * Go : p % Ho !== 0 ? f = 3 * Ho : p % Zo !== 0 ? f = 3 * Zo : f = 3 * ea;
|
|
8597
|
-
var
|
|
8597
|
+
var V, I, B, j, Q = 0;
|
|
8598
8598
|
for (S = 0; S < m; )
|
|
8599
|
-
if (
|
|
8600
|
-
for (d -= d / C, E -= E / g0, c = E >> ro, c <= 1 && (c = 0),
|
|
8601
|
-
i[
|
|
8599
|
+
if (V = (t[Q] & 255) << Eu, I = (t[Q + 1] & 255) << Eu, B = (t[Q + 2] & 255) << Eu, j = s(V, I, B), N(d, j, V, I, B), c !== 0 && r(c, j, V, I, B), Q += f, Q >= p && (Q -= p), S++, b === 0 && (b = 1), S % b === 0)
|
|
8600
|
+
for (d -= d / C, E -= E / g0, c = E >> ro, c <= 1 && (c = 0), j = 0; j < c; j++)
|
|
8601
|
+
i[j] = d * ((c * c - j * j) * Wo / (c * c));
|
|
8602
8602
|
}
|
|
8603
8603
|
function x() {
|
|
8604
8604
|
M(), A(), l(), D();
|
|
@@ -8636,24 +8636,24 @@ var Ko = -1, Nt = 12, Ku = 5003, I0 = [
|
|
|
8636
8636
|
];
|
|
8637
8637
|
function A0(t, u, e, o) {
|
|
8638
8638
|
var n = Math.max(2, o), a = new Uint8Array(256), i = new Int32Array(Ku), M = new Int32Array(Ku), l, N = 0, r, s = 0, D, y = !1, A, x, _, S, p, C;
|
|
8639
|
-
function m(
|
|
8640
|
-
a[r++] =
|
|
8639
|
+
function m(j, Q) {
|
|
8640
|
+
a[r++] = j, r >= 254 && f(Q);
|
|
8641
8641
|
}
|
|
8642
|
-
function b(
|
|
8643
|
-
d(Ku), s = x + 2, y = !0, B(x,
|
|
8642
|
+
function b(j) {
|
|
8643
|
+
d(Ku), s = x + 2, y = !0, B(x, j);
|
|
8644
8644
|
}
|
|
8645
|
-
function d(
|
|
8646
|
-
for (var Q = 0; Q <
|
|
8645
|
+
function d(j) {
|
|
8646
|
+
for (var Q = 0; Q < j; ++Q)
|
|
8647
8647
|
i[Q] = -1;
|
|
8648
8648
|
}
|
|
8649
|
-
function E(
|
|
8650
|
-
var v, W, h, P, L, O,
|
|
8651
|
-
for (A =
|
|
8652
|
-
|
|
8653
|
-
|
|
8649
|
+
function E(j, Q) {
|
|
8650
|
+
var v, W, h, P, L, O, $;
|
|
8651
|
+
for (A = j, y = !1, C = A, D = V(C), x = 1 << j - 1, _ = x + 1, s = x + 2, r = 0, P = I(), $ = 0, v = Ku; v < 65536; v *= 2)
|
|
8652
|
+
++$;
|
|
8653
|
+
$ = 8 - $, O = Ku, d(O), B(x, Q);
|
|
8654
8654
|
e:
|
|
8655
|
-
for (; (W =
|
|
8656
|
-
if (v = (W << Nt) + P, h = W <<
|
|
8655
|
+
for (; (W = I()) != Ko; ) {
|
|
8656
|
+
if (v = (W << Nt) + P, h = W << $ ^ P, i[h] === v) {
|
|
8657
8657
|
P = M[h];
|
|
8658
8658
|
continue;
|
|
8659
8659
|
} else if (i[h] >= 0) {
|
|
@@ -8669,26 +8669,26 @@ function A0(t, u, e, o) {
|
|
|
8669
8669
|
}
|
|
8670
8670
|
B(P, Q), B(_, Q);
|
|
8671
8671
|
}
|
|
8672
|
-
function c(
|
|
8673
|
-
|
|
8672
|
+
function c(j) {
|
|
8673
|
+
j.writeByte(n), S = t * u, p = 0, E(n + 1, j), j.writeByte(0);
|
|
8674
8674
|
}
|
|
8675
|
-
function f(
|
|
8676
|
-
r > 0 && (
|
|
8675
|
+
function f(j) {
|
|
8676
|
+
r > 0 && (j.writeByte(r), j.writeBytes(a, 0, r), r = 0);
|
|
8677
8677
|
}
|
|
8678
|
-
function
|
|
8679
|
-
return (1 <<
|
|
8678
|
+
function V(j) {
|
|
8679
|
+
return (1 << j) - 1;
|
|
8680
8680
|
}
|
|
8681
|
-
function
|
|
8681
|
+
function I() {
|
|
8682
8682
|
if (S === 0)
|
|
8683
8683
|
return Ko;
|
|
8684
8684
|
--S;
|
|
8685
|
-
var
|
|
8686
|
-
return
|
|
8685
|
+
var j = e[p++];
|
|
8686
|
+
return j & 255;
|
|
8687
8687
|
}
|
|
8688
|
-
function B(
|
|
8689
|
-
for (l &= I0[N], N > 0 ? l |=
|
|
8688
|
+
function B(j, Q) {
|
|
8689
|
+
for (l &= I0[N], N > 0 ? l |= j << N : l = j, N += C; N >= 8; )
|
|
8690
8690
|
m(l & 255, Q), l >>= 8, N -= 8;
|
|
8691
|
-
if ((s > D || y) && (y ? (D =
|
|
8691
|
+
if ((s > D || y) && (y ? (D = V(C = A), y = !1) : (++C, C == Nt ? D = 1 << Nt : D = V(C))), j == _) {
|
|
8692
8692
|
for (; N > 0; )
|
|
8693
8693
|
m(l & 255, Q), l >>= 8, N -= 8;
|
|
8694
8694
|
f(Q);
|
|
@@ -8696,23 +8696,23 @@ function A0(t, u, e, o) {
|
|
|
8696
8696
|
}
|
|
8697
8697
|
this.encode = c;
|
|
8698
8698
|
}
|
|
8699
|
-
function
|
|
8699
|
+
function Ve() {
|
|
8700
8700
|
this.page = -1, this.pages = [], this.newPage();
|
|
8701
8701
|
}
|
|
8702
|
-
|
|
8703
|
-
|
|
8702
|
+
Ve.pageSize = 4096;
|
|
8703
|
+
Ve.charMap = {};
|
|
8704
8704
|
for (var Dt = 0; Dt < 256; Dt++)
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
this.pages[++this.page] = new Uint8Array(
|
|
8705
|
+
Ve.charMap[Dt] = String.fromCharCode(Dt);
|
|
8706
|
+
Ve.prototype.newPage = function() {
|
|
8707
|
+
this.pages[++this.page] = new Uint8Array(Ve.pageSize), this.cursor = 0;
|
|
8708
8708
|
};
|
|
8709
|
-
|
|
8709
|
+
Ve.prototype.getData = function() {
|
|
8710
8710
|
for (var t = "", u = 0; u < this.pages.length; u++)
|
|
8711
|
-
for (var e = 0; e <
|
|
8712
|
-
t +=
|
|
8711
|
+
for (var e = 0; e < Ve.pageSize; e++)
|
|
8712
|
+
t += Ve.charMap[this.pages[u][e]];
|
|
8713
8713
|
return t;
|
|
8714
8714
|
};
|
|
8715
|
-
|
|
8715
|
+
Ve.prototype.toFlattenUint8Array = function() {
|
|
8716
8716
|
const t = [];
|
|
8717
8717
|
for (var u = 0; u < this.pages.length; u++)
|
|
8718
8718
|
if (u === this.pages.length - 1) {
|
|
@@ -8723,19 +8723,19 @@ $e.prototype.toFlattenUint8Array = function() {
|
|
|
8723
8723
|
const e = new Uint8Array(t.reduce((o, n) => o + n.length, 0));
|
|
8724
8724
|
return t.reduce((o, n) => (e.set(n, o), o + n.length), 0), e;
|
|
8725
8725
|
};
|
|
8726
|
-
|
|
8727
|
-
this.cursor >=
|
|
8726
|
+
Ve.prototype.writeByte = function(t) {
|
|
8727
|
+
this.cursor >= Ve.pageSize && this.newPage(), this.pages[this.page][this.cursor++] = t;
|
|
8728
8728
|
};
|
|
8729
|
-
|
|
8729
|
+
Ve.prototype.writeUTFBytes = function(t) {
|
|
8730
8730
|
for (var u = t.length, e = 0; e < u; e++)
|
|
8731
8731
|
this.writeByte(t.charCodeAt(e));
|
|
8732
8732
|
};
|
|
8733
|
-
|
|
8733
|
+
Ve.prototype.writeBytes = function(t, u, e) {
|
|
8734
8734
|
for (var o = e || t.length, n = u || 0; n < o; n++)
|
|
8735
8735
|
this.writeByte(t[n]);
|
|
8736
8736
|
};
|
|
8737
8737
|
function fe(t, u) {
|
|
8738
|
-
this.width = ~~t, this.height = ~~u, this.transparent = null, this.transIndex = 0, this.repeat = -1, this.delay = 0, this.image = null, this.pixels = null, this.indexedPixels = null, this.colorDepth = null, this.colorTab = null, this.neuQuant = null, this.usedEntry = new Array(), this.palSize = 7, this.dispose = -1, this.firstFrame = !0, this.sample = 10, this.dither = !1, this.globalPalette = !1, this.out = new
|
|
8738
|
+
this.width = ~~t, this.height = ~~u, this.transparent = null, this.transIndex = 0, this.repeat = -1, this.delay = 0, this.image = null, this.pixels = null, this.indexedPixels = null, this.colorDepth = null, this.colorTab = null, this.neuQuant = null, this.usedEntry = new Array(), this.palSize = 7, this.dispose = -1, this.firstFrame = !0, this.sample = 10, this.dither = !1, this.globalPalette = !1, this.out = new Ve();
|
|
8739
8739
|
}
|
|
8740
8740
|
fe.prototype.setDelay = function(t) {
|
|
8741
8741
|
this.delay = Math.round(t / 10);
|
|
@@ -8833,8 +8833,8 @@ fe.prototype.ditherPixels = function(t, u) {
|
|
|
8833
8833
|
for (var _ = this.colorTab[D], S = this.colorTab[D + 1], p = this.colorTab[D + 2], C = y - _, m = A - S, b = x - p, d = l == 1 ? 0 : o.length - 1, E = l == 1 ? o.length : 0; d !== E; d += l) {
|
|
8834
8834
|
var c = o[d][1], f = o[d][2];
|
|
8835
8835
|
if (c + r >= 0 && c + r < i && f + N >= 0 && f + N < a) {
|
|
8836
|
-
var
|
|
8837
|
-
D = n + c + f * i, D *= 3, M[D] = Math.max(0, Math.min(255, M[D] + C *
|
|
8836
|
+
var V = o[d][0];
|
|
8837
|
+
D = n + c + f * i, D *= 3, M[D] = Math.max(0, Math.min(255, M[D] + C * V)), M[D + 1] = Math.max(0, Math.min(255, M[D + 1] + m * V)), M[D + 2] = Math.max(0, Math.min(255, M[D + 2] + b * V));
|
|
8838
8838
|
}
|
|
8839
8839
|
}
|
|
8840
8840
|
}
|
|
@@ -9035,9 +9035,9 @@ class Ie {
|
|
|
9035
9035
|
const m = (u = this.qrCode) === null || u === void 0 ? void 0 : u.moduleCount, b = this.options.size;
|
|
9036
9036
|
let d = this.options.margin;
|
|
9037
9037
|
(d < 0 || d * 2 >= b) && (d = 0);
|
|
9038
|
-
const E = Math.ceil(d), c = b - 2 * d, f = this.options.whiteMargin,
|
|
9038
|
+
const E = Math.ceil(d), c = b - 2 * d, f = this.options.whiteMargin, V = this.options.backgroundDimming, I = Math.ceil(c / m), B = I * m, j = B + 2 * E, Q = new Du(j, j), v = Q.getContext("2d");
|
|
9039
9039
|
this._clear(), v.save(), v.translate(E, E);
|
|
9040
|
-
const W = new Du(
|
|
9040
|
+
const W = new Du(j, j), h = W.getContext("2d");
|
|
9041
9041
|
let P = null, L = [];
|
|
9042
9042
|
if (this.options.gifBackground) {
|
|
9043
9043
|
const K = e0(this.options.gifBackground);
|
|
@@ -9055,26 +9055,26 @@ class Ie {
|
|
|
9055
9055
|
const oe = Ie._getAverageRGB(K);
|
|
9056
9056
|
this.options.colorDark = `rgb(${oe.r},${oe.g},${oe.b})`;
|
|
9057
9057
|
}
|
|
9058
|
-
h.drawImage(K, 0, 0, K.width, K.height, 0, 0,
|
|
9058
|
+
h.drawImage(K, 0, 0, K.width, K.height, 0, 0, j, j), h.rect(0, 0, j, j), h.fillStyle = V, h.fill();
|
|
9059
9059
|
} else
|
|
9060
|
-
h.rect(0, 0,
|
|
9061
|
-
const O = ye.getPatternPosition(this.qrCode.typeNumber),
|
|
9060
|
+
h.rect(0, 0, j, j), h.fillStyle = this.options.colorLight, h.fill();
|
|
9061
|
+
const O = ye.getPatternPosition(this.qrCode.typeNumber), $ = ((o = (e = this.options.components) === null || e === void 0 ? void 0 : e.data) === null || o === void 0 ? void 0 : o.scale) || gt, H = (1 - $) * 0.5;
|
|
9062
9062
|
for (let K = 0; K < m; K++)
|
|
9063
9063
|
for (let oe = 0; oe < m; oe++) {
|
|
9064
9064
|
const Ne = this.qrCode.isDark(K, oe), ge = oe < 8 && (K < 8 || K >= m - 8) || oe >= m - 8 && K < 8, ze = K == 6 && oe >= 8 && oe <= m - 8 || oe == 6 && K >= 8 && K <= m - 8;
|
|
9065
9065
|
let pe = ge || ze;
|
|
9066
9066
|
for (let Ue = 1; Ue < O.length - 1; Ue++)
|
|
9067
9067
|
pe = pe || K >= O[Ue] - 2 && K <= O[Ue] + 2 && oe >= O[Ue] - 2 && oe <= O[Ue] + 2;
|
|
9068
|
-
const xe = oe *
|
|
9068
|
+
const xe = oe * I + (pe ? 0 : H * I), We = K * I + (pe ? 0 : H * I);
|
|
9069
9069
|
if (v.strokeStyle = Ne ? this.options.colorDark : this.options.colorLight, v.lineWidth = 0.5, v.fillStyle = Ne ? this.options.colorDark : this.options.colorLight, O.length === 0)
|
|
9070
|
-
pe || v.fillRect(xe, We, (pe ? 1 :
|
|
9070
|
+
pe || v.fillRect(xe, We, (pe ? 1 : $) * I, (pe ? 1 : $) * I);
|
|
9071
9071
|
else {
|
|
9072
9072
|
const Ue = oe < m - 4 && oe >= m - 4 - 5 && K < m - 4 && K >= m - 4 - 5;
|
|
9073
|
-
!pe && !Ue && v.fillRect(xe, We, (pe ? 1 :
|
|
9073
|
+
!pe && !Ue && v.fillRect(xe, We, (pe ? 1 : $) * I, (pe ? 1 : $) * I);
|
|
9074
9074
|
}
|
|
9075
9075
|
}
|
|
9076
9076
|
const te = O[O.length - 1], je = this.options.colorLight;
|
|
9077
|
-
if (v.fillStyle = je, v.fillRect(0, 0, 8 *
|
|
9077
|
+
if (v.fillStyle = je, v.fillRect(0, 0, 8 * I, 8 * I), v.fillRect(0, (m - 8) * I, 8 * I, 8 * I), v.fillRect((m - 8) * I, 0, 8 * I, 8 * I), !((a = (n = this.options.components) === null || n === void 0 ? void 0 : n.timing) === null || a === void 0) && a.protectors && (v.fillRect(8 * I, 6 * I, (m - 8 - 8) * I, I), v.fillRect(6 * I, 8 * I, I, (m - 8 - 8) * I)), !((M = (i = this.options.components) === null || i === void 0 ? void 0 : i.cornerAlignment) === null || M === void 0) && M.protectors && Ie._drawAlignProtector(v, te, te, I), !((N = (l = this.options.components) === null || l === void 0 ? void 0 : l.alignment) === null || N === void 0) && N.protectors)
|
|
9078
9078
|
for (let K = 0; K < O.length; K++)
|
|
9079
9079
|
for (let oe = 0; oe < O.length; oe++) {
|
|
9080
9080
|
const Ne = O[oe], ge = O[K];
|
|
@@ -9083,15 +9083,15 @@ class Ie {
|
|
|
9083
9083
|
continue;
|
|
9084
9084
|
if (Ne === te && ge === te)
|
|
9085
9085
|
continue;
|
|
9086
|
-
Ie._drawAlignProtector(v, Ne, ge,
|
|
9086
|
+
Ie._drawAlignProtector(v, Ne, ge, I);
|
|
9087
9087
|
}
|
|
9088
9088
|
}
|
|
9089
|
-
v.fillStyle = this.options.colorDark, v.fillRect(0, 0, 7 *
|
|
9089
|
+
v.fillStyle = this.options.colorDark, v.fillRect(0, 0, 7 * I, I), v.fillRect((m - 7) * I, 0, 7 * I, I), v.fillRect(0, 6 * I, 7 * I, I), v.fillRect((m - 7) * I, 6 * I, 7 * I, I), v.fillRect(0, (m - 7) * I, 7 * I, I), v.fillRect(0, (m - 7 + 6) * I, 7 * I, I), v.fillRect(0, 0, I, 7 * I), v.fillRect(6 * I, 0, I, 7 * I), v.fillRect((m - 7) * I, 0, I, 7 * I), v.fillRect((m - 7 + 6) * I, 0, I, 7 * I), v.fillRect(0, (m - 7) * I, I, 7 * I), v.fillRect(6 * I, (m - 7) * I, I, 7 * I), v.fillRect(2 * I, 2 * I, 3 * I, 3 * I), v.fillRect((m - 7 + 2) * I, 2 * I, 3 * I, 3 * I), v.fillRect(2 * I, (m - 7 + 2) * I, 3 * I, 3 * I);
|
|
9090
9090
|
const Se = ((s = (r = this.options.components) === null || r === void 0 ? void 0 : r.timing) === null || s === void 0 ? void 0 : s.scale) || gt, ae = (1 - Se) * 0.5;
|
|
9091
9091
|
for (let K = 0; K < m - 8; K += 2)
|
|
9092
|
-
Ie._drawDot(v, 8 + K, 6,
|
|
9092
|
+
Ie._drawDot(v, 8 + K, 6, I, ae, Se), Ie._drawDot(v, 6, 8 + K, I, ae, Se);
|
|
9093
9093
|
const De = ((y = (D = this.options.components) === null || D === void 0 ? void 0 : D.cornerAlignment) === null || y === void 0 ? void 0 : y.scale) || gt, Pe = (1 - De) * 0.5;
|
|
9094
|
-
Ie._drawAlign(v, te, te,
|
|
9094
|
+
Ie._drawAlign(v, te, te, I, Pe, De, this.options.colorDark, ((x = (A = this.options.components) === null || A === void 0 ? void 0 : A.cornerAlignment) === null || x === void 0 ? void 0 : x.protectors) || !1);
|
|
9095
9095
|
const Ke = ((S = (_ = this.options.components) === null || _ === void 0 ? void 0 : _.alignment) === null || S === void 0 ? void 0 : S.scale) || gt, we = (1 - Ke) * 0.5;
|
|
9096
9096
|
for (let K = 0; K < O.length; K++)
|
|
9097
9097
|
for (let oe = 0; oe < O.length; oe++) {
|
|
@@ -9101,14 +9101,14 @@ class Ie {
|
|
|
9101
9101
|
continue;
|
|
9102
9102
|
if (Ne === te && ge === te)
|
|
9103
9103
|
continue;
|
|
9104
|
-
Ie._drawAlign(v, Ne, ge,
|
|
9104
|
+
Ie._drawAlign(v, Ne, ge, I, we, Ke, this.options.colorDark, ((C = (p = this.options.components) === null || p === void 0 ? void 0 : p.alignment) === null || C === void 0 ? void 0 : C.protectors) || !1);
|
|
9105
9105
|
}
|
|
9106
9106
|
}
|
|
9107
|
-
if (f && (v.fillStyle = this.options.backgroundColor, v.fillRect(-E, -E,
|
|
9107
|
+
if (f && (v.fillStyle = this.options.backgroundColor, v.fillRect(-E, -E, j, E), v.fillRect(-E, B, j, E), v.fillRect(B, -E, E, j), v.fillRect(-E, -E, E, j)), this.options.logoImage) {
|
|
9108
9108
|
const K = yield qo(this.options.logoImage);
|
|
9109
9109
|
let oe = this.options.logoScale, Ne = this.options.logoMargin, ge = this.options.logoCornerRadius;
|
|
9110
9110
|
(oe <= 0 || oe >= 1) && (oe = 0.2), Ne < 0 && (Ne = 0), ge < 0 && (ge = 0);
|
|
9111
|
-
const ze = B * oe, pe = 0.5 * (
|
|
9111
|
+
const ze = B * oe, pe = 0.5 * (j - ze), xe = pe;
|
|
9112
9112
|
v.restore(), v.fillStyle = this.options.logoBackgroundColor, v.save(), Ie._prepareRoundedCornerClip(v, pe - Ne, xe - Ne, ze + 2 * Ne, ze + 2 * Ne, ge + Ne), v.clip();
|
|
9113
9113
|
const We = v.globalCompositeOperation;
|
|
9114
9114
|
v.globalCompositeOperation = "destination-out", v.fill(), v.globalCompositeOperation = We, v.restore(), v.save(), Ie._prepareRoundedCornerClip(v, pe, xe, ze, ze, ge), v.clip(), v.drawImage(K, pe, xe, ze, ze), v.restore(), v.save(), v.translate(E, E);
|
|
@@ -9119,8 +9119,8 @@ class Ie {
|
|
|
9119
9119
|
K || (K = new fe(b, b), K.setDelay(xe.delay), K.setRepeat(0));
|
|
9120
9120
|
const { width: We, height: Ue } = xe.dims;
|
|
9121
9121
|
oe || (oe = new Du(We, Ue), Ne = oe.getContext("2d"), Ne.rect(0, 0, oe.width, oe.height), Ne.fillStyle = "#ffffff", Ne.fill()), (!ge || !pe || We !== ge.width || Ue !== ge.height) && (ge = new Du(We, Ue), ze = ge.getContext("2d"), pe = ze.createImageData(We, Ue)), pe.data.set(xe.patch), ze.putImageData(pe, 0, 0), Ne.drawImage(ge.getContext("2d").canvas, xe.dims.left, xe.dims.top);
|
|
9122
|
-
const Bu = new Du(
|
|
9123
|
-
mu.drawImage(oe.getContext("2d").canvas, 0, 0,
|
|
9122
|
+
const Bu = new Du(j, j), mu = Bu.getContext("2d");
|
|
9123
|
+
mu.drawImage(oe.getContext("2d").canvas, 0, 0, j, j), mu.rect(0, 0, j, j), mu.fillStyle = V, mu.fill(), mu.drawImage(Q.getContext("2d").canvas, 0, 0, j, j);
|
|
9124
9124
|
const Y = new Du(b, b), X = Y.getContext("2d");
|
|
9125
9125
|
X.drawImage(Bu.getContext("2d").canvas, 0, 0, b, b), K.addFrame(X.getImageData(0, 0, Y.width, Y.height).data);
|
|
9126
9126
|
}), !K)
|
|
@@ -9131,7 +9131,7 @@ class Ie {
|
|
|
9131
9131
|
}
|
|
9132
9132
|
return Promise.resolve(Buffer.from(K.stream().toFlattenUint8Array()));
|
|
9133
9133
|
} else {
|
|
9134
|
-
h.drawImage(Q.getContext("2d").canvas, 0, 0,
|
|
9134
|
+
h.drawImage(Q.getContext("2d").canvas, 0, 0, j, j), v.drawImage(W.getContext("2d").canvas, -E, -E, j, j);
|
|
9135
9135
|
const K = new Du(b, b);
|
|
9136
9136
|
K.getContext("2d").drawImage(Q.getContext("2d").canvas, 0, 0, b, b), this.canvas = K;
|
|
9137
9137
|
const Ne = this.options.gifBackground ? "gif" : "png";
|
|
@@ -9140,7 +9140,7 @@ class Ie {
|
|
|
9140
9140
|
});
|
|
9141
9141
|
}
|
|
9142
9142
|
}
|
|
9143
|
-
Ie.CorrectLevel =
|
|
9143
|
+
Ie.CorrectLevel = $e;
|
|
9144
9144
|
Ie.defaultComponentOptions = {
|
|
9145
9145
|
data: {
|
|
9146
9146
|
scale: 0.4
|
|
@@ -9164,7 +9164,7 @@ Ie.defaultOptions = {
|
|
|
9164
9164
|
margin: 20,
|
|
9165
9165
|
colorDark: "#000000",
|
|
9166
9166
|
colorLight: "rgba(255, 255, 255, 0.6)",
|
|
9167
|
-
correctLevel:
|
|
9167
|
+
correctLevel: $e.M,
|
|
9168
9168
|
backgroundImage: void 0,
|
|
9169
9169
|
backgroundDimming: "rgba(0,0,0,0)",
|
|
9170
9170
|
logoImage: void 0,
|
|
@@ -9401,19 +9401,19 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9401
9401
|
],
|
|
9402
9402
|
setup(t, { emit: u }) {
|
|
9403
9403
|
const { T: e } = Te(), { reload: o, reloadFlag: n } = ua(), a = t, i = u, M = k(() => {
|
|
9404
|
-
var
|
|
9405
|
-
return (Q = (
|
|
9404
|
+
var j, Q, v, W;
|
|
9405
|
+
return (Q = (j = a.board) == null ? void 0 : j.tableData) != null && Q.keyName ? (W = (v = a.board) == null ? void 0 : v.tableData) == null ? void 0 : W.keyName : "";
|
|
9406
9406
|
}), l = F([]);
|
|
9407
|
-
function N(
|
|
9408
|
-
l.value =
|
|
9407
|
+
function N(j, Q) {
|
|
9408
|
+
l.value = j, i("return-selected-key", l.value), i("return-selected-row", Q.selectedRowData);
|
|
9409
9409
|
}
|
|
9410
9410
|
`${e.t("10/页")}`, `${e.t("15/页")}`, `${e.t("20/页")}`, `${e.t("50/页")}`;
|
|
9411
9411
|
const r = k(() => ({
|
|
9412
9412
|
current: a.paginationProps.page + 1,
|
|
9413
9413
|
pageSize: a.paginationProps.count,
|
|
9414
9414
|
total: a.paginationProps.totalCount,
|
|
9415
|
-
onChange: function(
|
|
9416
|
-
i("return-pagination-props",
|
|
9415
|
+
onChange: function(j) {
|
|
9416
|
+
i("return-pagination-props", j);
|
|
9417
9417
|
},
|
|
9418
9418
|
showJumper: !0,
|
|
9419
9419
|
pageSizeOptions: [
|
|
@@ -9425,46 +9425,59 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9425
9425
|
{ label: `${e.t("200/页")}`, value: 200 },
|
|
9426
9426
|
{ label: `${e.t("500/页")}`, value: 500 },
|
|
9427
9427
|
{ label: `${e.t("全部")}`, value: 9999 }
|
|
9428
|
-
]
|
|
9428
|
+
],
|
|
9429
|
+
totalContent: (j) => j(
|
|
9430
|
+
"div",
|
|
9431
|
+
{
|
|
9432
|
+
className: "t-pagination__total"
|
|
9433
|
+
},
|
|
9434
|
+
[
|
|
9435
|
+
j(
|
|
9436
|
+
"span",
|
|
9437
|
+
{ style: { color: "var(--td-text-color-primary)" } },
|
|
9438
|
+
e.t("共 %s 条数据").replace("%s", `${a.paginationProps.totalCount}`)
|
|
9439
|
+
)
|
|
9440
|
+
]
|
|
9441
|
+
)
|
|
9429
9442
|
})), s = k(() => a.headerFilterProps);
|
|
9430
|
-
function D(
|
|
9431
|
-
if (
|
|
9443
|
+
function D(j, Q) {
|
|
9444
|
+
if (j.value != "")
|
|
9432
9445
|
try {
|
|
9433
|
-
return Iu.render(
|
|
9446
|
+
return Iu.render(j.value, { item: Q });
|
|
9434
9447
|
} catch (v) {
|
|
9435
9448
|
console.error("GTable returnValue Error", v);
|
|
9436
9449
|
}
|
|
9437
9450
|
else
|
|
9438
|
-
return Object.keys(s.value) ? ai(Q[
|
|
9451
|
+
return Object.keys(s.value) ? ai(Q[j.keyName], s.value) : Q[j.keyName];
|
|
9439
9452
|
}
|
|
9440
|
-
function y(
|
|
9441
|
-
return !eu(
|
|
9453
|
+
function y(j) {
|
|
9454
|
+
return !eu(j) && j !== "";
|
|
9442
9455
|
}
|
|
9443
9456
|
const A = () => "<span class='empty'>----</span>";
|
|
9444
|
-
function x(
|
|
9457
|
+
function x(j, Q) {
|
|
9445
9458
|
var v;
|
|
9446
|
-
if (!Ye(
|
|
9447
|
-
let W =
|
|
9448
|
-
if (Q[
|
|
9459
|
+
if (!Ye(j.enums)) {
|
|
9460
|
+
let W = j.enums.filter((h) => {
|
|
9461
|
+
if (Q[j.keyName] == null && (Q[j.keyName] = ""), h.value == String(Q[j.keyName]))
|
|
9449
9462
|
return h.text;
|
|
9450
9463
|
});
|
|
9451
|
-
return W.length ? (v = W.shift()) == null ? void 0 : v.text : y(Q[
|
|
9464
|
+
return W.length ? (v = W.shift()) == null ? void 0 : v.text : y(Q[j.keyName]) ? Q[j.keyName] : A();
|
|
9452
9465
|
}
|
|
9453
9466
|
}
|
|
9454
|
-
function _(
|
|
9455
|
-
if (
|
|
9456
|
-
return Iu.render(
|
|
9457
|
-
if (
|
|
9458
|
-
return y(Q[
|
|
9467
|
+
function _(j, Q) {
|
|
9468
|
+
if (j.value != "")
|
|
9469
|
+
return Iu.render(j.value, { item: Q });
|
|
9470
|
+
if (j.value == "")
|
|
9471
|
+
return y(Q[j.keyName]) ? du(Q[j.keyName]).format("YYYY-MM-DD HH:mm:ss") : A();
|
|
9459
9472
|
}
|
|
9460
|
-
function S(
|
|
9461
|
-
i("table-button-action",
|
|
9473
|
+
function S(j, Q) {
|
|
9474
|
+
i("table-button-action", j, Q);
|
|
9462
9475
|
}
|
|
9463
|
-
function p(
|
|
9464
|
-
i("table-button-action",
|
|
9476
|
+
function p(j) {
|
|
9477
|
+
i("table-button-action", j);
|
|
9465
9478
|
}
|
|
9466
|
-
function C(
|
|
9467
|
-
i("table-form-confirm",
|
|
9479
|
+
function C(j, Q) {
|
|
9480
|
+
i("table-form-confirm", j, Q);
|
|
9468
9481
|
}
|
|
9469
9482
|
de(
|
|
9470
9483
|
() => a.tableData,
|
|
@@ -9472,22 +9485,22 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9472
9485
|
{ deep: !0 }
|
|
9473
9486
|
);
|
|
9474
9487
|
const m = F(null), { width: b } = Nn(m), d = No(), E = F(/* @__PURE__ */ new Map());
|
|
9475
|
-
function c(
|
|
9476
|
-
const { columnsWidth: Q } =
|
|
9488
|
+
function c(j) {
|
|
9489
|
+
const { columnsWidth: Q } = j, v = {};
|
|
9477
9490
|
f.value.forEach((L, O) => {
|
|
9478
|
-
const
|
|
9479
|
-
if (
|
|
9480
|
-
if (
|
|
9481
|
-
v[
|
|
9491
|
+
const $ = L.colKey, H = Q[$];
|
|
9492
|
+
if ($ && H)
|
|
9493
|
+
if ($ === "row-select")
|
|
9494
|
+
v[$] = 50;
|
|
9482
9495
|
else if (L.cell === "BUTTONS" && O === f.value.length - 1) {
|
|
9483
9496
|
const te = L.resize.maxWidth;
|
|
9484
|
-
v[
|
|
9497
|
+
v[$] = Math.min(H, te);
|
|
9485
9498
|
} else
|
|
9486
|
-
v[
|
|
9499
|
+
v[$] = H;
|
|
9487
9500
|
});
|
|
9488
9501
|
const W = Object.entries(v).filter(([L, O]) => {
|
|
9489
|
-
const
|
|
9490
|
-
return L !== "row-select" &&
|
|
9502
|
+
const $ = f.value.findIndex((H) => H.colKey === L);
|
|
9503
|
+
return L !== "row-select" && $ !== f.value.length - 1;
|
|
9491
9504
|
}), h = Object.values(v).reduce((L, O) => L + O, 0), P = b.value;
|
|
9492
9505
|
if (h < P) {
|
|
9493
9506
|
const L = W.reduce((H, [te, je]) => H + je, 0), O = P - h;
|
|
@@ -9495,12 +9508,12 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9495
9508
|
const je = te / L, Se = Math.floor(O * je);
|
|
9496
9509
|
v[H] = te + Se;
|
|
9497
9510
|
});
|
|
9498
|
-
let
|
|
9499
|
-
if (
|
|
9511
|
+
let $ = O - W.reduce((H, [te]) => H + (v[te] - Q[te]), 0);
|
|
9512
|
+
if ($ > 0) {
|
|
9500
9513
|
const H = W.sort(([je, Se], [ae, De]) => De - Se).map(([je]) => je);
|
|
9501
9514
|
let te = 0;
|
|
9502
|
-
for (;
|
|
9503
|
-
v[H[te]] += 1,
|
|
9515
|
+
for (; $ > 0 && te < H.length; )
|
|
9516
|
+
v[H[te]] += 1, $--, te++;
|
|
9504
9517
|
}
|
|
9505
9518
|
}
|
|
9506
9519
|
for (const L of f.value) {
|
|
@@ -9513,9 +9526,9 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9513
9526
|
const f = F([]);
|
|
9514
9527
|
de(
|
|
9515
9528
|
() => a.tableColumns,
|
|
9516
|
-
(
|
|
9517
|
-
if (
|
|
9518
|
-
f.value =
|
|
9529
|
+
(j) => {
|
|
9530
|
+
if (j) {
|
|
9531
|
+
f.value = j;
|
|
9519
9532
|
const Q = d.getColumnWidthData(a.viewName);
|
|
9520
9533
|
Q && (f.value = f.value.map((v) => {
|
|
9521
9534
|
const W = Q[v.colKey];
|
|
@@ -9524,11 +9537,11 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9524
9537
|
}
|
|
9525
9538
|
}
|
|
9526
9539
|
);
|
|
9527
|
-
const
|
|
9540
|
+
const V = k(() => f.value.filter((j) => j.cell === "BUTTONS").map((j) => j.colKey));
|
|
9528
9541
|
de(
|
|
9529
|
-
() =>
|
|
9530
|
-
(
|
|
9531
|
-
|
|
9542
|
+
() => V.value,
|
|
9543
|
+
(j) => {
|
|
9544
|
+
j && j.length && j.forEach((Q) => {
|
|
9532
9545
|
const v = f.value.findIndex((W) => W.colKey === Q);
|
|
9533
9546
|
if (v > -1) {
|
|
9534
9547
|
const W = f.value[v].width;
|
|
@@ -9541,13 +9554,13 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9541
9554
|
deep: !0
|
|
9542
9555
|
}
|
|
9543
9556
|
);
|
|
9544
|
-
const
|
|
9545
|
-
const Q =
|
|
9546
|
-
return Q !== "" ? Q && (Q.includes("Add") || Q.includes("add") || Q.includes("create")) : (console.log(
|
|
9557
|
+
const I = k(() => a.board && a.board.header && a.board.header.buttons ? (console.log(a.board.header.buttons), a.board.header.buttons) : []), B = k(() => I.value && I.value.length ? I.value.filter((j) => {
|
|
9558
|
+
const Q = j.view, v = j.permission;
|
|
9559
|
+
return Q !== "" ? Q && (Q.includes("Add") || Q.includes("add") || Q.includes("create")) : (console.log(j), !!(v && v.length && v.some(
|
|
9547
9560
|
(W) => W.toLowerCase().includes("create") || W.toLowerCase().includes("add")
|
|
9548
9561
|
)));
|
|
9549
9562
|
}) : []);
|
|
9550
|
-
return (
|
|
9563
|
+
return (j, Q) => {
|
|
9551
9564
|
const v = G("t-link"), W = G("t-button"), h = G("t-popup"), P = G("t-image"), L = G("t-image-viewer");
|
|
9552
9565
|
return T(n) ? q("", !0) : (g(), w(T(Nl), {
|
|
9553
9566
|
key: 0,
|
|
@@ -9556,7 +9569,7 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9556
9569
|
ref_key: "tableRef",
|
|
9557
9570
|
ref: m,
|
|
9558
9571
|
commonTableProps: {
|
|
9559
|
-
data:
|
|
9572
|
+
data: j.tableData,
|
|
9560
9573
|
rowKey: M.value,
|
|
9561
9574
|
columns: f.value,
|
|
9562
9575
|
pagination: r.value,
|
|
@@ -9584,35 +9597,35 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9584
9597
|
ie(ee(T(e).t("暂无数据")), 1)
|
|
9585
9598
|
], 64))
|
|
9586
9599
|
]),
|
|
9587
|
-
TEXT: z(({ col: O, row:
|
|
9588
|
-
y(D(O,
|
|
9600
|
+
TEXT: z(({ col: O, row: $ }) => [
|
|
9601
|
+
y(D(O, $)) ? (g(), R("span", x0, [
|
|
9589
9602
|
J("span", {
|
|
9590
|
-
innerHTML: D(O,
|
|
9603
|
+
innerHTML: D(O, $)
|
|
9591
9604
|
}, null, 8, z0)
|
|
9592
9605
|
])) : (g(), R("span", {
|
|
9593
9606
|
key: 1,
|
|
9594
9607
|
innerHTML: A()
|
|
9595
9608
|
}, null, 8, C0))
|
|
9596
9609
|
]),
|
|
9597
|
-
ENUMS: z(({ col: O, row:
|
|
9610
|
+
ENUMS: z(({ col: O, row: $ }) => [
|
|
9598
9611
|
J("span", {
|
|
9599
|
-
innerHTML: x(O,
|
|
9612
|
+
innerHTML: x(O, $)
|
|
9600
9613
|
}, null, 8, L0)
|
|
9601
9614
|
]),
|
|
9602
|
-
DATE: z(({ col: O, row:
|
|
9615
|
+
DATE: z(({ col: O, row: $ }) => [
|
|
9603
9616
|
J("span", {
|
|
9604
|
-
innerHTML: _(O,
|
|
9617
|
+
innerHTML: _(O, $)
|
|
9605
9618
|
}, null, 8, h0)
|
|
9606
9619
|
]),
|
|
9607
|
-
QR_CODE: z(({ col: O, row:
|
|
9620
|
+
QR_CODE: z(({ col: O, row: $ }) => [
|
|
9608
9621
|
U(h, null, {
|
|
9609
9622
|
content: z(() => [
|
|
9610
9623
|
U(p0, {
|
|
9611
|
-
text: D(O,
|
|
9624
|
+
text: D(O, $),
|
|
9612
9625
|
size: 80,
|
|
9613
9626
|
margin: 0
|
|
9614
9627
|
}, null, 8, ["text"]),
|
|
9615
|
-
J("div", O0, ee(
|
|
9628
|
+
J("div", O0, ee($.code), 1)
|
|
9616
9629
|
]),
|
|
9617
9630
|
default: z(() => [
|
|
9618
9631
|
U(W, {
|
|
@@ -9628,25 +9641,25 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9628
9641
|
_: 2
|
|
9629
9642
|
}, 1024)
|
|
9630
9643
|
]),
|
|
9631
|
-
FORM_ITEM: z(({ col: O, row:
|
|
9644
|
+
FORM_ITEM: z(({ col: O, row: $ }) => [
|
|
9632
9645
|
O.formItems && O.formItems.length ? (g(), w(I4, {
|
|
9633
9646
|
key: 0,
|
|
9634
|
-
viewName:
|
|
9647
|
+
viewName: j.viewName,
|
|
9635
9648
|
col: O,
|
|
9636
|
-
row:
|
|
9649
|
+
row: $,
|
|
9637
9650
|
onBlur: C
|
|
9638
9651
|
}, null, 8, ["viewName", "col", "row"])) : (g(), R("span", {
|
|
9639
9652
|
key: 1,
|
|
9640
9653
|
innerHTML: A()
|
|
9641
9654
|
}, null, 8, k0))
|
|
9642
9655
|
]),
|
|
9643
|
-
IMAGE: z(({ col: O, row:
|
|
9656
|
+
IMAGE: z(({ col: O, row: $ }) => [
|
|
9644
9657
|
J("div", {
|
|
9645
9658
|
class: Z(`${T(_u)}__imageViewer`)
|
|
9646
9659
|
}, [
|
|
9647
|
-
D(O,
|
|
9660
|
+
D(O, $) ? (g(), w(L, {
|
|
9648
9661
|
key: 0,
|
|
9649
|
-
images: [D(O,
|
|
9662
|
+
images: [D(O, $)]
|
|
9650
9663
|
}, {
|
|
9651
9664
|
trigger: z(({ open: H }) => [
|
|
9652
9665
|
J("div", {
|
|
@@ -9654,7 +9667,7 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9654
9667
|
}, [
|
|
9655
9668
|
U(P, {
|
|
9656
9669
|
class: Z(`${T(_u)}__imageViewer--image-img`),
|
|
9657
|
-
src: D(O,
|
|
9670
|
+
src: D(O, $),
|
|
9658
9671
|
shape: "round",
|
|
9659
9672
|
fit: "scale-down"
|
|
9660
9673
|
}, {
|
|
@@ -9695,11 +9708,11 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9695
9708
|
], 2))
|
|
9696
9709
|
], 2)
|
|
9697
9710
|
]),
|
|
9698
|
-
BUTTONS: z(({ col: O, row:
|
|
9711
|
+
BUTTONS: z(({ col: O, row: $ }) => [
|
|
9699
9712
|
O.buttons && O.buttons.length > 0 ? (g(), w(A4, {
|
|
9700
9713
|
key: 0,
|
|
9701
9714
|
buttons: O.buttons,
|
|
9702
|
-
row:
|
|
9715
|
+
row: $,
|
|
9703
9716
|
"operations-width": E.value.get(O.colKey) ?? 300,
|
|
9704
9717
|
onTableButtonAction: S
|
|
9705
9718
|
}, null, 8, ["buttons", "row", "operations-width"])) : (g(), R("span", {
|
|
@@ -9712,7 +9725,7 @@ const x0 = { key: 0 }, z0 = ["innerHTML"], C0 = ["innerHTML"], L0 = ["innerHTML"
|
|
|
9712
9725
|
};
|
|
9713
9726
|
}
|
|
9714
9727
|
});
|
|
9715
|
-
const U0 = /* @__PURE__ */ au(v0, [["__scopeId", "data-v-
|
|
9728
|
+
const U0 = /* @__PURE__ */ au(v0, [["__scopeId", "data-v-f124893a"]]), Q0 = /* @__PURE__ */ ue({
|
|
9716
9729
|
__name: "index",
|
|
9717
9730
|
props: {
|
|
9718
9731
|
viewName: {},
|
|
@@ -9869,7 +9882,7 @@ const b0 = /* @__PURE__ */ ue({
|
|
|
9869
9882
|
D.value && i.sendUnregisterMessage(D.value);
|
|
9870
9883
|
});
|
|
9871
9884
|
const c = Uu(), f = nt();
|
|
9872
|
-
function
|
|
9885
|
+
function V(Y) {
|
|
9873
9886
|
const X = Be(_.value), re = Be(C.value);
|
|
9874
9887
|
c.findExistTabMenuItem({ path: Y }) && f.setFormData(Y, {
|
|
9875
9888
|
...X && Object.keys(X).length ? { formData: X } : {},
|
|
@@ -9877,9 +9890,9 @@ const b0 = /* @__PURE__ */ ue({
|
|
|
9877
9890
|
});
|
|
9878
9891
|
}
|
|
9879
9892
|
Mn((Y, X) => {
|
|
9880
|
-
l.from != "dialog" &&
|
|
9893
|
+
l.from != "dialog" && V(X.fullPath);
|
|
9881
9894
|
}), rn((Y, X) => {
|
|
9882
|
-
l.from != "dialog" &&
|
|
9895
|
+
l.from != "dialog" && V(X.fullPath);
|
|
9883
9896
|
}), de(
|
|
9884
9897
|
() => l.board,
|
|
9885
9898
|
async () => {
|
|
@@ -9889,7 +9902,7 @@ const b0 = /* @__PURE__ */ ue({
|
|
|
9889
9902
|
deep: !0
|
|
9890
9903
|
}
|
|
9891
9904
|
);
|
|
9892
|
-
const
|
|
9905
|
+
const I = F(!1), B = F(!1), j = F(""), Q = F({}), v = F(), W = F();
|
|
9893
9906
|
async function h(Y, X = {}) {
|
|
9894
9907
|
if ((Y ?? "") != "") {
|
|
9895
9908
|
X.viewName = Y;
|
|
@@ -9898,7 +9911,7 @@ const b0 = /* @__PURE__ */ ue({
|
|
|
9898
9911
|
}
|
|
9899
9912
|
}
|
|
9900
9913
|
async function P(Y) {
|
|
9901
|
-
|
|
9914
|
+
I.value = Y;
|
|
9902
9915
|
}
|
|
9903
9916
|
const L = F();
|
|
9904
9917
|
async function O(Y, X = {}) {
|
|
@@ -9906,7 +9919,7 @@ const b0 = /* @__PURE__ */ ue({
|
|
|
9906
9919
|
try {
|
|
9907
9920
|
switch (Y.action) {
|
|
9908
9921
|
case "VIEW_BY_DIALOG": {
|
|
9909
|
-
(Y.view ?? "") != "" ? (
|
|
9922
|
+
(Y.view ?? "") != "" ? (j.value = "view", await h(Y.view), Q.value = Y, M.initPropsSource({ ...X, ...l.serverProps }), await P(!0), B.value = !0) : (Y.link ?? "") != "" && (j.value = "iframe", Q.value = Y, M.initPropsSource(X), v.value = {}, W.value = (re = Y.props) == null ? void 0 : re.map((ne) => ne.keyName), await P(!0), B.value = !0);
|
|
9910
9923
|
break;
|
|
9911
9924
|
}
|
|
9912
9925
|
case "VIEW": {
|
|
@@ -10090,7 +10103,7 @@ const b0 = /* @__PURE__ */ ue({
|
|
|
10090
10103
|
console.error("按钮动作出错", ne);
|
|
10091
10104
|
}
|
|
10092
10105
|
}
|
|
10093
|
-
function
|
|
10106
|
+
function $(Y) {
|
|
10094
10107
|
var re, Oe;
|
|
10095
10108
|
_.value = Y, C.value = {
|
|
10096
10109
|
count: 15,
|
|
@@ -10233,7 +10246,7 @@ const b0 = /* @__PURE__ */ ue({
|
|
|
10233
10246
|
tableColumns: De.value,
|
|
10234
10247
|
displayColumns: Pe.value,
|
|
10235
10248
|
onHeaderButtonAction: O,
|
|
10236
|
-
onHeaderFilterChange:
|
|
10249
|
+
onHeaderFilterChange: $,
|
|
10237
10250
|
onDisplayColumnsChange: we
|
|
10238
10251
|
}, null, 8, ["viewName", "board", "headerInfo", "tableColumns", "displayColumns"])) : q("", !0),
|
|
10239
10252
|
s.value === "form" ? (g(), w(T(c4), {
|
|
@@ -10270,10 +10283,10 @@ const b0 = /* @__PURE__ */ ue({
|
|
|
10270
10283
|
]),
|
|
10271
10284
|
_: 1
|
|
10272
10285
|
}, 8, ["class", "loading"]),
|
|
10273
|
-
|
|
10286
|
+
I.value ? (g(), w(T(a4), {
|
|
10274
10287
|
key: 0,
|
|
10275
10288
|
ref: "dialogRef",
|
|
10276
|
-
dialogType:
|
|
10289
|
+
dialogType: j.value,
|
|
10277
10290
|
isDialogVisible: B.value,
|
|
10278
10291
|
"onUpdate:isDialogVisible": [
|
|
10279
10292
|
X[0] || (X[0] = (Oe) => B.value = Oe),
|
|
@@ -10360,18 +10373,18 @@ const Et = Re(b0), ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10360
10373
|
let c = "";
|
|
10361
10374
|
Ye(b) || (c = JSON.stringify(b)), E.props = c;
|
|
10362
10375
|
try {
|
|
10363
|
-
const
|
|
10364
|
-
if (
|
|
10365
|
-
y.value =
|
|
10366
|
-
const
|
|
10376
|
+
const V = await kn(E);
|
|
10377
|
+
if (V.state === 200 && V.data) {
|
|
10378
|
+
y.value = V.data, M.value = (f = V.data) == null ? void 0 : f.title;
|
|
10379
|
+
const I = decodeURIComponent(e.fullPath);
|
|
10367
10380
|
n.appendTabMenuItem({
|
|
10368
10381
|
title: M.value,
|
|
10369
|
-
path:
|
|
10382
|
+
path: I,
|
|
10370
10383
|
query: e.query
|
|
10371
10384
|
});
|
|
10372
10385
|
}
|
|
10373
|
-
} catch (
|
|
10374
|
-
console.log("getOneViewApi",
|
|
10386
|
+
} catch (V) {
|
|
10387
|
+
console.log("getOneViewApi", V);
|
|
10375
10388
|
}
|
|
10376
10389
|
}
|
|
10377
10390
|
const S = k(() => o.isGlobalLoaded), p = k(() => {
|
|
@@ -11624,7 +11637,7 @@ var P0 = {
|
|
|
11624
11637
|
* (c) 2025 tdesign
|
|
11625
11638
|
* @license MIT
|
|
11626
11639
|
*/
|
|
11627
|
-
var
|
|
11640
|
+
var $0 = {
|
|
11628
11641
|
autoComplete: {
|
|
11629
11642
|
empty: "Нет данных"
|
|
11630
11643
|
},
|
|
@@ -11867,7 +11880,7 @@ var V0 = {
|
|
|
11867
11880
|
* (c) 2025 tdesign
|
|
11868
11881
|
* @license MIT
|
|
11869
11882
|
*/
|
|
11870
|
-
var
|
|
11883
|
+
var V0 = {
|
|
11871
11884
|
autoComplete: {
|
|
11872
11885
|
empty: "Nessun dato"
|
|
11873
11886
|
},
|
|
@@ -12642,14 +12655,14 @@ const G0 = { class: "gConfigProvider" }, H0 = /* @__PURE__ */ ue({
|
|
|
12642
12655
|
}
|
|
12643
12656
|
case "ru": {
|
|
12644
12657
|
s.value = {
|
|
12645
|
-
|
|
12658
|
+
...$0,
|
|
12646
12659
|
...o.globalConfig
|
|
12647
12660
|
};
|
|
12648
12661
|
break;
|
|
12649
12662
|
}
|
|
12650
12663
|
case "it": {
|
|
12651
12664
|
s.value = {
|
|
12652
|
-
|
|
12665
|
+
...V0,
|
|
12653
12666
|
...o.globalConfig
|
|
12654
12667
|
};
|
|
12655
12668
|
break;
|
|
@@ -12848,7 +12861,7 @@ const oa = /* @__PURE__ */ au(gr, [["__scopeId", "data-v-75fdffa5"]]), xM = /* @
|
|
|
12848
12861
|
t.directive(u, un[u]);
|
|
12849
12862
|
});
|
|
12850
12863
|
}
|
|
12851
|
-
}, jr = "@gonsin/gview", Ir = "2.1.
|
|
12864
|
+
}, jr = "@gonsin/gview", Ir = "2.1.21", Ar = "dist/index.mjs", yr = "dist/types/index.d.ts", mr = [
|
|
12852
12865
|
"dist",
|
|
12853
12866
|
"README.md",
|
|
12854
12867
|
"CHANGELOG.md"
|
|
@@ -13122,7 +13135,7 @@ export {
|
|
|
13122
13135
|
Di as WS_RESET_TIMEOUT,
|
|
13123
13136
|
ci as WS_SERVICE_URL,
|
|
13124
13137
|
ji as boardClass,
|
|
13125
|
-
|
|
13138
|
+
Vu as checkPlaceholderIfHidden,
|
|
13126
13139
|
Ti as commonDialogClass,
|
|
13127
13140
|
lt as commonFormClass,
|
|
13128
13141
|
rt as commonHeaderClass,
|
|
@@ -13159,7 +13172,7 @@ export {
|
|
|
13159
13172
|
Ra as isBoolean,
|
|
13160
13173
|
cM as isClient,
|
|
13161
13174
|
lM as isDate,
|
|
13162
|
-
|
|
13175
|
+
$a as isDef,
|
|
13163
13176
|
DM as isElement,
|
|
13164
13177
|
jt as isFormVoid,
|
|
13165
13178
|
ku as isFunction,
|
|
@@ -13169,7 +13182,7 @@ export {
|
|
|
13169
13182
|
rM as isNumber,
|
|
13170
13183
|
co as isObject,
|
|
13171
13184
|
ot as isOuterUrl,
|
|
13172
|
-
|
|
13185
|
+
Va as isPromise,
|
|
13173
13186
|
Bo as isResourceUrl,
|
|
13174
13187
|
gM as isServer,
|
|
13175
13188
|
sM as isString,
|