@nuwatop/code-canvas-core 0.5.8 → 0.5.10
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/components/AndCheckbox/index.d.ts.map +1 -1
- package/dist/index.esm.js +863 -859
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as b, jsxs as st, Fragment as fe } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as mr } from "react-dom/client";
|
|
3
|
-
import { theme as Xt, ConfigProvider as Kt, Button as It, Input as Be, InputNumber as jn, Space as Yt, Select as Bn, Switch as hr, DatePicker as Kn, TimePicker as yr, Radio as He, Checkbox as ue, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as ke, Upload as Sr, Image as Zt, AutoComplete as wr, Form as Re, Transfer as Dr, Segmented as xr, Modal as
|
|
3
|
+
import { theme as Xt, ConfigProvider as Kt, Button as It, Input as Be, InputNumber as jn, Space as Yt, Select as Bn, Switch as hr, DatePicker as Kn, TimePicker as yr, Radio as He, Checkbox as ue, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as ke, Upload as Sr, Image as Zt, AutoComplete as wr, Form as Re, Transfer as Dr, Segmented as xr, Modal as zn, Tooltip as Ar, Table as Cr, Flex as Ln, Typography as fn, Tabs as Tr, Tree as Nr, Timeline as kr, Steps as Or, Statistic as Qe, Carousel as _r, Avatar as Er, Tag as Vn, Pagination as qn, Breadcrumb as Mr, Menu as $r, Calendar as Rr, Badge as Wn, Masonry as jr, Alert as Hn, Drawer as Br, Result as Kr, Card as Ze, Divider as gn, Dropdown as zr, Row as Lr, Col as Vr, QRCode as qr, Splitter as Pe, Spin as Pn, Watermark as Wr } from "antd";
|
|
4
4
|
import { StyleProvider as Hr, createCache as Pr } from "@ant-design/cssinjs";
|
|
5
5
|
import Ur from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Yr } from "zustand";
|
|
@@ -146,7 +146,7 @@ function vi(e, t, n) {
|
|
|
146
146
|
const a = t[t.length - 1];
|
|
147
147
|
return r[a.key] = n, i;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function it(e, t) {
|
|
150
150
|
if (t)
|
|
151
151
|
return e ? `${e}_${t}` : t;
|
|
152
152
|
}
|
|
@@ -726,7 +726,7 @@ var Zn = function(t, n, i, r, a, o) {
|
|
|
726
726
|
range: ji,
|
|
727
727
|
enum: Bi,
|
|
728
728
|
pattern: Ki
|
|
729
|
-
},
|
|
729
|
+
}, zi = function(t, n, i, r, a) {
|
|
730
730
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
731
731
|
if (c) {
|
|
732
732
|
if ($t(n, "string") && !t.required)
|
|
@@ -734,7 +734,7 @@ var Zn = function(t, n, i, r, a, o) {
|
|
|
734
734
|
ht.required(t, n, r, o, a, "string"), $t(n, "string") || (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a), ht.pattern(t, n, r, o, a), t.whitespace === !0 && ht.whitespace(t, n, r, o, a));
|
|
735
735
|
}
|
|
736
736
|
i(o);
|
|
737
|
-
},
|
|
737
|
+
}, Li = function(t, n, i, r, a) {
|
|
738
738
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
739
739
|
if (c) {
|
|
740
740
|
if ($t(n) && !t.required)
|
|
@@ -845,8 +845,8 @@ var Zn = function(t, n, i, r, a, o) {
|
|
|
845
845
|
}
|
|
846
846
|
i(o);
|
|
847
847
|
}, Se = {
|
|
848
|
-
string:
|
|
849
|
-
method:
|
|
848
|
+
string: zi,
|
|
849
|
+
method: Li,
|
|
850
850
|
number: Vi,
|
|
851
851
|
boolean: qi,
|
|
852
852
|
regexp: Wi,
|
|
@@ -1083,7 +1083,7 @@ function In(e, t, n, i) {
|
|
|
1083
1083
|
i(o || []);
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function zt(e) {
|
|
1087
1087
|
const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id: a, develop: o } = e, c = _((w) => w.setValidateResult), l = _((w) => w.getProps), d = _((w) => w.setProps), v = y(
|
|
1088
1088
|
() => be(r, n),
|
|
1089
1089
|
[r, n]
|
|
@@ -1098,10 +1098,10 @@ function Lt(e) {
|
|
|
1098
1098
|
return r && a ? ((D = w.propsStore[`${r}_props`]) == null ? void 0 : D[a]) ?? null : null;
|
|
1099
1099
|
}
|
|
1100
1100
|
), g = _((w) => w.getDataSet), f = y(
|
|
1101
|
-
() =>
|
|
1101
|
+
() => it(r, n),
|
|
1102
1102
|
[r, n]
|
|
1103
1103
|
), s = y(
|
|
1104
|
-
() => n ?
|
|
1104
|
+
() => n ? it(r, `${n}_validateAction`) : void 0,
|
|
1105
1105
|
[r, n]
|
|
1106
1106
|
), m = _(
|
|
1107
1107
|
(w) => {
|
|
@@ -1337,7 +1337,7 @@ const de = (e) => {
|
|
|
1337
1337
|
if (e == null || e === "") return 0;
|
|
1338
1338
|
const t = Number(e);
|
|
1339
1339
|
return isNaN(t) || !isFinite(t) ? 0 : t;
|
|
1340
|
-
}, Et = (e) => e == null ? "" : String(e),
|
|
1340
|
+
}, Et = (e) => e == null ? "" : String(e), ze = (e) => {
|
|
1341
1341
|
if (e == null) return null;
|
|
1342
1342
|
let t;
|
|
1343
1343
|
if (e instanceof Date)
|
|
@@ -1394,7 +1394,7 @@ const de = (e) => {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
}, ca = (e, t = {}) => {
|
|
1396
1396
|
try {
|
|
1397
|
-
const n =
|
|
1397
|
+
const n = ze(e);
|
|
1398
1398
|
return n ? new Intl.DateTimeFormat("zh-CN", {
|
|
1399
1399
|
year: "numeric",
|
|
1400
1400
|
month: "2-digit",
|
|
@@ -1406,7 +1406,7 @@ const de = (e) => {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
}, er = (e, t = "YYYY-MM-DD") => {
|
|
1408
1408
|
try {
|
|
1409
|
-
const n =
|
|
1409
|
+
const n = ze(e);
|
|
1410
1410
|
if (!n) return "";
|
|
1411
1411
|
const i = n.getFullYear(), r = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0"), o = String(n.getHours()).padStart(2, "0"), c = String(n.getMinutes()).padStart(2, "0"), l = String(n.getSeconds()).padStart(2, "0");
|
|
1412
1412
|
return t.replace("YYYY", String(i)).replace("MM", r).replace("DD", a).replace("HH", o).replace("mm", c).replace("ss", l);
|
|
@@ -1415,7 +1415,7 @@ const de = (e) => {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
}, sa = (e, t = "YYYY-MM-DD HH:mm:ss") => er(e, t), la = (e) => {
|
|
1417
1417
|
try {
|
|
1418
|
-
const t =
|
|
1418
|
+
const t = ze(e);
|
|
1419
1419
|
if (!t) return "";
|
|
1420
1420
|
const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), r = Math.floor(i / 1e3), a = Math.floor(r / 60), o = Math.floor(a / 60), c = Math.floor(o / 24), l = Math.floor(c / 30), d = Math.floor(c / 365);
|
|
1421
1421
|
return r < 60 ? "刚刚" : a < 60 ? `${a}分钟前` : o < 24 ? `${o}小时前` : c < 30 ? `${c}天前` : l < 12 ? `${l}个月前` : `${d}年前`;
|
|
@@ -1433,7 +1433,7 @@ const de = (e) => {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
}, fa = (e) => {
|
|
1435
1435
|
try {
|
|
1436
|
-
const t =
|
|
1436
|
+
const t = ze(e);
|
|
1437
1437
|
if (!t) return "";
|
|
1438
1438
|
const n = /* @__PURE__ */ new Date();
|
|
1439
1439
|
if (t > n) return "";
|
|
@@ -1601,7 +1601,7 @@ function Ca(e, t, n = {}) {
|
|
|
1601
1601
|
return Et(e);
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
const
|
|
1604
|
+
const Le = {
|
|
1605
1605
|
// 基础颜色
|
|
1606
1606
|
colorPrimary: "colorPrimary",
|
|
1607
1607
|
colorSuccess: "colorSuccess",
|
|
@@ -1632,7 +1632,7 @@ const ze = {
|
|
|
1632
1632
|
colorLink: "colorLink",
|
|
1633
1633
|
colorLinkHover: "colorLinkHover",
|
|
1634
1634
|
colorLinkActive: "colorLinkActive"
|
|
1635
|
-
}, mc = Object.keys(
|
|
1635
|
+
}, mc = Object.keys(Le), hc = [
|
|
1636
1636
|
{ label: "主色", value: "colorPrimary" },
|
|
1637
1637
|
{ label: "成功", value: "colorSuccess" },
|
|
1638
1638
|
{ label: "警告", value: "colorWarning" },
|
|
@@ -1643,13 +1643,13 @@ const ze = {
|
|
|
1643
1643
|
{ label: "链接", value: "colorLink" }
|
|
1644
1644
|
];
|
|
1645
1645
|
function nr(e) {
|
|
1646
|
-
return
|
|
1646
|
+
return Le.hasOwnProperty(e);
|
|
1647
1647
|
}
|
|
1648
1648
|
function Ve(e) {
|
|
1649
1649
|
const { token: t } = Xt.useToken();
|
|
1650
1650
|
if (e) {
|
|
1651
1651
|
if (nr(e)) {
|
|
1652
|
-
const n =
|
|
1652
|
+
const n = Le[e];
|
|
1653
1653
|
return t[n] || e;
|
|
1654
1654
|
}
|
|
1655
1655
|
return e;
|
|
@@ -1658,7 +1658,7 @@ function Ve(e) {
|
|
|
1658
1658
|
function yc(e, t) {
|
|
1659
1659
|
if (e) {
|
|
1660
1660
|
if (nr(e)) {
|
|
1661
|
-
const n =
|
|
1661
|
+
const n = Le[e];
|
|
1662
1662
|
return t[n] || e;
|
|
1663
1663
|
}
|
|
1664
1664
|
return e;
|
|
@@ -1705,8 +1705,8 @@ const gc = ({
|
|
|
1705
1705
|
dataSet: v,
|
|
1706
1706
|
dataSetField: h,
|
|
1707
1707
|
...u
|
|
1708
|
-
}),
|
|
1709
|
-
g(a,
|
|
1708
|
+
}), P = I(M, B);
|
|
1709
|
+
g(a, P);
|
|
1710
1710
|
}
|
|
1711
1711
|
},
|
|
1712
1712
|
[
|
|
@@ -1780,47 +1780,47 @@ const rr = (e) => {
|
|
|
1780
1780
|
addonAfter: C,
|
|
1781
1781
|
addonBefore: w,
|
|
1782
1782
|
...D
|
|
1783
|
-
} = e, T = Ke(r, a, n), O = T.dataSet, N = T.dataSetField, x = T.sessionId, E = _t(""), k = _t(null), M = _((
|
|
1784
|
-
() =>
|
|
1783
|
+
} = e, T = Ke(r, a, n), O = T.dataSet, N = T.dataSetField, x = T.sessionId, E = _t(""), k = _t(null), M = _((W) => W.addCommand), B = _((W) => W.getDataSet), P = _((W) => W.setDataSet), U = _((W) => W.getProps), $ = _((W) => W.setProps), z = _((W) => W.setValidateResult), K = y(
|
|
1784
|
+
() => it(x, O),
|
|
1785
1785
|
[x, O]
|
|
1786
|
-
),
|
|
1787
|
-
(
|
|
1786
|
+
), L = _(
|
|
1787
|
+
(W) => {
|
|
1788
1788
|
var et;
|
|
1789
|
-
return x && t ? ((et =
|
|
1789
|
+
return x && t ? ((et = W.propsStore[`${x}_props`]) == null ? void 0 : et[t]) ?? null : null;
|
|
1790
1790
|
}
|
|
1791
1791
|
), R = y(
|
|
1792
1792
|
() => be(x, O),
|
|
1793
1793
|
[x, O]
|
|
1794
|
-
),
|
|
1795
|
-
(
|
|
1794
|
+
), Y = _(
|
|
1795
|
+
(W) => {
|
|
1796
1796
|
var et;
|
|
1797
|
-
return R && N ? ((et =
|
|
1797
|
+
return R && N ? ((et = W.validateStore[R]) == null ? void 0 : et[N]) ?? "" : "";
|
|
1798
1798
|
}
|
|
1799
|
-
),
|
|
1800
|
-
(
|
|
1801
|
-
),
|
|
1802
|
-
() => O ?
|
|
1799
|
+
), X = _(
|
|
1800
|
+
(W) => K && N ? W.getDataSet(K, N) : void 0
|
|
1801
|
+
), q = y(
|
|
1802
|
+
() => O ? it(x, `${O}_validateAction`) : void 0,
|
|
1803
1803
|
[x, O]
|
|
1804
|
-
),
|
|
1805
|
-
(
|
|
1804
|
+
), V = _(
|
|
1805
|
+
(W) => {
|
|
1806
1806
|
var et;
|
|
1807
|
-
return
|
|
1807
|
+
return q ? (et = W.dataSets[q]) == null ? void 0 : et.validate : void 0;
|
|
1808
1808
|
}
|
|
1809
|
-
),
|
|
1810
|
-
() => Oa(D,
|
|
1811
|
-
[D,
|
|
1812
|
-
),
|
|
1813
|
-
(
|
|
1814
|
-
const et =
|
|
1809
|
+
), nt = y(() => X !== void 0 ? X : (L == null ? void 0 : L.value) !== void 0 ? L.value : d, [X, L == null ? void 0 : L.value, d]), at = y(
|
|
1810
|
+
() => Oa(D, L ?? null, { develop: i }),
|
|
1811
|
+
[D, L, i]
|
|
1812
|
+
), rt = j(
|
|
1813
|
+
(W) => {
|
|
1814
|
+
const et = W ?? "";
|
|
1815
1815
|
if (x && O && N && z(
|
|
1816
1816
|
x,
|
|
1817
1817
|
O,
|
|
1818
1818
|
N,
|
|
1819
1819
|
et
|
|
1820
1820
|
), x && t) {
|
|
1821
|
-
const
|
|
1821
|
+
const Z = U(x, t) || {};
|
|
1822
1822
|
$(x, t, {
|
|
1823
|
-
...
|
|
1823
|
+
...Z,
|
|
1824
1824
|
validateStatus: et ? "error" : void 0,
|
|
1825
1825
|
help: et
|
|
1826
1826
|
});
|
|
@@ -1832,38 +1832,38 @@ const rr = (e) => {
|
|
|
1832
1832
|
N,
|
|
1833
1833
|
t,
|
|
1834
1834
|
z,
|
|
1835
|
-
|
|
1835
|
+
U,
|
|
1836
1836
|
$
|
|
1837
1837
|
]
|
|
1838
1838
|
), vt = j(
|
|
1839
|
-
(
|
|
1839
|
+
(W) => {
|
|
1840
1840
|
const et = Xn(p || []);
|
|
1841
1841
|
In(
|
|
1842
1842
|
et,
|
|
1843
|
-
|
|
1844
|
-
() =>
|
|
1845
|
-
(
|
|
1843
|
+
W,
|
|
1844
|
+
() => rt(""),
|
|
1845
|
+
(Z) => {
|
|
1846
1846
|
var ct;
|
|
1847
|
-
return
|
|
1847
|
+
return rt(((ct = Z[0]) == null ? void 0 : ct.message) ?? "");
|
|
1848
1848
|
}
|
|
1849
1849
|
);
|
|
1850
1850
|
},
|
|
1851
|
-
[p,
|
|
1851
|
+
[p, rt]
|
|
1852
1852
|
), bt = j(
|
|
1853
|
-
(
|
|
1854
|
-
const et =
|
|
1853
|
+
(W) => {
|
|
1854
|
+
const et = W.target.value;
|
|
1855
1855
|
if (E.current = et, l) {
|
|
1856
|
-
l(et,
|
|
1856
|
+
l(et, W);
|
|
1857
1857
|
return;
|
|
1858
1858
|
}
|
|
1859
|
-
if (K && N &&
|
|
1860
|
-
const { actionName:
|
|
1859
|
+
if (K && N && P(K, N, et), c && x) {
|
|
1860
|
+
const { actionName: Z, arg: ct } = wt(c, et, {
|
|
1861
1861
|
id: t,
|
|
1862
1862
|
dataSet: O,
|
|
1863
1863
|
dataSetField: N,
|
|
1864
1864
|
...at
|
|
1865
1865
|
});
|
|
1866
|
-
M(x, I(
|
|
1866
|
+
M(x, I(Z, ct));
|
|
1867
1867
|
}
|
|
1868
1868
|
g && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
|
|
1869
1869
|
k.current = null, vt(et);
|
|
@@ -1873,7 +1873,7 @@ const rr = (e) => {
|
|
|
1873
1873
|
l,
|
|
1874
1874
|
K,
|
|
1875
1875
|
N,
|
|
1876
|
-
|
|
1876
|
+
P,
|
|
1877
1877
|
c,
|
|
1878
1878
|
x,
|
|
1879
1879
|
t,
|
|
@@ -1886,8 +1886,8 @@ const rr = (e) => {
|
|
|
1886
1886
|
]
|
|
1887
1887
|
), yt = j(() => {
|
|
1888
1888
|
if (!f) return;
|
|
1889
|
-
const
|
|
1890
|
-
vt(
|
|
1889
|
+
const W = K && N ? String(B(K, N) ?? "") : E.current;
|
|
1890
|
+
vt(W);
|
|
1891
1891
|
}, [
|
|
1892
1892
|
f,
|
|
1893
1893
|
K,
|
|
@@ -1895,14 +1895,14 @@ const rr = (e) => {
|
|
|
1895
1895
|
B,
|
|
1896
1896
|
vt
|
|
1897
1897
|
]), tt = j(
|
|
1898
|
-
(
|
|
1899
|
-
const
|
|
1900
|
-
if (
|
|
1901
|
-
|
|
1898
|
+
(W) => {
|
|
1899
|
+
const Z = at.onPressEnter;
|
|
1900
|
+
if (Z) {
|
|
1901
|
+
Z(W);
|
|
1902
1902
|
return;
|
|
1903
1903
|
}
|
|
1904
1904
|
if (u && x) {
|
|
1905
|
-
const { actionName: ct, arg: dt } = wt(u,
|
|
1905
|
+
const { actionName: ct, arg: dt } = wt(u, nt, {
|
|
1906
1906
|
id: t,
|
|
1907
1907
|
dataSet: O,
|
|
1908
1908
|
dataSetField: N,
|
|
@@ -1915,7 +1915,7 @@ const rr = (e) => {
|
|
|
1915
1915
|
at,
|
|
1916
1916
|
u,
|
|
1917
1917
|
x,
|
|
1918
|
-
|
|
1918
|
+
nt,
|
|
1919
1919
|
t,
|
|
1920
1920
|
O,
|
|
1921
1921
|
N,
|
|
@@ -1928,13 +1928,13 @@ const rr = (e) => {
|
|
|
1928
1928
|
return;
|
|
1929
1929
|
}
|
|
1930
1930
|
if (S && x) {
|
|
1931
|
-
const { actionName:
|
|
1931
|
+
const { actionName: Z, arg: ct } = wt(S, "", {
|
|
1932
1932
|
id: t,
|
|
1933
1933
|
dataSet: O,
|
|
1934
1934
|
dataSetField: N,
|
|
1935
1935
|
...at
|
|
1936
1936
|
});
|
|
1937
|
-
M(x, I(
|
|
1937
|
+
M(x, I(Z, ct));
|
|
1938
1938
|
}
|
|
1939
1939
|
}, [
|
|
1940
1940
|
at,
|
|
@@ -1951,20 +1951,20 @@ const rr = (e) => {
|
|
|
1951
1951
|
},
|
|
1952
1952
|
[]
|
|
1953
1953
|
), At(() => {
|
|
1954
|
-
if (
|
|
1954
|
+
if (V == null || !K || !N)
|
|
1955
1955
|
return;
|
|
1956
|
-
const
|
|
1957
|
-
vt(
|
|
1958
|
-
}, [
|
|
1956
|
+
const W = String(B(K, N) ?? "");
|
|
1957
|
+
vt(W);
|
|
1958
|
+
}, [V, K, N, B, vt]);
|
|
1959
1959
|
const ot = y(() => ka(h), [h]), Rt = y(
|
|
1960
1960
|
() => ot ? { components: { Input: ot } } : void 0,
|
|
1961
1961
|
[ot]
|
|
1962
|
-
), Mt = i ? void 0 : x && O && N ?
|
|
1962
|
+
), Mt = i ? void 0 : x && O && N ? Y : (L == null ? void 0 : L.help) ?? "", G = /* @__PURE__ */ st(fe, { children: [
|
|
1963
1963
|
/* @__PURE__ */ b(
|
|
1964
1964
|
Be,
|
|
1965
1965
|
{
|
|
1966
1966
|
...at,
|
|
1967
|
-
value:
|
|
1967
|
+
value: nt,
|
|
1968
1968
|
onChange: bt,
|
|
1969
1969
|
onBlur: yt,
|
|
1970
1970
|
onPressEnter: tt,
|
|
@@ -1997,17 +1997,17 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
1997
1997
|
value: s,
|
|
1998
1998
|
...m
|
|
1999
1999
|
}) => {
|
|
2000
|
-
const u = _((
|
|
2001
|
-
() =>
|
|
2000
|
+
const u = _((q) => q.addCommand), S = _((q) => q.setDataSet), A = _t(null), C = y(
|
|
2001
|
+
() => it(t, i),
|
|
2002
2002
|
[t, i]
|
|
2003
2003
|
), w = _(
|
|
2004
|
-
(
|
|
2005
|
-
var
|
|
2006
|
-
return t && e ? ((
|
|
2004
|
+
(q) => {
|
|
2005
|
+
var V;
|
|
2006
|
+
return t && e ? ((V = q.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
|
|
2007
2007
|
}
|
|
2008
2008
|
), D = _(
|
|
2009
|
-
(
|
|
2010
|
-
), { validate: T, help: O } =
|
|
2009
|
+
(q) => C && r ? q.getDataSet(C, r) : void 0
|
|
2010
|
+
), { validate: T, help: O } = zt({
|
|
2011
2011
|
rules: a,
|
|
2012
2012
|
dataSet: i,
|
|
2013
2013
|
dataSetField: r,
|
|
@@ -2015,36 +2015,36 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2015
2015
|
id: e,
|
|
2016
2016
|
develop: n
|
|
2017
2017
|
}), N = y(() => D !== void 0 ? D : (w == null ? void 0 : w.value) !== void 0 ? w.value : s, [D, w == null ? void 0 : w.value, s]), x = j(
|
|
2018
|
-
(
|
|
2019
|
-
|
|
2018
|
+
(q, V, nt) => {
|
|
2019
|
+
q && t && u(t, I(q, { type: V, value: nt }));
|
|
2020
2020
|
},
|
|
2021
2021
|
[t, u]
|
|
2022
2022
|
), E = j(
|
|
2023
|
-
(
|
|
2023
|
+
(q) => {
|
|
2024
2024
|
if (g) {
|
|
2025
|
-
g(
|
|
2025
|
+
g(q);
|
|
2026
2026
|
return;
|
|
2027
2027
|
}
|
|
2028
|
-
C && r && S(C, r,
|
|
2029
|
-
A.current = null, T(
|
|
2030
|
-
}, Cn)), x(l, "change",
|
|
2028
|
+
C && r && S(C, r, q), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
2029
|
+
A.current = null, T(q);
|
|
2030
|
+
}, Cn)), x(l, "change", q);
|
|
2031
2031
|
},
|
|
2032
2032
|
[g, C, r, S, c, T, l, x]
|
|
2033
2033
|
), k = j(() => {
|
|
2034
2034
|
o && T(N);
|
|
2035
2035
|
}, [o, T, N]), M = j(
|
|
2036
|
-
(
|
|
2036
|
+
(q) => {
|
|
2037
2037
|
if (m.onPressEnter) {
|
|
2038
|
-
m.onPressEnter(
|
|
2038
|
+
m.onPressEnter(q);
|
|
2039
2039
|
return;
|
|
2040
2040
|
}
|
|
2041
2041
|
if (d && t) {
|
|
2042
|
-
const { actionName:
|
|
2042
|
+
const { actionName: V, arg: nt } = wt(d, N, {
|
|
2043
2043
|
id: e,
|
|
2044
2044
|
dataSet: i,
|
|
2045
2045
|
dataSetField: r
|
|
2046
2046
|
});
|
|
2047
|
-
u(t, I(
|
|
2047
|
+
u(t, I(V, nt));
|
|
2048
2048
|
}
|
|
2049
2049
|
},
|
|
2050
2050
|
[
|
|
@@ -2065,12 +2065,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2065
2065
|
if (C && r && S(C, r, null), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
2066
2066
|
A.current = null, T(null);
|
|
2067
2067
|
}, Cn)), x(l, "change", null), v && t) {
|
|
2068
|
-
const { actionName:
|
|
2068
|
+
const { actionName: q, arg: V } = wt(v, null, {
|
|
2069
2069
|
id: e,
|
|
2070
2070
|
dataSet: i,
|
|
2071
2071
|
dataSetField: r
|
|
2072
2072
|
});
|
|
2073
|
-
u(t, I(
|
|
2073
|
+
u(t, I(q, V));
|
|
2074
2074
|
}
|
|
2075
2075
|
}, [
|
|
2076
2076
|
g,
|
|
@@ -2087,9 +2087,9 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2087
2087
|
i,
|
|
2088
2088
|
r,
|
|
2089
2089
|
u
|
|
2090
|
-
]),
|
|
2091
|
-
(
|
|
2092
|
-
x(p, "step", { value:
|
|
2090
|
+
]), P = j(
|
|
2091
|
+
(q, V) => {
|
|
2092
|
+
x(p, "step", { value: q, type: V.type });
|
|
2093
2093
|
},
|
|
2094
2094
|
[p, x]
|
|
2095
2095
|
);
|
|
@@ -2101,29 +2101,29 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2101
2101
|
), At(() => {
|
|
2102
2102
|
f !== void 0 && N === void 0 && C && r && S(C, r, f);
|
|
2103
2103
|
}, [f, N, C, r, S]);
|
|
2104
|
-
const
|
|
2104
|
+
const U = y(
|
|
2105
2105
|
() => Qt(m, w ?? void 0),
|
|
2106
2106
|
[m, w]
|
|
2107
|
-
), { addonBefore: $, addonAfter: z, style: K, suffix:
|
|
2108
|
-
if (!(h && N !== null && N !== void 0)) return
|
|
2109
|
-
const
|
|
2107
|
+
), { addonBefore: $, addonAfter: z, style: K, suffix: L, ...R } = U, Y = y(() => {
|
|
2108
|
+
if (!(h && N !== null && N !== void 0)) return L;
|
|
2109
|
+
const V = /* @__PURE__ */ b(
|
|
2110
2110
|
"span",
|
|
2111
2111
|
{
|
|
2112
2112
|
role: "button",
|
|
2113
2113
|
"aria-label": "clear",
|
|
2114
2114
|
style: { cursor: "pointer", marginInlineStart: 4 },
|
|
2115
|
-
onMouseDown: (
|
|
2116
|
-
onClick: (
|
|
2117
|
-
|
|
2115
|
+
onMouseDown: (nt) => nt.preventDefault(),
|
|
2116
|
+
onClick: (nt) => {
|
|
2117
|
+
nt.stopPropagation(), B();
|
|
2118
2118
|
},
|
|
2119
2119
|
children: /* @__PURE__ */ b(Xr, {})
|
|
2120
2120
|
}
|
|
2121
2121
|
);
|
|
2122
|
-
return
|
|
2123
|
-
|
|
2124
|
-
|
|
2122
|
+
return L == null || L === !1 ? V : /* @__PURE__ */ st(fe, { children: [
|
|
2123
|
+
L,
|
|
2124
|
+
V
|
|
2125
2125
|
] });
|
|
2126
|
-
}, [h, N,
|
|
2126
|
+
}, [h, N, L, B]), X = /* @__PURE__ */ b(
|
|
2127
2127
|
jn,
|
|
2128
2128
|
{
|
|
2129
2129
|
...R,
|
|
@@ -2136,8 +2136,8 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2136
2136
|
onChange: E,
|
|
2137
2137
|
onBlur: k,
|
|
2138
2138
|
onPressEnter: M,
|
|
2139
|
-
onStep:
|
|
2140
|
-
suffix:
|
|
2139
|
+
onStep: P,
|
|
2140
|
+
suffix: Y,
|
|
2141
2141
|
status: O ? "error" : void 0,
|
|
2142
2142
|
style: { width: "100%", ...K }
|
|
2143
2143
|
}
|
|
@@ -2161,7 +2161,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2161
2161
|
children: $
|
|
2162
2162
|
}
|
|
2163
2163
|
),
|
|
2164
|
-
|
|
2164
|
+
X,
|
|
2165
2165
|
z && /* @__PURE__ */ b(
|
|
2166
2166
|
"div",
|
|
2167
2167
|
{
|
|
@@ -2179,7 +2179,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2179
2179
|
children: z
|
|
2180
2180
|
}
|
|
2181
2181
|
)
|
|
2182
|
-
] }) :
|
|
2182
|
+
] }) : X,
|
|
2183
2183
|
O && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
|
|
2184
2184
|
] });
|
|
2185
2185
|
}, { TextArea: _a } = Be, Ea = 200, bc = ({
|
|
@@ -2199,17 +2199,17 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2199
2199
|
defaultValue: g,
|
|
2200
2200
|
...f
|
|
2201
2201
|
}) => {
|
|
2202
|
-
const s = Ke(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, A = _((
|
|
2203
|
-
() =>
|
|
2202
|
+
const s = Ke(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, A = _((U) => U.addCommand), C = _((U) => U.setDataSet), w = _t(null), D = y(
|
|
2203
|
+
() => it(S, m),
|
|
2204
2204
|
[S, m]
|
|
2205
2205
|
), T = _(
|
|
2206
|
-
(
|
|
2206
|
+
(U) => {
|
|
2207
2207
|
var $;
|
|
2208
|
-
return S && e ? (($ =
|
|
2208
|
+
return S && e ? (($ = U.propsStore[`${S}_props`]) == null ? void 0 : $[e]) ?? null : null;
|
|
2209
2209
|
}
|
|
2210
2210
|
), O = _(
|
|
2211
|
-
(
|
|
2212
|
-
), { validate: N, help: x } =
|
|
2211
|
+
(U) => D && u ? U.getDataSet(D, u) : void 0
|
|
2212
|
+
), { validate: N, help: x } = zt({
|
|
2213
2213
|
rules: a,
|
|
2214
2214
|
dataSet: m,
|
|
2215
2215
|
dataSetField: u,
|
|
@@ -2217,10 +2217,10 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2217
2217
|
id: e,
|
|
2218
2218
|
develop: n
|
|
2219
2219
|
}), E = y(() => O !== void 0 ? O : (T == null ? void 0 : T.value) !== void 0 ? T.value : p ?? g, [O, T == null ? void 0 : T.value, p, g]), k = j(
|
|
2220
|
-
(
|
|
2221
|
-
const $ =
|
|
2220
|
+
(U) => {
|
|
2221
|
+
const $ = U.target.value;
|
|
2222
2222
|
if (h) {
|
|
2223
|
-
h($,
|
|
2223
|
+
h($, U);
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
2226
2226
|
if (D && u && C(D, u, $), l && S) {
|
|
@@ -2250,12 +2250,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2250
2250
|
), M = j(() => {
|
|
2251
2251
|
o && N(E);
|
|
2252
2252
|
}, [o, N, E]), B = j(
|
|
2253
|
-
(
|
|
2253
|
+
(U) => {
|
|
2254
2254
|
if (f.onPressEnter) {
|
|
2255
|
-
f.onPressEnter(
|
|
2255
|
+
f.onPressEnter(U);
|
|
2256
2256
|
return;
|
|
2257
2257
|
}
|
|
2258
|
-
if (d && S && !
|
|
2258
|
+
if (d && S && !U.shiftKey) {
|
|
2259
2259
|
const { actionName: $, arg: z } = wt(d, E, {
|
|
2260
2260
|
id: e,
|
|
2261
2261
|
dataSet: m,
|
|
@@ -2274,18 +2274,18 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2274
2274
|
u,
|
|
2275
2275
|
A
|
|
2276
2276
|
]
|
|
2277
|
-
),
|
|
2277
|
+
), P = j(() => {
|
|
2278
2278
|
if (f.onClear) {
|
|
2279
2279
|
f.onClear();
|
|
2280
2280
|
return;
|
|
2281
2281
|
}
|
|
2282
2282
|
if (v && S) {
|
|
2283
|
-
const { actionName:
|
|
2283
|
+
const { actionName: U, arg: $ } = wt(v, "", {
|
|
2284
2284
|
id: e,
|
|
2285
2285
|
dataSet: m,
|
|
2286
2286
|
dataSetField: u
|
|
2287
2287
|
});
|
|
2288
|
-
A(S, I(
|
|
2288
|
+
A(S, I(U, $));
|
|
2289
2289
|
}
|
|
2290
2290
|
}, [
|
|
2291
2291
|
f.onClear,
|
|
@@ -2311,7 +2311,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2311
2311
|
onChange: k,
|
|
2312
2312
|
onBlur: M,
|
|
2313
2313
|
onPressEnter: B,
|
|
2314
|
-
onClear:
|
|
2314
|
+
onClear: P,
|
|
2315
2315
|
status: x ? "error" : void 0
|
|
2316
2316
|
}
|
|
2317
2317
|
),
|
|
@@ -2335,7 +2335,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2335
2335
|
...f
|
|
2336
2336
|
}) => {
|
|
2337
2337
|
const s = _((k) => k.addCommand), m = _((k) => k.setDataSet), u = _t(null), S = y(
|
|
2338
|
-
() =>
|
|
2338
|
+
() => it(t, i),
|
|
2339
2339
|
[t, i]
|
|
2340
2340
|
), A = _(
|
|
2341
2341
|
(k) => {
|
|
@@ -2344,7 +2344,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2344
2344
|
}
|
|
2345
2345
|
), C = _(
|
|
2346
2346
|
(k) => S && r ? k.getDataSet(S, r) : void 0
|
|
2347
|
-
), { validate: w, help: D } =
|
|
2347
|
+
), { validate: w, help: D } = zt({
|
|
2348
2348
|
rules: a,
|
|
2349
2349
|
dataSet: i,
|
|
2350
2350
|
dataSetField: r,
|
|
@@ -2359,12 +2359,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2359
2359
|
return;
|
|
2360
2360
|
}
|
|
2361
2361
|
if (S && r && m(S, r, M), l && t) {
|
|
2362
|
-
const { actionName: B, arg:
|
|
2362
|
+
const { actionName: B, arg: P } = wt(l, M, {
|
|
2363
2363
|
id: e,
|
|
2364
2364
|
dataSet: i,
|
|
2365
2365
|
dataSetField: r
|
|
2366
2366
|
});
|
|
2367
|
-
s(t, I(B,
|
|
2367
|
+
s(t, I(B, P));
|
|
2368
2368
|
}
|
|
2369
2369
|
c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
2370
2370
|
u.current = null, w(M);
|
|
@@ -2459,7 +2459,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2459
2459
|
...h
|
|
2460
2460
|
}) => {
|
|
2461
2461
|
const p = _((C) => C.addCommand), g = _((C) => C.getDataSet), f = _((C) => C.setDataSet), s = y(
|
|
2462
|
-
() =>
|
|
2462
|
+
() => it(t, i),
|
|
2463
2463
|
[t, i]
|
|
2464
2464
|
), m = y(() => {
|
|
2465
2465
|
if (s && r) return g(s, r);
|
|
@@ -2509,21 +2509,21 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2509
2509
|
...O
|
|
2510
2510
|
}) => {
|
|
2511
2511
|
const N = _((tt) => tt.addCommand), x = _((tt) => tt.setDataSet), E = _t(null), k = De(oe), M = y(
|
|
2512
|
-
() =>
|
|
2512
|
+
() => it(t, i),
|
|
2513
2513
|
[t, i]
|
|
2514
|
-
), B = m ?? (k == null ? void 0 : k.index),
|
|
2514
|
+
), B = m ?? (k == null ? void 0 : k.index), P = _(
|
|
2515
2515
|
(tt) => {
|
|
2516
2516
|
var lt;
|
|
2517
2517
|
return t && e ? ((lt = tt.propsStore[`${t}_props`]) == null ? void 0 : lt[e]) ?? null : null;
|
|
2518
2518
|
}
|
|
2519
|
-
),
|
|
2519
|
+
), U = _(
|
|
2520
2520
|
(tt) => M && r ? tt.getDataSet(M, r) : void 0
|
|
2521
2521
|
), $ = y(
|
|
2522
|
-
() => (
|
|
2523
|
-
[
|
|
2522
|
+
() => (P == null ? void 0 : P.optionsCfg) != null ? P.optionsCfg : c,
|
|
2523
|
+
[P == null ? void 0 : P.optionsCfg, c]
|
|
2524
2524
|
), { options: z, loading: K } = Ce(
|
|
2525
2525
|
D || (a ? o : void 0)
|
|
2526
|
-
), { options:
|
|
2526
|
+
), { options: L, loading: R } = mn(
|
|
2527
2527
|
$ == null ? void 0 : $.url,
|
|
2528
2528
|
{
|
|
2529
2529
|
valueKey: ($ == null ? void 0 : $.codeKey) || "value",
|
|
@@ -2532,33 +2532,33 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2532
2532
|
params: $ == null ? void 0 : $.params,
|
|
2533
2533
|
field: $ == null ? void 0 : $.field
|
|
2534
2534
|
}
|
|
2535
|
-
),
|
|
2535
|
+
), Y = K || R, { validate: X, help: q } = zt({
|
|
2536
2536
|
rules: l,
|
|
2537
2537
|
dataSet: i,
|
|
2538
2538
|
dataSetField: r,
|
|
2539
2539
|
sessionId: t,
|
|
2540
2540
|
id: e,
|
|
2541
2541
|
develop: n
|
|
2542
|
-
}),
|
|
2543
|
-
() => Qt(O,
|
|
2544
|
-
[O,
|
|
2545
|
-
), at = y(() =>
|
|
2546
|
-
if (at.length === 0) return
|
|
2547
|
-
if (Array.isArray(
|
|
2548
|
-
return
|
|
2542
|
+
}), V = y(() => U != null && U !== "" ? U : (P == null ? void 0 : P.value) !== void 0 ? P.value : s ?? f, [U, P == null ? void 0 : P.value, s, f]), nt = y(
|
|
2543
|
+
() => Qt(O, P ?? void 0),
|
|
2544
|
+
[O, P]
|
|
2545
|
+
), at = y(() => P != null && P.options && Array.isArray(P.options) ? P.options : $ != null && $.url && L.length > 0 ? L : (D || a && o) && z.length > 0 ? z : g || [], [P == null ? void 0 : P.options, $ == null ? void 0 : $.url, L, D, a, o, z, g]), rt = y(() => {
|
|
2546
|
+
if (at.length === 0) return V;
|
|
2547
|
+
if (Array.isArray(V))
|
|
2548
|
+
return V.map((lt) => {
|
|
2549
2549
|
var ot;
|
|
2550
2550
|
return ((ot = ce(at, lt)) == null ? void 0 : ot.value) ?? lt;
|
|
2551
2551
|
});
|
|
2552
|
-
const tt = ce(at,
|
|
2553
|
-
return (tt == null ? void 0 : tt.value) ??
|
|
2554
|
-
}, [
|
|
2552
|
+
const tt = ce(at, V);
|
|
2553
|
+
return (tt == null ? void 0 : tt.value) ?? V;
|
|
2554
|
+
}, [V, at]), vt = j(
|
|
2555
2555
|
(tt, lt) => {
|
|
2556
2556
|
if (p) {
|
|
2557
2557
|
p(tt, lt);
|
|
2558
2558
|
return;
|
|
2559
2559
|
}
|
|
2560
2560
|
if (M && r && x(M, r, tt), v && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
2561
|
-
E.current = null,
|
|
2561
|
+
E.current = null, X(tt);
|
|
2562
2562
|
}, ja)), h && t) {
|
|
2563
2563
|
const { actionName: ot, arg: Rt } = wt(h, tt, {
|
|
2564
2564
|
id: e,
|
|
@@ -2575,7 +2575,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2575
2575
|
r,
|
|
2576
2576
|
x,
|
|
2577
2577
|
v,
|
|
2578
|
-
|
|
2578
|
+
X,
|
|
2579
2579
|
h,
|
|
2580
2580
|
t,
|
|
2581
2581
|
e,
|
|
@@ -2583,8 +2583,8 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2583
2583
|
N
|
|
2584
2584
|
]
|
|
2585
2585
|
), bt = j(() => {
|
|
2586
|
-
d &&
|
|
2587
|
-
}, [d,
|
|
2586
|
+
d && X(rt);
|
|
2587
|
+
}, [d, X, rt]);
|
|
2588
2588
|
At(
|
|
2589
2589
|
() => () => {
|
|
2590
2590
|
E.current && clearTimeout(E.current);
|
|
@@ -2596,20 +2596,20 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2596
2596
|
/* @__PURE__ */ b(
|
|
2597
2597
|
Bn,
|
|
2598
2598
|
{
|
|
2599
|
-
...
|
|
2600
|
-
disabled: n ? !1 :
|
|
2599
|
+
...nt,
|
|
2600
|
+
disabled: n ? !1 : nt.disabled,
|
|
2601
2601
|
open: n ? !1 : void 0,
|
|
2602
|
-
value:
|
|
2602
|
+
value: rt,
|
|
2603
2603
|
options: at,
|
|
2604
2604
|
onChange: vt,
|
|
2605
2605
|
onBlur: bt,
|
|
2606
2606
|
filterOption: yt,
|
|
2607
|
-
loading:
|
|
2608
|
-
status:
|
|
2609
|
-
style: { width: "100%", ...
|
|
2607
|
+
loading: Y,
|
|
2608
|
+
status: q ? "error" : void 0,
|
|
2609
|
+
style: { width: "100%", ...nt.style }
|
|
2610
2610
|
}
|
|
2611
2611
|
),
|
|
2612
|
-
|
|
2612
|
+
q && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: q })
|
|
2613
2613
|
] });
|
|
2614
2614
|
}, xc = ({
|
|
2615
2615
|
id: e,
|
|
@@ -2627,7 +2627,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2627
2627
|
...p
|
|
2628
2628
|
}) => {
|
|
2629
2629
|
const g = _((T) => T.addCommand), f = _((T) => T.setDataSet), s = y(
|
|
2630
|
-
() =>
|
|
2630
|
+
() => it(t, i),
|
|
2631
2631
|
[t, i]
|
|
2632
2632
|
), m = _(
|
|
2633
2633
|
(T) => {
|
|
@@ -2636,7 +2636,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2636
2636
|
}
|
|
2637
2637
|
), u = _(
|
|
2638
2638
|
(T) => s && r ? T.getDataSet(s, r) : void 0
|
|
2639
|
-
), { validate: S, help: A } =
|
|
2639
|
+
), { validate: S, help: A } = zt({
|
|
2640
2640
|
rules: a,
|
|
2641
2641
|
dataSet: i,
|
|
2642
2642
|
dataSetField: r,
|
|
@@ -2702,7 +2702,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2702
2702
|
...g
|
|
2703
2703
|
}) => {
|
|
2704
2704
|
const f = _((x) => x.addCommand), s = _((x) => x.setDataSet), m = y(
|
|
2705
|
-
() =>
|
|
2705
|
+
() => it(t, i),
|
|
2706
2706
|
[t, i]
|
|
2707
2707
|
), u = _(
|
|
2708
2708
|
(x) => {
|
|
@@ -2711,7 +2711,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2711
2711
|
}
|
|
2712
2712
|
), S = _(
|
|
2713
2713
|
(x) => m && r ? x.getDataSet(m, r) : void 0
|
|
2714
|
-
), { validate: A, help: C } =
|
|
2714
|
+
), { validate: A, help: C } = zt({
|
|
2715
2715
|
rules: c,
|
|
2716
2716
|
dataSet: i,
|
|
2717
2717
|
dataSetField: r,
|
|
@@ -2793,11 +2793,11 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2793
2793
|
...g
|
|
2794
2794
|
}) => {
|
|
2795
2795
|
const f = _((x) => x.addCommand), s = _((x) => x.getDataSet), m = _((x) => x.setDataSet), u = y(
|
|
2796
|
-
() =>
|
|
2796
|
+
() => it(t, i),
|
|
2797
2797
|
[t, i]
|
|
2798
2798
|
), S = y(() => {
|
|
2799
2799
|
if (u && r) return s(u, r);
|
|
2800
|
-
}, [u, r, s]), { validate: A, help: C } =
|
|
2800
|
+
}, [u, r, s]), { validate: A, help: C } = zt({
|
|
2801
2801
|
rules: v,
|
|
2802
2802
|
dataSet: i,
|
|
2803
2803
|
dataSetField: r,
|
|
@@ -2858,7 +2858,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2858
2858
|
...g
|
|
2859
2859
|
}) => {
|
|
2860
2860
|
const f = _((x) => x.addCommand), s = _((x) => x.setDataSet), m = y(
|
|
2861
|
-
() =>
|
|
2861
|
+
() => it(t, i),
|
|
2862
2862
|
[t, i]
|
|
2863
2863
|
), u = _(
|
|
2864
2864
|
(x) => {
|
|
@@ -2867,7 +2867,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2867
2867
|
}
|
|
2868
2868
|
), S = _(
|
|
2869
2869
|
(x) => m && r ? x.getDataSet(m, r) : void 0
|
|
2870
|
-
), { validate: A, help: C } =
|
|
2870
|
+
), { validate: A, help: C } = zt({
|
|
2871
2871
|
rules: c,
|
|
2872
2872
|
dataSet: i,
|
|
2873
2873
|
dataSetField: r,
|
|
@@ -2941,16 +2941,16 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2941
2941
|
...A
|
|
2942
2942
|
}) => {
|
|
2943
2943
|
const C = _((K) => K.addCommand), w = _((K) => K.setDataSet), D = y(
|
|
2944
|
-
() =>
|
|
2944
|
+
() => it(t, i),
|
|
2945
2945
|
[t, i]
|
|
2946
2946
|
), T = _(
|
|
2947
2947
|
(K) => {
|
|
2948
|
-
var
|
|
2949
|
-
return t && e ? ((
|
|
2948
|
+
var L;
|
|
2949
|
+
return t && e ? ((L = K.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
|
|
2950
2950
|
}
|
|
2951
2951
|
), O = _(
|
|
2952
2952
|
(K) => D && r ? K.getDataSet(D, r) : void 0
|
|
2953
|
-
), { validate: N, help: x } =
|
|
2953
|
+
), { validate: N, help: x } = zt({
|
|
2954
2954
|
rules: v,
|
|
2955
2955
|
dataSet: i,
|
|
2956
2956
|
dataSetField: r,
|
|
@@ -2964,27 +2964,27 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
2964
2964
|
labelKey: (o == null ? void 0 : o.labelKey) || "label",
|
|
2965
2965
|
immediate: !!(o != null && o.url)
|
|
2966
2966
|
}
|
|
2967
|
-
), B = y(() => T != null && T.options ? T.options : o != null && o.url && M.length > 0 ? M : m && k.length > 0 ? k : a, [T == null ? void 0 : T.options, o == null ? void 0 : o.url, M, m, k, a]),
|
|
2967
|
+
), B = y(() => T != null && T.options ? T.options : o != null && o.url && M.length > 0 ? M : m && k.length > 0 ? k : a, [T == null ? void 0 : T.options, o == null ? void 0 : o.url, M, m, k, a]), P = y(() => {
|
|
2968
2968
|
if (B.length === 0) return E;
|
|
2969
2969
|
const K = ce(B, E);
|
|
2970
2970
|
return (K == null ? void 0 : K.value) ?? E;
|
|
2971
|
-
}, [E, B]),
|
|
2971
|
+
}, [E, B]), U = y(
|
|
2972
2972
|
() => Qt(A, T ?? void 0),
|
|
2973
2973
|
[A, T]
|
|
2974
2974
|
), $ = j(
|
|
2975
2975
|
(K) => {
|
|
2976
|
-
const
|
|
2976
|
+
const L = K.target.value;
|
|
2977
2977
|
if (g) {
|
|
2978
|
-
g(
|
|
2978
|
+
g(L);
|
|
2979
2979
|
return;
|
|
2980
2980
|
}
|
|
2981
|
-
if (D && r && w(D, r,
|
|
2982
|
-
const { actionName: R, arg:
|
|
2981
|
+
if (D && r && w(D, r, L), p && N(L), c && t) {
|
|
2982
|
+
const { actionName: R, arg: Y } = wt(c, L, {
|
|
2983
2983
|
id: e,
|
|
2984
2984
|
dataSet: i,
|
|
2985
2985
|
dataSetField: r
|
|
2986
2986
|
});
|
|
2987
|
-
C(t, I(R,
|
|
2987
|
+
C(t, I(R, Y));
|
|
2988
2988
|
}
|
|
2989
2989
|
},
|
|
2990
2990
|
[
|
|
@@ -3000,15 +3000,15 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3000
3000
|
C
|
|
3001
3001
|
]
|
|
3002
3002
|
), z = j(() => {
|
|
3003
|
-
h && N(
|
|
3004
|
-
}, [h, N,
|
|
3003
|
+
h && N(P);
|
|
3004
|
+
}, [h, N, P]);
|
|
3005
3005
|
return /* @__PURE__ */ st("div", { onBlur: z, children: [
|
|
3006
3006
|
/* @__PURE__ */ b(
|
|
3007
3007
|
He.Group,
|
|
3008
3008
|
{
|
|
3009
|
-
...
|
|
3010
|
-
disabled: n ? !1 :
|
|
3011
|
-
value:
|
|
3009
|
+
...U,
|
|
3010
|
+
disabled: n ? !1 : U.disabled,
|
|
3011
|
+
value: P,
|
|
3012
3012
|
onChange: $,
|
|
3013
3013
|
buttonStyle: (T == null ? void 0 : T.buttonStyle) ?? l,
|
|
3014
3014
|
optionType: (T == null ? void 0 : T.optionType) ?? d,
|
|
@@ -3049,17 +3049,17 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3049
3049
|
remoteUrl: C,
|
|
3050
3050
|
...w
|
|
3051
3051
|
}) => {
|
|
3052
|
-
const D = _((
|
|
3053
|
-
() =>
|
|
3052
|
+
const D = _((q) => q.addCommand), T = _((q) => q.setDataSet), O = y(
|
|
3053
|
+
() => it(t, i),
|
|
3054
3054
|
[t, i]
|
|
3055
3055
|
), N = _(
|
|
3056
|
-
(
|
|
3057
|
-
var
|
|
3058
|
-
return t && e ? ((
|
|
3056
|
+
(q) => {
|
|
3057
|
+
var V;
|
|
3058
|
+
return t && e ? ((V = q.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
|
|
3059
3059
|
}
|
|
3060
3060
|
), x = _(
|
|
3061
|
-
(
|
|
3062
|
-
), { validate: E, help: k } =
|
|
3061
|
+
(q) => O && r ? q.getDataSet(O, r) : void 0
|
|
3062
|
+
), { validate: E, help: k } = zt({
|
|
3063
3063
|
rules: d,
|
|
3064
3064
|
dataSet: i,
|
|
3065
3065
|
dataSetField: r,
|
|
@@ -3073,59 +3073,63 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3073
3073
|
labelKey: (o == null ? void 0 : o.labelKey) || "label",
|
|
3074
3074
|
immediate: !!(o != null && o.url)
|
|
3075
3075
|
}
|
|
3076
|
-
),
|
|
3076
|
+
), P = y(() => {
|
|
3077
3077
|
if (!c)
|
|
3078
3078
|
return x !== void 0 ? !!x : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : f ?? m;
|
|
3079
|
-
}, [c, x, N == null ? void 0 : N.checked, f, m]),
|
|
3079
|
+
}, [c, x, N == null ? void 0 : N.checked, f, m]), U = y(() => N != null && N.options ? N.options : o != null && o.url && B.length > 0 ? B : S && M.length > 0 ? M : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, B, S, M, a]), $ = y(() => {
|
|
3080
3080
|
if (!c) return [];
|
|
3081
|
-
let
|
|
3082
|
-
return Array.isArray(x) ?
|
|
3083
|
-
var
|
|
3084
|
-
return ((
|
|
3081
|
+
let q = [];
|
|
3082
|
+
return Array.isArray(x) ? q = x : Array.isArray(N == null ? void 0 : N.values) ? q = N.values : q = s || [], U.length === 0 ? q : q.map((V) => {
|
|
3083
|
+
var nt;
|
|
3084
|
+
return ((nt = ce(U, V)) == null ? void 0 : nt.value) ?? V;
|
|
3085
3085
|
});
|
|
3086
|
-
}, [c, x, N == null ? void 0 : N.values, s,
|
|
3086
|
+
}, [c, x, N == null ? void 0 : N.values, s, U]), z = y(
|
|
3087
3087
|
() => Qt(w, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3088
3088
|
[w, N]
|
|
3089
|
-
),
|
|
3090
|
-
const
|
|
3089
|
+
), L = (z.direction ?? A) === "vertical" ? "vertical" : "horizontal", R = j((q) => {
|
|
3090
|
+
const V = q.target.checked;
|
|
3091
3091
|
if (p) {
|
|
3092
|
-
p(
|
|
3092
|
+
p(V);
|
|
3093
3093
|
return;
|
|
3094
3094
|
}
|
|
3095
|
-
if (O && r && T(O, r,
|
|
3096
|
-
const { actionName:
|
|
3097
|
-
D(t, I(
|
|
3095
|
+
if (O && r && T(O, r, V), h && E(V), l && t) {
|
|
3096
|
+
const { actionName: nt, arg: at } = wt(l, V, { id: e, dataSet: i, dataSetField: r });
|
|
3097
|
+
D(t, I(nt, at));
|
|
3098
3098
|
}
|
|
3099
|
-
}, [p, O, r, T, h, E, l, t, e, D]),
|
|
3099
|
+
}, [p, O, r, T, h, E, l, t, e, D]), Y = j((q) => {
|
|
3100
3100
|
if (g) {
|
|
3101
|
-
g(
|
|
3101
|
+
g(q);
|
|
3102
3102
|
return;
|
|
3103
3103
|
}
|
|
3104
|
-
if (O && r && T(O, r,
|
|
3105
|
-
const { actionName:
|
|
3106
|
-
D(t, I(
|
|
3107
|
-
}
|
|
3108
|
-
}, [g, O, r, T, h, E, l, t, e, D]),
|
|
3109
|
-
v && E(c ? $ :
|
|
3110
|
-
}, [v, E, c, $,
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
{
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3104
|
+
if (O && r && T(O, r, q), h && E(q), l && t) {
|
|
3105
|
+
const { actionName: V, arg: nt } = wt(l, q, { id: e, dataSet: i, dataSetField: r });
|
|
3106
|
+
D(t, I(V, nt));
|
|
3107
|
+
}
|
|
3108
|
+
}, [g, O, r, T, h, E, l, t, e, D]), X = j(() => {
|
|
3109
|
+
v && E(c ? $ : P);
|
|
3110
|
+
}, [v, E, c, $, P]);
|
|
3111
|
+
if (c && U.length > 0) {
|
|
3112
|
+
const { indeterminate: q, direction: V, ...nt } = z;
|
|
3113
|
+
return /* @__PURE__ */ st("div", { onBlur: X, children: [
|
|
3114
|
+
/* @__PURE__ */ b(ue.Group, { ...nt, value: $, onChange: Y, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
|
|
3115
|
+
Yt,
|
|
3116
|
+
{
|
|
3117
|
+
orientation: L,
|
|
3118
|
+
wrap: !0,
|
|
3119
|
+
children: U.map((at) => /* @__PURE__ */ b(ue, { value: at.value, disabled: at.disabled, children: at.label }, at.value))
|
|
3120
|
+
}
|
|
3121
|
+
) }),
|
|
3122
|
+
k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
|
|
3123
|
+
] });
|
|
3124
|
+
}
|
|
3125
|
+
return /* @__PURE__ */ st("div", { onBlur: X, children: [
|
|
3122
3126
|
/* @__PURE__ */ b(
|
|
3123
3127
|
ue,
|
|
3124
3128
|
{
|
|
3125
3129
|
...z,
|
|
3126
3130
|
disabled: n ? !1 : z.disabled,
|
|
3127
|
-
checked:
|
|
3128
|
-
onChange:
|
|
3131
|
+
checked: P,
|
|
3132
|
+
onChange: R,
|
|
3129
3133
|
children: u
|
|
3130
3134
|
}
|
|
3131
3135
|
),
|
|
@@ -3147,7 +3151,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3147
3151
|
...p
|
|
3148
3152
|
}) => {
|
|
3149
3153
|
const g = _((O) => O.addCommand), f = _((O) => O.setDataSet), s = y(
|
|
3150
|
-
() =>
|
|
3154
|
+
() => it(t, i),
|
|
3151
3155
|
[t, i]
|
|
3152
3156
|
), m = _(
|
|
3153
3157
|
(O) => {
|
|
@@ -3156,7 +3160,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3156
3160
|
}
|
|
3157
3161
|
), u = _(
|
|
3158
3162
|
(O) => s && r ? O.getDataSet(s, r) : void 0
|
|
3159
|
-
), { validate: S, help: A } =
|
|
3163
|
+
), { validate: S, help: A } = zt({
|
|
3160
3164
|
rules: o,
|
|
3161
3165
|
dataSet: i,
|
|
3162
3166
|
dataSetField: r,
|
|
@@ -3210,7 +3214,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3210
3214
|
...d
|
|
3211
3215
|
}) => {
|
|
3212
3216
|
const v = _((u) => u.addCommand), h = _((u) => u.getDataSet), p = _((u) => u.setDataSet), g = y(
|
|
3213
|
-
() =>
|
|
3217
|
+
() => it(t, i),
|
|
3214
3218
|
[t, i]
|
|
3215
3219
|
), f = y(() => {
|
|
3216
3220
|
if (g && r) return h(g, r);
|
|
@@ -3235,7 +3239,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3235
3239
|
};
|
|
3236
3240
|
return l && l.length && (d.children = l), d;
|
|
3237
3241
|
});
|
|
3238
|
-
}, Tn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e],
|
|
3242
|
+
}, Tn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], za = (e, t) => {
|
|
3239
3243
|
const n = (i, r, a = []) => {
|
|
3240
3244
|
for (const o of i) {
|
|
3241
3245
|
const c = o.value, l = [...a, c];
|
|
@@ -3268,11 +3272,11 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3268
3272
|
...s
|
|
3269
3273
|
}) => {
|
|
3270
3274
|
const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S = _t(null), [A, C] = mt([]), [w, D] = mt(!1), T = y(
|
|
3271
|
-
() =>
|
|
3275
|
+
() => it(t, i),
|
|
3272
3276
|
[t, i]
|
|
3273
3277
|
), O = _(
|
|
3274
3278
|
($) => T && r ? $.getDataSet(T, r) : void 0
|
|
3275
|
-
), { validate: N, help: x, validateStatus: E } =
|
|
3279
|
+
), { validate: N, help: x, validateStatus: E } = zt({
|
|
3276
3280
|
rules: o,
|
|
3277
3281
|
dataSet: i,
|
|
3278
3282
|
dataSetField: r,
|
|
@@ -3281,20 +3285,20 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3281
3285
|
develop: n
|
|
3282
3286
|
}), k = y(() => (a == null ? void 0 : a.url) && A.length > 0, [a == null ? void 0 : a.url, A.length]), M = y(() => {
|
|
3283
3287
|
let $ = O ?? g ?? p ?? [];
|
|
3284
|
-
return typeof $ == "string" ? k ? Tn($).map((K) =>
|
|
3288
|
+
return typeof $ == "string" ? k ? Tn($).map((K) => za(K, A)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Nn($) && k ? $.map((K) => Tn(K)).filter((K) => Array.isArray(K) && K.length > 0) : kn($) && k ? $.filter((z) => Array.isArray(z) && z.length > 0) : $;
|
|
3285
3289
|
}, [O, g, p, k, A]), B = y(() => a != null && a.url && A.length > 0 ? A : h || [], [a == null ? void 0 : a.url, A, h]);
|
|
3286
3290
|
At(() => {
|
|
3287
3291
|
(async () => {
|
|
3288
3292
|
if (a != null && a.url) {
|
|
3289
3293
|
D(!0);
|
|
3290
3294
|
try {
|
|
3291
|
-
const z = await ae({ url: a.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [],
|
|
3292
|
-
codeKey:
|
|
3295
|
+
const z = await ae({ url: a.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], L = a.codeKey || "value", R = a.labelKey || "label", Y = a.childrenKey || "children", X = a.maxLevel || 5, q = ir(K, {
|
|
3296
|
+
codeKey: L,
|
|
3293
3297
|
labelKey: R,
|
|
3294
|
-
childrenKey:
|
|
3295
|
-
maxLevel:
|
|
3298
|
+
childrenKey: Y,
|
|
3299
|
+
maxLevel: X
|
|
3296
3300
|
});
|
|
3297
|
-
C(
|
|
3301
|
+
C(q);
|
|
3298
3302
|
} catch (z) {
|
|
3299
3303
|
console.error("Failed to load remote options:", z), C([]);
|
|
3300
3304
|
} finally {
|
|
@@ -3303,22 +3307,22 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3303
3307
|
}
|
|
3304
3308
|
})();
|
|
3305
3309
|
}, [a == null ? void 0 : a.url, a == null ? void 0 : a.codeKey, a == null ? void 0 : a.labelKey, a == null ? void 0 : a.childrenKey, a == null ? void 0 : a.maxLevel]);
|
|
3306
|
-
const
|
|
3310
|
+
const P = j(
|
|
3307
3311
|
($, z) => {
|
|
3308
3312
|
if (v) {
|
|
3309
3313
|
v($, z);
|
|
3310
3314
|
return;
|
|
3311
3315
|
}
|
|
3312
3316
|
let K = $;
|
|
3313
|
-
if (Nn($) && k ? K = String($[$.length - 1] || "") : kn($) && k && (K = $.map((
|
|
3317
|
+
if (Nn($) && k ? K = String($[$.length - 1] || "") : kn($) && k && (K = $.map((L) => L.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
3314
3318
|
S.current = null, N($);
|
|
3315
3319
|
}, Ka)), d && t) {
|
|
3316
|
-
const { actionName:
|
|
3320
|
+
const { actionName: L, arg: R } = wt(d, $, {
|
|
3317
3321
|
id: e,
|
|
3318
3322
|
dataSet: i,
|
|
3319
3323
|
dataSetField: r
|
|
3320
3324
|
});
|
|
3321
|
-
m(t, I(
|
|
3325
|
+
m(t, I(L, R));
|
|
3322
3326
|
}
|
|
3323
3327
|
},
|
|
3324
3328
|
[
|
|
@@ -3334,7 +3338,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3334
3338
|
m,
|
|
3335
3339
|
k
|
|
3336
3340
|
]
|
|
3337
|
-
),
|
|
3341
|
+
), U = j(() => {
|
|
3338
3342
|
c && N(M);
|
|
3339
3343
|
}, [c, N, M]);
|
|
3340
3344
|
return At(
|
|
@@ -3351,8 +3355,8 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3351
3355
|
open: n ? !1 : void 0,
|
|
3352
3356
|
value: M,
|
|
3353
3357
|
options: B,
|
|
3354
|
-
onChange:
|
|
3355
|
-
onBlur:
|
|
3358
|
+
onChange: P,
|
|
3359
|
+
onBlur: U,
|
|
3356
3360
|
loading: w,
|
|
3357
3361
|
status: E,
|
|
3358
3362
|
style: { width: "100%", ...s.style }
|
|
@@ -3382,7 +3386,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3382
3386
|
...S
|
|
3383
3387
|
}) => {
|
|
3384
3388
|
const A = _((z) => z.addCommand), C = _((z) => z.setDataSet), w = y(
|
|
3385
|
-
() =>
|
|
3389
|
+
() => it(t, i),
|
|
3386
3390
|
[t, i]
|
|
3387
3391
|
), D = _(
|
|
3388
3392
|
(z) => {
|
|
@@ -3391,7 +3395,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3391
3395
|
}
|
|
3392
3396
|
), T = _(
|
|
3393
3397
|
(z) => w && r ? z.getDataSet(w, r) : void 0
|
|
3394
|
-
), { validate: O, help: N } =
|
|
3398
|
+
), { validate: O, help: N } = zt({
|
|
3395
3399
|
rules: s,
|
|
3396
3400
|
dataSet: i,
|
|
3397
3401
|
dataSetField: r,
|
|
@@ -3405,18 +3409,18 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3405
3409
|
() => Qt(S, D ?? void 0),
|
|
3406
3410
|
[S, D]
|
|
3407
3411
|
), k = j(
|
|
3408
|
-
(z, K,
|
|
3412
|
+
(z, K, L) => {
|
|
3409
3413
|
if (o) {
|
|
3410
|
-
o(z, K,
|
|
3414
|
+
o(z, K, L);
|
|
3411
3415
|
return;
|
|
3412
3416
|
}
|
|
3413
3417
|
if (w && r && C(w, r, z), m && O(z), a && t) {
|
|
3414
|
-
const { actionName: R, arg:
|
|
3418
|
+
const { actionName: R, arg: Y } = wt(a, z, {
|
|
3415
3419
|
id: e,
|
|
3416
3420
|
dataSet: i,
|
|
3417
3421
|
dataSetField: r
|
|
3418
3422
|
});
|
|
3419
|
-
A(t, I(R,
|
|
3423
|
+
A(t, I(R, Y));
|
|
3420
3424
|
}
|
|
3421
3425
|
},
|
|
3422
3426
|
[o, w, r, C, m, O, a, t, e, A]
|
|
@@ -3425,17 +3429,17 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3425
3429
|
}, [u, O, x]), B = y(() => {
|
|
3426
3430
|
if (!f) return;
|
|
3427
3431
|
const z = {};
|
|
3428
|
-
return Object.entries(f).forEach(([K,
|
|
3429
|
-
|
|
3432
|
+
return Object.entries(f).forEach(([K, L]) => {
|
|
3433
|
+
L !== "" && L !== void 0 && L !== null && (z[K] = L);
|
|
3430
3434
|
}), Object.keys(z).length > 0 ? z : void 0;
|
|
3431
|
-
}, [f]),
|
|
3435
|
+
}, [f]), P = y(() => {
|
|
3432
3436
|
if (B)
|
|
3433
3437
|
return {
|
|
3434
3438
|
components: {
|
|
3435
3439
|
TreeSelect: B
|
|
3436
3440
|
}
|
|
3437
3441
|
};
|
|
3438
|
-
}, [B]),
|
|
3442
|
+
}, [B]), U = N ? "error" : void 0, $ = /* @__PURE__ */ st("div", { onBlur: M, children: [
|
|
3439
3443
|
/* @__PURE__ */ b(
|
|
3440
3444
|
br,
|
|
3441
3445
|
{
|
|
@@ -3448,12 +3452,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3448
3452
|
style: { width: "100%", ...E.style },
|
|
3449
3453
|
styles: p,
|
|
3450
3454
|
classNames: g,
|
|
3451
|
-
status:
|
|
3455
|
+
status: U
|
|
3452
3456
|
}
|
|
3453
3457
|
),
|
|
3454
3458
|
N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
|
|
3455
3459
|
] });
|
|
3456
|
-
return
|
|
3460
|
+
return P ? /* @__PURE__ */ b(Kt, { theme: P, children: $ }) : $;
|
|
3457
3461
|
}, $c = ({
|
|
3458
3462
|
id: e,
|
|
3459
3463
|
sessionId: t,
|
|
@@ -3474,88 +3478,88 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3474
3478
|
...m
|
|
3475
3479
|
}) => {
|
|
3476
3480
|
const u = Ke(i, r, t), S = u.dataSet, A = u.dataSetField, C = u.sessionId, w = _((G) => G.addCommand), D = _((G) => G.setDataSet), T = y(
|
|
3477
|
-
() =>
|
|
3481
|
+
() => it(C, S),
|
|
3478
3482
|
[C, S]
|
|
3479
3483
|
), O = _(
|
|
3480
3484
|
(G) => {
|
|
3481
|
-
var
|
|
3482
|
-
return C && e ? ((
|
|
3485
|
+
var W;
|
|
3486
|
+
return C && e ? ((W = G.propsStore[`${C}_props`]) == null ? void 0 : W[e]) ?? null : null;
|
|
3483
3487
|
}
|
|
3484
3488
|
), N = _(
|
|
3485
3489
|
(G) => T && A ? G.getDataSet(T, A) : void 0
|
|
3486
|
-
), { validate: x, help: E } =
|
|
3490
|
+
), { validate: x, help: E } = zt({
|
|
3487
3491
|
rules: c,
|
|
3488
3492
|
dataSet: S,
|
|
3489
3493
|
dataSetField: A,
|
|
3490
3494
|
sessionId: C,
|
|
3491
3495
|
id: e,
|
|
3492
3496
|
develop: n
|
|
3493
|
-
}), k = j((G) => G.map((
|
|
3497
|
+
}), k = j((G) => G.map((W) => {
|
|
3494
3498
|
var et;
|
|
3495
|
-
return ((et =
|
|
3496
|
-
}).filter((
|
|
3497
|
-
const
|
|
3498
|
-
return G.map((
|
|
3499
|
-
const dt = et(
|
|
3499
|
+
return ((et = W == null ? void 0 : W.response) == null ? void 0 : et.src) ?? (W == null ? void 0 : W.src) ?? (W == null ? void 0 : W.url) ?? (W == null ? void 0 : W.thumbUrl) ?? "";
|
|
3500
|
+
}).filter((W) => W && typeof W == "string"), []), M = j((G) => {
|
|
3501
|
+
const W = Jt().viewRes, et = (Z) => (W ? W(Z) : Z) || Z;
|
|
3502
|
+
return G.map((Z, ct) => {
|
|
3503
|
+
const dt = et(Z);
|
|
3500
3504
|
return {
|
|
3501
|
-
uid: `src-${ct}-${
|
|
3502
|
-
name:
|
|
3505
|
+
uid: `src-${ct}-${Z}`,
|
|
3506
|
+
name: Z.split("/").pop() || Z,
|
|
3503
3507
|
url: dt,
|
|
3504
3508
|
thumbUrl: dt,
|
|
3505
3509
|
status: "done",
|
|
3506
|
-
response: { src:
|
|
3510
|
+
response: { src: Z }
|
|
3507
3511
|
};
|
|
3508
3512
|
});
|
|
3509
3513
|
}, []), B = j((G) => {
|
|
3510
|
-
const
|
|
3511
|
-
return G.map((
|
|
3512
|
-
var
|
|
3513
|
-
const ct = ((
|
|
3514
|
-
for (const gt of Object.keys(
|
|
3515
|
-
const xt =
|
|
3514
|
+
const W = Jt().viewRes, et = (Z) => (Z && W ? W(Z) : Z) || Z;
|
|
3515
|
+
return G.map((Z) => {
|
|
3516
|
+
var Q;
|
|
3517
|
+
const ct = ((Q = Z == null ? void 0 : Z.response) == null ? void 0 : Q.src) ?? (Z == null ? void 0 : Z.src) ?? (Z == null ? void 0 : Z.url) ?? (Z == null ? void 0 : Z.thumbUrl) ?? "", dt = typeof ct == "string" ? et(ct) : ct, Dt = {};
|
|
3518
|
+
for (const gt of Object.keys(Z)) {
|
|
3519
|
+
const xt = Z[gt];
|
|
3516
3520
|
xt instanceof File ? Dt[gt] = xt : xt && typeof xt == "object" && !Array.isArray(xt) ? Dt[gt] = { ...xt } : Dt[gt] = xt;
|
|
3517
3521
|
}
|
|
3518
3522
|
return dt && typeof dt == "string" && (Dt.url = dt, Dt.thumbUrl = dt), Dt;
|
|
3519
3523
|
});
|
|
3520
|
-
}, []), [
|
|
3524
|
+
}, []), [P, U] = mt(null), $ = y(() => {
|
|
3521
3525
|
const G = N ?? (O == null ? void 0 : O.fileList) ?? h;
|
|
3522
3526
|
if (G != null) {
|
|
3523
3527
|
if (typeof G == "string" && G) return M([G]);
|
|
3524
3528
|
if (Array.isArray(G))
|
|
3525
3529
|
return G.length > 0 && typeof G[0] == "string" ? M(G) : B(G);
|
|
3526
3530
|
}
|
|
3527
|
-
}, [N, O == null ? void 0 : O.fileList, h, M, B]), z =
|
|
3531
|
+
}, [N, O == null ? void 0 : O.fileList, h, M, B]), z = P ?? $, K = y(
|
|
3528
3532
|
() => Qt(m, O ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
|
|
3529
3533
|
[m, O]
|
|
3530
|
-
),
|
|
3531
|
-
const { file:
|
|
3534
|
+
), L = j((G) => G.size / 1024 / 1024 < f ? !0 : (ke.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (G) => {
|
|
3535
|
+
const { file: W, onSuccess: et, onError: Z, onProgress: ct } = G;
|
|
3532
3536
|
if (Jt().upload)
|
|
3533
3537
|
try {
|
|
3534
3538
|
ct == null || ct({ percent: 30 });
|
|
3535
|
-
const Dt = await tr(
|
|
3539
|
+
const Dt = await tr(W, {
|
|
3536
3540
|
url: g,
|
|
3537
3541
|
headers: {
|
|
3538
3542
|
Authorization: cn() ? `Bearer ${cn()}` : ""
|
|
3539
3543
|
}
|
|
3540
3544
|
});
|
|
3541
|
-
ct == null || ct({ percent: 100 }), et == null || et(Dt,
|
|
3545
|
+
ct == null || ct({ percent: 100 }), et == null || et(Dt, W);
|
|
3542
3546
|
} catch (Dt) {
|
|
3543
|
-
|
|
3547
|
+
Z == null || Z(Dt), ke.error("上传失败");
|
|
3544
3548
|
}
|
|
3545
3549
|
else
|
|
3546
|
-
|
|
3547
|
-
}, [g]),
|
|
3550
|
+
Z == null || Z(new Error("Upload handler not configured")), ke.warning("上传功能未配置");
|
|
3551
|
+
}, [g]), Y = j(
|
|
3548
3552
|
(G) => {
|
|
3549
3553
|
if (v) {
|
|
3550
3554
|
v(G);
|
|
3551
3555
|
return;
|
|
3552
3556
|
}
|
|
3553
|
-
const
|
|
3554
|
-
T && A && (et.length > 0 || !Array.isArray(
|
|
3557
|
+
const W = Array.isArray(G.fileList) ? B(G.fileList) : G.fileList, et = Array.isArray(W) ? k(W) : [], Z = Array.isArray(W) && W.some((dt) => (dt == null ? void 0 : dt.status) === "uploading");
|
|
3558
|
+
T && A && (et.length > 0 || !Array.isArray(W) || W.length === 0) ? (D(T, A, et), U(null)) : Z ? U(W) : W.length === 0 && U(null), d && x(W), a && C && w(
|
|
3555
3559
|
C,
|
|
3556
3560
|
I(a, {
|
|
3557
3561
|
file: G.file,
|
|
3558
|
-
fileList:
|
|
3562
|
+
fileList: W,
|
|
3559
3563
|
src: et
|
|
3560
3564
|
})
|
|
3561
3565
|
);
|
|
@@ -3573,44 +3577,44 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3573
3577
|
B,
|
|
3574
3578
|
k
|
|
3575
3579
|
]
|
|
3576
|
-
),
|
|
3580
|
+
), X = j(() => {
|
|
3577
3581
|
l && x(z);
|
|
3578
|
-
}, [l, x, z]),
|
|
3582
|
+
}, [l, x, z]), q = j((G) => {
|
|
3579
3583
|
var dt;
|
|
3580
|
-
const
|
|
3581
|
-
if (!
|
|
3582
|
-
const et = ((dt = G.response) == null ? void 0 : dt.src) ?? (typeof
|
|
3583
|
-
return String(ct).replace(/([?&])download=1(&|$)/, (Dt,
|
|
3584
|
-
}, []),
|
|
3585
|
-
var
|
|
3586
|
-
const
|
|
3587
|
-
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(
|
|
3588
|
-
}, [
|
|
3584
|
+
const W = G.url || G.thumbUrl;
|
|
3585
|
+
if (!W) return "";
|
|
3586
|
+
const et = ((dt = G.response) == null ? void 0 : dt.src) ?? (typeof W == "string" ? W : ""), Z = Jt().viewRes, ct = et && Z ? Z(et) : W;
|
|
3587
|
+
return String(ct).replace(/([?&])download=1(&|$)/, (Dt, Q, gt) => gt ? Q : "");
|
|
3588
|
+
}, []), V = j((G) => {
|
|
3589
|
+
var Z, ct;
|
|
3590
|
+
const W = ((Z = G.response) == null ? void 0 : Z.src) ?? G.name ?? "", et = ((ct = String(W).split(".").pop()) == null ? void 0 : ct.toLowerCase()) || "";
|
|
3591
|
+
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(q(G));
|
|
3592
|
+
}, [q]), [nt, at] = mt({
|
|
3589
3593
|
url: "",
|
|
3590
3594
|
name: "",
|
|
3591
3595
|
urls: [],
|
|
3592
3596
|
current: 0,
|
|
3593
3597
|
open: !1
|
|
3594
|
-
}),
|
|
3595
|
-
const
|
|
3596
|
-
if (
|
|
3597
|
-
if (
|
|
3598
|
-
const et = z.filter((dt) =>
|
|
3599
|
-
at({ url:
|
|
3600
|
-
} else
|
|
3601
|
-
}, [
|
|
3602
|
-
(G) => Mt ? (ke.warning(`最多只能上传 ${ot} 个文件`), !1) :
|
|
3603
|
-
[Mt, ot,
|
|
3598
|
+
}), rt = j((G) => {
|
|
3599
|
+
const W = q(G);
|
|
3600
|
+
if (W)
|
|
3601
|
+
if (V(G) && (z != null && z.length)) {
|
|
3602
|
+
const et = z.filter((dt) => V(dt)), Z = et.map((dt) => q(dt)).filter(Boolean), ct = et.findIndex((dt) => (dt.uid || dt.url) === (G.uid || G.url));
|
|
3603
|
+
at({ url: W, name: G.name, urls: Z, current: ct >= 0 ? ct : 0, open: !0 });
|
|
3604
|
+
} else V(G) || window.open(W, "_blank");
|
|
3605
|
+
}, [q, V, z]), bt = !!Jt().upload && !s, yt = K, tt = yt.buttonText ?? o, lt = yt.listType ?? m.listType, ot = yt.maxCount, Rt = (z == null ? void 0 : z.length) ?? 0, Mt = typeof ot == "number" && Rt >= ot, Bt = j(
|
|
3606
|
+
(G) => Mt ? (ke.warning(`最多只能上传 ${ot} 个文件`), !1) : L(G),
|
|
3607
|
+
[Mt, ot, L]
|
|
3604
3608
|
);
|
|
3605
|
-
return /* @__PURE__ */ st("div", { onBlur:
|
|
3609
|
+
return /* @__PURE__ */ st("div", { onBlur: X, children: [
|
|
3606
3610
|
/* @__PURE__ */ b(
|
|
3607
3611
|
Sr,
|
|
3608
3612
|
{
|
|
3609
3613
|
...K,
|
|
3610
3614
|
disabled: n ? !1 : K.disabled,
|
|
3611
3615
|
fileList: z,
|
|
3612
|
-
onChange:
|
|
3613
|
-
onPreview:
|
|
3616
|
+
onChange: Y,
|
|
3617
|
+
onPreview: rt,
|
|
3614
3618
|
beforeUpload: Bt,
|
|
3615
3619
|
customRequest: bt ? R : void 0,
|
|
3616
3620
|
action: bt ? void 0 : s || g,
|
|
@@ -3622,35 +3626,35 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3622
3626
|
}
|
|
3623
3627
|
),
|
|
3624
3628
|
E && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E }),
|
|
3625
|
-
|
|
3629
|
+
nt.url && /* @__PURE__ */ b("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: nt.urls.length > 1 ? /* @__PURE__ */ b(
|
|
3626
3630
|
Zt.PreviewGroup,
|
|
3627
3631
|
{
|
|
3628
3632
|
preview: {
|
|
3629
|
-
current:
|
|
3630
|
-
onOpenChange: (G) => !G && at((
|
|
3633
|
+
current: nt.current,
|
|
3634
|
+
onOpenChange: (G) => !G && at((W) => ({ ...W, open: !1 }))
|
|
3631
3635
|
},
|
|
3632
|
-
children:
|
|
3636
|
+
children: nt.urls.map((G, W) => /* @__PURE__ */ b(
|
|
3633
3637
|
Zt,
|
|
3634
3638
|
{
|
|
3635
3639
|
src: G,
|
|
3636
3640
|
style: { width: 1, height: 1 },
|
|
3637
3641
|
preview: {
|
|
3638
|
-
open:
|
|
3639
|
-
onOpenChange: (et) => !et && at((
|
|
3642
|
+
open: nt.open && nt.current === W,
|
|
3643
|
+
onOpenChange: (et) => !et && at((Z) => ({ ...Z, open: !1 }))
|
|
3640
3644
|
}
|
|
3641
3645
|
},
|
|
3642
|
-
|
|
3646
|
+
W
|
|
3643
3647
|
))
|
|
3644
3648
|
}
|
|
3645
3649
|
) : /* @__PURE__ */ b(
|
|
3646
3650
|
Zt,
|
|
3647
3651
|
{
|
|
3648
|
-
src:
|
|
3649
|
-
alt:
|
|
3652
|
+
src: nt.url,
|
|
3653
|
+
alt: nt.name,
|
|
3650
3654
|
style: { width: 1, height: 1 },
|
|
3651
3655
|
preview: {
|
|
3652
|
-
open:
|
|
3653
|
-
onOpenChange: (G) => !G && at((
|
|
3656
|
+
open: nt.open,
|
|
3657
|
+
onOpenChange: (G) => !G && at((W) => ({ ...W, open: !1 }))
|
|
3654
3658
|
}
|
|
3655
3659
|
}
|
|
3656
3660
|
) })
|
|
@@ -3675,7 +3679,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3675
3679
|
...s
|
|
3676
3680
|
}) => {
|
|
3677
3681
|
const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), A = y(
|
|
3678
|
-
() =>
|
|
3682
|
+
() => it(t, i),
|
|
3679
3683
|
[t, i]
|
|
3680
3684
|
), [C, w] = mt(h || []), [, D] = mt(!1), T = Wt.useRef(void 0), { get: O } = na(), N = y(() => {
|
|
3681
3685
|
if (A && r) return u(A, r);
|
|
@@ -3683,9 +3687,9 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3683
3687
|
if (!(g != null && g.queryApi)) {
|
|
3684
3688
|
h && w(
|
|
3685
3689
|
h.filter(
|
|
3686
|
-
(
|
|
3687
|
-
var
|
|
3688
|
-
return ((
|
|
3690
|
+
(P) => {
|
|
3691
|
+
var U, $;
|
|
3692
|
+
return ((U = P.value) == null ? void 0 : U.toString().toLowerCase().includes(B.toLowerCase())) || (($ = P.label) == null ? void 0 : $.toString().toLowerCase().includes(B.toLowerCase()));
|
|
3689
3693
|
}
|
|
3690
3694
|
)
|
|
3691
3695
|
);
|
|
@@ -3695,21 +3699,21 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3695
3699
|
if (g != null && g.queryApi) {
|
|
3696
3700
|
D(!0);
|
|
3697
3701
|
try {
|
|
3698
|
-
const { queryApi:
|
|
3699
|
-
|
|
3700
|
-
|
|
3702
|
+
const { queryApi: P, keyWordParamName: U = "keyword", valueKey: $ = "value", labelKey: z = "label", fixedParams: K = [] } = g, L = {};
|
|
3703
|
+
U && (L[U] = B), Array.isArray(K) && K.forEach((q) => {
|
|
3704
|
+
q.key && (L[q.key] = q.value);
|
|
3701
3705
|
});
|
|
3702
|
-
const R = await O(
|
|
3703
|
-
let
|
|
3704
|
-
Array.isArray(R) ?
|
|
3705
|
-
const
|
|
3706
|
-
value:
|
|
3707
|
-
label:
|
|
3708
|
-
...
|
|
3706
|
+
const R = await O(P, L);
|
|
3707
|
+
let Y = [];
|
|
3708
|
+
Array.isArray(R) ? Y = R : R && Array.isArray(R.data) ? Y = R.data : R && R.data && Array.isArray(R.data.records) ? Y = R.data.records : R && R.result && Array.isArray(R.result) && (Y = R.result);
|
|
3709
|
+
const X = Y.map((q) => ({
|
|
3710
|
+
value: q[$],
|
|
3711
|
+
label: q[z] || q[$],
|
|
3712
|
+
...q
|
|
3709
3713
|
}));
|
|
3710
|
-
w(
|
|
3711
|
-
} catch (
|
|
3712
|
-
console.error("Failed to fetch remote options:",
|
|
3714
|
+
w(X);
|
|
3715
|
+
} catch (P) {
|
|
3716
|
+
console.error("Failed to fetch remote options:", P), w([]);
|
|
3713
3717
|
} finally {
|
|
3714
3718
|
D(!1);
|
|
3715
3719
|
}
|
|
@@ -3725,15 +3729,15 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3725
3729
|
return;
|
|
3726
3730
|
}
|
|
3727
3731
|
if (A && r && S(A, r, B), a && t) {
|
|
3728
|
-
const { actionName:
|
|
3729
|
-
m(t, I(
|
|
3732
|
+
const { actionName: P, arg: U } = wt(a, B, { id: e, dataSet: i, dataSetField: r });
|
|
3733
|
+
m(t, I(P, U));
|
|
3730
3734
|
}
|
|
3731
|
-
}, [c, A, r, S, a, t, e, m]), M = j((B,
|
|
3735
|
+
}, [c, A, r, S, a, t, e, m]), M = j((B, P) => {
|
|
3732
3736
|
if (l) {
|
|
3733
|
-
l(B,
|
|
3737
|
+
l(B, P);
|
|
3734
3738
|
return;
|
|
3735
3739
|
}
|
|
3736
|
-
o && t && m(t, I(o, { value: B, option:
|
|
3740
|
+
o && t && m(t, I(o, { value: B, option: P }));
|
|
3737
3741
|
}, [l, o, t, m]);
|
|
3738
3742
|
return /* @__PURE__ */ b(
|
|
3739
3743
|
wr,
|
|
@@ -3767,7 +3771,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3767
3771
|
...f
|
|
3768
3772
|
}) => {
|
|
3769
3773
|
const [s] = Re.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), S = y(
|
|
3770
|
-
() =>
|
|
3774
|
+
() => it(t, i),
|
|
3771
3775
|
[t, i]
|
|
3772
3776
|
), A = (w) => {
|
|
3773
3777
|
if (h) {
|
|
@@ -3834,26 +3838,26 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3834
3838
|
token: x,
|
|
3835
3839
|
...E
|
|
3836
3840
|
}) => {
|
|
3837
|
-
const k = _((tt) => tt.addCommand), M = _((tt) => tt.getDataSet), B = _((tt) => tt.setDataSet),
|
|
3838
|
-
() =>
|
|
3841
|
+
const k = _((tt) => tt.addCommand), M = _((tt) => tt.getDataSet), B = _((tt) => tt.setDataSet), P = y(
|
|
3842
|
+
() => it(t, i),
|
|
3839
3843
|
[t, i]
|
|
3840
|
-
),
|
|
3841
|
-
if (
|
|
3842
|
-
const tt = M(
|
|
3844
|
+
), U = y(() => Ht(N, {}), [N]), $ = y(() => Ht(x, {}), [x]), z = y(() => Ht(f, ["源列表", "目标列表"]), [f]), K = y(() => Ht(s, [">", "<"]), [s]), L = y(() => Ht(m, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [m]), R = y(() => Ht(p, !1), [p]), Y = y(() => {
|
|
3845
|
+
if (P && r) {
|
|
3846
|
+
const tt = M(P, r);
|
|
3843
3847
|
if (Array.isArray(tt)) return tt;
|
|
3844
3848
|
}
|
|
3845
|
-
}, [
|
|
3846
|
-
if (
|
|
3847
|
-
const tt = M(
|
|
3849
|
+
}, [P, r, M]), X = y(() => {
|
|
3850
|
+
if (P && r) {
|
|
3851
|
+
const tt = M(P, `${r}.dataSource`);
|
|
3848
3852
|
if (Array.isArray(tt)) return tt;
|
|
3849
3853
|
}
|
|
3850
|
-
}, [
|
|
3854
|
+
}, [P, r, M]), q = y(() => n ? X ?? Ht(a, []) : P ? X ?? [] : Ht(a, []), [n, P, X, a]), V = y(() => n ? Y ?? Ht(o, []) : P ? Y ?? [] : Ht(o, []), [n, P, Y, o]), nt = y(() => Ht(c, []), [c]), at = j((tt, lt, ot) => {
|
|
3851
3855
|
if (w) {
|
|
3852
3856
|
w(tt, lt, ot);
|
|
3853
3857
|
return;
|
|
3854
3858
|
}
|
|
3855
|
-
|
|
3856
|
-
}, [w,
|
|
3859
|
+
P && r && B(P, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction: lt, moveKeys: ot }));
|
|
3860
|
+
}, [w, P, r, B, u, t, k]), rt = j((tt, lt) => {
|
|
3857
3861
|
if (D) {
|
|
3858
3862
|
D(tt, lt);
|
|
3859
3863
|
return;
|
|
@@ -3874,9 +3878,9 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3874
3878
|
}, [O, C, t, k]), yt = /* @__PURE__ */ b(
|
|
3875
3879
|
Dr,
|
|
3876
3880
|
{
|
|
3877
|
-
dataSource:
|
|
3878
|
-
targetKeys:
|
|
3879
|
-
selectedKeys:
|
|
3881
|
+
dataSource: q,
|
|
3882
|
+
targetKeys: V,
|
|
3883
|
+
selectedKeys: nt,
|
|
3880
3884
|
disabled: l,
|
|
3881
3885
|
showSearch: d,
|
|
3882
3886
|
showSelectAll: v,
|
|
@@ -3885,12 +3889,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3885
3889
|
status: g || void 0,
|
|
3886
3890
|
titles: z,
|
|
3887
3891
|
actions: K,
|
|
3888
|
-
locale:
|
|
3892
|
+
locale: L,
|
|
3889
3893
|
onChange: at,
|
|
3890
|
-
onSelectChange:
|
|
3894
|
+
onSelectChange: rt,
|
|
3891
3895
|
onSearch: vt,
|
|
3892
3896
|
onScroll: bt,
|
|
3893
|
-
styles:
|
|
3897
|
+
styles: U,
|
|
3894
3898
|
render: (tt) => tt.title,
|
|
3895
3899
|
...E
|
|
3896
3900
|
}
|
|
@@ -3907,16 +3911,16 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3907
3911
|
return t;
|
|
3908
3912
|
}
|
|
3909
3913
|
return e;
|
|
3910
|
-
},
|
|
3914
|
+
}, La = (e) => {
|
|
3911
3915
|
if (!e) return null;
|
|
3912
3916
|
const t = Ft[e];
|
|
3913
3917
|
return t ? /* @__PURE__ */ b(t, {}) : null;
|
|
3914
3918
|
}, Va = (e) => sn(e, []).map((n) => ({
|
|
3915
3919
|
label: n.label,
|
|
3916
3920
|
value: n.value,
|
|
3917
|
-
icon: n.icon ?
|
|
3921
|
+
icon: n.icon ? La(n.icon) : void 0,
|
|
3918
3922
|
disabled: n.disabled
|
|
3919
|
-
})),
|
|
3923
|
+
})), zc = ({
|
|
3920
3924
|
id: e,
|
|
3921
3925
|
sessionId: t,
|
|
3922
3926
|
develop: n,
|
|
@@ -3939,7 +3943,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
|
|
|
3939
3943
|
...u
|
|
3940
3944
|
}) => {
|
|
3941
3945
|
const S = _((M) => M.addCommand), A = _((M) => M.getDataSet), C = _((M) => M.setDataSet), w = y(
|
|
3942
|
-
() =>
|
|
3946
|
+
() => it(t, i),
|
|
3943
3947
|
[t, i]
|
|
3944
3948
|
), D = y(() => sn(s, {}), [s]), T = y(() => sn(m, {}), [m]), O = y(() => Va(a), [a]), x = y(() => {
|
|
3945
3949
|
if (w && r) {
|
|
@@ -4187,51 +4191,51 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4187
4191
|
},
|
|
4188
4192
|
[v]
|
|
4189
4193
|
), T = j(
|
|
4190
|
-
(R,
|
|
4194
|
+
(R, Y, X, q) => _n(R, Y, X ?? m, q ?? S),
|
|
4191
4195
|
[m, S]
|
|
4192
4196
|
), O = j(() => {
|
|
4193
4197
|
g(r);
|
|
4194
|
-
const R = a.map((
|
|
4198
|
+
const R = a.map((Y) => ({ ...Y }));
|
|
4195
4199
|
s(R), u(c), A(d), D(_n(r, R, c, d));
|
|
4196
4200
|
}, [r, a, c, d, D]), N = j(
|
|
4197
4201
|
(R) => {
|
|
4198
|
-
s((
|
|
4199
|
-
const
|
|
4200
|
-
return D(T(p,
|
|
4202
|
+
s((Y) => {
|
|
4203
|
+
const X = Y.map((q) => q.key === R ? { ...q, visible: !q.visible } : q);
|
|
4204
|
+
return D(T(p, X)), X;
|
|
4201
4205
|
});
|
|
4202
4206
|
},
|
|
4203
4207
|
[p, T, D]
|
|
4204
4208
|
), x = j(
|
|
4205
|
-
(R,
|
|
4206
|
-
s((
|
|
4207
|
-
const
|
|
4208
|
-
return D(T(p,
|
|
4209
|
+
(R, Y) => {
|
|
4210
|
+
s((X) => {
|
|
4211
|
+
const q = X.map((V) => V.key === R ? { ...V, fixed: Y } : V);
|
|
4212
|
+
return D(T(p, q)), q;
|
|
4209
4213
|
});
|
|
4210
4214
|
},
|
|
4211
4215
|
[p, T, D]
|
|
4212
4216
|
), E = j(
|
|
4213
|
-
(R,
|
|
4214
|
-
s((
|
|
4215
|
-
const
|
|
4216
|
-
return D(T(p,
|
|
4217
|
+
(R, Y) => {
|
|
4218
|
+
s((X) => {
|
|
4219
|
+
const q = X.map((V) => V.key === R ? { ...V, width: Y } : V);
|
|
4220
|
+
return D(T(p, q)), q;
|
|
4217
4221
|
});
|
|
4218
4222
|
},
|
|
4219
4223
|
[p, T, D]
|
|
4220
4224
|
), k = j(
|
|
4221
|
-
(R,
|
|
4222
|
-
s((
|
|
4223
|
-
const
|
|
4224
|
-
if (!
|
|
4225
|
-
const
|
|
4225
|
+
(R, Y) => {
|
|
4226
|
+
s((X) => {
|
|
4227
|
+
const q = X.find((rt) => rt.key === R);
|
|
4228
|
+
if (!q) return X;
|
|
4229
|
+
const V = typeof q.width == "number" ? q.width : 80, nt = Math.max(Ye, V + Y), at = X.map((rt) => rt.key === R ? { ...rt, width: nt } : rt);
|
|
4226
4230
|
return D(T(p, at)), at;
|
|
4227
4231
|
});
|
|
4228
4232
|
},
|
|
4229
4233
|
[p, T, D]
|
|
4230
4234
|
), M = j(
|
|
4231
|
-
(R,
|
|
4232
|
-
if (
|
|
4233
|
-
const
|
|
4234
|
-
|
|
4235
|
+
(R, Y) => {
|
|
4236
|
+
if (Y < 0 || Y >= f.length) return;
|
|
4237
|
+
const X = [...f], [q] = X.splice(R, 1);
|
|
4238
|
+
X.splice(Y, 0, q), s(X), D(T(p, X));
|
|
4235
4239
|
},
|
|
4236
4240
|
[f, p, T, D]
|
|
4237
4241
|
), B = j(
|
|
@@ -4239,26 +4243,26 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4239
4243
|
g(R), D(T(R, f));
|
|
4240
4244
|
},
|
|
4241
4245
|
[f, T, D]
|
|
4242
|
-
),
|
|
4246
|
+
), P = j(
|
|
4243
4247
|
(R) => {
|
|
4244
4248
|
u(R), D(T(p, f, R, S));
|
|
4245
4249
|
},
|
|
4246
4250
|
[p, f, S, T, D]
|
|
4247
|
-
),
|
|
4251
|
+
), U = j(
|
|
4248
4252
|
(R) => {
|
|
4249
4253
|
A(R), D(T(p, f, m, R));
|
|
4250
4254
|
},
|
|
4251
4255
|
[p, f, m, T, D]
|
|
4252
|
-
), $ = (R) => (
|
|
4253
|
-
w(R),
|
|
4254
|
-
}, z = (R) => (
|
|
4255
|
-
|
|
4256
|
-
}, K = () => w(null),
|
|
4257
|
-
let R = t.y,
|
|
4258
|
-
return typeof window < "u" && (
|
|
4256
|
+
), $ = (R) => (Y) => {
|
|
4257
|
+
w(R), Y.dataTransfer.effectAllowed = "move", Y.dataTransfer.setData("text/plain", String(R));
|
|
4258
|
+
}, z = (R) => (Y) => {
|
|
4259
|
+
Y.preventDefault(), Y.dataTransfer.dropEffect = "move", !(C === null || C === R) && (M(C, R), w(R));
|
|
4260
|
+
}, K = () => w(null), L = t != null ? (() => {
|
|
4261
|
+
let R = t.y, Y = t.x;
|
|
4262
|
+
return typeof window < "u" && (Y + Ge > window.innerWidth && (Y = window.innerWidth - Ge - 16), Y < 16 && (Y = 16), R + En > window.innerHeight && (R = Math.max(16, window.innerHeight - En - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: Y };
|
|
4259
4263
|
})() : void 0;
|
|
4260
4264
|
return /* @__PURE__ */ b(
|
|
4261
|
-
|
|
4265
|
+
zn,
|
|
4262
4266
|
{
|
|
4263
4267
|
title: "列设置",
|
|
4264
4268
|
open: e,
|
|
@@ -4267,7 +4271,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4267
4271
|
width: Ge,
|
|
4268
4272
|
destroyOnHidden: !0,
|
|
4269
4273
|
centered: t == null,
|
|
4270
|
-
style:
|
|
4274
|
+
style: L,
|
|
4271
4275
|
mask: !1,
|
|
4272
4276
|
className: `and-table-column-setting-modal${t != null ? " and-table-column-setting-modal-positioned" : ""}`,
|
|
4273
4277
|
children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-body", children: [
|
|
@@ -4280,7 +4284,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4280
4284
|
children: "序号列"
|
|
4281
4285
|
}
|
|
4282
4286
|
),
|
|
4283
|
-
/* @__PURE__ */ b(ue, { checked: m, onChange: (R) =>
|
|
4287
|
+
/* @__PURE__ */ b(ue, { checked: m, onChange: (R) => P(R.target.checked), children: "自动滚动" }),
|
|
4284
4288
|
/* @__PURE__ */ st(Yt, { align: "center", children: [
|
|
4285
4289
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4286
4290
|
/* @__PURE__ */ b(
|
|
@@ -4288,7 +4292,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4288
4292
|
{
|
|
4289
4293
|
size: "small",
|
|
4290
4294
|
value: S,
|
|
4291
|
-
onChange:
|
|
4295
|
+
onChange: U,
|
|
4292
4296
|
options: [...Qa],
|
|
4293
4297
|
style: { width: 80 }
|
|
4294
4298
|
}
|
|
@@ -4302,15 +4306,15 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4302
4306
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
|
|
4303
4307
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-fix", children: "固定" })
|
|
4304
4308
|
] }) }),
|
|
4305
|
-
/* @__PURE__ */ b("tbody", { children: f.map((R,
|
|
4306
|
-
const
|
|
4309
|
+
/* @__PURE__ */ b("tbody", { children: f.map((R, Y) => {
|
|
4310
|
+
const X = typeof R.width == "number" ? R.width : null, q = R.width === "auto" || R.width === void 0 && X === null;
|
|
4307
4311
|
return /* @__PURE__ */ st(
|
|
4308
4312
|
"tr",
|
|
4309
4313
|
{
|
|
4310
|
-
className: `and-table-column-setting-row ${C ===
|
|
4314
|
+
className: `and-table-column-setting-row ${C === Y ? "and-table-column-setting-row-dragging" : ""}`,
|
|
4311
4315
|
draggable: !0,
|
|
4312
|
-
onDragStart: $(
|
|
4313
|
-
onDragOver: z(
|
|
4316
|
+
onDragStart: $(Y),
|
|
4317
|
+
onDragOver: z(Y),
|
|
4314
4318
|
onDragEnd: K,
|
|
4315
4319
|
children: [
|
|
4316
4320
|
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(ti, {}) }) }),
|
|
@@ -4334,12 +4338,12 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4334
4338
|
size: "small",
|
|
4335
4339
|
min: Ye,
|
|
4336
4340
|
step: ye,
|
|
4337
|
-
value:
|
|
4341
|
+
value: q ? void 0 : X ?? 80,
|
|
4338
4342
|
placeholder: "auto",
|
|
4339
4343
|
controls: !1,
|
|
4340
4344
|
style: { width: 44 },
|
|
4341
|
-
onChange: (
|
|
4342
|
-
|
|
4345
|
+
onChange: (V) => {
|
|
4346
|
+
V == null || typeof V == "string" && V === "" ? E(R.key, "auto") : E(R.key, Math.max(Ye, Number(V)));
|
|
4343
4347
|
}
|
|
4344
4348
|
}
|
|
4345
4349
|
),
|
|
@@ -4384,7 +4388,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4384
4388
|
] })
|
|
4385
4389
|
}
|
|
4386
4390
|
);
|
|
4387
|
-
},
|
|
4391
|
+
}, Lc = ({
|
|
4388
4392
|
id: e,
|
|
4389
4393
|
sessionId: t,
|
|
4390
4394
|
develop: n,
|
|
@@ -4417,165 +4421,165 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4417
4421
|
children: k,
|
|
4418
4422
|
token: M,
|
|
4419
4423
|
columnSettingOpenKey: B,
|
|
4420
|
-
columnSettingsKey:
|
|
4421
|
-
...
|
|
4424
|
+
columnSettingsKey: P,
|
|
4425
|
+
...U
|
|
4422
4426
|
}) => {
|
|
4423
|
-
const $ = _((
|
|
4424
|
-
if (
|
|
4425
|
-
if (typeof
|
|
4427
|
+
const $ = _((F) => F.addCommand), z = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [L, R] = mt([]), Y = _t(null), [X, q] = mt(void 0), V = j((F, ut) => {
|
|
4428
|
+
if (F == null) return ut;
|
|
4429
|
+
if (typeof F == "string")
|
|
4426
4430
|
try {
|
|
4427
|
-
return JSON.parse(
|
|
4431
|
+
return JSON.parse(F) ?? ut;
|
|
4428
4432
|
} catch {
|
|
4429
4433
|
return ut;
|
|
4430
4434
|
}
|
|
4431
|
-
return
|
|
4432
|
-
}, []),
|
|
4435
|
+
return F;
|
|
4436
|
+
}, []), nt = y(() => Array.isArray(a) ? a : [], [a]), at = y(() => Array.isArray(o) ? o : [], [o]), rt = y(
|
|
4433
4437
|
() => ({
|
|
4434
|
-
dataSet:
|
|
4435
|
-
pagination: i ?
|
|
4436
|
-
selected: i ?
|
|
4437
|
-
columnSettingOpen: i && t ?
|
|
4438
|
-
columnSettings: i && t ?
|
|
4438
|
+
dataSet: it(t, i),
|
|
4439
|
+
pagination: i ? it(t, `${i}_pagination`) : void 0,
|
|
4440
|
+
selected: i ? it(t, `${i}_selected`) : void 0,
|
|
4441
|
+
columnSettingOpen: i && t ? it(t, `${i}_columnSettingOpen`) : void 0,
|
|
4442
|
+
columnSettings: i && t ? it(t, `${i}_columnSettings`) : void 0
|
|
4439
4443
|
}),
|
|
4440
4444
|
[t, i]
|
|
4441
4445
|
), vt = _(
|
|
4442
|
-
(
|
|
4446
|
+
(F) => {
|
|
4443
4447
|
var ut;
|
|
4444
|
-
return
|
|
4448
|
+
return rt.columnSettingOpen ? ((ut = F.dataSets[rt.columnSettingOpen]) == null ? void 0 : ut.value) === !0 : !1;
|
|
4445
4449
|
}
|
|
4446
4450
|
), bt = 420;
|
|
4447
4451
|
Un(() => {
|
|
4448
|
-
if (!vt || !
|
|
4449
|
-
const
|
|
4450
|
-
if (!
|
|
4451
|
-
const ut =
|
|
4452
|
-
|
|
4452
|
+
if (!vt || !Y.current) return;
|
|
4453
|
+
const F = Y.current.querySelector(".ant-table-thead") || Y.current.querySelector(".ant-table-header");
|
|
4454
|
+
if (!F) return;
|
|
4455
|
+
const ut = F.getBoundingClientRect();
|
|
4456
|
+
q({
|
|
4453
4457
|
x: ut.right - bt,
|
|
4454
4458
|
y: ut.bottom + 8
|
|
4455
4459
|
});
|
|
4456
4460
|
}, [vt]);
|
|
4457
|
-
const yt = _((
|
|
4461
|
+
const yt = _((F) => {
|
|
4458
4462
|
var Ot;
|
|
4459
|
-
const ut =
|
|
4463
|
+
const ut = rt.columnSettings ? (Ot = F.dataSets[rt.columnSettings]) == null ? void 0 : Ot.value : void 0;
|
|
4460
4464
|
return typeof ut == "object" && ut !== null ? ut : void 0;
|
|
4461
|
-
}), tt = bi(
|
|
4465
|
+
}), tt = bi(rt.dataSet, r), lt = y(() => rt.dataSet ? tt : (c == null ? void 0 : c.data) || [], [rt.dataSet, tt, c == null ? void 0 : c.data]), ot = y(() => V(M, {}), [M, V]), Rt = ot && Object.keys(ot).length > 0, Mt = y(
|
|
4462
4466
|
() => Rt ? { components: { Table: ot } } : void 0,
|
|
4463
4467
|
[Rt, ot]
|
|
4464
4468
|
), Bt = _(
|
|
4465
|
-
(
|
|
4466
|
-
), G = y(() =>
|
|
4467
|
-
if (!
|
|
4468
|
-
const
|
|
4469
|
+
(F) => rt.pagination ? F.dataSets[rt.pagination] : void 0
|
|
4470
|
+
), G = y(() => rt.pagination ? z(rt.pagination, "") || {} : {}, [rt.pagination, z, Bt]), W = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
|
|
4471
|
+
if (!W) return !1;
|
|
4472
|
+
const F = typeof s == "object" ? s : {}, ut = U || {}, Ot = F.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Ct = F.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, Tt = F.simple ?? ut["pagination-simple"] ?? !1, Lt = F.defaultPageSize ?? ut["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? ut["pagination-pageSizeOptions"] ?? "10,20,50,100", We = typeof Pt == "string" ? Pt.split(",").map((ne) => parseInt(String(ne).trim(), 10) || 10).filter((ne) => !isNaN(ne)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
|
|
4469
4473
|
return {
|
|
4470
4474
|
...G,
|
|
4471
4475
|
showSizeChanger: Ot,
|
|
4472
4476
|
showQuickJumper: Ct,
|
|
4473
4477
|
simple: Tt,
|
|
4474
|
-
defaultPageSize:
|
|
4478
|
+
defaultPageSize: Lt,
|
|
4475
4479
|
pageSizeOptions: We,
|
|
4476
|
-
showTotal: (ne, se) => (
|
|
4480
|
+
showTotal: (ne, se) => (F.showTotal || "共 ${total} 条").replace("${total}", String(ne)).replace("${range[0]}", String(se[0])).replace("${range[1]}", String(se[1])).replace("${range}", `${se[0]}-${se[1]}`),
|
|
4477
4481
|
onChange: (ne, se) => {
|
|
4478
|
-
|
|
4482
|
+
rt.pagination && K(rt.pagination, "", { ...G, current: ne, pageSize: se }), f && t && $(t, I(f, null));
|
|
4479
4483
|
},
|
|
4480
4484
|
hideOnSinglePage: !1
|
|
4481
4485
|
};
|
|
4482
|
-
}, [
|
|
4483
|
-
t && $(t, I(
|
|
4484
|
-
}, [t, $]), ct = y(() =>
|
|
4486
|
+
}, [W, s, U, G, rt.pagination, K, f, t, $]), Z = j((F, ut) => {
|
|
4487
|
+
t && $(t, I(F.action, { ...ut }));
|
|
4488
|
+
}, [t, $]), ct = y(() => nt.map((F) => {
|
|
4485
4489
|
let ut = !1;
|
|
4486
|
-
|
|
4487
|
-
const Ot =
|
|
4490
|
+
F.fixed === !0 || F.fixed === "left" ? ut = "left" : F.fixed === "right" && (ut = "right");
|
|
4491
|
+
const Ot = F.width;
|
|
4488
4492
|
return {
|
|
4489
|
-
key: String(
|
|
4490
|
-
title: typeof
|
|
4491
|
-
visible:
|
|
4493
|
+
key: String(F.key ?? F.dataIndex ?? ""),
|
|
4494
|
+
title: typeof F.title == "string" ? F.title : "列",
|
|
4495
|
+
visible: F.visible !== !1,
|
|
4492
4496
|
fixed: ut,
|
|
4493
4497
|
width: typeof Ot == "number" ? Ot : "auto"
|
|
4494
4498
|
};
|
|
4495
|
-
}).filter((
|
|
4499
|
+
}).filter((F) => F.key), [nt]), dt = g === !0, Dt = !1, Q = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: gt, items: xt, scrollX: J, size: H } = y(() => Za(
|
|
4496
4500
|
yt,
|
|
4497
4501
|
ct,
|
|
4498
4502
|
dt,
|
|
4499
4503
|
Dt,
|
|
4500
|
-
|
|
4501
|
-
), [yt, ct, dt, Dt,
|
|
4502
|
-
const
|
|
4503
|
-
gt &&
|
|
4504
|
+
Q
|
|
4505
|
+
), [yt, ct, dt, Dt, Q]), ft = !!(i && t), pt = y(() => {
|
|
4506
|
+
const F = [];
|
|
4507
|
+
gt && F.push({
|
|
4504
4508
|
title: "序号",
|
|
4505
4509
|
key: "rowIndex",
|
|
4506
4510
|
width: 60,
|
|
4507
4511
|
align: "center",
|
|
4508
|
-
render: (Ct, Tt,
|
|
4512
|
+
render: (Ct, Tt, Lt) => {
|
|
4509
4513
|
const Pt = G.current || 1, We = G.pageSize || 10;
|
|
4510
|
-
return (Pt - 1) * We +
|
|
4514
|
+
return (Pt - 1) * We + Lt + 1;
|
|
4511
4515
|
}
|
|
4512
4516
|
});
|
|
4513
|
-
const ut = new Map(
|
|
4517
|
+
const ut = new Map(nt.map((Ct) => [String(Ct.key ?? Ct.dataIndex ?? ""), Ct]));
|
|
4514
4518
|
return xt.filter((Ct) => Ct.visible).forEach((Ct) => {
|
|
4515
4519
|
const Tt = ut.get(Ct.key);
|
|
4516
4520
|
if (!Tt) return;
|
|
4517
|
-
const
|
|
4518
|
-
|
|
4521
|
+
const Lt = Ct.fixed || void 0, Pt = Ct.width === "auto" || Ct.width === void 0 ? void 0 : Ct.width;
|
|
4522
|
+
F.push(Fa({
|
|
4519
4523
|
...Tt,
|
|
4520
4524
|
dataIndex: Tt.dataIndex || Tt.key,
|
|
4521
|
-
fixed:
|
|
4525
|
+
fixed: Lt || Tt.fixed,
|
|
4522
4526
|
width: Pt ?? Tt.width
|
|
4523
4527
|
}));
|
|
4524
|
-
}), l !== !1 && at.length > 0 &&
|
|
4528
|
+
}), l !== !1 && at.length > 0 && F.push({
|
|
4525
4529
|
title: "操作",
|
|
4526
4530
|
key: "action",
|
|
4527
|
-
render: (Ct, Tt) => /* @__PURE__ */ b(Yt, { children: at.map((
|
|
4528
|
-
}),
|
|
4531
|
+
render: (Ct, Tt) => /* @__PURE__ */ b(Yt, { children: at.map((Lt, Pt) => /* @__PURE__ */ b(Ar, { title: Lt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Z(Lt, Tt), style: { marginRight: 5 }, children: Lt.title }) }, Pt)) })
|
|
4532
|
+
}), F;
|
|
4529
4533
|
}, [
|
|
4530
|
-
|
|
4534
|
+
nt,
|
|
4531
4535
|
at,
|
|
4532
4536
|
gt,
|
|
4533
4537
|
xt,
|
|
4534
4538
|
l,
|
|
4535
4539
|
G,
|
|
4536
|
-
|
|
4540
|
+
Z
|
|
4537
4541
|
]), St = j(() => {
|
|
4538
|
-
|
|
4539
|
-
}, [
|
|
4540
|
-
(
|
|
4541
|
-
|
|
4542
|
+
rt.columnSettingOpen && K(rt.columnSettingOpen, "", !1);
|
|
4543
|
+
}, [rt.columnSettingOpen, K]), kt = j(
|
|
4544
|
+
(F) => {
|
|
4545
|
+
rt.columnSettings && K(rt.columnSettings, "value", F);
|
|
4542
4546
|
},
|
|
4543
|
-
[
|
|
4547
|
+
[rt.columnSettings, K]
|
|
4544
4548
|
), ee = y(() => {
|
|
4545
4549
|
if (!v && d)
|
|
4546
4550
|
return {
|
|
4547
|
-
selectedRowKeys:
|
|
4548
|
-
onChange: (
|
|
4549
|
-
R(
|
|
4550
|
-
selectedRowKeys:
|
|
4551
|
+
selectedRowKeys: L,
|
|
4552
|
+
onChange: (F, ut, Ot) => {
|
|
4553
|
+
R(F), rt.selected && K(rt.selected, "", F), h != null && h.trim() && t && $(t, I(h.trim(), {
|
|
4554
|
+
selectedRowKeys: F,
|
|
4551
4555
|
selectedRows: ut,
|
|
4552
4556
|
info: Ot
|
|
4553
4557
|
}));
|
|
4554
4558
|
}
|
|
4555
4559
|
};
|
|
4556
|
-
}, [d, v,
|
|
4560
|
+
}, [d, v, L, rt.selected, K, h, t, $]), Gt = j((F) => {
|
|
4557
4561
|
if (!v) return;
|
|
4558
|
-
const Ot = [
|
|
4559
|
-
R(Ot),
|
|
4560
|
-
}, [v, h, t, p,
|
|
4562
|
+
const Ot = [F[p]];
|
|
4563
|
+
R(Ot), rt.selected && K(rt.selected, "", Ot), h != null && h.trim() && t && $(t, I(h.trim(), { record: F, selectedRowKeys: Ot }));
|
|
4564
|
+
}, [v, h, t, p, rt.selected, K, $]), me = j((F) => v && L.includes(F[p]) ? "ant-table-row-selected" : "", [v, p, L]), or = j((F) => v ? { onClick: () => Gt(F), style: { cursor: "pointer" } } : {}, [v, Gt]), { style: cr, className: sr, ...he } = U, jt = y(() => {
|
|
4561
4565
|
if (C) return C;
|
|
4562
|
-
let
|
|
4563
|
-
if (String(
|
|
4564
|
-
}, [C, he["scroll-x"], he["scroll-y"]]), qe = qa(
|
|
4566
|
+
let F = he["scroll-x"], ut = he["scroll-y"];
|
|
4567
|
+
if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (ut === "" || ut === null || ut === void 0) && (ut = void 0), F !== void 0 || ut !== void 0) return { x: F, y: ut };
|
|
4568
|
+
}, [C, he["scroll-x"], he["scroll-y"]]), qe = qa(Y, jt == null ? void 0 : jt.y, W), lr = y(() => {
|
|
4565
4569
|
if (!jt && !ft) return;
|
|
4566
|
-
const
|
|
4567
|
-
return
|
|
4568
|
-
}, [jt, qe, ft,
|
|
4569
|
-
let
|
|
4570
|
+
const F = ft ? J ? !0 : "max-content" : jt == null ? void 0 : jt.x, ut = (jt == null ? void 0 : jt.y) === "100%" ? qe : jt == null ? void 0 : jt.y;
|
|
4571
|
+
return F !== void 0 || ut !== void 0 ? { x: F, y: ut } : jt ? jt.y === "100%" ? { x: jt.x, y: qe } : jt : void 0;
|
|
4572
|
+
}, [jt, qe, ft, J]), { titleSlot: Te, summarySlot: Ne, footerSlot: hn, otherChildren: ur } = y(() => {
|
|
4573
|
+
let F = null, ut = null, Ot = null;
|
|
4570
4574
|
const Ct = [];
|
|
4571
4575
|
return Wt.Children.forEach(k, (Tt) => {
|
|
4572
4576
|
if (!Wt.isValidElement(Tt)) {
|
|
4573
4577
|
Ct.push(Tt);
|
|
4574
4578
|
return;
|
|
4575
4579
|
}
|
|
4576
|
-
const
|
|
4577
|
-
|
|
4578
|
-
}), { titleSlot:
|
|
4580
|
+
const Lt = Tt.props["data-slot-type"];
|
|
4581
|
+
Lt === "title" ? F = Tt : Lt === "summary" ? ut = Tt : Lt === "footer" ? Ot = Tt : Ct.push(Tt);
|
|
4582
|
+
}), { titleSlot: F, summarySlot: ut, footerSlot: Ot, otherChildren: Ct };
|
|
4579
4583
|
}, [k]), fr = y(() => {
|
|
4580
4584
|
if (!Te) {
|
|
4581
4585
|
if (N) return N;
|
|
@@ -4599,7 +4603,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4599
4603
|
pagination: et,
|
|
4600
4604
|
locale: { emptyText: m },
|
|
4601
4605
|
bordered: u,
|
|
4602
|
-
size: ft ?
|
|
4606
|
+
size: ft ? H : S,
|
|
4603
4607
|
sticky: A,
|
|
4604
4608
|
scroll: lr,
|
|
4605
4609
|
title: fr,
|
|
@@ -4609,9 +4613,9 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4609
4613
|
}
|
|
4610
4614
|
);
|
|
4611
4615
|
return /* @__PURE__ */ st(
|
|
4612
|
-
|
|
4616
|
+
Ln,
|
|
4613
4617
|
{
|
|
4614
|
-
ref:
|
|
4618
|
+
ref: Y,
|
|
4615
4619
|
vertical: !0,
|
|
4616
4620
|
style: { width: "100%", height: "100%", ...cr },
|
|
4617
4621
|
className: sr,
|
|
@@ -4619,10 +4623,10 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4619
4623
|
Te && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: Te }),
|
|
4620
4624
|
/* @__PURE__ */ st("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
|
|
4621
4625
|
v && (() => {
|
|
4622
|
-
const
|
|
4626
|
+
const F = (ot == null ? void 0 : ot.rowSelectedBg) || "#e6f4ff", ut = (ot == null ? void 0 : ot.rowSelectedHoverBg) || (ot == null ? void 0 : ot.rowSelectedBg) || "#bae0ff", Ot = ot == null ? void 0 : ot.rowSelectedColor, Ct = (ot == null ? void 0 : ot.rowSelectedLinkColor) ?? Ot, Tt = (ot == null ? void 0 : ot.rowSelectedLinkHoverColor) ?? Ct;
|
|
4623
4627
|
return /* @__PURE__ */ b("style", { children: `
|
|
4624
4628
|
.ant-table-row-selected > td {
|
|
4625
|
-
background: ${
|
|
4629
|
+
background: ${F} !important;
|
|
4626
4630
|
${Ot ? `color: ${Ot};` : ""}
|
|
4627
4631
|
}
|
|
4628
4632
|
.ant-table-row-selected:hover > td {
|
|
@@ -4641,15 +4645,15 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4641
4645
|
Xa,
|
|
4642
4646
|
{
|
|
4643
4647
|
open: vt,
|
|
4644
|
-
position:
|
|
4648
|
+
position: X,
|
|
4645
4649
|
rowIndexVisible: gt,
|
|
4646
4650
|
columnItems: xt,
|
|
4647
4651
|
defaultRowIndexVisible: dt,
|
|
4648
4652
|
defaultColumnItems: ct,
|
|
4649
|
-
scrollX:
|
|
4653
|
+
scrollX: J,
|
|
4650
4654
|
defaultScrollX: Dt,
|
|
4651
|
-
size:
|
|
4652
|
-
defaultSize:
|
|
4655
|
+
size: H,
|
|
4656
|
+
defaultSize: Q,
|
|
4653
4657
|
onSave: kt,
|
|
4654
4658
|
onClose: St
|
|
4655
4659
|
}
|
|
@@ -4677,9 +4681,9 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4677
4681
|
clickAction: s,
|
|
4678
4682
|
...m
|
|
4679
4683
|
}) => {
|
|
4680
|
-
const u = _((
|
|
4684
|
+
const u = _((L) => L.getDataSet), S = _((L) => {
|
|
4681
4685
|
var R;
|
|
4682
|
-
return !t || !e ? null : ((R =
|
|
4686
|
+
return !t || !e ? null : ((R = L.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null;
|
|
4683
4687
|
}), A = y(
|
|
4684
4688
|
() => d === "selectedCount" && o && !a ? o : a,
|
|
4685
4689
|
[d, o, a]
|
|
@@ -4687,12 +4691,12 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4687
4691
|
() => d === "selectedCount" ? "selectedCount" : o,
|
|
4688
4692
|
[d, o]
|
|
4689
4693
|
), w = y(
|
|
4690
|
-
() =>
|
|
4694
|
+
() => it(t, A),
|
|
4691
4695
|
[t, A]
|
|
4692
|
-
), D = _((
|
|
4696
|
+
), D = _((L) => {
|
|
4693
4697
|
if (!w) return;
|
|
4694
4698
|
const R = xe(w).baseName;
|
|
4695
|
-
return
|
|
4699
|
+
return L.dataSets[R];
|
|
4696
4700
|
}), { options: T } = Ce(d), O = y(() => {
|
|
4697
4701
|
if (w && C)
|
|
4698
4702
|
return u(w, C);
|
|
@@ -4705,44 +4709,44 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4705
4709
|
return {};
|
|
4706
4710
|
}
|
|
4707
4711
|
return h;
|
|
4708
|
-
}, [h]), x = (
|
|
4712
|
+
}, [h]), x = (L) => L == null || L === "" || typeof L == "string" && L.trim() === "", E = y(() => n ? i : O != null && O !== "" ? x(O) && p ? i : O : (S == null ? void 0 : S.content) !== void 0 ? S.content : i, [n, O, S == null ? void 0 : S.content, i, p]), k = y(() => {
|
|
4709
4713
|
if (d && T.length > 0 && E !== void 0 && E !== null) {
|
|
4710
|
-
const
|
|
4711
|
-
return (
|
|
4714
|
+
const L = ce(T, E);
|
|
4715
|
+
return (L == null ? void 0 : L.label) ?? E;
|
|
4712
4716
|
}
|
|
4713
4717
|
return E;
|
|
4714
4718
|
}, [d, T, E]), M = y(() => {
|
|
4715
4719
|
if (n)
|
|
4716
4720
|
return k;
|
|
4717
|
-
const
|
|
4718
|
-
return
|
|
4721
|
+
const L = (S == null ? void 0 : S.formatType) || v;
|
|
4722
|
+
return L && k !== void 0 && k !== null ? Ca(k, L, N) : k;
|
|
4719
4723
|
}, [n, k, v, N, S == null ? void 0 : S.formatType]), B = y(() => {
|
|
4720
|
-
const
|
|
4724
|
+
const L = { ...m };
|
|
4721
4725
|
return S && typeof S == "object" && Object.keys(S).forEach((R) => {
|
|
4722
|
-
!["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (
|
|
4723
|
-
}),
|
|
4724
|
-
}, [m, S]),
|
|
4726
|
+
!["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (L[R] = S[R]);
|
|
4727
|
+
}), L;
|
|
4728
|
+
}, [m, S]), P = (S == null ? void 0 : S.color) ?? l, U = Ve(P), $ = y(() => {
|
|
4725
4729
|
if (!f) return;
|
|
4726
|
-
let
|
|
4730
|
+
let L = f;
|
|
4727
4731
|
if (typeof f == "string")
|
|
4728
4732
|
try {
|
|
4729
|
-
|
|
4733
|
+
L = JSON.parse(f);
|
|
4730
4734
|
} catch {
|
|
4731
4735
|
return;
|
|
4732
4736
|
}
|
|
4733
|
-
if (!
|
|
4737
|
+
if (!L || typeof L != "object") return;
|
|
4734
4738
|
const R = {};
|
|
4735
|
-
return Object.entries(
|
|
4736
|
-
|
|
4739
|
+
return Object.entries(L).forEach(([Y, X]) => {
|
|
4740
|
+
X !== "" && X !== void 0 && X !== null && (R[Y] = X);
|
|
4737
4741
|
}), Object.keys(R).length > 0 ? R : void 0;
|
|
4738
4742
|
}, [f]), z = y(() => {
|
|
4739
|
-
const
|
|
4743
|
+
const L = { width: "100%" }, R = (S == null ? void 0 : S.fontSize) ?? c;
|
|
4740
4744
|
if (R) {
|
|
4741
|
-
const
|
|
4742
|
-
|
|
4745
|
+
const Y = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
|
|
4746
|
+
L.fontSize = Y;
|
|
4743
4747
|
}
|
|
4744
|
-
return
|
|
4745
|
-
}, [c,
|
|
4748
|
+
return U && (L.color = U), L;
|
|
4749
|
+
}, [c, U, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ b(Ia, { ...B, style: { ...z, ...g, ...B.style }, children: M != null && M !== "" ? String(M) : r });
|
|
4746
4750
|
return $ ? /* @__PURE__ */ b(Kt, { theme: { token: $ }, children: K }) : K;
|
|
4747
4751
|
}, { Title: to } = fn, qc = ({
|
|
4748
4752
|
id: e,
|
|
@@ -4758,7 +4762,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4758
4762
|
...v
|
|
4759
4763
|
}) => {
|
|
4760
4764
|
const h = _((w) => w.getDataSet), p = _((w) => w.getProps), g = y(
|
|
4761
|
-
() =>
|
|
4765
|
+
() => it(t, a),
|
|
4762
4766
|
[t, a]
|
|
4763
4767
|
), f = y(() => t && e ? p(t, e) : null, [t, e, p]), s = y(() => {
|
|
4764
4768
|
if (g && o)
|
|
@@ -4786,7 +4790,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4786
4790
|
...d
|
|
4787
4791
|
}) => {
|
|
4788
4792
|
const v = _((C) => C.getDataSet), h = _((C) => C.getProps), p = y(
|
|
4789
|
-
() =>
|
|
4793
|
+
() => it(t, a),
|
|
4790
4794
|
[t, a]
|
|
4791
4795
|
), g = y(() => t && e ? h(t, e) : null, [t, e, h]), f = y(() => {
|
|
4792
4796
|
if (p && o)
|
|
@@ -4827,7 +4831,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4827
4831
|
...g
|
|
4828
4832
|
}) => {
|
|
4829
4833
|
const f = _((N) => N.addCommand), s = _((N) => N.getDataSet), m = _((N) => N.setDataSet), u = y(
|
|
4830
|
-
() =>
|
|
4834
|
+
() => it(t, i),
|
|
4831
4835
|
[t, i]
|
|
4832
4836
|
), S = y(() => no(a), [a]), A = y(() => o && o.length > 0 ? n ? o.map((N) => ({ ...N, forceRender: !0 })) : o : S.length > 0 ? S.map((N, x) => ({
|
|
4833
4837
|
key: N.key,
|
|
@@ -4897,151 +4901,151 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
4897
4901
|
styles: k,
|
|
4898
4902
|
classNames: M,
|
|
4899
4903
|
token: B,
|
|
4900
|
-
...
|
|
4904
|
+
...P
|
|
4901
4905
|
}) => {
|
|
4902
|
-
const
|
|
4903
|
-
() =>
|
|
4906
|
+
const U = _((Q) => Q.addCommand), $ = _((Q) => Q.setDataSet), z = y(
|
|
4907
|
+
() => it(t, i),
|
|
4904
4908
|
[t, i]
|
|
4905
4909
|
), K = y(
|
|
4906
|
-
() => i ?
|
|
4910
|
+
() => i ? it(t, `${i}_selected`) : void 0,
|
|
4907
4911
|
[t, i]
|
|
4908
|
-
),
|
|
4909
|
-
() => i ?
|
|
4912
|
+
), L = y(
|
|
4913
|
+
() => i ? it(t, `${i}_checked`) : void 0,
|
|
4910
4914
|
[t, i]
|
|
4911
4915
|
), R = y(
|
|
4912
|
-
() => i ?
|
|
4916
|
+
() => i ? it(t, `${i}_expanded`) : void 0,
|
|
4913
4917
|
[t, i]
|
|
4914
|
-
),
|
|
4918
|
+
), Y = _((Q) => {
|
|
4915
4919
|
if (!z) return;
|
|
4916
4920
|
if (r)
|
|
4917
|
-
return
|
|
4918
|
-
const gt =
|
|
4921
|
+
return Q.getDataSet(z, r);
|
|
4922
|
+
const gt = Q.dataSets[z];
|
|
4919
4923
|
if (!gt) return;
|
|
4920
4924
|
if (Array.isArray(gt)) return gt;
|
|
4921
4925
|
const xt = gt.value;
|
|
4922
4926
|
return Array.isArray(xt) ? xt : void 0;
|
|
4923
|
-
}),
|
|
4924
|
-
(
|
|
4925
|
-
),
|
|
4926
|
-
(
|
|
4927
|
-
),
|
|
4928
|
-
(
|
|
4929
|
-
),
|
|
4930
|
-
(
|
|
4927
|
+
}), X = _(
|
|
4928
|
+
(Q) => K ? Q.getDataSet(K, "") : void 0
|
|
4929
|
+
), q = _(
|
|
4930
|
+
(Q) => L ? Q.getDataSet(L, "") : void 0
|
|
4931
|
+
), V = _(
|
|
4932
|
+
(Q) => R ? Q.getDataSet(R, "") : void 0
|
|
4933
|
+
), nt = y(() => n ? Y ?? E ?? [] : z ? Y ?? [] : E ?? [], [n, z, Y, E]), at = X, rt = q, vt = V, bt = j(
|
|
4934
|
+
(Q, gt) => {
|
|
4931
4935
|
if (m) {
|
|
4932
|
-
m(
|
|
4936
|
+
m(Q, gt);
|
|
4933
4937
|
return;
|
|
4934
4938
|
}
|
|
4935
|
-
K && $(K, "",
|
|
4939
|
+
K && $(K, "", Q), a && t && U(t, I(a, { selectedKeys: Q }));
|
|
4936
4940
|
},
|
|
4937
|
-
[m, K, t, $, a,
|
|
4941
|
+
[m, K, t, $, a, U]
|
|
4938
4942
|
), yt = j(
|
|
4939
|
-
(
|
|
4943
|
+
(Q, gt) => {
|
|
4940
4944
|
if (u) {
|
|
4941
|
-
u(
|
|
4945
|
+
u(Q, gt);
|
|
4942
4946
|
return;
|
|
4943
4947
|
}
|
|
4944
|
-
|
|
4948
|
+
L && $(L, "", Q), o && t && U(t, I(o, { checkedKeys: Q }));
|
|
4945
4949
|
},
|
|
4946
|
-
[u,
|
|
4950
|
+
[u, L, t, $, o, U]
|
|
4947
4951
|
), tt = j(
|
|
4948
|
-
(
|
|
4952
|
+
(Q, gt) => {
|
|
4949
4953
|
if (S) {
|
|
4950
|
-
S(
|
|
4954
|
+
S(Q, gt);
|
|
4951
4955
|
return;
|
|
4952
4956
|
}
|
|
4953
|
-
R && $(R, "",
|
|
4957
|
+
R && $(R, "", Q), c && t && U(t, I(c, { expandedKeys: Q, expanded: gt.expanded }));
|
|
4954
4958
|
},
|
|
4955
|
-
[S, R, t, $, c,
|
|
4959
|
+
[S, R, t, $, c, U]
|
|
4956
4960
|
), lt = j(
|
|
4957
|
-
(
|
|
4961
|
+
(Q) => {
|
|
4958
4962
|
if (A) {
|
|
4959
|
-
A(
|
|
4963
|
+
A(Q);
|
|
4960
4964
|
return;
|
|
4961
4965
|
}
|
|
4962
|
-
l && t &&
|
|
4966
|
+
l && t && U(t, I(l, Q));
|
|
4963
4967
|
},
|
|
4964
|
-
[A, l, t,
|
|
4968
|
+
[A, l, t, U]
|
|
4965
4969
|
), ot = j(
|
|
4966
|
-
(
|
|
4970
|
+
(Q) => {
|
|
4967
4971
|
if (C) {
|
|
4968
|
-
C(
|
|
4972
|
+
C(Q);
|
|
4969
4973
|
return;
|
|
4970
4974
|
}
|
|
4971
|
-
d && t &&
|
|
4975
|
+
d && t && U(t, I(d, Q));
|
|
4972
4976
|
},
|
|
4973
|
-
[C, d, t,
|
|
4977
|
+
[C, d, t, U]
|
|
4974
4978
|
), Rt = j(
|
|
4975
|
-
(
|
|
4979
|
+
(Q) => {
|
|
4976
4980
|
if (w) {
|
|
4977
|
-
w(
|
|
4981
|
+
w(Q);
|
|
4978
4982
|
return;
|
|
4979
4983
|
}
|
|
4980
|
-
v && t &&
|
|
4984
|
+
v && t && U(t, I(v, Q));
|
|
4981
4985
|
},
|
|
4982
|
-
[w, v, t,
|
|
4986
|
+
[w, v, t, U]
|
|
4983
4987
|
), Mt = j(
|
|
4984
|
-
(
|
|
4988
|
+
(Q) => {
|
|
4985
4989
|
if (D) {
|
|
4986
|
-
D(
|
|
4990
|
+
D(Q);
|
|
4987
4991
|
return;
|
|
4988
4992
|
}
|
|
4989
|
-
h && t &&
|
|
4993
|
+
h && t && U(t, I(h, Q));
|
|
4990
4994
|
},
|
|
4991
|
-
[D, h, t,
|
|
4995
|
+
[D, h, t, U]
|
|
4992
4996
|
), Bt = j(
|
|
4993
|
-
(
|
|
4997
|
+
(Q) => {
|
|
4994
4998
|
if (T) {
|
|
4995
|
-
T(
|
|
4999
|
+
T(Q);
|
|
4996
5000
|
return;
|
|
4997
5001
|
}
|
|
4998
|
-
p && t &&
|
|
5002
|
+
p && t && U(t, I(p, Q));
|
|
4999
5003
|
},
|
|
5000
|
-
[T, p, t,
|
|
5004
|
+
[T, p, t, U]
|
|
5001
5005
|
), G = j(
|
|
5002
|
-
(
|
|
5006
|
+
(Q) => {
|
|
5003
5007
|
if (O) {
|
|
5004
|
-
O(
|
|
5008
|
+
O(Q);
|
|
5005
5009
|
return;
|
|
5006
5010
|
}
|
|
5007
|
-
g && t &&
|
|
5011
|
+
g && t && U(t, I(g, Q));
|
|
5008
5012
|
},
|
|
5009
|
-
[O, g, t,
|
|
5010
|
-
),
|
|
5011
|
-
(
|
|
5013
|
+
[O, g, t, U]
|
|
5014
|
+
), W = j(
|
|
5015
|
+
(Q) => {
|
|
5012
5016
|
if (N) {
|
|
5013
|
-
N(
|
|
5017
|
+
N(Q);
|
|
5014
5018
|
return;
|
|
5015
5019
|
}
|
|
5016
|
-
f && t &&
|
|
5020
|
+
f && t && U(t, I(f, Q));
|
|
5017
5021
|
},
|
|
5018
|
-
[N, f, t,
|
|
5022
|
+
[N, f, t, U]
|
|
5019
5023
|
), et = j(
|
|
5020
|
-
(
|
|
5024
|
+
(Q, gt) => {
|
|
5021
5025
|
if (x) {
|
|
5022
|
-
x(
|
|
5026
|
+
x(Q, gt);
|
|
5023
5027
|
return;
|
|
5024
5028
|
}
|
|
5025
|
-
s && t &&
|
|
5029
|
+
s && t && U(t, I(s, { loadedKeys: Q, ...gt }));
|
|
5026
5030
|
},
|
|
5027
|
-
[x, s, t,
|
|
5028
|
-
),
|
|
5031
|
+
[x, s, t, U]
|
|
5032
|
+
), Z = y(() => {
|
|
5029
5033
|
if (!B) return;
|
|
5030
|
-
const
|
|
5034
|
+
const Q = {};
|
|
5031
5035
|
return Object.entries(B).forEach(([gt, xt]) => {
|
|
5032
|
-
xt !== "" && xt !== void 0 && xt !== null && (
|
|
5033
|
-
}), Object.keys(
|
|
5036
|
+
xt !== "" && xt !== void 0 && xt !== null && (Q[gt] = xt);
|
|
5037
|
+
}), Object.keys(Q).length > 0 ? Q : void 0;
|
|
5034
5038
|
}, [B]), ct = y(() => {
|
|
5035
|
-
const
|
|
5036
|
-
return n && (
|
|
5037
|
-
}, [n,
|
|
5039
|
+
const Q = {};
|
|
5040
|
+
return n && (Q.motion = !1), Z && (Q.components = { Tree: Z }), Object.keys(Q).length > 0 ? Q : void 0;
|
|
5041
|
+
}, [n, Z]), Dt = /* @__PURE__ */ b(
|
|
5038
5042
|
Nr,
|
|
5039
5043
|
{
|
|
5040
|
-
...
|
|
5044
|
+
...P,
|
|
5041
5045
|
...n ? { motion: !1 } : {},
|
|
5042
|
-
treeData:
|
|
5046
|
+
treeData: nt,
|
|
5043
5047
|
...K != null ? { selectedKeys: at ?? [] } : {},
|
|
5044
|
-
...
|
|
5048
|
+
...L != null ? { checkedKeys: rt ?? [] } : {},
|
|
5045
5049
|
...R != null ? { expandedKeys: vt ?? [] } : {},
|
|
5046
5050
|
onSelect: bt,
|
|
5047
5051
|
onCheck: yt,
|
|
@@ -5052,7 +5056,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
5052
5056
|
onDragOver: Mt,
|
|
5053
5057
|
onDragStart: Bt,
|
|
5054
5058
|
onDrop: G,
|
|
5055
|
-
onRightClick:
|
|
5059
|
+
onRightClick: W,
|
|
5056
5060
|
onLoad: et,
|
|
5057
5061
|
styles: k,
|
|
5058
5062
|
classNames: M
|
|
@@ -5073,7 +5077,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
5073
5077
|
...d
|
|
5074
5078
|
}) => {
|
|
5075
5079
|
const v = _((S) => S.getDataSet), h = _((S) => S.getProps), p = y(
|
|
5076
|
-
() =>
|
|
5080
|
+
() => it(t, a),
|
|
5077
5081
|
[t, a]
|
|
5078
5082
|
), g = y(() => t && e ? h(t, e) : null, [t, e, h]), f = y(() => {
|
|
5079
5083
|
if (p && o) return v(p, o);
|
|
@@ -5133,7 +5137,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
5133
5137
|
...s
|
|
5134
5138
|
}) => {
|
|
5135
5139
|
const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), A = y(
|
|
5136
|
-
() =>
|
|
5140
|
+
() => it(t, i),
|
|
5137
5141
|
[t, i]
|
|
5138
5142
|
), C = y(() => {
|
|
5139
5143
|
if (A && r) return u(A, r);
|
|
@@ -5202,7 +5206,7 @@ const Ge = 420, En = 440, Xa = ({
|
|
|
5202
5206
|
...p
|
|
5203
5207
|
}) => {
|
|
5204
5208
|
const g = _((C) => C.addCommand), f = _((C) => C.setDataSet), s = y(
|
|
5205
|
-
() =>
|
|
5209
|
+
() => it(t, i),
|
|
5206
5210
|
[t, i]
|
|
5207
5211
|
), m = y(() => {
|
|
5208
5212
|
if (o) return o;
|
|
@@ -5252,7 +5256,7 @@ const oo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5252
5256
|
...l
|
|
5253
5257
|
}) => {
|
|
5254
5258
|
const d = _((u) => u.getDataSet), v = _((u) => u.getProps), h = y(() => t && e ? v(t, e) : null, [t, e, v]), p = y(
|
|
5255
|
-
() =>
|
|
5259
|
+
() => it(t, i),
|
|
5256
5260
|
[t, i]
|
|
5257
5261
|
), g = y(() => {
|
|
5258
5262
|
if (p && r)
|
|
@@ -5295,7 +5299,7 @@ const Zc = ({
|
|
|
5295
5299
|
...c
|
|
5296
5300
|
}) => {
|
|
5297
5301
|
const l = _((m) => m.getDataSet), d = _((m) => m.getProps), v = y(
|
|
5298
|
-
() =>
|
|
5302
|
+
() => it(t, r),
|
|
5299
5303
|
[t, r]
|
|
5300
5304
|
), h = y(() => t && e ? d(t, e) : null, [t, e, d]), p = y(() => {
|
|
5301
5305
|
if (v && a) return l(v, a);
|
|
@@ -5332,7 +5336,7 @@ const Zc = ({
|
|
|
5332
5336
|
...v
|
|
5333
5337
|
}) => {
|
|
5334
5338
|
const h = _((D) => D.getDataSet), p = _((D) => D.getProps), g = y(
|
|
5335
|
-
() =>
|
|
5339
|
+
() => it(t, r),
|
|
5336
5340
|
[t, r]
|
|
5337
5341
|
), f = y(() => t && e ? p(t, e) : null, [t, e, p]), s = y(() => {
|
|
5338
5342
|
if (g && a) return h(g, a);
|
|
@@ -5412,7 +5416,7 @@ const Zc = ({
|
|
|
5412
5416
|
...g
|
|
5413
5417
|
}) => {
|
|
5414
5418
|
const f = _((k) => k.getDataSet), s = _((k) => k.getProps), m = y(
|
|
5415
|
-
() =>
|
|
5419
|
+
() => it(t, a),
|
|
5416
5420
|
[t, a]
|
|
5417
5421
|
), { options: u } = Ce(c), S = y(() => {
|
|
5418
5422
|
if (d) {
|
|
@@ -5459,7 +5463,7 @@ const Zc = ({
|
|
|
5459
5463
|
...p
|
|
5460
5464
|
}) => {
|
|
5461
5465
|
const g = _((O) => O.addCommand), f = _((O) => O.setDataSet), s = y(
|
|
5462
|
-
() =>
|
|
5466
|
+
() => it(t, i),
|
|
5463
5467
|
[t, i]
|
|
5464
5468
|
), m = r ?? (s ? "" : void 0), u = y(() => ({}), []), S = _((O) => {
|
|
5465
5469
|
if (!s) return u;
|
|
@@ -5644,17 +5648,17 @@ const Zc = ({
|
|
|
5644
5648
|
paginationArrowStyle: k,
|
|
5645
5649
|
paginationArrowIconPrev: M,
|
|
5646
5650
|
paginationArrowIconNext: B,
|
|
5647
|
-
expandTrigger:
|
|
5651
|
+
expandTrigger: P,
|
|
5648
5652
|
// 仅设计器/业务用,不传给 DOM,避免 React 警告
|
|
5649
|
-
...
|
|
5653
|
+
...U
|
|
5650
5654
|
}) => {
|
|
5651
|
-
const $ = _((
|
|
5652
|
-
() =>
|
|
5655
|
+
const $ = _((H) => H.addCommand), z = _((H) => H.setDataSet), K = y(
|
|
5656
|
+
() => it(t, i),
|
|
5653
5657
|
[t, i]
|
|
5654
|
-
),
|
|
5655
|
-
(
|
|
5658
|
+
), L = _(
|
|
5659
|
+
(H) => {
|
|
5656
5660
|
if (K)
|
|
5657
|
-
return r ?
|
|
5661
|
+
return r ? H.getDataSet(K, r) : H.dataSets[K];
|
|
5658
5662
|
}
|
|
5659
5663
|
// 使用 shallow 比较确保只有通过内容变更才触发更新
|
|
5660
5664
|
// 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
|
|
@@ -5662,64 +5666,64 @@ const Zc = ({
|
|
|
5662
5666
|
// 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
|
|
5663
5667
|
// 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
|
|
5664
5668
|
// 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
|
|
5665
|
-
), R = y(() => ({}), []),
|
|
5666
|
-
() => (
|
|
5667
|
-
[
|
|
5668
|
-
),
|
|
5669
|
-
() =>
|
|
5670
|
-
[
|
|
5671
|
-
),
|
|
5672
|
-
() =>
|
|
5673
|
-
[
|
|
5669
|
+
), R = y(() => ({}), []), Y = L ?? R, X = y(
|
|
5670
|
+
() => (Y == null ? void 0 : Y.items) ?? (Array.isArray(Y) ? Y : void 0) ?? (Array.isArray(Y == null ? void 0 : Y.value) ? Y.value : void 0),
|
|
5671
|
+
[Y]
|
|
5672
|
+
), q = y(() => n ? X ?? g ?? [] : K ? X ?? [] : g ?? [], [n, K, X, g]), V = y(
|
|
5673
|
+
() => Y.selectedKeys ?? f,
|
|
5674
|
+
[Y.selectedKeys, f]
|
|
5675
|
+
), nt = y(
|
|
5676
|
+
() => Y.openKeys ?? (D && T ? void 0 : s),
|
|
5677
|
+
[Y.openKeys, D, T, s]
|
|
5674
5678
|
), at = y(
|
|
5675
|
-
() =>
|
|
5679
|
+
() => it(t, D),
|
|
5676
5680
|
[t, D]
|
|
5677
|
-
),
|
|
5678
|
-
if (!
|
|
5679
|
-
return
|
|
5681
|
+
), rt = _((H) => {
|
|
5682
|
+
if (!Y.openKeys && at && T)
|
|
5683
|
+
return H.getDataSet(at, T);
|
|
5680
5684
|
}), vt = y(() => {
|
|
5681
|
-
const
|
|
5685
|
+
const H = (ft) => Array.isArray(ft) ? ft.map((pt) => {
|
|
5682
5686
|
const St = { ...pt };
|
|
5683
5687
|
if (St.icon && typeof St.icon == "string") {
|
|
5684
5688
|
const kt = Ft[St.icon];
|
|
5685
5689
|
kt && (St.icon = /* @__PURE__ */ b(kt, {}));
|
|
5686
5690
|
}
|
|
5687
|
-
return St.children && St.children.length > 0 && (St.children =
|
|
5691
|
+
return St.children && St.children.length > 0 && (St.children = H(St.children)), St;
|
|
5688
5692
|
}) : [];
|
|
5689
|
-
return
|
|
5690
|
-
}, [
|
|
5691
|
-
() =>
|
|
5692
|
-
[
|
|
5693
|
+
return H(q || []);
|
|
5694
|
+
}, [q]), bt = y(
|
|
5695
|
+
() => V,
|
|
5696
|
+
[V]
|
|
5693
5697
|
), yt = y(
|
|
5694
|
-
() =>
|
|
5695
|
-
[
|
|
5698
|
+
() => nt ?? rt,
|
|
5699
|
+
[nt, rt]
|
|
5696
5700
|
), tt = j(
|
|
5697
|
-
(
|
|
5701
|
+
(H) => {
|
|
5698
5702
|
if (d) {
|
|
5699
|
-
d(
|
|
5703
|
+
d(H);
|
|
5700
5704
|
return;
|
|
5701
5705
|
}
|
|
5702
5706
|
a && t && $(
|
|
5703
5707
|
t,
|
|
5704
|
-
I(a, { key:
|
|
5708
|
+
I(a, { key: H.key, keyPath: H.keyPath })
|
|
5705
5709
|
);
|
|
5706
5710
|
},
|
|
5707
5711
|
[d, a, t, $]
|
|
5708
5712
|
), lt = j(
|
|
5709
|
-
(
|
|
5713
|
+
(H) => {
|
|
5710
5714
|
if (v) {
|
|
5711
|
-
v(
|
|
5715
|
+
v(H);
|
|
5712
5716
|
return;
|
|
5713
5717
|
}
|
|
5714
5718
|
if (K)
|
|
5715
5719
|
if (r) {
|
|
5716
5720
|
const ft = _.getState().getDataSet(K, r) || {};
|
|
5717
|
-
z(K, r, { ...ft, selectedKeys:
|
|
5721
|
+
z(K, r, { ...ft, selectedKeys: H.selectedKeys });
|
|
5718
5722
|
} else
|
|
5719
|
-
z(K, "selectedKeys",
|
|
5723
|
+
z(K, "selectedKeys", H.selectedKeys);
|
|
5720
5724
|
o && t && $(
|
|
5721
5725
|
t,
|
|
5722
|
-
I(o, { selectedKeys:
|
|
5726
|
+
I(o, { selectedKeys: H.selectedKeys })
|
|
5723
5727
|
);
|
|
5724
5728
|
},
|
|
5725
5729
|
[
|
|
@@ -5732,21 +5736,21 @@ const Zc = ({
|
|
|
5732
5736
|
$
|
|
5733
5737
|
]
|
|
5734
5738
|
), ot = j(
|
|
5735
|
-
(
|
|
5739
|
+
(H) => {
|
|
5736
5740
|
if (h) {
|
|
5737
|
-
h(
|
|
5741
|
+
h(H);
|
|
5738
5742
|
return;
|
|
5739
5743
|
}
|
|
5740
5744
|
if (K)
|
|
5741
5745
|
if (r) {
|
|
5742
5746
|
const ft = _.getState().getDataSet(K, r) || {};
|
|
5743
|
-
z(K, r, { ...ft, openKeys:
|
|
5747
|
+
z(K, r, { ...ft, openKeys: H });
|
|
5744
5748
|
} else
|
|
5745
|
-
z(K, "openKeys",
|
|
5746
|
-
else at && T && z(at, T,
|
|
5749
|
+
z(K, "openKeys", H);
|
|
5750
|
+
else at && T && z(at, T, H);
|
|
5747
5751
|
c && t && $(
|
|
5748
5752
|
t,
|
|
5749
|
-
I(c, { openKeys:
|
|
5753
|
+
I(c, { openKeys: H })
|
|
5750
5754
|
);
|
|
5751
5755
|
},
|
|
5752
5756
|
[
|
|
@@ -5761,68 +5765,68 @@ const Zc = ({
|
|
|
5761
5765
|
$
|
|
5762
5766
|
]
|
|
5763
5767
|
), Rt = j(
|
|
5764
|
-
(
|
|
5768
|
+
(H) => {
|
|
5765
5769
|
if (p) {
|
|
5766
|
-
p(
|
|
5770
|
+
p(H);
|
|
5767
5771
|
return;
|
|
5768
5772
|
}
|
|
5769
5773
|
l && t && $(
|
|
5770
5774
|
t,
|
|
5771
5775
|
I(l, {
|
|
5772
|
-
selectedKeys:
|
|
5773
|
-
key:
|
|
5776
|
+
selectedKeys: H.selectedKeys,
|
|
5777
|
+
key: H.key
|
|
5774
5778
|
})
|
|
5775
5779
|
);
|
|
5776
5780
|
},
|
|
5777
5781
|
[p, l, t, $]
|
|
5778
5782
|
), Mt = O === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, Bt = y(() => {
|
|
5779
5783
|
if (!A) return;
|
|
5780
|
-
const
|
|
5784
|
+
const H = {};
|
|
5781
5785
|
return Object.entries(A).forEach(([ft, pt]) => {
|
|
5782
|
-
pt !== "" && pt !== void 0 && pt !== null && (
|
|
5783
|
-
}), Object.keys(
|
|
5786
|
+
pt !== "" && pt !== void 0 && pt !== null && (H[ft] = pt);
|
|
5787
|
+
}), Object.keys(H).length > 0 ? H : void 0;
|
|
5784
5788
|
}, [A]), G = n ? {
|
|
5785
5789
|
motion: { motionName: "" }
|
|
5786
|
-
} : {},
|
|
5790
|
+
} : {}, W = y(() => {
|
|
5787
5791
|
if (typeof M == "string" && M) {
|
|
5788
|
-
const
|
|
5789
|
-
if (
|
|
5792
|
+
const H = Ft[M];
|
|
5793
|
+
if (H) return /* @__PURE__ */ b(H, {});
|
|
5790
5794
|
}
|
|
5791
5795
|
return M;
|
|
5792
5796
|
}, [M]), et = y(() => {
|
|
5793
5797
|
if (typeof B == "string" && B) {
|
|
5794
|
-
const
|
|
5795
|
-
if (
|
|
5798
|
+
const H = Ft[B];
|
|
5799
|
+
if (H) return /* @__PURE__ */ b(H, {});
|
|
5796
5800
|
}
|
|
5797
5801
|
return B;
|
|
5798
|
-
}, [B]),
|
|
5802
|
+
}, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), ct = Qr(), dt = e || ct.replace(/:/g, "-"), Dt = y(() => {
|
|
5799
5803
|
var St;
|
|
5800
5804
|
if (!u || typeof u == "function") return "";
|
|
5801
|
-
const
|
|
5802
|
-
if (!
|
|
5805
|
+
const H = (St = u.subMenu) == null ? void 0 : St.root;
|
|
5806
|
+
if (!H) return "";
|
|
5803
5807
|
const ft = [], pt = `[data-and-menu-id="${dt}"]`;
|
|
5804
|
-
if (
|
|
5805
|
-
const kt = $e(
|
|
5808
|
+
if (H.item && Object.keys(H.item).length > 0) {
|
|
5809
|
+
const kt = $e(H.item);
|
|
5806
5810
|
ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title { ${kt} }`);
|
|
5807
5811
|
}
|
|
5808
|
-
if (
|
|
5809
|
-
const kt = $e(
|
|
5812
|
+
if (H.itemIcon && Object.keys(H.itemIcon).length > 0) {
|
|
5813
|
+
const kt = $e(H.itemIcon);
|
|
5810
5814
|
ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${kt} }`);
|
|
5811
5815
|
}
|
|
5812
|
-
if (
|
|
5813
|
-
const kt = $e(
|
|
5816
|
+
if (H.itemContent && Object.keys(H.itemContent).length > 0) {
|
|
5817
|
+
const kt = $e(H.itemContent);
|
|
5814
5818
|
ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${kt} }`);
|
|
5815
5819
|
}
|
|
5816
|
-
if (
|
|
5817
|
-
const kt = $e(
|
|
5820
|
+
if (H.selected && Object.keys(H.selected).length > 0) {
|
|
5821
|
+
const kt = $e(H.selected);
|
|
5818
5822
|
ft.push(`${pt} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${kt} }`);
|
|
5819
5823
|
}
|
|
5820
5824
|
return ft.join(`
|
|
5821
5825
|
`);
|
|
5822
|
-
}, [u, dt]),
|
|
5826
|
+
}, [u, dt]), Q = /* @__PURE__ */ b(
|
|
5823
5827
|
$r,
|
|
5824
5828
|
{
|
|
5825
|
-
...
|
|
5829
|
+
...U,
|
|
5826
5830
|
...Mt,
|
|
5827
5831
|
...G,
|
|
5828
5832
|
mode: O,
|
|
@@ -5837,7 +5841,7 @@ const Zc = ({
|
|
|
5837
5841
|
styles: u,
|
|
5838
5842
|
classNames: S,
|
|
5839
5843
|
expandIcon: C,
|
|
5840
|
-
overflowedIndicator:
|
|
5844
|
+
overflowedIndicator: Z,
|
|
5841
5845
|
disabledOverflow: E !== "default"
|
|
5842
5846
|
}
|
|
5843
5847
|
), gt = () => E === "pagination" ? /* @__PURE__ */ b(
|
|
@@ -5845,19 +5849,19 @@ const Zc = ({
|
|
|
5845
5849
|
{
|
|
5846
5850
|
mode: O || "horizontal",
|
|
5847
5851
|
arrowStyle: k,
|
|
5848
|
-
arrowIconPrev:
|
|
5852
|
+
arrowIconPrev: W,
|
|
5849
5853
|
arrowIconNext: et,
|
|
5850
|
-
children:
|
|
5854
|
+
children: Q
|
|
5851
5855
|
}
|
|
5852
|
-
) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children:
|
|
5853
|
-
const
|
|
5854
|
-
return n && (
|
|
5856
|
+
) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: Q }) : Q, xt = y(() => {
|
|
5857
|
+
const H = {};
|
|
5858
|
+
return n && (H.motion = !1), Bt && (H.components = { Menu: Bt }), Object.keys(H).length > 0 ? H : void 0;
|
|
5855
5859
|
}, [n, Bt]);
|
|
5856
5860
|
return (() => {
|
|
5857
|
-
const
|
|
5861
|
+
const H = gt(), ft = Dt ? /* @__PURE__ */ st("div", { "data-and-menu-id": dt, style: { display: "contents" }, children: [
|
|
5858
5862
|
/* @__PURE__ */ b("style", { children: Dt }),
|
|
5859
|
-
|
|
5860
|
-
] }) :
|
|
5863
|
+
H
|
|
5864
|
+
] }) : H;
|
|
5861
5865
|
return xt ? /* @__PURE__ */ b(Kt, { theme: xt, children: ft }) : ft;
|
|
5862
5866
|
})();
|
|
5863
5867
|
}, rs = ({
|
|
@@ -5885,7 +5889,7 @@ const Zc = ({
|
|
|
5885
5889
|
...m
|
|
5886
5890
|
}) => {
|
|
5887
5891
|
const u = _((O) => O.getDataSet), S = y(
|
|
5888
|
-
() =>
|
|
5892
|
+
() => it(t, i),
|
|
5889
5893
|
[t, i]
|
|
5890
5894
|
), A = y(() => {
|
|
5891
5895
|
if (S && r) return u(S, r);
|
|
@@ -5936,7 +5940,7 @@ const Zc = ({
|
|
|
5936
5940
|
...d
|
|
5937
5941
|
}) => {
|
|
5938
5942
|
const v = _((u) => u.getDataSet), h = y(
|
|
5939
|
-
() =>
|
|
5943
|
+
() => it(t, i),
|
|
5940
5944
|
[t, i]
|
|
5941
5945
|
), p = y(() => {
|
|
5942
5946
|
if (h && r) return v(h, r);
|
|
@@ -6023,7 +6027,7 @@ const Zc = ({
|
|
|
6023
6027
|
...p
|
|
6024
6028
|
}) => {
|
|
6025
6029
|
const g = Ke(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = De(oe), S = _(($) => $.addCommand), A = y(
|
|
6026
|
-
() =>
|
|
6030
|
+
() => it(m, f),
|
|
6027
6031
|
[m, f]
|
|
6028
6032
|
), C = _(($) => A && s ? $.getDataSet(A, s) : null), w = y(() => !m || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [m, e, u]), D = _(
|
|
6029
6033
|
($) => {
|
|
@@ -6088,13 +6092,13 @@ const Zc = ({
|
|
|
6088
6092
|
);
|
|
6089
6093
|
};
|
|
6090
6094
|
}, [M, f, s, m]), {
|
|
6091
|
-
layoutChangeAction:
|
|
6092
|
-
...
|
|
6095
|
+
layoutChangeAction: P,
|
|
6096
|
+
...U
|
|
6093
6097
|
} = p;
|
|
6094
6098
|
return /* @__PURE__ */ b(
|
|
6095
6099
|
jr,
|
|
6096
6100
|
{
|
|
6097
|
-
...
|
|
6101
|
+
...U,
|
|
6098
6102
|
items: k,
|
|
6099
6103
|
columns: N,
|
|
6100
6104
|
gutter: x,
|
|
@@ -6118,7 +6122,7 @@ const Zc = ({
|
|
|
6118
6122
|
...h
|
|
6119
6123
|
}) => {
|
|
6120
6124
|
const p = _((w) => w.getDataSet), g = _((w) => w.getProps), f = y(
|
|
6121
|
-
() =>
|
|
6125
|
+
() => it(t, a),
|
|
6122
6126
|
[t, a]
|
|
6123
6127
|
), s = y(() => t && e ? g(t, e) : null, [t, e, g]), m = y(() => {
|
|
6124
6128
|
if (f && o) return p(f, o);
|
|
@@ -6154,7 +6158,7 @@ const Zc = ({
|
|
|
6154
6158
|
...h
|
|
6155
6159
|
}) => {
|
|
6156
6160
|
const p = _((C) => C.addCommand), g = _((C) => C.getDataSet), f = _((C) => C.setDataSet), s = y(
|
|
6157
|
-
() =>
|
|
6161
|
+
() => it(t, i),
|
|
6158
6162
|
[t, i]
|
|
6159
6163
|
), m = y(() => {
|
|
6160
6164
|
if (s && r)
|
|
@@ -6173,7 +6177,7 @@ const Zc = ({
|
|
|
6173
6177
|
});
|
|
6174
6178
|
}, [l, s, r, f, o, t, p]);
|
|
6175
6179
|
return /* @__PURE__ */ b(
|
|
6176
|
-
|
|
6180
|
+
zn,
|
|
6177
6181
|
{
|
|
6178
6182
|
...h,
|
|
6179
6183
|
open: u,
|
|
@@ -6195,7 +6199,7 @@ const Zc = ({
|
|
|
6195
6199
|
...d
|
|
6196
6200
|
}) => {
|
|
6197
6201
|
const v = _((u) => u.addCommand), h = _((u) => u.getDataSet), p = _((u) => u.setDataSet), g = y(
|
|
6198
|
-
() =>
|
|
6202
|
+
() => it(t, i),
|
|
6199
6203
|
[t, i]
|
|
6200
6204
|
), f = y(() => {
|
|
6201
6205
|
if (g && r)
|
|
@@ -6271,47 +6275,47 @@ const Zc = ({
|
|
|
6271
6275
|
children: w,
|
|
6272
6276
|
...D
|
|
6273
6277
|
}) => {
|
|
6274
|
-
const T = _((
|
|
6275
|
-
() =>
|
|
6278
|
+
const T = _((V) => V.addCommand), O = _((V) => V.getDataSet), N = _((V) => V.setDataSet), x = y(
|
|
6279
|
+
() => it(t, i),
|
|
6276
6280
|
[t, i]
|
|
6277
6281
|
), E = C === "default" ? "medium" : C, k = y(() => {
|
|
6278
|
-
const
|
|
6282
|
+
const V = ln(s, {});
|
|
6279
6283
|
return Object.fromEntries(
|
|
6280
|
-
Object.entries(
|
|
6281
|
-
|
|
6284
|
+
Object.entries(V).map(([nt, at]) => [
|
|
6285
|
+
nt,
|
|
6282
6286
|
po(at)
|
|
6283
6287
|
])
|
|
6284
6288
|
);
|
|
6285
6289
|
}, [s]), M = y(() => {
|
|
6286
|
-
const
|
|
6287
|
-
return
|
|
6288
|
-
}, [v]),
|
|
6290
|
+
const V = vo(v);
|
|
6291
|
+
return V.length > 0 ? V : void 0;
|
|
6292
|
+
}, [v]), P = y(() => {
|
|
6289
6293
|
if (x && r) {
|
|
6290
|
-
const
|
|
6291
|
-
if (typeof
|
|
6294
|
+
const V = O(x, `${r}.activeTabKey`);
|
|
6295
|
+
if (typeof V == "string") return V;
|
|
6292
6296
|
}
|
|
6293
|
-
}, [x, r, O]) ?? h,
|
|
6297
|
+
}, [x, r, O]) ?? h, U = j((V) => {
|
|
6294
6298
|
if (f) {
|
|
6295
|
-
f(
|
|
6299
|
+
f(V);
|
|
6296
6300
|
return;
|
|
6297
6301
|
}
|
|
6298
|
-
x && r && N(x, `${r}.activeTabKey`,
|
|
6299
|
-
}, [f, x, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot:
|
|
6300
|
-
let
|
|
6302
|
+
x && r && N(x, `${r}.activeTabKey`, V), g && t && T(t, I(g, { key: V }));
|
|
6303
|
+
}, [f, x, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot: L, otherChildren: R, actionsFromChildren: Y } = y(() => {
|
|
6304
|
+
let V = null, nt = null, at = null, rt = [];
|
|
6301
6305
|
const vt = [];
|
|
6302
6306
|
let bt = !1;
|
|
6303
|
-
return a && (
|
|
6307
|
+
return a && (V = a), o && (nt = o), c && (at = c), d && (rt = d), Wt.Children.forEach(w, (yt) => {
|
|
6304
6308
|
if (!Wt.isValidElement(yt)) {
|
|
6305
6309
|
vt.push(yt);
|
|
6306
6310
|
return;
|
|
6307
6311
|
}
|
|
6308
6312
|
const tt = yt.props, lt = tt["data-slot-type"];
|
|
6309
|
-
lt === "title" && !a ?
|
|
6310
|
-
}), { titleSlot:
|
|
6311
|
-
}, [w, a, o, c, d]),
|
|
6312
|
-
const
|
|
6313
|
-
return
|
|
6314
|
-
}, [m,
|
|
6313
|
+
lt === "title" && !a ? V = yt : lt === "extra" && !o ? nt = yt : lt === "cover" && !c ? at = yt : lt === "actions" && !d ? (rt = [yt], bt = !0) : lt === "body" && tt.children ? vt.push(tt.children) : vt.push(yt);
|
|
6314
|
+
}), { titleSlot: V, extraSlot: nt, coverSlot: at, actionsSlot: rt, otherChildren: vt, actionsFromChildren: bt };
|
|
6315
|
+
}, [w, a, o, c, d]), X = y(() => {
|
|
6316
|
+
const V = ln(m, {});
|
|
6317
|
+
return Y ? { actionsLiMargin: "0px", ...V } : V;
|
|
6318
|
+
}, [m, Y]), q = /* @__PURE__ */ b(
|
|
6315
6319
|
Ze,
|
|
6316
6320
|
{
|
|
6317
6321
|
...D,
|
|
@@ -6320,16 +6324,16 @@ const Zc = ({
|
|
|
6320
6324
|
extra: z,
|
|
6321
6325
|
cover: K,
|
|
6322
6326
|
tabBarExtraContent: l,
|
|
6323
|
-
actions:
|
|
6327
|
+
actions: L.length > 0 ? L : void 0,
|
|
6324
6328
|
tabList: M,
|
|
6325
|
-
activeTabKey:
|
|
6329
|
+
activeTabKey: P,
|
|
6326
6330
|
defaultActiveTabKey: p,
|
|
6327
|
-
onTabChange: M ?
|
|
6331
|
+
onTabChange: M ? U : void 0,
|
|
6328
6332
|
styles: k,
|
|
6329
6333
|
children: R
|
|
6330
6334
|
}
|
|
6331
6335
|
);
|
|
6332
|
-
return
|
|
6336
|
+
return X && Object.keys(X).length > 0 ? /* @__PURE__ */ b(Kt, { theme: { components: { Card: X } }, children: q }) : q;
|
|
6333
6337
|
}, ds = ({
|
|
6334
6338
|
id: e,
|
|
6335
6339
|
sessionId: t,
|
|
@@ -6386,7 +6390,7 @@ const Zc = ({
|
|
|
6386
6390
|
...s
|
|
6387
6391
|
}) => {
|
|
6388
6392
|
const m = _((x) => x.addCommand), u = De(oe), S = f ?? (u == null ? void 0 : u.index), A = y(
|
|
6389
|
-
() =>
|
|
6393
|
+
() => it(t, i),
|
|
6390
6394
|
[t, i]
|
|
6391
6395
|
), C = _((x) => {
|
|
6392
6396
|
if (A)
|
|
@@ -6496,14 +6500,14 @@ const Zc = ({
|
|
|
6496
6500
|
]
|
|
6497
6501
|
}
|
|
6498
6502
|
), [p, n, a, g]);
|
|
6499
|
-
return /* @__PURE__ */ b(
|
|
6503
|
+
return /* @__PURE__ */ b(zr, { ...s, menu: O, onOpenChange: T, children: N });
|
|
6500
6504
|
}, hs = ({
|
|
6501
6505
|
id: e,
|
|
6502
6506
|
sessionId: t,
|
|
6503
6507
|
develop: n,
|
|
6504
6508
|
children: i,
|
|
6505
6509
|
...r
|
|
6506
|
-
}) => /* @__PURE__ */ b(
|
|
6510
|
+
}) => /* @__PURE__ */ b(Lr, { ...r, children: i }), ys = ({
|
|
6507
6511
|
id: e,
|
|
6508
6512
|
sessionId: t,
|
|
6509
6513
|
develop: n,
|
|
@@ -6515,7 +6519,7 @@ const Zc = ({
|
|
|
6515
6519
|
develop: n,
|
|
6516
6520
|
children: i,
|
|
6517
6521
|
...r
|
|
6518
|
-
}) => /* @__PURE__ */ b(
|
|
6522
|
+
}) => /* @__PURE__ */ b(Ln, { ...r, children: i }), ps = ({
|
|
6519
6523
|
id: e,
|
|
6520
6524
|
sessionId: t,
|
|
6521
6525
|
develop: n,
|
|
@@ -6525,7 +6529,7 @@ const Zc = ({
|
|
|
6525
6529
|
...o
|
|
6526
6530
|
}) => {
|
|
6527
6531
|
const c = _((f) => f.getDataSet), l = _((f) => f.getProps), d = y(
|
|
6528
|
-
() =>
|
|
6532
|
+
() => it(t, i),
|
|
6529
6533
|
[t, i]
|
|
6530
6534
|
), v = y(() => t && e ? l(t, e) : null, [t, e, l]), h = y(() => {
|
|
6531
6535
|
if (d && r) return c(d, r);
|
|
@@ -6707,7 +6711,7 @@ const Zc = ({
|
|
|
6707
6711
|
"page-showLessItems": S = !1
|
|
6708
6712
|
}) => {
|
|
6709
6713
|
const A = u === "default" ? "middle" : u, C = _((B) => B.getDataSet), w = y(
|
|
6710
|
-
() =>
|
|
6714
|
+
() => it(t, i),
|
|
6711
6715
|
[t, i]
|
|
6712
6716
|
), [D, T] = mt(1), [O, N] = mt(p), x = y(() => {
|
|
6713
6717
|
if (w && r) {
|
|
@@ -6718,18 +6722,18 @@ const Zc = ({
|
|
|
6718
6722
|
}, [w, r, C]), E = y(() => n ? x.length > 0 ? x : c || [] : w ? x : c || [], [n, w, x, c]), k = y(() => {
|
|
6719
6723
|
let B = E;
|
|
6720
6724
|
if (!h) {
|
|
6721
|
-
const
|
|
6722
|
-
B = B.slice(
|
|
6725
|
+
const P = (D - 1) * O, U = P + O;
|
|
6726
|
+
B = B.slice(P, U);
|
|
6723
6727
|
}
|
|
6724
6728
|
return l ? B.slice(0, l) : B;
|
|
6725
6729
|
}, [E, h, D, O, l]);
|
|
6726
6730
|
if (!E || E.length === 0)
|
|
6727
6731
|
return o ? /* @__PURE__ */ b(fe, { children: o() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
6728
|
-
const M = (B,
|
|
6729
|
-
T(B),
|
|
6732
|
+
const M = (B, P) => {
|
|
6733
|
+
T(B), P && N(P);
|
|
6730
6734
|
};
|
|
6731
6735
|
return /* @__PURE__ */ st("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
6732
|
-
/* @__PURE__ */ b("div", { style: { flex: 1 }, children: k.map((B,
|
|
6736
|
+
/* @__PURE__ */ b("div", { style: { flex: 1 }, children: k.map((B, P) => /* @__PURE__ */ b(Wt.Fragment, { children: a ? a(B, P) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || P)) }),
|
|
6733
6737
|
!h && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
|
|
6734
6738
|
qn,
|
|
6735
6739
|
{
|
|
@@ -6823,7 +6827,7 @@ const Zc = ({
|
|
|
6823
6827
|
style: l
|
|
6824
6828
|
}) => {
|
|
6825
6829
|
const d = _((s) => s.addCommand), v = _((s) => s.getDataSet), h = y(
|
|
6826
|
-
() =>
|
|
6830
|
+
() => it(t, i),
|
|
6827
6831
|
[t, i]
|
|
6828
6832
|
), p = y(() => {
|
|
6829
6833
|
if (h && r) {
|
|
@@ -6913,7 +6917,7 @@ const Zc = ({
|
|
|
6913
6917
|
k = Number.isFinite(M) ? M : null;
|
|
6914
6918
|
}
|
|
6915
6919
|
return {
|
|
6916
|
-
storeBaseKey:
|
|
6920
|
+
storeBaseKey: it(i, x),
|
|
6917
6921
|
arrayIndex: k
|
|
6918
6922
|
};
|
|
6919
6923
|
}, [n, i, h]), f = _((N) => {
|
|
@@ -7093,70 +7097,70 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7093
7097
|
At(() => {
|
|
7094
7098
|
wo();
|
|
7095
7099
|
}, []);
|
|
7096
|
-
const f = _((
|
|
7097
|
-
() =>
|
|
7100
|
+
const f = _((J) => J.setDataSet), s = y(
|
|
7101
|
+
() => it(t, i),
|
|
7098
7102
|
[t, i]
|
|
7099
|
-
), m = _((
|
|
7103
|
+
), m = _((J) => {
|
|
7100
7104
|
if (!s || !r) return;
|
|
7101
|
-
const
|
|
7102
|
-
if (
|
|
7105
|
+
const H = J.getDataSet(s, r);
|
|
7106
|
+
if (H != null && H !== "") return String(H);
|
|
7103
7107
|
}), u = _(
|
|
7104
|
-
(
|
|
7105
|
-
var
|
|
7106
|
-
return t && e ? ((
|
|
7108
|
+
(J) => {
|
|
7109
|
+
var H;
|
|
7110
|
+
return t && e ? ((H = J.propsStore[`${t}_props`]) == null ? void 0 : H[e]) ?? null : null;
|
|
7107
7111
|
}
|
|
7108
7112
|
), S = y(() => {
|
|
7109
|
-
let
|
|
7110
|
-
if (m !== void 0)
|
|
7113
|
+
let J;
|
|
7114
|
+
if (m !== void 0) J = m;
|
|
7111
7115
|
else if (u && typeof u == "object") {
|
|
7112
|
-
const
|
|
7113
|
-
|
|
7116
|
+
const H = u.filePath;
|
|
7117
|
+
H != null && H !== "" && (J = String(H));
|
|
7114
7118
|
}
|
|
7115
|
-
return
|
|
7119
|
+
return J === void 0 && (J = a), J;
|
|
7116
7120
|
}, [m, u, a]), A = y(() => {
|
|
7117
7121
|
if (u && typeof u == "object") {
|
|
7118
|
-
const
|
|
7119
|
-
if (typeof
|
|
7120
|
-
return
|
|
7122
|
+
const J = u.nonPdfBackgroundColor;
|
|
7123
|
+
if (typeof J == "string" && J.trim())
|
|
7124
|
+
return J.trim();
|
|
7121
7125
|
}
|
|
7122
7126
|
return d;
|
|
7123
7127
|
}, [u, d]), [C, w] = mt(0), [D, T] = mt(
|
|
7124
7128
|
() => Math.max(1, o || 1)
|
|
7125
7129
|
), O = _t(D);
|
|
7126
7130
|
O.current = D;
|
|
7127
|
-
const [N, x] = mt(null), [E, k] = mt(!!S), [M, B] = mt("all"), [
|
|
7131
|
+
const [N, x] = mt(null), [E, k] = mt(!!S), [M, B] = mt("all"), [P, U] = mt("width"), [$, z] = mt(1), K = _t(null), L = _t(null), R = _t({}), Y = _t(!1), X = _t(null), [q, V] = mt(600), [nt, at] = mt(800), rt = _t(0), vt = y(
|
|
7128
7132
|
() => ({
|
|
7129
7133
|
cMapUrl: `https://unpkg.com/pdfjs-dist@${ve.version}/cmaps/`,
|
|
7130
7134
|
cMapPacked: !0
|
|
7131
7135
|
}),
|
|
7132
7136
|
[]
|
|
7133
|
-
), bt = (c || "").trim(), yt = _((
|
|
7137
|
+
), bt = (c || "").trim(), yt = _((J) => {
|
|
7134
7138
|
if (!(!s || !bt))
|
|
7135
|
-
return
|
|
7139
|
+
return J.getDataSet(s, `${bt}.targetPage`);
|
|
7136
7140
|
});
|
|
7137
7141
|
At(() => {
|
|
7138
|
-
const
|
|
7139
|
-
if (!
|
|
7140
|
-
const
|
|
7141
|
-
const St =
|
|
7142
|
-
St > 0 &&
|
|
7142
|
+
const J = L.current;
|
|
7143
|
+
if (!J) return;
|
|
7144
|
+
const H = new ResizeObserver(() => {
|
|
7145
|
+
const St = J.clientWidth, kt = J.clientHeight;
|
|
7146
|
+
St > 0 && V(St), kt > 0 && at(kt);
|
|
7143
7147
|
});
|
|
7144
|
-
|
|
7145
|
-
const ft =
|
|
7146
|
-
return ft > 0 &&
|
|
7148
|
+
H.observe(J);
|
|
7149
|
+
const ft = J.clientWidth, pt = J.clientHeight;
|
|
7150
|
+
return ft > 0 && V(ft), pt > 0 && at(pt), () => H.disconnect();
|
|
7147
7151
|
}, [S]);
|
|
7148
|
-
const tt = y(() => Math.max(240,
|
|
7149
|
-
() => Math.max(320,
|
|
7150
|
-
[
|
|
7152
|
+
const tt = y(() => Math.max(240, q - 16), [q]), lt = y(
|
|
7153
|
+
() => Math.max(320, nt - 16),
|
|
7154
|
+
[nt]
|
|
7151
7155
|
), ot = y(
|
|
7152
7156
|
() => Math.max(120, tt * $),
|
|
7153
7157
|
[tt, $]
|
|
7154
7158
|
), Rt = y(
|
|
7155
7159
|
() => Math.max(180, lt * $),
|
|
7156
7160
|
[lt, $]
|
|
7157
|
-
), Mt = y(() => M === "all" ? Array.from({ length: C }, (
|
|
7158
|
-
(
|
|
7159
|
-
!s || !bt || (f(s, `${bt}.currentPage`,
|
|
7161
|
+
), Mt = y(() => M === "all" ? Array.from({ length: C }, (J, H) => H + 1) : [D], [M, C, D]), Bt = j(
|
|
7162
|
+
(J, H) => {
|
|
7163
|
+
!s || !bt || (f(s, `${bt}.currentPage`, J), H > 0 && f(s, `${bt}.totalPages`, H));
|
|
7160
7164
|
},
|
|
7161
7165
|
[s, bt, f]
|
|
7162
7166
|
);
|
|
@@ -7164,42 +7168,42 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7164
7168
|
C > 0 && Bt(D, C);
|
|
7165
7169
|
}, [D, C, Bt]);
|
|
7166
7170
|
const G = j(
|
|
7167
|
-
(
|
|
7168
|
-
const ft = C > 0 ? Math.max(1, Math.min(Math.floor(
|
|
7171
|
+
(J, H = "auto") => {
|
|
7172
|
+
const ft = C > 0 ? Math.max(1, Math.min(Math.floor(J), C)) : Math.max(1, Math.floor(J));
|
|
7169
7173
|
if (T(ft), M === "all") {
|
|
7170
7174
|
const pt = R.current[ft];
|
|
7171
|
-
pt && pt.scrollIntoView({ block: "start", behavior:
|
|
7175
|
+
pt && pt.scrollIntoView({ block: "start", behavior: H });
|
|
7172
7176
|
}
|
|
7173
7177
|
},
|
|
7174
7178
|
[C, M]
|
|
7175
|
-
),
|
|
7176
|
-
|
|
7177
|
-
const
|
|
7178
|
-
typeof
|
|
7179
|
+
), W = _t(G);
|
|
7180
|
+
W.current = G, At(() => {
|
|
7181
|
+
const J = yt;
|
|
7182
|
+
typeof J != "number" || !Number.isFinite(J) || (G(J, "auto"), s && bt && f(s, `${bt}.targetPage`, void 0));
|
|
7179
7183
|
}, [yt, G, s, bt, f]), At(() => {
|
|
7180
|
-
const
|
|
7181
|
-
T(
|
|
7184
|
+
const J = Math.max(1, o ?? 1);
|
|
7185
|
+
T(J);
|
|
7182
7186
|
}, [o]);
|
|
7183
7187
|
const et = j(
|
|
7184
|
-
({ numPages:
|
|
7188
|
+
({ numPages: J }) => {
|
|
7185
7189
|
x(null), k(!1);
|
|
7186
|
-
const
|
|
7187
|
-
w(
|
|
7190
|
+
const H = O.current, ft = Math.min(Math.max(1, H), J || 1);
|
|
7191
|
+
w(J), T(ft), Y.current = !0, X.current = ft;
|
|
7188
7192
|
},
|
|
7189
7193
|
[]
|
|
7190
|
-
),
|
|
7191
|
-
x(
|
|
7194
|
+
), Z = j((J) => {
|
|
7195
|
+
x(J), k(!1), Y.current = !1, X.current = null;
|
|
7192
7196
|
}, []);
|
|
7193
7197
|
At(() => {
|
|
7194
|
-
k(!!S), x(null), z(1), w(0),
|
|
7198
|
+
k(!!S), x(null), z(1), w(0), Y.current = !!S, X.current = null, R.current = {};
|
|
7195
7199
|
}, [S]), At(() => {
|
|
7196
|
-
const
|
|
7197
|
-
if (
|
|
7198
|
-
let
|
|
7200
|
+
const J = X.current;
|
|
7201
|
+
if (J == null || E || C <= 0 || M !== "all") return;
|
|
7202
|
+
let H = !1, ft = 0;
|
|
7199
7203
|
const pt = 120, St = () => {
|
|
7200
|
-
if (
|
|
7204
|
+
if (H) return;
|
|
7201
7205
|
ft++;
|
|
7202
|
-
const kt = Math.max(1, Math.min(Math.floor(
|
|
7206
|
+
const kt = Math.max(1, Math.min(Math.floor(J), C));
|
|
7203
7207
|
let ee = !0;
|
|
7204
7208
|
for (let Gt = 1; Gt <= kt; Gt++) {
|
|
7205
7209
|
const me = R.current[Gt];
|
|
@@ -7210,67 +7214,67 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7210
7214
|
}
|
|
7211
7215
|
if (ee) {
|
|
7212
7216
|
requestAnimationFrame(() => {
|
|
7213
|
-
if (
|
|
7217
|
+
if (H) return;
|
|
7214
7218
|
const Gt = R.current[kt];
|
|
7215
|
-
Gt && Gt.scrollIntoView({ block: "start", behavior: "auto" }),
|
|
7216
|
-
|
|
7219
|
+
Gt && Gt.scrollIntoView({ block: "start", behavior: "auto" }), X.current = null, requestAnimationFrame(() => {
|
|
7220
|
+
H || (Y.current = !1);
|
|
7217
7221
|
});
|
|
7218
7222
|
});
|
|
7219
7223
|
return;
|
|
7220
7224
|
}
|
|
7221
7225
|
if (ft >= pt) {
|
|
7222
|
-
|
|
7226
|
+
X.current = null, Y.current = !1;
|
|
7223
7227
|
return;
|
|
7224
7228
|
}
|
|
7225
7229
|
requestAnimationFrame(St);
|
|
7226
7230
|
};
|
|
7227
7231
|
return requestAnimationFrame(St), () => {
|
|
7228
|
-
|
|
7232
|
+
H = !0;
|
|
7229
7233
|
};
|
|
7230
7234
|
}, [E, C, M]);
|
|
7231
|
-
const ct = j((
|
|
7232
|
-
z((
|
|
7233
|
-
const ft = Number((
|
|
7235
|
+
const ct = j((J) => {
|
|
7236
|
+
z((H) => {
|
|
7237
|
+
const ft = Number((H + J).toFixed(2));
|
|
7234
7238
|
return Math.max(Do, Math.min(xo, ft));
|
|
7235
7239
|
});
|
|
7236
7240
|
}, []), dt = j(() => {
|
|
7237
7241
|
if (!S) return;
|
|
7238
|
-
const
|
|
7239
|
-
|
|
7242
|
+
const J = window.open(S, "_blank", "noopener,noreferrer");
|
|
7243
|
+
J && (J.onload = () => {
|
|
7240
7244
|
try {
|
|
7241
|
-
|
|
7245
|
+
J.print();
|
|
7242
7246
|
} catch {
|
|
7243
7247
|
}
|
|
7244
7248
|
});
|
|
7245
7249
|
}, [S]), Dt = j(() => {
|
|
7246
7250
|
if (!S) return;
|
|
7247
|
-
const
|
|
7248
|
-
|
|
7249
|
-
}, [S]),
|
|
7250
|
-
var
|
|
7251
|
-
const
|
|
7252
|
-
|
|
7251
|
+
const J = document.createElement("a");
|
|
7252
|
+
J.href = S, J.download = "", J.rel = "noopener noreferrer", J.target = "_blank", document.body.appendChild(J), J.click(), J.remove();
|
|
7253
|
+
}, [S]), Q = j(() => {
|
|
7254
|
+
var H;
|
|
7255
|
+
const J = K.current;
|
|
7256
|
+
J && ((H = J.requestFullscreen) == null || H.call(J));
|
|
7253
7257
|
}, []), gt = j(() => {
|
|
7254
7258
|
document.fullscreenElement && document.exitFullscreen();
|
|
7255
7259
|
}, []), xt = j(() => {
|
|
7256
|
-
if (E || M !== "all" || C <= 0 ||
|
|
7257
|
-
const
|
|
7258
|
-
if (!
|
|
7259
|
-
const
|
|
7260
|
+
if (E || M !== "all" || C <= 0 || Y.current) return;
|
|
7261
|
+
const J = L.current;
|
|
7262
|
+
if (!J) return;
|
|
7263
|
+
const H = J.scrollTop + J.clientHeight * 0.35;
|
|
7260
7264
|
let ft = D, pt = Number.POSITIVE_INFINITY;
|
|
7261
7265
|
for (let St = 1; St <= C; St++) {
|
|
7262
7266
|
const kt = R.current[St];
|
|
7263
7267
|
if (!kt) continue;
|
|
7264
|
-
const ee = Math.abs(kt.offsetTop -
|
|
7268
|
+
const ee = Math.abs(kt.offsetTop - H);
|
|
7265
7269
|
ee < pt && (pt = ee, ft = St);
|
|
7266
7270
|
}
|
|
7267
7271
|
ft !== D && T(ft);
|
|
7268
7272
|
}, [E, M, C, D]);
|
|
7269
7273
|
return At(() => {
|
|
7270
7274
|
if (!u || typeof u != "object") return;
|
|
7271
|
-
const
|
|
7272
|
-
if (!(
|
|
7273
|
-
switch (
|
|
7275
|
+
const J = u._pdfCmdNonce, H = u.pdfCommand, ft = u.pdfCommandArg;
|
|
7276
|
+
if (!(J == null || J === rt.current || !H)) {
|
|
7277
|
+
switch (rt.current = J, H) {
|
|
7274
7278
|
case "print":
|
|
7275
7279
|
dt();
|
|
7276
7280
|
break;
|
|
@@ -7278,7 +7282,7 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7278
7282
|
Dt();
|
|
7279
7283
|
break;
|
|
7280
7284
|
case "enterFullscreen":
|
|
7281
|
-
|
|
7285
|
+
Q();
|
|
7282
7286
|
break;
|
|
7283
7287
|
case "exitFullscreen":
|
|
7284
7288
|
gt();
|
|
@@ -7287,10 +7291,10 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7287
7291
|
typeof ft == "number" && G(ft, "smooth");
|
|
7288
7292
|
break;
|
|
7289
7293
|
case "fitWidth":
|
|
7290
|
-
|
|
7294
|
+
U("width"), z(1);
|
|
7291
7295
|
break;
|
|
7292
7296
|
case "fitHeight":
|
|
7293
|
-
|
|
7297
|
+
U("height"), z(1);
|
|
7294
7298
|
break;
|
|
7295
7299
|
case "zoomIn":
|
|
7296
7300
|
ct(Rn);
|
|
@@ -7320,7 +7324,7 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7320
7324
|
e,
|
|
7321
7325
|
dt,
|
|
7322
7326
|
Dt,
|
|
7323
|
-
|
|
7327
|
+
Q,
|
|
7324
7328
|
gt,
|
|
7325
7329
|
G,
|
|
7326
7330
|
ct
|
|
@@ -7333,13 +7337,13 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7333
7337
|
display: "flex",
|
|
7334
7338
|
flexDirection: "column",
|
|
7335
7339
|
width: "100%",
|
|
7336
|
-
|
|
7340
|
+
flexGrow: 1,
|
|
7337
7341
|
...g
|
|
7338
7342
|
},
|
|
7339
7343
|
children: /* @__PURE__ */ b(
|
|
7340
7344
|
"div",
|
|
7341
7345
|
{
|
|
7342
|
-
ref:
|
|
7346
|
+
ref: L,
|
|
7343
7347
|
onScroll: xt,
|
|
7344
7348
|
style: {
|
|
7345
7349
|
flex: 1,
|
|
@@ -7378,14 +7382,14 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7378
7382
|
{
|
|
7379
7383
|
file: S,
|
|
7380
7384
|
onLoadSuccess: et,
|
|
7381
|
-
onLoadError:
|
|
7385
|
+
onLoadError: Z,
|
|
7382
7386
|
loading: null,
|
|
7383
7387
|
options: vt,
|
|
7384
|
-
children: Mt.map((
|
|
7388
|
+
children: Mt.map((J) => /* @__PURE__ */ b(
|
|
7385
7389
|
"div",
|
|
7386
7390
|
{
|
|
7387
|
-
ref: (
|
|
7388
|
-
R.current[
|
|
7391
|
+
ref: (H) => {
|
|
7392
|
+
R.current[J] = H;
|
|
7389
7393
|
},
|
|
7390
7394
|
style: {
|
|
7391
7395
|
display: "flex",
|
|
@@ -7396,15 +7400,15 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
|
|
|
7396
7400
|
children: /* @__PURE__ */ b(
|
|
7397
7401
|
ci,
|
|
7398
7402
|
{
|
|
7399
|
-
pageNumber:
|
|
7400
|
-
width:
|
|
7401
|
-
height:
|
|
7403
|
+
pageNumber: J,
|
|
7404
|
+
width: P === "width" ? ot : void 0,
|
|
7405
|
+
height: P === "height" ? Rt : void 0,
|
|
7402
7406
|
renderTextLayer: !1,
|
|
7403
7407
|
renderAnnotationLayer: !1
|
|
7404
7408
|
}
|
|
7405
7409
|
)
|
|
7406
7410
|
},
|
|
7407
|
-
|
|
7411
|
+
J
|
|
7408
7412
|
))
|
|
7409
7413
|
},
|
|
7410
7414
|
S
|
|
@@ -7482,25 +7486,25 @@ function te(e, t) {
|
|
|
7482
7486
|
axis: k,
|
|
7483
7487
|
scrollbar: M,
|
|
7484
7488
|
slider: B,
|
|
7485
|
-
theme:
|
|
7486
|
-
state:
|
|
7489
|
+
theme: P,
|
|
7490
|
+
state: U,
|
|
7487
7491
|
// 事件配置
|
|
7488
7492
|
events: $,
|
|
7489
7493
|
// 其余配置直接透传
|
|
7490
7494
|
...z
|
|
7491
|
-
} = o, K = _t(null),
|
|
7495
|
+
} = o, K = _t(null), L = _((G) => G.getDataSet), R = _((G) => G.addCommand), Y = y(() => {
|
|
7492
7496
|
if (p && g) {
|
|
7493
|
-
const
|
|
7494
|
-
if (
|
|
7497
|
+
const W = L(p, g);
|
|
7498
|
+
if (W !== void 0) return W;
|
|
7495
7499
|
}
|
|
7496
7500
|
const G = Nt(f);
|
|
7497
7501
|
return G !== void 0 ? G : d ? r : [];
|
|
7498
|
-
}, [f, p, g,
|
|
7499
|
-
var
|
|
7502
|
+
}, [f, p, g, L, d]), X = (G) => {
|
|
7503
|
+
var W;
|
|
7500
7504
|
if (K.current = G, !d && l) {
|
|
7501
7505
|
const et = Nt($);
|
|
7502
|
-
et && typeof et == "object" && Object.entries(et).forEach(([
|
|
7503
|
-
typeof ct == "string" && G.on(
|
|
7506
|
+
et && typeof et == "object" && Object.entries(et).forEach(([Z, ct]) => {
|
|
7507
|
+
typeof ct == "string" && G.on(Z, (dt) => {
|
|
7504
7508
|
R(l, {
|
|
7505
7509
|
actionName: ct,
|
|
7506
7510
|
arg: dt,
|
|
@@ -7509,42 +7513,42 @@ function te(e, t) {
|
|
|
7509
7513
|
});
|
|
7510
7514
|
});
|
|
7511
7515
|
}
|
|
7512
|
-
(
|
|
7513
|
-
},
|
|
7514
|
-
data:
|
|
7516
|
+
(W = z.onReady) == null || W.call(z, G);
|
|
7517
|
+
}, q = Nt(s) || {}, V = {
|
|
7518
|
+
data: Y,
|
|
7515
7519
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
7516
|
-
height:
|
|
7517
|
-
autoFit: Ao(
|
|
7520
|
+
height: q.height ?? i,
|
|
7521
|
+
autoFit: Ao(q.autoFit, !0),
|
|
7518
7522
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
7519
|
-
...
|
|
7523
|
+
...q,
|
|
7520
7524
|
// 设计器模式禁用动画
|
|
7521
7525
|
animate: d ? !1 : Nt(O),
|
|
7522
|
-
onReady:
|
|
7526
|
+
onReady: X,
|
|
7523
7527
|
...z
|
|
7524
|
-
},
|
|
7525
|
-
|
|
7528
|
+
}, nt = Nt(C);
|
|
7529
|
+
nt !== void 0 && (V.title = nt);
|
|
7526
7530
|
const at = Nt(w);
|
|
7527
|
-
at !== void 0 && (
|
|
7528
|
-
const
|
|
7529
|
-
|
|
7531
|
+
at !== void 0 && (V.legend = at);
|
|
7532
|
+
const rt = Nt(D);
|
|
7533
|
+
rt !== void 0 && (V.label = rt);
|
|
7530
7534
|
const vt = Nt(T);
|
|
7531
|
-
vt !== void 0 && (
|
|
7535
|
+
vt !== void 0 && (V.tooltip = vt);
|
|
7532
7536
|
const bt = Nt(N);
|
|
7533
|
-
bt !== void 0 && (
|
|
7537
|
+
bt !== void 0 && (V.scale = bt);
|
|
7534
7538
|
const yt = Nt(x);
|
|
7535
|
-
yt !== void 0 && (
|
|
7539
|
+
yt !== void 0 && (V.interaction = yt);
|
|
7536
7540
|
const tt = Nt(E);
|
|
7537
|
-
tt !== void 0 && (
|
|
7541
|
+
tt !== void 0 && (V.annotations = tt);
|
|
7538
7542
|
const lt = Nt(k);
|
|
7539
|
-
lt !== void 0 && (
|
|
7543
|
+
lt !== void 0 && (V.axis = lt);
|
|
7540
7544
|
const ot = Nt(M);
|
|
7541
|
-
ot !== void 0 && (
|
|
7545
|
+
ot !== void 0 && (V.scrollbar = ot);
|
|
7542
7546
|
const Rt = Nt(B);
|
|
7543
|
-
Rt !== void 0 && (
|
|
7544
|
-
const Mt = Nt(
|
|
7545
|
-
Mt !== void 0 && (
|
|
7546
|
-
const Bt = Nt(
|
|
7547
|
-
return Bt !== void 0 && (
|
|
7547
|
+
Rt !== void 0 && (V.slider = Rt);
|
|
7548
|
+
const Mt = Nt(P);
|
|
7549
|
+
Mt !== void 0 && (V.theme = Mt);
|
|
7550
|
+
const Bt = Nt(U);
|
|
7551
|
+
return Bt !== void 0 && (V.state = Bt), /* @__PURE__ */ b(e, { ...V });
|
|
7548
7552
|
};
|
|
7549
7553
|
return a.displayName = `withBaseChart(${n})`, a;
|
|
7550
7554
|
}
|
|
@@ -7808,7 +7812,7 @@ export {
|
|
|
7808
7812
|
Oc as AndRate,
|
|
7809
7813
|
us as AndResult,
|
|
7810
7814
|
hs as AndRow,
|
|
7811
|
-
|
|
7815
|
+
zc as AndSegmented,
|
|
7812
7816
|
Dc as AndSelect,
|
|
7813
7817
|
jc as AndSimpleForm,
|
|
7814
7818
|
_c as AndSlider,
|
|
@@ -7818,7 +7822,7 @@ export {
|
|
|
7818
7822
|
Jc as AndStatisticsCountdown,
|
|
7819
7823
|
Yc as AndSteps,
|
|
7820
7824
|
xc as AndSwitch,
|
|
7821
|
-
|
|
7825
|
+
Lc as AndTable,
|
|
7822
7826
|
Hc as AndTabs,
|
|
7823
7827
|
Ic as AndTag,
|
|
7824
7828
|
Vc as AndText,
|
|
@@ -7851,7 +7855,7 @@ export {
|
|
|
7851
7855
|
Ca as formatByType,
|
|
7852
7856
|
cn as getAccessToken,
|
|
7853
7857
|
Jt as getCoreConfig,
|
|
7854
|
-
|
|
7858
|
+
it as getDataSetStoreKey,
|
|
7855
7859
|
dn as getDictOptions,
|
|
7856
7860
|
tn as getNestedValue,
|
|
7857
7861
|
be as getValidateStoreKey,
|
|
@@ -7878,7 +7882,7 @@ export {
|
|
|
7878
7882
|
na as useApiService,
|
|
7879
7883
|
sc as useCommandsStore,
|
|
7880
7884
|
Ce as useDictOptions,
|
|
7881
|
-
|
|
7885
|
+
zt as useFieldValidation,
|
|
7882
7886
|
cc as useItemStore,
|
|
7883
7887
|
oc as usePopCommand,
|
|
7884
7888
|
mn as useRemoteOptions,
|