@nuwatop/code-canvas-core 0.5.16 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +373 -363
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/utils/pdfPolyfill.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as p, jsxs as at, 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 Ke, 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 Oe, Upload as Sr, Image as Zt, AutoComplete as wr, Form as je, Transfer as Dr, Segmented as xr, Modal as
|
|
4
|
-
import { StyleProvider as
|
|
3
|
+
import { theme as Xt, ConfigProvider as Kt, Button as It, Input as Ke, 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 Oe, Upload as Sr, Image as Zt, AutoComplete as wr, Form as je, Transfer as Dr, Segmented as xr, Modal as Ln, Tooltip as Ar, Table as Cr, Flex as zn, 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 Lr, Row as zr, Col as Vr, QRCode as qr, Splitter as Ue, Spin as Un, Watermark as Wr, Empty as Hr } from "antd";
|
|
4
|
+
import { StyleProvider as Ur, createCache as Pr } from "@ant-design/cssinjs";
|
|
5
5
|
import Yr from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Gr } from "zustand";
|
|
7
7
|
import { subscribeWithSelector as Jr } from "zustand/middleware";
|
|
8
8
|
import { immer as Fr } from "zustand/middleware/immer";
|
|
9
|
-
import Wt, { useMemo as g, useCallback as B, useEffect as xt, createContext as Qr, useContext as De, useState as dt, useRef as Et, useLayoutEffect as
|
|
9
|
+
import Wt, { useMemo as g, useCallback as B, useEffect as xt, createContext as Qr, useContext as De, useState as dt, useRef as Et, useLayoutEffect as Pn, useId as Zr, Suspense as Xr } from "react";
|
|
10
10
|
import * as Ft from "@ant-design/icons";
|
|
11
11
|
import { CloseCircleOutlined as Ir, PlusOutlined as Yn, UploadOutlined as ti, MenuOutlined as ei, MinusOutlined as ni, LeftOutlined as Gn, RightOutlined as Jn, UpOutlined as ri, DownOutlined as Fn, ApiOutlined as ii, InboxOutlined as oi, FilePdfOutlined as ai } from "@ant-design/icons";
|
|
12
12
|
import ci from "clsx";
|
|
13
|
-
import
|
|
13
|
+
import Pt from "dayjs";
|
|
14
14
|
import { pdfjs as ve, Document as si, Page as li } from "react-pdf";
|
|
15
15
|
import "react-pdf/dist/Page/TextLayer.css";
|
|
16
16
|
import "react-pdf/dist/Page/AnnotationLayer.css";
|
|
@@ -21,7 +21,7 @@ const vi = () => {
|
|
|
21
21
|
Ie || (Ie = !0);
|
|
22
22
|
}, bi = (e) => {
|
|
23
23
|
let t = Xe.get(e);
|
|
24
|
-
return t || (t =
|
|
24
|
+
return t || (t = Pr(), Xe.set(e, t)), t;
|
|
25
25
|
}, nc = (e) => {
|
|
26
26
|
e && Xe.delete(e);
|
|
27
27
|
}, rc = async ({
|
|
@@ -54,7 +54,7 @@ const vi = () => {
|
|
|
54
54
|
}
|
|
55
55
|
const c = mr(e);
|
|
56
56
|
_e.set(e, c);
|
|
57
|
-
const u = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, b = !r && u && d && d.defaultView !== null, m = b ? u : window.document.head, v = b ? d : window.document, y = bi(v), h = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, l = (S) => /* @__PURE__ */ p(
|
|
57
|
+
const u = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, b = !r && u && d && d.defaultView !== null, m = b ? u : window.document.head, v = b ? d : window.document, y = bi(v), h = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, l = (S) => /* @__PURE__ */ p(Ur, { cache: y, container: m, hashPriority: "high", children: /* @__PURE__ */ p(
|
|
58
58
|
Kt,
|
|
59
59
|
{
|
|
60
60
|
locale: Yr,
|
|
@@ -708,9 +708,9 @@ var Zn = function(t, n, i, r, o, a) {
|
|
|
708
708
|
if (v ? m = "number" : y ? m = "string" : f && (m = "array"), !m)
|
|
709
709
|
return !1;
|
|
710
710
|
f && (b = n.length), y && (b = n.replace(d, "_").length), a ? b !== t.len && r.push(Vt(o.messages[m].len, t.fullField, t.len)) : c && !u && b < t.min ? r.push(Vt(o.messages[m].min, t.fullField, t.min)) : u && !c && b > t.max ? r.push(Vt(o.messages[m].max, t.fullField, t.max)) : c && u && (b < t.min || b > t.max) && r.push(Vt(o.messages[m].range, t.fullField, t.min, t.max));
|
|
711
|
-
}, le = "enum",
|
|
711
|
+
}, le = "enum", Li = function(t, n, i, r, o) {
|
|
712
712
|
t[le] = Array.isArray(t[le]) ? t[le] : [], t[le].indexOf(n) === -1 && r.push(Vt(o.messages[le], t.fullField, t[le].join(", ")));
|
|
713
|
-
},
|
|
713
|
+
}, zi = function(t, n, i, r, o) {
|
|
714
714
|
if (t.pattern) {
|
|
715
715
|
if (t.pattern instanceof RegExp)
|
|
716
716
|
t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(Vt(o.messages.pattern.mismatch, t.fullField, n, t.pattern));
|
|
@@ -724,8 +724,8 @@ var Zn = function(t, n, i, r, o, a) {
|
|
|
724
724
|
whitespace: Ri,
|
|
725
725
|
type: Bi,
|
|
726
726
|
range: Ki,
|
|
727
|
-
enum:
|
|
728
|
-
pattern:
|
|
727
|
+
enum: Li,
|
|
728
|
+
pattern: zi
|
|
729
729
|
}, Vi = function(t, n, i, r, o) {
|
|
730
730
|
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
731
731
|
if (c) {
|
|
@@ -758,7 +758,7 @@ var Zn = function(t, n, i, r, o, a) {
|
|
|
758
758
|
mt.required(t, n, r, a, o), n !== void 0 && mt.type(t, n, r, a, o);
|
|
759
759
|
}
|
|
760
760
|
i(a);
|
|
761
|
-
},
|
|
761
|
+
}, Ui = function(t, n, i, r, o) {
|
|
762
762
|
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
763
763
|
if (c) {
|
|
764
764
|
if ($t(n) && !t.required)
|
|
@@ -766,7 +766,7 @@ var Zn = function(t, n, i, r, o, a) {
|
|
|
766
766
|
mt.required(t, n, r, a, o), $t(n) || mt.type(t, n, r, a, o);
|
|
767
767
|
}
|
|
768
768
|
i(a);
|
|
769
|
-
},
|
|
769
|
+
}, Pi = function(t, n, i, r, o) {
|
|
770
770
|
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
771
771
|
if (c) {
|
|
772
772
|
if ($t(n) && !t.required)
|
|
@@ -828,7 +828,7 @@ var Zn = function(t, n, i, r, o, a) {
|
|
|
828
828
|
}, Ii = function(t, n, i, r, o) {
|
|
829
829
|
var a = [], c = Array.isArray(n) ? "array" : typeof n;
|
|
830
830
|
mt.required(t, n, r, a, o, c), i(a);
|
|
831
|
-
},
|
|
831
|
+
}, Pe = function(t, n, i, r, o) {
|
|
832
832
|
var a = t.type, c = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
833
833
|
if (u) {
|
|
834
834
|
if ($t(n, a) && !t.required)
|
|
@@ -849,17 +849,17 @@ var Zn = function(t, n, i, r, o, a) {
|
|
|
849
849
|
method: qi,
|
|
850
850
|
number: Wi,
|
|
851
851
|
boolean: Hi,
|
|
852
|
-
regexp:
|
|
853
|
-
integer:
|
|
852
|
+
regexp: Ui,
|
|
853
|
+
integer: Pi,
|
|
854
854
|
float: Yi,
|
|
855
855
|
array: Gi,
|
|
856
856
|
object: Ji,
|
|
857
857
|
enum: Qi,
|
|
858
858
|
pattern: Zi,
|
|
859
859
|
date: Xi,
|
|
860
|
-
url:
|
|
861
|
-
hex:
|
|
862
|
-
email:
|
|
860
|
+
url: Pe,
|
|
861
|
+
hex: Pe,
|
|
862
|
+
email: Pe,
|
|
863
863
|
required: Ii,
|
|
864
864
|
any: to
|
|
865
865
|
};
|
|
@@ -1083,7 +1083,7 @@ function In(e, t, n, i) {
|
|
|
1083
1083
|
i(a || []);
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function Lt(e) {
|
|
1087
1087
|
const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id: o, develop: a } = e, c = k((S) => S.setValidateResult), u = k((S) => S.getProps), d = k((S) => S.setProps), b = g(
|
|
1088
1088
|
() => be(r, n),
|
|
1089
1089
|
[r, n]
|
|
@@ -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
|
-
}, Mt = (e) => e == null ? "" : String(e),
|
|
1340
|
+
}, Mt = (e) => e == null ? "" : String(e), Le = (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
|
}, lo = (e, t = {}) => {
|
|
1396
1396
|
try {
|
|
1397
|
-
const n =
|
|
1397
|
+
const n = Le(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 = Le(e);
|
|
1410
1410
|
if (!n) return "";
|
|
1411
1411
|
const i = n.getFullYear(), r = String(n.getMonth() + 1).padStart(2, "0"), o = String(n.getDate()).padStart(2, "0"), a = String(n.getHours()).padStart(2, "0"), c = String(n.getMinutes()).padStart(2, "0"), u = String(n.getSeconds()).padStart(2, "0");
|
|
1412
1412
|
return t.replace("YYYY", String(i)).replace("MM", r).replace("DD", o).replace("HH", a).replace("mm", c).replace("ss", u);
|
|
@@ -1415,7 +1415,7 @@ const de = (e) => {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
}, uo = (e, t = "YYYY-MM-DD HH:mm:ss") => er(e, t), fo = (e) => {
|
|
1417
1417
|
try {
|
|
1418
|
-
const t =
|
|
1418
|
+
const t = Le(e);
|
|
1419
1419
|
if (!t) return "";
|
|
1420
1420
|
const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), r = Math.floor(i / 1e3), o = Math.floor(r / 60), a = Math.floor(o / 60), c = Math.floor(a / 24), u = Math.floor(c / 30), d = Math.floor(c / 365);
|
|
1421
1421
|
return r < 60 ? "刚刚" : o < 60 ? `${o}分钟前` : a < 24 ? `${a}小时前` : c < 30 ? `${c}天前` : u < 12 ? `${u}个月前` : `${d}年前`;
|
|
@@ -1433,7 +1433,7 @@ const de = (e) => {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
}, ho = (e) => {
|
|
1435
1435
|
try {
|
|
1436
|
-
const t =
|
|
1436
|
+
const t = Le(e);
|
|
1437
1437
|
if (!t) return "";
|
|
1438
1438
|
const n = /* @__PURE__ */ new Date();
|
|
1439
1439
|
if (t > n) return "";
|
|
@@ -1601,7 +1601,7 @@ function ko(e, t, n = {}) {
|
|
|
1601
1601
|
return Mt(e);
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
const
|
|
1604
|
+
const ze = {
|
|
1605
1605
|
// 基础颜色
|
|
1606
1606
|
colorPrimary: "colorPrimary",
|
|
1607
1607
|
colorSuccess: "colorSuccess",
|
|
@@ -1632,7 +1632,7 @@ const Le = {
|
|
|
1632
1632
|
colorLink: "colorLink",
|
|
1633
1633
|
colorLinkHover: "colorLinkHover",
|
|
1634
1634
|
colorLinkActive: "colorLinkActive"
|
|
1635
|
-
}, yc = Object.keys(
|
|
1635
|
+
}, yc = Object.keys(ze), gc = [
|
|
1636
1636
|
{ label: "主色", value: "colorPrimary" },
|
|
1637
1637
|
{ label: "成功", value: "colorSuccess" },
|
|
1638
1638
|
{ label: "警告", value: "colorWarning" },
|
|
@@ -1643,13 +1643,13 @@ const Le = {
|
|
|
1643
1643
|
{ label: "链接", value: "colorLink" }
|
|
1644
1644
|
];
|
|
1645
1645
|
function nr(e) {
|
|
1646
|
-
return
|
|
1646
|
+
return ze.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 = ze[e];
|
|
1653
1653
|
return t[n] || e;
|
|
1654
1654
|
}
|
|
1655
1655
|
return e;
|
|
@@ -1658,7 +1658,7 @@ function Ve(e) {
|
|
|
1658
1658
|
function pc(e, t) {
|
|
1659
1659
|
if (e) {
|
|
1660
1660
|
if (nr(e)) {
|
|
1661
|
-
const n =
|
|
1661
|
+
const n = ze[e];
|
|
1662
1662
|
return t[n] || e;
|
|
1663
1663
|
}
|
|
1664
1664
|
return e;
|
|
@@ -1705,8 +1705,8 @@ const vc = ({
|
|
|
1705
1705
|
dataSet: b,
|
|
1706
1706
|
dataSetField: m,
|
|
1707
1707
|
...l
|
|
1708
|
-
}),
|
|
1709
|
-
y(o,
|
|
1708
|
+
}), z = I(M, R);
|
|
1709
|
+
y(o, z);
|
|
1710
1710
|
}
|
|
1711
1711
|
},
|
|
1712
1712
|
[
|
|
@@ -1780,10 +1780,10 @@ const rr = (e) => {
|
|
|
1780
1780
|
addonAfter: C,
|
|
1781
1781
|
addonBefore: S,
|
|
1782
1782
|
...D
|
|
1783
|
-
} = e, A = Ce(r, o, n), O = A.dataSet, N = A.dataSetField, x = A.sessionId, E = Et(""), _ = Et(null), M = k((W) => W.addCommand), R = k((W) => W.getDataSet),
|
|
1783
|
+
} = e, A = Ce(r, o, n), O = A.dataSet, N = A.dataSetField, x = A.sessionId, E = Et(""), _ = Et(null), M = k((W) => W.addCommand), R = k((W) => W.getDataSet), z = k((W) => W.setDataSet), Y = k((W) => W.getProps), $ = k((W) => W.setProps), q = k((W) => W.setValidateResult), K = g(
|
|
1784
1784
|
() => rt(x, O),
|
|
1785
1785
|
[x, O]
|
|
1786
|
-
),
|
|
1786
|
+
), L = k(
|
|
1787
1787
|
(W) => {
|
|
1788
1788
|
var G;
|
|
1789
1789
|
return x && t ? ((G = W.propsStore[`${x}_props`]) == null ? void 0 : G[t]) ?? null : null;
|
|
@@ -1791,24 +1791,24 @@ const rr = (e) => {
|
|
|
1791
1791
|
), j = g(
|
|
1792
1792
|
() => be(x, O),
|
|
1793
1793
|
[x, O]
|
|
1794
|
-
),
|
|
1794
|
+
), P = k(
|
|
1795
1795
|
(W) => {
|
|
1796
1796
|
var G;
|
|
1797
1797
|
return j && N ? ((G = W.validateStore[j]) == null ? void 0 : G[N]) ?? "" : "";
|
|
1798
1798
|
}
|
|
1799
1799
|
), X = k(
|
|
1800
1800
|
(W) => K && N ? W.getDataSet(K, N) : void 0
|
|
1801
|
-
),
|
|
1801
|
+
), U = g(
|
|
1802
1802
|
() => O ? rt(x, `${O}_validateAction`) : void 0,
|
|
1803
1803
|
[x, O]
|
|
1804
1804
|
), V = k(
|
|
1805
1805
|
(W) => {
|
|
1806
1806
|
var G;
|
|
1807
|
-
return
|
|
1807
|
+
return U ? (G = W.dataSets[U]) == null ? void 0 : G.validate : void 0;
|
|
1808
1808
|
}
|
|
1809
|
-
), it = g(() => X !== void 0 ? X : (
|
|
1810
|
-
() => Mo(D,
|
|
1811
|
-
[D,
|
|
1809
|
+
), it = g(() => X !== void 0 ? X : (L == null ? void 0 : L.value) !== void 0 ? L.value : d, [X, L == null ? void 0 : L.value, d]), nt = g(
|
|
1810
|
+
() => Mo(D, L ?? null, { develop: i }),
|
|
1811
|
+
[D, L, i]
|
|
1812
1812
|
), et = B(
|
|
1813
1813
|
(W) => {
|
|
1814
1814
|
const G = W ?? "";
|
|
@@ -1856,7 +1856,7 @@ const rr = (e) => {
|
|
|
1856
1856
|
u(G, W);
|
|
1857
1857
|
return;
|
|
1858
1858
|
}
|
|
1859
|
-
if (K && N &&
|
|
1859
|
+
if (K && N && z(K, N, G), c && x) {
|
|
1860
1860
|
const { actionName: ot, arg: Z } = Dt(c, G, {
|
|
1861
1861
|
id: t,
|
|
1862
1862
|
dataSet: O,
|
|
@@ -1873,7 +1873,7 @@ const rr = (e) => {
|
|
|
1873
1873
|
u,
|
|
1874
1874
|
K,
|
|
1875
1875
|
N,
|
|
1876
|
-
|
|
1876
|
+
z,
|
|
1877
1877
|
c,
|
|
1878
1878
|
x,
|
|
1879
1879
|
t,
|
|
@@ -1959,7 +1959,7 @@ const rr = (e) => {
|
|
|
1959
1959
|
const ct = g(() => Eo(m), [m]), kt = g(
|
|
1960
1960
|
() => ct ? { components: { Input: ct } } : void 0,
|
|
1961
1961
|
[ct]
|
|
1962
|
-
), Bt = i ? void 0 : x && O && N ?
|
|
1962
|
+
), Bt = i ? void 0 : x && O && N ? P : (L == null ? void 0 : L.help) ?? "", yt = /* @__PURE__ */ at(fe, { children: [
|
|
1963
1963
|
/* @__PURE__ */ p(
|
|
1964
1964
|
Ke,
|
|
1965
1965
|
{
|
|
@@ -1997,17 +1997,17 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
1997
1997
|
value: s,
|
|
1998
1998
|
...h
|
|
1999
1999
|
}) => {
|
|
2000
|
-
const l = k((
|
|
2000
|
+
const l = k((U) => U.addCommand), w = k((U) => U.setDataSet), T = Et(null), C = g(
|
|
2001
2001
|
() => rt(t, i),
|
|
2002
2002
|
[t, i]
|
|
2003
2003
|
), S = k(
|
|
2004
|
-
(
|
|
2004
|
+
(U) => {
|
|
2005
2005
|
var V;
|
|
2006
|
-
return t && e ? ((V =
|
|
2006
|
+
return t && e ? ((V = U.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
|
|
2007
2007
|
}
|
|
2008
2008
|
), D = k(
|
|
2009
|
-
(
|
|
2010
|
-
), { validate: A, help: O } =
|
|
2009
|
+
(U) => C && r ? U.getDataSet(C, r) : void 0
|
|
2010
|
+
), { validate: A, help: O } = Lt({
|
|
2011
2011
|
rules: o,
|
|
2012
2012
|
dataSet: i,
|
|
2013
2013
|
dataSetField: r,
|
|
@@ -2015,27 +2015,27 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2015
2015
|
id: e,
|
|
2016
2016
|
develop: n
|
|
2017
2017
|
}), N = g(() => D !== void 0 ? D : (S == null ? void 0 : S.value) !== void 0 ? S.value : s, [D, S == null ? void 0 : S.value, s]), x = B(
|
|
2018
|
-
(
|
|
2019
|
-
|
|
2018
|
+
(U, V, it) => {
|
|
2019
|
+
U && t && l(t, I(U, { type: V, value: it }));
|
|
2020
2020
|
},
|
|
2021
2021
|
[t, l]
|
|
2022
2022
|
), E = B(
|
|
2023
|
-
(
|
|
2023
|
+
(U) => {
|
|
2024
2024
|
if (y) {
|
|
2025
|
-
y(
|
|
2025
|
+
y(U);
|
|
2026
2026
|
return;
|
|
2027
2027
|
}
|
|
2028
|
-
C && r && w(C, r,
|
|
2029
|
-
T.current = null, A(
|
|
2030
|
-
}, Cn)), x(u, "change",
|
|
2028
|
+
C && r && w(C, r, U), c && (T.current && clearTimeout(T.current), T.current = setTimeout(() => {
|
|
2029
|
+
T.current = null, A(U);
|
|
2030
|
+
}, Cn)), x(u, "change", U);
|
|
2031
2031
|
},
|
|
2032
2032
|
[y, C, r, w, c, A, u, x]
|
|
2033
2033
|
), _ = B(() => {
|
|
2034
2034
|
a && A(N);
|
|
2035
2035
|
}, [a, A, N]), M = B(
|
|
2036
|
-
(
|
|
2036
|
+
(U) => {
|
|
2037
2037
|
if (h.onPressEnter) {
|
|
2038
|
-
h.onPressEnter(
|
|
2038
|
+
h.onPressEnter(U);
|
|
2039
2039
|
return;
|
|
2040
2040
|
}
|
|
2041
2041
|
if (d && t) {
|
|
@@ -2065,12 +2065,12 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2065
2065
|
if (C && r && w(C, r, null), c && (T.current && clearTimeout(T.current), T.current = setTimeout(() => {
|
|
2066
2066
|
T.current = null, A(null);
|
|
2067
2067
|
}, Cn)), x(u, "change", null), b && t) {
|
|
2068
|
-
const { actionName:
|
|
2068
|
+
const { actionName: U, arg: V } = Dt(b, null, {
|
|
2069
2069
|
id: e,
|
|
2070
2070
|
dataSet: i,
|
|
2071
2071
|
dataSetField: r
|
|
2072
2072
|
});
|
|
2073
|
-
l(t, I(
|
|
2073
|
+
l(t, I(U, V));
|
|
2074
2074
|
}
|
|
2075
2075
|
}, [
|
|
2076
2076
|
y,
|
|
@@ -2087,9 +2087,9 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2087
2087
|
i,
|
|
2088
2088
|
r,
|
|
2089
2089
|
l
|
|
2090
|
-
]),
|
|
2091
|
-
(
|
|
2092
|
-
x(v, "step", { value:
|
|
2090
|
+
]), z = B(
|
|
2091
|
+
(U, V) => {
|
|
2092
|
+
x(v, "step", { value: U, type: V.type });
|
|
2093
2093
|
},
|
|
2094
2094
|
[v, x]
|
|
2095
2095
|
);
|
|
@@ -2104,8 +2104,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2104
2104
|
const Y = g(
|
|
2105
2105
|
() => Qt(h, S ?? void 0),
|
|
2106
2106
|
[h, S]
|
|
2107
|
-
), { addonBefore: $, addonAfter: q, style: K, suffix:
|
|
2108
|
-
if (!(m && N !== null && N !== void 0)) return
|
|
2107
|
+
), { addonBefore: $, addonAfter: q, style: K, suffix: L, ...j } = Y, P = g(() => {
|
|
2108
|
+
if (!(m && N !== null && N !== void 0)) return L;
|
|
2109
2109
|
const V = /* @__PURE__ */ p(
|
|
2110
2110
|
"span",
|
|
2111
2111
|
{
|
|
@@ -2119,11 +2119,11 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2119
2119
|
children: /* @__PURE__ */ p(Ir, {})
|
|
2120
2120
|
}
|
|
2121
2121
|
);
|
|
2122
|
-
return
|
|
2123
|
-
|
|
2122
|
+
return L == null || L === !1 ? V : /* @__PURE__ */ at(fe, { children: [
|
|
2123
|
+
L,
|
|
2124
2124
|
V
|
|
2125
2125
|
] });
|
|
2126
|
-
}, [m, N,
|
|
2126
|
+
}, [m, N, L, R]), X = /* @__PURE__ */ p(
|
|
2127
2127
|
jn,
|
|
2128
2128
|
{
|
|
2129
2129
|
...j,
|
|
@@ -2136,8 +2136,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2136
2136
|
onChange: E,
|
|
2137
2137
|
onBlur: _,
|
|
2138
2138
|
onPressEnter: M,
|
|
2139
|
-
onStep:
|
|
2140
|
-
suffix:
|
|
2139
|
+
onStep: z,
|
|
2140
|
+
suffix: P,
|
|
2141
2141
|
status: O ? "error" : void 0,
|
|
2142
2142
|
style: { width: "100%", ...K }
|
|
2143
2143
|
}
|
|
@@ -2209,7 +2209,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2209
2209
|
}
|
|
2210
2210
|
), O = k(
|
|
2211
2211
|
(Y) => D && l ? Y.getDataSet(D, l) : void 0
|
|
2212
|
-
), { validate: N, help: x } =
|
|
2212
|
+
), { validate: N, help: x } = Lt({
|
|
2213
2213
|
rules: o,
|
|
2214
2214
|
dataSet: h,
|
|
2215
2215
|
dataSetField: l,
|
|
@@ -2274,7 +2274,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2274
2274
|
l,
|
|
2275
2275
|
T
|
|
2276
2276
|
]
|
|
2277
|
-
),
|
|
2277
|
+
), z = B(() => {
|
|
2278
2278
|
if (f.onClear) {
|
|
2279
2279
|
f.onClear();
|
|
2280
2280
|
return;
|
|
@@ -2311,7 +2311,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2311
2311
|
onChange: _,
|
|
2312
2312
|
onBlur: M,
|
|
2313
2313
|
onPressEnter: R,
|
|
2314
|
-
onClear:
|
|
2314
|
+
onClear: z,
|
|
2315
2315
|
status: x ? "error" : void 0
|
|
2316
2316
|
}
|
|
2317
2317
|
),
|
|
@@ -2344,7 +2344,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2344
2344
|
}
|
|
2345
2345
|
), C = k(
|
|
2346
2346
|
(_) => w && r ? _.getDataSet(w, r) : void 0
|
|
2347
|
-
), { validate: S, help: D } =
|
|
2347
|
+
), { validate: S, help: D } = Lt({
|
|
2348
2348
|
rules: o,
|
|
2349
2349
|
dataSet: i,
|
|
2350
2350
|
dataSetField: r,
|
|
@@ -2359,12 +2359,12 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2359
2359
|
return;
|
|
2360
2360
|
}
|
|
2361
2361
|
if (w && r && h(w, r, M), u && t) {
|
|
2362
|
-
const { actionName: R, arg:
|
|
2362
|
+
const { actionName: R, arg: z } = Dt(u, M, {
|
|
2363
2363
|
id: e,
|
|
2364
2364
|
dataSet: i,
|
|
2365
2365
|
dataSetField: r
|
|
2366
2366
|
});
|
|
2367
|
-
s(t, I(R,
|
|
2367
|
+
s(t, I(R, z));
|
|
2368
2368
|
}
|
|
2369
2369
|
c && (l.current && clearTimeout(l.current), l.current = setTimeout(() => {
|
|
2370
2370
|
l.current = null, S(M);
|
|
@@ -2481,7 +2481,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2481
2481
|
a && t && v(t, I(a, C));
|
|
2482
2482
|
}, [u, a, t, v]);
|
|
2483
2483
|
return /* @__PURE__ */ p(Ko, { ...m, disabled: n ? !1 : m.disabled, value: l, onChange: w, onSearch: T });
|
|
2484
|
-
},
|
|
2484
|
+
}, Lo = 200, Ac = ({
|
|
2485
2485
|
id: e,
|
|
2486
2486
|
sessionId: t,
|
|
2487
2487
|
develop: n,
|
|
@@ -2511,7 +2511,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2511
2511
|
const N = k((tt) => tt.addCommand), x = k((tt) => tt.setDataSet), E = Et(null), _ = De(ae), M = g(
|
|
2512
2512
|
() => rt(t, i),
|
|
2513
2513
|
[t, i]
|
|
2514
|
-
), R = h ?? (_ == null ? void 0 : _.index),
|
|
2514
|
+
), R = h ?? (_ == null ? void 0 : _.index), z = k(
|
|
2515
2515
|
(tt) => {
|
|
2516
2516
|
var st;
|
|
2517
2517
|
return t && e ? ((st = tt.propsStore[`${t}_props`]) == null ? void 0 : st[e]) ?? null : null;
|
|
@@ -2519,11 +2519,11 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2519
2519
|
), Y = k(
|
|
2520
2520
|
(tt) => M && r ? tt.getDataSet(M, r) : void 0
|
|
2521
2521
|
), $ = g(
|
|
2522
|
-
() => (
|
|
2523
|
-
[
|
|
2522
|
+
() => (z == null ? void 0 : z.optionsCfg) != null ? z.optionsCfg : c,
|
|
2523
|
+
[z == null ? void 0 : z.optionsCfg, c]
|
|
2524
2524
|
), { options: q, loading: K } = Te(
|
|
2525
2525
|
D || (o ? a : void 0)
|
|
2526
|
-
), { options:
|
|
2526
|
+
), { options: L, loading: j } = mn(
|
|
2527
2527
|
$ == null ? void 0 : $.url,
|
|
2528
2528
|
{
|
|
2529
2529
|
valueKey: ($ == null ? void 0 : $.codeKey) || "value",
|
|
@@ -2532,17 +2532,17 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2532
2532
|
params: $ == null ? void 0 : $.params,
|
|
2533
2533
|
field: $ == null ? void 0 : $.field
|
|
2534
2534
|
}
|
|
2535
|
-
),
|
|
2535
|
+
), P = K || j, { validate: X, help: U } = Lt({
|
|
2536
2536
|
rules: u,
|
|
2537
2537
|
dataSet: i,
|
|
2538
2538
|
dataSetField: r,
|
|
2539
2539
|
sessionId: t,
|
|
2540
2540
|
id: e,
|
|
2541
2541
|
develop: n
|
|
2542
|
-
}), V = g(() => Y != null && Y !== "" ? Y : (
|
|
2543
|
-
() => Qt(O,
|
|
2544
|
-
[O,
|
|
2545
|
-
), nt = g(() =>
|
|
2542
|
+
}), V = g(() => Y != null && Y !== "" ? Y : (z == null ? void 0 : z.value) !== void 0 ? z.value : s ?? f, [Y, z == null ? void 0 : z.value, s, f]), it = g(
|
|
2543
|
+
() => Qt(O, z ?? void 0),
|
|
2544
|
+
[O, z]
|
|
2545
|
+
), nt = g(() => z != null && z.options && Array.isArray(z.options) ? z.options : $ != null && $.url && L.length > 0 ? L : (D || o && a) && q.length > 0 ? q : y || [], [z == null ? void 0 : z.options, $ == null ? void 0 : $.url, L, D, o, a, q, y]), et = g(() => {
|
|
2546
2546
|
if (nt.length === 0) return V;
|
|
2547
2547
|
if (Array.isArray(V))
|
|
2548
2548
|
return V.map((st) => {
|
|
@@ -2559,7 +2559,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2559
2559
|
}
|
|
2560
2560
|
if (M && r && x(M, r, tt), b && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
2561
2561
|
E.current = null, X(tt);
|
|
2562
|
-
},
|
|
2562
|
+
}, Lo)), m && t) {
|
|
2563
2563
|
const { actionName: ct, arg: kt } = Dt(m, tt, {
|
|
2564
2564
|
id: e,
|
|
2565
2565
|
dataSet: i,
|
|
@@ -2604,12 +2604,12 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2604
2604
|
onChange: vt,
|
|
2605
2605
|
onBlur: St,
|
|
2606
2606
|
filterOption: gt,
|
|
2607
|
-
loading:
|
|
2608
|
-
status:
|
|
2607
|
+
loading: P,
|
|
2608
|
+
status: U ? "error" : void 0,
|
|
2609
2609
|
style: { width: "100%", ...it.style }
|
|
2610
2610
|
}
|
|
2611
2611
|
),
|
|
2612
|
-
|
|
2612
|
+
U && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: U })
|
|
2613
2613
|
] });
|
|
2614
2614
|
}, Cc = ({
|
|
2615
2615
|
id: e,
|
|
@@ -2636,7 +2636,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2636
2636
|
}
|
|
2637
2637
|
), l = k(
|
|
2638
2638
|
(A) => s && r ? A.getDataSet(s, r) : void 0
|
|
2639
|
-
), { validate: w, help: T } =
|
|
2639
|
+
), { validate: w, help: T } = Lt({
|
|
2640
2640
|
rules: o,
|
|
2641
2641
|
dataSet: i,
|
|
2642
2642
|
dataSetField: r,
|
|
@@ -2711,7 +2711,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2711
2711
|
}
|
|
2712
2712
|
), w = k(
|
|
2713
2713
|
(x) => h && r ? x.getDataSet(h, r) : void 0
|
|
2714
|
-
), { validate: T, help: C } =
|
|
2714
|
+
), { validate: T, help: C } = Lt({
|
|
2715
2715
|
rules: c,
|
|
2716
2716
|
dataSet: i,
|
|
2717
2717
|
dataSetField: r,
|
|
@@ -2720,9 +2720,9 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2720
2720
|
develop: n
|
|
2721
2721
|
}), S = B((x) => {
|
|
2722
2722
|
if (!x) return null;
|
|
2723
|
-
if (
|
|
2723
|
+
if (Pt.isDayjs(x)) return x;
|
|
2724
2724
|
if (typeof x == "string") {
|
|
2725
|
-
const E =
|
|
2725
|
+
const E = Pt(x, a);
|
|
2726
2726
|
return E.isValid() ? E : null;
|
|
2727
2727
|
}
|
|
2728
2728
|
return null;
|
|
@@ -2749,7 +2749,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2749
2749
|
);
|
|
2750
2750
|
xt(() => {
|
|
2751
2751
|
if (v && D === null && h && r) {
|
|
2752
|
-
const x =
|
|
2752
|
+
const x = Pt(v).format(a);
|
|
2753
2753
|
s(h, r, x);
|
|
2754
2754
|
}
|
|
2755
2755
|
}, [v, D, h, r, s, a]);
|
|
@@ -2797,7 +2797,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2797
2797
|
[t, i]
|
|
2798
2798
|
), w = g(() => {
|
|
2799
2799
|
if (l && r) return s(l, r);
|
|
2800
|
-
}, [l, r, s]), { validate: T, help: C } =
|
|
2800
|
+
}, [l, r, s]), { validate: T, help: C } = Lt({
|
|
2801
2801
|
rules: b,
|
|
2802
2802
|
dataSet: i,
|
|
2803
2803
|
dataSetField: r,
|
|
@@ -2806,9 +2806,9 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2806
2806
|
develop: n
|
|
2807
2807
|
}), S = B((x) => {
|
|
2808
2808
|
if (!x) return null;
|
|
2809
|
-
if (
|
|
2809
|
+
if (Pt.isDayjs(x)) return x;
|
|
2810
2810
|
if (typeof x == "string") {
|
|
2811
|
-
const E =
|
|
2811
|
+
const E = Pt(x, a);
|
|
2812
2812
|
return E.isValid() ? E : null;
|
|
2813
2813
|
}
|
|
2814
2814
|
return null;
|
|
@@ -2841,7 +2841,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2841
2841
|
),
|
|
2842
2842
|
C && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: C })
|
|
2843
2843
|
] });
|
|
2844
|
-
}, { RangePicker:
|
|
2844
|
+
}, { RangePicker: zo } = Kn, kc = ({
|
|
2845
2845
|
id: e,
|
|
2846
2846
|
sessionId: t,
|
|
2847
2847
|
develop: n,
|
|
@@ -2867,7 +2867,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2867
2867
|
}
|
|
2868
2868
|
), w = k(
|
|
2869
2869
|
(x) => h && r ? x.getDataSet(h, r) : void 0
|
|
2870
|
-
), { validate: T, help: C } =
|
|
2870
|
+
), { validate: T, help: C } = Lt({
|
|
2871
2871
|
rules: c,
|
|
2872
2872
|
dataSet: i,
|
|
2873
2873
|
dataSetField: r,
|
|
@@ -2876,7 +2876,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2876
2876
|
develop: n
|
|
2877
2877
|
}), S = B((x) => {
|
|
2878
2878
|
if (!x || !Array.isArray(x) || x.length !== 2) return null;
|
|
2879
|
-
const [E, _] = x, M =
|
|
2879
|
+
const [E, _] = x, M = Pt.isDayjs(E) ? E : Pt(E, a), R = Pt.isDayjs(_) ? _ : Pt(_, a);
|
|
2880
2880
|
return M.isValid() && R.isValid() ? [M, R] : null;
|
|
2881
2881
|
}, [a]), D = g(() => {
|
|
2882
2882
|
const x = w ?? (l == null ? void 0 : l.value) ?? m ?? v;
|
|
@@ -2906,7 +2906,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2906
2906
|
}, [u, T, D, a]);
|
|
2907
2907
|
return /* @__PURE__ */ at("div", { onBlur: N, children: [
|
|
2908
2908
|
/* @__PURE__ */ p(
|
|
2909
|
-
|
|
2909
|
+
zo,
|
|
2910
2910
|
{
|
|
2911
2911
|
...A,
|
|
2912
2912
|
disabled: n ? !1 : A.disabled,
|
|
@@ -2945,12 +2945,12 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2945
2945
|
[t, i]
|
|
2946
2946
|
), A = k(
|
|
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 = k(
|
|
2952
2952
|
(K) => D && r ? K.getDataSet(D, r) : void 0
|
|
2953
|
-
), { validate: N, help: x } =
|
|
2953
|
+
), { validate: N, help: x } = Lt({
|
|
2954
2954
|
rules: b,
|
|
2955
2955
|
dataSet: i,
|
|
2956
2956
|
dataSetField: r,
|
|
@@ -2964,7 +2964,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2964
2964
|
labelKey: (a == null ? void 0 : a.labelKey) || "label",
|
|
2965
2965
|
immediate: !!(a != null && a.url)
|
|
2966
2966
|
}
|
|
2967
|
-
), R = g(() => A != null && A.options ? A.options : a != null && a.url && M.length > 0 ? M : h && _.length > 0 ? _ : o, [A == null ? void 0 : A.options, a == null ? void 0 : a.url, M, h, _, o]),
|
|
2967
|
+
), R = g(() => A != null && A.options ? A.options : a != null && a.url && M.length > 0 ? M : h && _.length > 0 ? _ : o, [A == null ? void 0 : A.options, a == null ? void 0 : a.url, M, h, _, o]), z = g(() => {
|
|
2968
2968
|
if (R.length === 0) return E;
|
|
2969
2969
|
const K = ce(R, E);
|
|
2970
2970
|
return (K == null ? void 0 : K.value) ?? E;
|
|
@@ -2973,18 +2973,18 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2973
2973
|
[T, A]
|
|
2974
2974
|
), $ = B(
|
|
2975
2975
|
(K) => {
|
|
2976
|
-
const
|
|
2976
|
+
const L = K.target.value;
|
|
2977
2977
|
if (y) {
|
|
2978
|
-
y(
|
|
2978
|
+
y(L);
|
|
2979
2979
|
return;
|
|
2980
2980
|
}
|
|
2981
|
-
if (D && r && S(D, r,
|
|
2982
|
-
const { actionName: j, arg:
|
|
2981
|
+
if (D && r && S(D, r, L), v && N(L), c && t) {
|
|
2982
|
+
const { actionName: j, arg: P } = Dt(c, L, {
|
|
2983
2983
|
id: e,
|
|
2984
2984
|
dataSet: i,
|
|
2985
2985
|
dataSetField: r
|
|
2986
2986
|
});
|
|
2987
|
-
C(t, I(j,
|
|
2987
|
+
C(t, I(j, P));
|
|
2988
2988
|
}
|
|
2989
2989
|
},
|
|
2990
2990
|
[
|
|
@@ -3000,15 +3000,15 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3000
3000
|
C
|
|
3001
3001
|
]
|
|
3002
3002
|
), q = B(() => {
|
|
3003
|
-
m && N(
|
|
3004
|
-
}, [m, N,
|
|
3003
|
+
m && N(z);
|
|
3004
|
+
}, [m, N, z]);
|
|
3005
3005
|
return /* @__PURE__ */ at("div", { onBlur: q, children: [
|
|
3006
3006
|
/* @__PURE__ */ p(
|
|
3007
3007
|
He.Group,
|
|
3008
3008
|
{
|
|
3009
3009
|
...Y,
|
|
3010
3010
|
disabled: n ? !1 : Y.disabled,
|
|
3011
|
-
value:
|
|
3011
|
+
value: z,
|
|
3012
3012
|
onChange: $,
|
|
3013
3013
|
buttonStyle: (A == null ? void 0 : A.buttonStyle) ?? u,
|
|
3014
3014
|
optionType: (A == null ? void 0 : A.optionType) ?? d,
|
|
@@ -3049,17 +3049,17 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3049
3049
|
remoteUrl: C,
|
|
3050
3050
|
...S
|
|
3051
3051
|
}) => {
|
|
3052
|
-
const D = k((
|
|
3052
|
+
const D = k((U) => U.addCommand), A = k((U) => U.setDataSet), O = g(
|
|
3053
3053
|
() => rt(t, i),
|
|
3054
3054
|
[t, i]
|
|
3055
3055
|
), N = k(
|
|
3056
|
-
(
|
|
3056
|
+
(U) => {
|
|
3057
3057
|
var V;
|
|
3058
|
-
return t && e ? ((V =
|
|
3058
|
+
return t && e ? ((V = U.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
|
|
3059
3059
|
}
|
|
3060
3060
|
), x = k(
|
|
3061
|
-
(
|
|
3062
|
-
), { validate: E, help: _ } =
|
|
3061
|
+
(U) => O && r ? U.getDataSet(O, r) : void 0
|
|
3062
|
+
), { validate: E, help: _ } = Lt({
|
|
3063
3063
|
rules: d,
|
|
3064
3064
|
dataSet: i,
|
|
3065
3065
|
dataSetField: r,
|
|
@@ -3073,21 +3073,21 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3073
3073
|
labelKey: (a == null ? void 0 : a.labelKey) || "label",
|
|
3074
3074
|
immediate: !!(a != null && a.url)
|
|
3075
3075
|
}
|
|
3076
|
-
),
|
|
3076
|
+
), z = g(() => {
|
|
3077
3077
|
if (!c)
|
|
3078
3078
|
return x !== void 0 ? !!x : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : f ?? h;
|
|
3079
3079
|
}, [c, x, N == null ? void 0 : N.checked, f, h]), Y = g(() => N != null && N.options ? N.options : a != null && a.url && R.length > 0 ? R : w && M.length > 0 ? M : o, [N == null ? void 0 : N.options, a == null ? void 0 : a.url, R, w, M, o]), $ = g(() => {
|
|
3080
3080
|
if (!c) return [];
|
|
3081
|
-
let
|
|
3082
|
-
return Array.isArray(x) ?
|
|
3081
|
+
let U = [];
|
|
3082
|
+
return Array.isArray(x) ? U = x : Array.isArray(N == null ? void 0 : N.values) ? U = N.values : U = s || [], Y.length === 0 ? U : U.map((V) => {
|
|
3083
3083
|
var it;
|
|
3084
3084
|
return ((it = ce(Y, V)) == null ? void 0 : it.value) ?? V;
|
|
3085
3085
|
});
|
|
3086
3086
|
}, [c, x, N == null ? void 0 : N.values, s, Y]), q = g(
|
|
3087
3087
|
() => Qt(S, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3088
3088
|
[S, N]
|
|
3089
|
-
),
|
|
3090
|
-
const V =
|
|
3089
|
+
), L = (q.direction ?? T) === "vertical" ? "vertical" : "horizontal", j = B((U) => {
|
|
3090
|
+
const V = U.target.checked;
|
|
3091
3091
|
if (v) {
|
|
3092
3092
|
v(V);
|
|
3093
3093
|
return;
|
|
@@ -3096,25 +3096,25 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3096
3096
|
const { actionName: it, arg: nt } = Dt(u, V, { id: e, dataSet: i, dataSetField: r });
|
|
3097
3097
|
D(t, I(it, nt));
|
|
3098
3098
|
}
|
|
3099
|
-
}, [v, O, r, A, m, E, u, t, e, D]),
|
|
3099
|
+
}, [v, O, r, A, m, E, u, t, e, D]), P = B((U) => {
|
|
3100
3100
|
if (y) {
|
|
3101
|
-
y(
|
|
3101
|
+
y(U);
|
|
3102
3102
|
return;
|
|
3103
3103
|
}
|
|
3104
|
-
if (O && r && A(O, r,
|
|
3105
|
-
const { actionName: V, arg: it } = Dt(u,
|
|
3104
|
+
if (O && r && A(O, r, U), m && E(U), u && t) {
|
|
3105
|
+
const { actionName: V, arg: it } = Dt(u, U, { id: e, dataSet: i, dataSetField: r });
|
|
3106
3106
|
D(t, I(V, it));
|
|
3107
3107
|
}
|
|
3108
3108
|
}, [y, O, r, A, m, E, u, t, e, D]), X = B(() => {
|
|
3109
|
-
b && E(c ? $ :
|
|
3110
|
-
}, [b, E, c, $,
|
|
3109
|
+
b && E(c ? $ : z);
|
|
3110
|
+
}, [b, E, c, $, z]);
|
|
3111
3111
|
if (c && Y.length > 0) {
|
|
3112
|
-
const { indeterminate:
|
|
3112
|
+
const { indeterminate: U, direction: V, ...it } = q;
|
|
3113
3113
|
return /* @__PURE__ */ at("div", { onBlur: X, children: [
|
|
3114
|
-
/* @__PURE__ */ p(ue.Group, { ...it, value: $, onChange:
|
|
3114
|
+
/* @__PURE__ */ p(ue.Group, { ...it, value: $, onChange: P, disabled: n ? !1 : q.disabled, children: /* @__PURE__ */ p(
|
|
3115
3115
|
Yt,
|
|
3116
3116
|
{
|
|
3117
|
-
orientation:
|
|
3117
|
+
orientation: L,
|
|
3118
3118
|
wrap: !0,
|
|
3119
3119
|
children: Y.map((nt) => /* @__PURE__ */ p(ue, { value: nt.value, disabled: nt.disabled, children: nt.label }, nt.value))
|
|
3120
3120
|
}
|
|
@@ -3128,7 +3128,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3128
3128
|
{
|
|
3129
3129
|
...q,
|
|
3130
3130
|
disabled: n ? !1 : q.disabled,
|
|
3131
|
-
checked:
|
|
3131
|
+
checked: z,
|
|
3132
3132
|
onChange: j,
|
|
3133
3133
|
children: l
|
|
3134
3134
|
}
|
|
@@ -3160,7 +3160,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3160
3160
|
}
|
|
3161
3161
|
), l = k(
|
|
3162
3162
|
(O) => s && r ? O.getDataSet(s, r) : void 0
|
|
3163
|
-
), { validate: w, help: T } =
|
|
3163
|
+
), { validate: w, help: T } = Lt({
|
|
3164
3164
|
rules: a,
|
|
3165
3165
|
dataSet: i,
|
|
3166
3166
|
dataSetField: r,
|
|
@@ -3276,7 +3276,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3276
3276
|
[t, i]
|
|
3277
3277
|
), O = k(
|
|
3278
3278
|
($) => A && r ? $.getDataSet(A, r) : void 0
|
|
3279
|
-
), { validate: N, help: x, validateStatus: E } =
|
|
3279
|
+
), { validate: N, help: x, validateStatus: E } = Lt({
|
|
3280
3280
|
rules: a,
|
|
3281
3281
|
dataSet: i,
|
|
3282
3282
|
dataSetField: r,
|
|
@@ -3292,13 +3292,13 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3292
3292
|
if (o != null && o.url) {
|
|
3293
3293
|
D(!0);
|
|
3294
3294
|
try {
|
|
3295
|
-
const q = await oe({ url: o.url, method: "GET" }), K = Array.isArray(q) ? q : q != null && q.data ? Array.isArray(q.data) ? q.data : q.data.list || q.data.records || [] : [],
|
|
3296
|
-
codeKey:
|
|
3295
|
+
const q = await oe({ url: o.url, method: "GET" }), K = Array.isArray(q) ? q : q != null && q.data ? Array.isArray(q.data) ? q.data : q.data.list || q.data.records || [] : [], L = o.codeKey || "value", j = o.labelKey || "label", P = o.childrenKey || "children", X = o.maxLevel || 5, U = ir(K, {
|
|
3296
|
+
codeKey: L,
|
|
3297
3297
|
labelKey: j,
|
|
3298
|
-
childrenKey:
|
|
3298
|
+
childrenKey: P,
|
|
3299
3299
|
maxLevel: X
|
|
3300
3300
|
});
|
|
3301
|
-
C(
|
|
3301
|
+
C(U);
|
|
3302
3302
|
} catch (q) {
|
|
3303
3303
|
console.error("Failed to load remote options:", q), C([]);
|
|
3304
3304
|
} finally {
|
|
@@ -3307,22 +3307,22 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3307
3307
|
}
|
|
3308
3308
|
})();
|
|
3309
3309
|
}, [o == null ? void 0 : o.url, o == null ? void 0 : o.codeKey, o == null ? void 0 : o.labelKey, o == null ? void 0 : o.childrenKey, o == null ? void 0 : o.maxLevel]);
|
|
3310
|
-
const
|
|
3310
|
+
const z = B(
|
|
3311
3311
|
($, q) => {
|
|
3312
3312
|
if (b) {
|
|
3313
3313
|
b($, q);
|
|
3314
3314
|
return;
|
|
3315
3315
|
}
|
|
3316
3316
|
let K = $;
|
|
3317
|
-
if (Nn($) && _ ? K = String($[$.length - 1] || "") : kn($) && _ && (K = $.map((
|
|
3317
|
+
if (Nn($) && _ ? K = String($[$.length - 1] || "") : kn($) && _ && (K = $.map((L) => L.join(","))), A && r && l(A, r, K), u && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
3318
3318
|
w.current = null, N($);
|
|
3319
3319
|
}, Vo)), d && t) {
|
|
3320
|
-
const { actionName:
|
|
3320
|
+
const { actionName: L, arg: j } = Dt(d, $, {
|
|
3321
3321
|
id: e,
|
|
3322
3322
|
dataSet: i,
|
|
3323
3323
|
dataSetField: r
|
|
3324
3324
|
});
|
|
3325
|
-
h(t, I(
|
|
3325
|
+
h(t, I(L, j));
|
|
3326
3326
|
}
|
|
3327
3327
|
},
|
|
3328
3328
|
[
|
|
@@ -3355,7 +3355,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3355
3355
|
open: n ? !1 : void 0,
|
|
3356
3356
|
value: M,
|
|
3357
3357
|
options: R,
|
|
3358
|
-
onChange:
|
|
3358
|
+
onChange: z,
|
|
3359
3359
|
onBlur: Y,
|
|
3360
3360
|
loading: S,
|
|
3361
3361
|
status: E,
|
|
@@ -3395,7 +3395,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3395
3395
|
}
|
|
3396
3396
|
), A = k(
|
|
3397
3397
|
(q) => S && r ? q.getDataSet(S, r) : void 0
|
|
3398
|
-
), { validate: O, help: N } =
|
|
3398
|
+
), { validate: O, help: N } = Lt({
|
|
3399
3399
|
rules: s,
|
|
3400
3400
|
dataSet: i,
|
|
3401
3401
|
dataSetField: r,
|
|
@@ -3409,18 +3409,18 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3409
3409
|
() => Qt(w, D ?? void 0),
|
|
3410
3410
|
[w, D]
|
|
3411
3411
|
), _ = B(
|
|
3412
|
-
(q, K,
|
|
3412
|
+
(q, K, L) => {
|
|
3413
3413
|
if (a) {
|
|
3414
|
-
a(q, K,
|
|
3414
|
+
a(q, K, L);
|
|
3415
3415
|
return;
|
|
3416
3416
|
}
|
|
3417
3417
|
if (S && r && C(S, r, q), h && O(q), o && t) {
|
|
3418
|
-
const { actionName: j, arg:
|
|
3418
|
+
const { actionName: j, arg: P } = Dt(o, q, {
|
|
3419
3419
|
id: e,
|
|
3420
3420
|
dataSet: i,
|
|
3421
3421
|
dataSetField: r
|
|
3422
3422
|
});
|
|
3423
|
-
T(t, I(j,
|
|
3423
|
+
T(t, I(j, P));
|
|
3424
3424
|
}
|
|
3425
3425
|
},
|
|
3426
3426
|
[a, S, r, C, h, O, o, t, e, T]
|
|
@@ -3429,10 +3429,10 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3429
3429
|
}, [l, O, x]), R = g(() => {
|
|
3430
3430
|
if (!f) return;
|
|
3431
3431
|
const q = {};
|
|
3432
|
-
return Object.entries(f).forEach(([K,
|
|
3433
|
-
|
|
3432
|
+
return Object.entries(f).forEach(([K, L]) => {
|
|
3433
|
+
L !== "" && L !== void 0 && L !== null && (q[K] = L);
|
|
3434
3434
|
}), Object.keys(q).length > 0 ? q : void 0;
|
|
3435
|
-
}, [f]),
|
|
3435
|
+
}, [f]), z = g(() => {
|
|
3436
3436
|
if (R)
|
|
3437
3437
|
return {
|
|
3438
3438
|
components: {
|
|
@@ -3457,7 +3457,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3457
3457
|
),
|
|
3458
3458
|
N && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
|
|
3459
3459
|
] });
|
|
3460
|
-
return
|
|
3460
|
+
return z ? /* @__PURE__ */ p(Kt, { theme: z, children: $ }) : $;
|
|
3461
3461
|
}, jc = ({
|
|
3462
3462
|
id: e,
|
|
3463
3463
|
sessionId: t,
|
|
@@ -3488,7 +3488,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3488
3488
|
}
|
|
3489
3489
|
), x = k(
|
|
3490
3490
|
(W) => O && C ? W.getDataSet(O, C) : void 0
|
|
3491
|
-
), { validate: E, help: _ } =
|
|
3491
|
+
), { validate: E, help: _ } = Lt({
|
|
3492
3492
|
rules: c,
|
|
3493
3493
|
dataSet: T,
|
|
3494
3494
|
dataSetField: C,
|
|
@@ -3511,7 +3511,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3511
3511
|
response: { src: Z }
|
|
3512
3512
|
};
|
|
3513
3513
|
});
|
|
3514
|
-
}, []),
|
|
3514
|
+
}, []), z = B((W) => {
|
|
3515
3515
|
const G = Jt().viewRes, ot = (Z) => (Z && G ? G(Z) : Z) || Z;
|
|
3516
3516
|
return W.map((Z) => {
|
|
3517
3517
|
var bt;
|
|
@@ -3527,12 +3527,12 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3527
3527
|
if (W != null) {
|
|
3528
3528
|
if (typeof W == "string" && W) return R([W]);
|
|
3529
3529
|
if (Array.isArray(W))
|
|
3530
|
-
return W.length > 0 && typeof W[0] == "string" ? R(W) :
|
|
3530
|
+
return W.length > 0 && typeof W[0] == "string" ? R(W) : z(W);
|
|
3531
3531
|
}
|
|
3532
|
-
}, [x, N == null ? void 0 : N.fileList, m, R,
|
|
3532
|
+
}, [x, N == null ? void 0 : N.fileList, m, R, z]), K = Y ?? q, L = g(
|
|
3533
3533
|
() => Qt(l, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
|
|
3534
3534
|
[l, N]
|
|
3535
|
-
), j = B((W) => W.size / 1024 / 1024 < f ? !0 : (Oe.error(`文件大小不能超过 ${f}MB`), !1), [f]),
|
|
3535
|
+
), j = B((W) => W.size / 1024 / 1024 < f ? !0 : (Oe.error(`文件大小不能超过 ${f}MB`), !1), [f]), P = B(async (W) => {
|
|
3536
3536
|
const { file: G, onSuccess: ot, onError: Z, onProgress: ft } = W;
|
|
3537
3537
|
if (Jt().upload)
|
|
3538
3538
|
try {
|
|
@@ -3557,7 +3557,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3557
3557
|
b(W);
|
|
3558
3558
|
return;
|
|
3559
3559
|
}
|
|
3560
|
-
const G = Array.isArray(W.fileList) ?
|
|
3560
|
+
const G = Array.isArray(W.fileList) ? z(W.fileList) : W.fileList, ot = Array.isArray(G) ? M(G) : [], Z = Array.isArray(G) && G.some((ht) => (ht == null ? void 0 : ht.status) === "uploading");
|
|
3561
3561
|
O && C && (ot.length > 0 || !Array.isArray(G) || G.length === 0) ? (A(O, C, ot), $(null)) : Z ? $(G) : G.length === 0 && $(null), d && E(G), o && S && D(
|
|
3562
3562
|
S,
|
|
3563
3563
|
I(o, {
|
|
@@ -3577,10 +3577,10 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3577
3577
|
o,
|
|
3578
3578
|
S,
|
|
3579
3579
|
D,
|
|
3580
|
-
|
|
3580
|
+
z,
|
|
3581
3581
|
M
|
|
3582
3582
|
]
|
|
3583
|
-
),
|
|
3583
|
+
), U = B(() => {
|
|
3584
3584
|
u && E(K);
|
|
3585
3585
|
}, [u, E, K]), V = B((W) => {
|
|
3586
3586
|
var ht;
|
|
@@ -3605,21 +3605,21 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3605
3605
|
const ot = K.filter((ht) => it(ht)), Z = ot.map((ht) => V(ht)).filter(Boolean), ft = ot.findIndex((ht) => (ht.uid || ht.url) === (W.uid || W.url));
|
|
3606
3606
|
et({ url: G, name: W.name, urls: Z, current: ft >= 0 ? ft : 0, open: !0 });
|
|
3607
3607
|
} else it(W) || window.open(G, "_blank");
|
|
3608
|
-
}, [V, it, K]), gt = !!Jt().upload && !h, tt =
|
|
3608
|
+
}, [V, it, K]), gt = !!Jt().upload && !h, tt = L, st = tt.buttonText ?? a, ct = tt.listType ?? l.listType, kt = tt.maxCount, Bt = (K == null ? void 0 : K.length) ?? 0, Rt = typeof kt == "number" && Bt >= kt, yt = B(
|
|
3609
3609
|
(W) => Rt ? (Oe.warning(`最多只能上传 ${kt} 个文件`), !1) : j(W),
|
|
3610
3610
|
[Rt, kt, j]
|
|
3611
3611
|
);
|
|
3612
|
-
return /* @__PURE__ */ at("div", { onBlur:
|
|
3612
|
+
return /* @__PURE__ */ at("div", { onBlur: U, children: [
|
|
3613
3613
|
/* @__PURE__ */ p(
|
|
3614
3614
|
Sr,
|
|
3615
3615
|
{
|
|
3616
|
-
...
|
|
3617
|
-
disabled: n ? !1 :
|
|
3616
|
+
...L,
|
|
3617
|
+
disabled: n ? !1 : L.disabled,
|
|
3618
3618
|
fileList: K,
|
|
3619
3619
|
onChange: X,
|
|
3620
3620
|
onPreview: vt,
|
|
3621
3621
|
beforeUpload: yt,
|
|
3622
|
-
customRequest: gt ?
|
|
3622
|
+
customRequest: gt ? P : void 0,
|
|
3623
3623
|
action: gt ? void 0 : h || y,
|
|
3624
3624
|
openFileDialogOnClick: !n,
|
|
3625
3625
|
children: !Rt && (v || (ct === "picture-card" || ct === "picture-circle" ? /* @__PURE__ */ at("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
@@ -3690,9 +3690,9 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3690
3690
|
if (!(y != null && y.queryApi)) {
|
|
3691
3691
|
m && S(
|
|
3692
3692
|
m.filter(
|
|
3693
|
-
(
|
|
3693
|
+
(z) => {
|
|
3694
3694
|
var Y, $;
|
|
3695
|
-
return ((Y =
|
|
3695
|
+
return ((Y = z.value) == null ? void 0 : Y.toString().toLowerCase().includes(R.toLowerCase())) || (($ = z.label) == null ? void 0 : $.toString().toLowerCase().includes(R.toLowerCase()));
|
|
3696
3696
|
}
|
|
3697
3697
|
)
|
|
3698
3698
|
);
|
|
@@ -3702,21 +3702,21 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3702
3702
|
if (y != null && y.queryApi) {
|
|
3703
3703
|
D(!0);
|
|
3704
3704
|
try {
|
|
3705
|
-
const { queryApi:
|
|
3706
|
-
Y && (
|
|
3707
|
-
|
|
3705
|
+
const { queryApi: z, keyWordParamName: Y = "keyword", valueKey: $ = "value", labelKey: q = "label", fixedParams: K = [] } = y, L = {};
|
|
3706
|
+
Y && (L[Y] = R), Array.isArray(K) && K.forEach((U) => {
|
|
3707
|
+
U.key && (L[U.key] = U.value);
|
|
3708
3708
|
});
|
|
3709
|
-
const j = await O(
|
|
3710
|
-
let
|
|
3711
|
-
Array.isArray(j) ?
|
|
3712
|
-
const X =
|
|
3713
|
-
value:
|
|
3714
|
-
label:
|
|
3715
|
-
...
|
|
3709
|
+
const j = await O(z, L);
|
|
3710
|
+
let P = [];
|
|
3711
|
+
Array.isArray(j) ? P = j : j && Array.isArray(j.data) ? P = j.data : j && j.data && Array.isArray(j.data.records) ? P = j.data.records : j && j.result && Array.isArray(j.result) && (P = j.result);
|
|
3712
|
+
const X = P.map((U) => ({
|
|
3713
|
+
value: U[$],
|
|
3714
|
+
label: U[q] || U[$],
|
|
3715
|
+
...U
|
|
3716
3716
|
}));
|
|
3717
3717
|
S(X);
|
|
3718
|
-
} catch (
|
|
3719
|
-
console.error("Failed to fetch remote options:",
|
|
3718
|
+
} catch (z) {
|
|
3719
|
+
console.error("Failed to fetch remote options:", z), S([]);
|
|
3720
3720
|
} finally {
|
|
3721
3721
|
D(!1);
|
|
3722
3722
|
}
|
|
@@ -3732,15 +3732,15 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3732
3732
|
return;
|
|
3733
3733
|
}
|
|
3734
3734
|
if (T && r && w(T, r, R), o && t) {
|
|
3735
|
-
const { actionName:
|
|
3736
|
-
h(t, I(
|
|
3735
|
+
const { actionName: z, arg: Y } = Dt(o, R, { id: e, dataSet: i, dataSetField: r });
|
|
3736
|
+
h(t, I(z, Y));
|
|
3737
3737
|
}
|
|
3738
|
-
}, [c, T, r, w, o, t, e, h]), M = B((R,
|
|
3738
|
+
}, [c, T, r, w, o, t, e, h]), M = B((R, z) => {
|
|
3739
3739
|
if (u) {
|
|
3740
|
-
u(R,
|
|
3740
|
+
u(R, z);
|
|
3741
3741
|
return;
|
|
3742
3742
|
}
|
|
3743
|
-
a && t && h(t, I(a, { value: R, option:
|
|
3743
|
+
a && t && h(t, I(a, { value: R, option: z }));
|
|
3744
3744
|
}, [u, a, t, h]);
|
|
3745
3745
|
return /* @__PURE__ */ p(
|
|
3746
3746
|
wr,
|
|
@@ -3796,7 +3796,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3796
3796
|
u && /* @__PURE__ */ p(It, { onClick: C, children: b })
|
|
3797
3797
|
] }) })
|
|
3798
3798
|
] });
|
|
3799
|
-
},
|
|
3799
|
+
}, Lc = ({
|
|
3800
3800
|
id: e,
|
|
3801
3801
|
sessionId: t,
|
|
3802
3802
|
develop: n,
|
|
@@ -3811,7 +3811,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3811
3811
|
return t;
|
|
3812
3812
|
}
|
|
3813
3813
|
return e;
|
|
3814
|
-
},
|
|
3814
|
+
}, zc = ({
|
|
3815
3815
|
id: e,
|
|
3816
3816
|
sessionId: t,
|
|
3817
3817
|
develop: n,
|
|
@@ -3841,26 +3841,26 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3841
3841
|
token: x,
|
|
3842
3842
|
...E
|
|
3843
3843
|
}) => {
|
|
3844
|
-
const _ = k((tt) => tt.addCommand), M = k((tt) => tt.getDataSet), R = k((tt) => tt.setDataSet),
|
|
3844
|
+
const _ = k((tt) => tt.addCommand), M = k((tt) => tt.getDataSet), R = k((tt) => tt.setDataSet), z = g(
|
|
3845
3845
|
() => rt(t, i),
|
|
3846
3846
|
[t, i]
|
|
3847
|
-
), Y = g(() => Ht(N, {}), [N]), $ = g(() => Ht(x, {}), [x]), q = g(() => Ht(f, ["源列表", "目标列表"]), [f]), K = g(() => Ht(s, [">", "<"]), [s]),
|
|
3848
|
-
if (
|
|
3849
|
-
const tt = M(
|
|
3847
|
+
), Y = g(() => Ht(N, {}), [N]), $ = g(() => Ht(x, {}), [x]), q = g(() => Ht(f, ["源列表", "目标列表"]), [f]), K = g(() => Ht(s, [">", "<"]), [s]), L = g(() => Ht(h, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [h]), j = g(() => Ht(v, !1), [v]), P = g(() => {
|
|
3848
|
+
if (z && r) {
|
|
3849
|
+
const tt = M(z, r);
|
|
3850
3850
|
if (Array.isArray(tt)) return tt;
|
|
3851
3851
|
}
|
|
3852
|
-
}, [
|
|
3853
|
-
if (
|
|
3854
|
-
const tt = M(
|
|
3852
|
+
}, [z, r, M]), X = g(() => {
|
|
3853
|
+
if (z && r) {
|
|
3854
|
+
const tt = M(z, `${r}.dataSource`);
|
|
3855
3855
|
if (Array.isArray(tt)) return tt;
|
|
3856
3856
|
}
|
|
3857
|
-
}, [
|
|
3857
|
+
}, [z, r, M]), U = g(() => n ? X ?? Ht(o, []) : z ? X ?? [] : Ht(o, []), [n, z, X, o]), V = g(() => n ? P ?? Ht(a, []) : z ? P ?? [] : Ht(a, []), [n, z, P, a]), it = g(() => Ht(c, []), [c]), nt = B((tt, st, ct) => {
|
|
3858
3858
|
if (S) {
|
|
3859
3859
|
S(tt, st, ct);
|
|
3860
3860
|
return;
|
|
3861
3861
|
}
|
|
3862
|
-
|
|
3863
|
-
}, [S,
|
|
3862
|
+
z && r && R(z, r, tt), l && t && _(t, I(l, { targetKeys: tt, direction: st, moveKeys: ct }));
|
|
3863
|
+
}, [S, z, r, R, l, t, _]), et = B((tt, st) => {
|
|
3864
3864
|
if (D) {
|
|
3865
3865
|
D(tt, st);
|
|
3866
3866
|
return;
|
|
@@ -3881,7 +3881,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3881
3881
|
}, [O, C, t, _]), gt = /* @__PURE__ */ p(
|
|
3882
3882
|
Dr,
|
|
3883
3883
|
{
|
|
3884
|
-
dataSource:
|
|
3884
|
+
dataSource: U,
|
|
3885
3885
|
targetKeys: V,
|
|
3886
3886
|
selectedKeys: it,
|
|
3887
3887
|
disabled: u,
|
|
@@ -3892,7 +3892,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3892
3892
|
status: y || void 0,
|
|
3893
3893
|
titles: q,
|
|
3894
3894
|
actions: K,
|
|
3895
|
-
locale:
|
|
3895
|
+
locale: L,
|
|
3896
3896
|
onChange: nt,
|
|
3897
3897
|
onSelectChange: et,
|
|
3898
3898
|
onSearch: vt,
|
|
@@ -3977,9 +3977,9 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3977
3977
|
}
|
|
3978
3978
|
);
|
|
3979
3979
|
return A && Object.keys(A).length > 0 ? /* @__PURE__ */ p(Kt, { theme: { components: { Segmented: A } }, children: _ }) : _;
|
|
3980
|
-
},
|
|
3980
|
+
}, Uo = (e, t, n) => {
|
|
3981
3981
|
const [i, r] = dt(void 0), o = t === "100%", a = Et(0);
|
|
3982
|
-
return
|
|
3982
|
+
return Pn(() => {
|
|
3983
3983
|
if (!o || !e.current) {
|
|
3984
3984
|
r(void 0);
|
|
3985
3985
|
return;
|
|
@@ -4030,7 +4030,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
4030
4030
|
};
|
|
4031
4031
|
}, [o, n]), o ? i : t;
|
|
4032
4032
|
}, On = /* @__PURE__ */ new Map();
|
|
4033
|
-
function
|
|
4033
|
+
function Po(e) {
|
|
4034
4034
|
let t = On.get(e);
|
|
4035
4035
|
return t || (t = dn(e), On.set(e, t)), t;
|
|
4036
4036
|
}
|
|
@@ -4042,7 +4042,7 @@ const Yo = ({ dictCode: e, value: t }) => {
|
|
|
4042
4042
|
return;
|
|
4043
4043
|
}
|
|
4044
4044
|
let o = !1;
|
|
4045
|
-
return
|
|
4045
|
+
return Po(e).then((a) => {
|
|
4046
4046
|
o || i(a);
|
|
4047
4047
|
}), () => {
|
|
4048
4048
|
o = !0;
|
|
@@ -4096,7 +4096,7 @@ const Yo = ({ dictCode: e, value: t }) => {
|
|
|
4096
4096
|
}, Qo = (e, t) => {
|
|
4097
4097
|
let n = "";
|
|
4098
4098
|
try {
|
|
4099
|
-
const i =
|
|
4099
|
+
const i = Pt(e);
|
|
4100
4100
|
i.isValid() && (t.dateFormat === "date" ? n = i.format("YYYY-MM-DD") : t.dateFormat === "time" ? n = i.format("HH:mm:ss") : (t.dateFormat, n = i.format("YYYY-MM-DD HH:mm:ss")));
|
|
4101
4101
|
} catch {
|
|
4102
4102
|
n = "";
|
|
@@ -4194,51 +4194,51 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4194
4194
|
},
|
|
4195
4195
|
[b]
|
|
4196
4196
|
), A = B(
|
|
4197
|
-
(j,
|
|
4197
|
+
(j, P, X, U) => _n(j, P, X ?? h, U ?? w),
|
|
4198
4198
|
[h, w]
|
|
4199
4199
|
), O = B(() => {
|
|
4200
4200
|
y(r);
|
|
4201
|
-
const j = o.map((
|
|
4201
|
+
const j = o.map((P) => ({ ...P }));
|
|
4202
4202
|
s(j), l(c), T(d), D(_n(r, j, c, d));
|
|
4203
4203
|
}, [r, o, c, d, D]), N = B(
|
|
4204
4204
|
(j) => {
|
|
4205
|
-
s((
|
|
4206
|
-
const X =
|
|
4205
|
+
s((P) => {
|
|
4206
|
+
const X = P.map((U) => U.key === j ? { ...U, visible: !U.visible } : U);
|
|
4207
4207
|
return D(A(v, X)), X;
|
|
4208
4208
|
});
|
|
4209
4209
|
},
|
|
4210
4210
|
[v, A, D]
|
|
4211
4211
|
), x = B(
|
|
4212
|
-
(j,
|
|
4212
|
+
(j, P) => {
|
|
4213
4213
|
s((X) => {
|
|
4214
|
-
const
|
|
4215
|
-
return D(A(v,
|
|
4214
|
+
const U = X.map((V) => V.key === j ? { ...V, fixed: P } : V);
|
|
4215
|
+
return D(A(v, U)), U;
|
|
4216
4216
|
});
|
|
4217
4217
|
},
|
|
4218
4218
|
[v, A, D]
|
|
4219
4219
|
), E = B(
|
|
4220
|
-
(j,
|
|
4220
|
+
(j, P) => {
|
|
4221
4221
|
s((X) => {
|
|
4222
|
-
const
|
|
4223
|
-
return D(A(v,
|
|
4222
|
+
const U = X.map((V) => V.key === j ? { ...V, width: P } : V);
|
|
4223
|
+
return D(A(v, U)), U;
|
|
4224
4224
|
});
|
|
4225
4225
|
},
|
|
4226
4226
|
[v, A, D]
|
|
4227
4227
|
), _ = B(
|
|
4228
|
-
(j,
|
|
4228
|
+
(j, P) => {
|
|
4229
4229
|
s((X) => {
|
|
4230
|
-
const
|
|
4231
|
-
if (!
|
|
4232
|
-
const V = typeof
|
|
4230
|
+
const U = X.find((et) => et.key === j);
|
|
4231
|
+
if (!U) return X;
|
|
4232
|
+
const V = typeof U.width == "number" ? U.width : 80, it = Math.max(Ye, V + P), nt = X.map((et) => et.key === j ? { ...et, width: it } : et);
|
|
4233
4233
|
return D(A(v, nt)), nt;
|
|
4234
4234
|
});
|
|
4235
4235
|
},
|
|
4236
4236
|
[v, A, D]
|
|
4237
4237
|
), M = B(
|
|
4238
|
-
(j,
|
|
4239
|
-
if (
|
|
4240
|
-
const X = [...f], [
|
|
4241
|
-
X.splice(
|
|
4238
|
+
(j, P) => {
|
|
4239
|
+
if (P < 0 || P >= f.length) return;
|
|
4240
|
+
const X = [...f], [U] = X.splice(j, 1);
|
|
4241
|
+
X.splice(P, 0, U), s(X), D(A(v, X));
|
|
4242
4242
|
},
|
|
4243
4243
|
[f, v, A, D]
|
|
4244
4244
|
), R = B(
|
|
@@ -4246,7 +4246,7 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4246
4246
|
y(j), D(A(j, f));
|
|
4247
4247
|
},
|
|
4248
4248
|
[f, A, D]
|
|
4249
|
-
),
|
|
4249
|
+
), z = B(
|
|
4250
4250
|
(j) => {
|
|
4251
4251
|
l(j), D(A(v, f, j, w));
|
|
4252
4252
|
},
|
|
@@ -4256,16 +4256,16 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4256
4256
|
T(j), D(A(v, f, h, j));
|
|
4257
4257
|
},
|
|
4258
4258
|
[v, f, h, A, D]
|
|
4259
|
-
), $ = (j) => (
|
|
4260
|
-
S(j),
|
|
4261
|
-
}, q = (j) => (
|
|
4262
|
-
|
|
4263
|
-
}, K = () => S(null),
|
|
4264
|
-
let j = t.y,
|
|
4265
|
-
return typeof window < "u" && (
|
|
4259
|
+
), $ = (j) => (P) => {
|
|
4260
|
+
S(j), P.dataTransfer.effectAllowed = "move", P.dataTransfer.setData("text/plain", String(j));
|
|
4261
|
+
}, q = (j) => (P) => {
|
|
4262
|
+
P.preventDefault(), P.dataTransfer.dropEffect = "move", !(C === null || C === j) && (M(C, j), S(j));
|
|
4263
|
+
}, K = () => S(null), L = t != null ? (() => {
|
|
4264
|
+
let j = t.y, P = t.x;
|
|
4265
|
+
return typeof window < "u" && (P + Ge > window.innerWidth && (P = window.innerWidth - Ge - 16), P < 16 && (P = 16), j + En > window.innerHeight && (j = Math.max(16, window.innerHeight - En - 16)), j < 16 && (j = 16)), { margin: 0, top: j, left: P };
|
|
4266
4266
|
})() : void 0;
|
|
4267
4267
|
return /* @__PURE__ */ p(
|
|
4268
|
-
|
|
4268
|
+
Ln,
|
|
4269
4269
|
{
|
|
4270
4270
|
title: "列设置",
|
|
4271
4271
|
open: e,
|
|
@@ -4274,7 +4274,7 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4274
4274
|
width: Ge,
|
|
4275
4275
|
destroyOnHidden: !0,
|
|
4276
4276
|
centered: t == null,
|
|
4277
|
-
style:
|
|
4277
|
+
style: L,
|
|
4278
4278
|
mask: !1,
|
|
4279
4279
|
className: `and-table-column-setting-modal${t != null ? " and-table-column-setting-modal-positioned" : ""}`,
|
|
4280
4280
|
children: /* @__PURE__ */ at("div", { className: "and-table-column-setting-body", children: [
|
|
@@ -4287,7 +4287,7 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4287
4287
|
children: "序号列"
|
|
4288
4288
|
}
|
|
4289
4289
|
),
|
|
4290
|
-
/* @__PURE__ */ p(ue, { checked: h, onChange: (j) =>
|
|
4290
|
+
/* @__PURE__ */ p(ue, { checked: h, onChange: (j) => z(j.target.checked), children: "自动滚动" }),
|
|
4291
4291
|
/* @__PURE__ */ at(Yt, { align: "center", children: [
|
|
4292
4292
|
/* @__PURE__ */ p("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4293
4293
|
/* @__PURE__ */ p(
|
|
@@ -4309,15 +4309,15 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4309
4309
|
/* @__PURE__ */ p("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
|
|
4310
4310
|
/* @__PURE__ */ p("th", { className: "and-table-column-setting-th-fix", children: "固定" })
|
|
4311
4311
|
] }) }),
|
|
4312
|
-
/* @__PURE__ */ p("tbody", { children: f.map((j,
|
|
4313
|
-
const X = typeof j.width == "number" ? j.width : null,
|
|
4312
|
+
/* @__PURE__ */ p("tbody", { children: f.map((j, P) => {
|
|
4313
|
+
const X = typeof j.width == "number" ? j.width : null, U = j.width === "auto" || j.width === void 0 && X === null;
|
|
4314
4314
|
return /* @__PURE__ */ at(
|
|
4315
4315
|
"tr",
|
|
4316
4316
|
{
|
|
4317
|
-
className: `and-table-column-setting-row ${C ===
|
|
4317
|
+
className: `and-table-column-setting-row ${C === P ? "and-table-column-setting-row-dragging" : ""}`,
|
|
4318
4318
|
draggable: !0,
|
|
4319
|
-
onDragStart: $(
|
|
4320
|
-
onDragOver: q(
|
|
4319
|
+
onDragStart: $(P),
|
|
4320
|
+
onDragOver: q(P),
|
|
4321
4321
|
onDragEnd: K,
|
|
4322
4322
|
children: [
|
|
4323
4323
|
/* @__PURE__ */ p("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ p("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ p(ei, {}) }) }),
|
|
@@ -4341,7 +4341,7 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4341
4341
|
size: "small",
|
|
4342
4342
|
min: Ye,
|
|
4343
4343
|
step: ye,
|
|
4344
|
-
value:
|
|
4344
|
+
value: U ? void 0 : X ?? 80,
|
|
4345
4345
|
placeholder: "auto",
|
|
4346
4346
|
controls: !1,
|
|
4347
4347
|
style: { width: 44 },
|
|
@@ -4424,10 +4424,10 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4424
4424
|
children: _,
|
|
4425
4425
|
token: M,
|
|
4426
4426
|
columnSettingOpenKey: R,
|
|
4427
|
-
columnSettingsKey:
|
|
4427
|
+
columnSettingsKey: z,
|
|
4428
4428
|
...Y
|
|
4429
4429
|
}) => {
|
|
4430
|
-
const $ = k((Q) => Q.addCommand), q = k((Q) => Q.getDataSet), K = k((Q) => Q.setDataSet), [
|
|
4430
|
+
const $ = k((Q) => Q.addCommand), q = k((Q) => Q.getDataSet), K = k((Q) => Q.setDataSet), [L, j] = dt([]), P = Et(null), [X, U] = dt(void 0), V = B((Q, lt) => {
|
|
4431
4431
|
if (Q == null) return lt;
|
|
4432
4432
|
if (typeof Q == "string")
|
|
4433
4433
|
try {
|
|
@@ -4451,12 +4451,12 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4451
4451
|
return et.columnSettingOpen ? ((lt = Q.dataSets[et.columnSettingOpen]) == null ? void 0 : lt.value) === !0 : !1;
|
|
4452
4452
|
}
|
|
4453
4453
|
), St = 420;
|
|
4454
|
-
|
|
4455
|
-
if (!vt || !
|
|
4456
|
-
const Q =
|
|
4454
|
+
Pn(() => {
|
|
4455
|
+
if (!vt || !P.current) return;
|
|
4456
|
+
const Q = P.current.querySelector(".ant-table-thead") || P.current.querySelector(".ant-table-header");
|
|
4457
4457
|
if (!Q) return;
|
|
4458
4458
|
const lt = Q.getBoundingClientRect();
|
|
4459
|
-
|
|
4459
|
+
U({
|
|
4460
4460
|
x: lt.right - St,
|
|
4461
4461
|
y: lt.bottom + 8
|
|
4462
4462
|
});
|
|
@@ -4472,13 +4472,13 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4472
4472
|
(Q) => et.pagination ? Q.dataSets[et.pagination] : void 0
|
|
4473
4473
|
), yt = g(() => et.pagination ? q(et.pagination, "") || {} : {}, [et.pagination, q, Rt]), W = g(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), G = g(() => {
|
|
4474
4474
|
if (!W) return !1;
|
|
4475
|
-
const Q = typeof s == "object" ? s : {}, lt = Y || {}, _t = Q.showSizeChanger ?? lt["pagination-showSizeChanger"] ?? !0, Ct = Q.showQuickJumper ?? lt["pagination-showQuickJumper"] ?? !1, Tt = Q.simple ?? lt["pagination-simple"] ?? !1,
|
|
4475
|
+
const Q = typeof s == "object" ? s : {}, lt = Y || {}, _t = Q.showSizeChanger ?? lt["pagination-showSizeChanger"] ?? !0, Ct = Q.showQuickJumper ?? lt["pagination-showQuickJumper"] ?? !1, Tt = Q.simple ?? lt["pagination-simple"] ?? !1, zt = Q.defaultPageSize ?? lt["pagination-defaultPageSize"] ?? 10, Ut = Q.pageSizeOptions ?? lt["pagination-pageSizeOptions"] ?? "10,20,50,100", We = typeof Ut == "string" ? Ut.split(",").map((ne) => parseInt(String(ne).trim(), 10) || 10).filter((ne) => !isNaN(ne)) : Array.isArray(Ut) ? Ut : [10, 20, 50, 100];
|
|
4476
4476
|
return {
|
|
4477
4477
|
...yt,
|
|
4478
4478
|
showSizeChanger: _t,
|
|
4479
4479
|
showQuickJumper: Ct,
|
|
4480
4480
|
simple: Tt,
|
|
4481
|
-
defaultPageSize:
|
|
4481
|
+
defaultPageSize: zt,
|
|
4482
4482
|
pageSizeOptions: We,
|
|
4483
4483
|
showTotal: (ne, se) => (Q.showTotal || "共 ${total} 条").replace("${total}", String(ne)).replace("${range[0]}", String(se[0])).replace("${range[1]}", String(se[1])).replace("${range}", `${se[0]}-${se[1]}`),
|
|
4484
4484
|
onChange: (ne, se) => {
|
|
@@ -4512,26 +4512,26 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4512
4512
|
key: "rowIndex",
|
|
4513
4513
|
width: 60,
|
|
4514
4514
|
align: "center",
|
|
4515
|
-
render: (Ct, Tt,
|
|
4516
|
-
const
|
|
4517
|
-
return (
|
|
4515
|
+
render: (Ct, Tt, zt) => {
|
|
4516
|
+
const Ut = yt.current || 1, We = yt.pageSize || 10;
|
|
4517
|
+
return (Ut - 1) * We + zt + 1;
|
|
4518
4518
|
}
|
|
4519
4519
|
});
|
|
4520
4520
|
const lt = new Map(it.map((Ct) => [String(Ct.key ?? Ct.dataIndex ?? ""), Ct]));
|
|
4521
4521
|
return At.filter((Ct) => Ct.visible).forEach((Ct) => {
|
|
4522
4522
|
const Tt = lt.get(Ct.key);
|
|
4523
4523
|
if (!Tt) return;
|
|
4524
|
-
const
|
|
4524
|
+
const zt = Ct.fixed || void 0, Ut = Ct.width === "auto" || Ct.width === void 0 ? void 0 : Ct.width;
|
|
4525
4525
|
Q.push(Xo({
|
|
4526
4526
|
...Tt,
|
|
4527
4527
|
dataIndex: Tt.dataIndex || Tt.key,
|
|
4528
|
-
fixed:
|
|
4529
|
-
width:
|
|
4528
|
+
fixed: zt || Tt.fixed,
|
|
4529
|
+
width: Ut ?? Tt.width
|
|
4530
4530
|
}));
|
|
4531
4531
|
}), u !== !1 && nt.length > 0 && Q.push({
|
|
4532
4532
|
title: "操作",
|
|
4533
4533
|
key: "action",
|
|
4534
|
-
render: (Ct, Tt) => /* @__PURE__ */ p(Yt, { children: nt.map((
|
|
4534
|
+
render: (Ct, Tt) => /* @__PURE__ */ p(Yt, { children: nt.map((zt, Ut) => /* @__PURE__ */ p(Ar, { title: zt.tooltip, children: /* @__PURE__ */ p("a", { onClick: () => ot(zt, Tt), style: { marginRight: 5 }, children: zt.title }) }, Ut)) })
|
|
4535
4535
|
}), Q;
|
|
4536
4536
|
}, [
|
|
4537
4537
|
it,
|
|
@@ -4551,7 +4551,7 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4551
4551
|
), ee = g(() => {
|
|
4552
4552
|
if (!b && d)
|
|
4553
4553
|
return {
|
|
4554
|
-
selectedRowKeys:
|
|
4554
|
+
selectedRowKeys: L,
|
|
4555
4555
|
onChange: (Q, lt, _t) => {
|
|
4556
4556
|
j(Q), et.selected && K(et.selected, "", Q), m != null && m.trim() && t && $(t, I(m.trim(), {
|
|
4557
4557
|
selectedRowKeys: Q,
|
|
@@ -4560,15 +4560,15 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4560
4560
|
}));
|
|
4561
4561
|
}
|
|
4562
4562
|
};
|
|
4563
|
-
}, [d, b,
|
|
4563
|
+
}, [d, b, L, et.selected, K, m, t, $]), Gt = B((Q) => {
|
|
4564
4564
|
if (!b) return;
|
|
4565
4565
|
const _t = [Q[v]];
|
|
4566
4566
|
j(_t), et.selected && K(et.selected, "", _t), m != null && m.trim() && t && $(t, I(m.trim(), { record: Q, selectedRowKeys: _t }));
|
|
4567
|
-
}, [b, m, t, v, et.selected, K, $]), me = B((Q) => b &&
|
|
4567
|
+
}, [b, m, t, v, et.selected, K, $]), me = B((Q) => b && L.includes(Q[v]) ? "ant-table-row-selected" : "", [b, v, L]), ar = B((Q) => b ? { onClick: () => Gt(Q), style: { cursor: "pointer" } } : {}, [b, Gt]), { style: cr, className: sr, ...he } = Y, jt = g(() => {
|
|
4568
4568
|
if (C) return C;
|
|
4569
4569
|
let Q = he["scroll-x"], lt = he["scroll-y"];
|
|
4570
4570
|
if (String(Q) === "true" ? Q = !0 : String(Q) === "false" ? Q = void 0 : Q === "max-content" && (Q = "max-content"), (lt === "" || lt === null || lt === void 0) && (lt = void 0), Q !== void 0 || lt !== void 0) return { x: Q, y: lt };
|
|
4571
|
-
}, [C, he["scroll-x"], he["scroll-y"]]), qe =
|
|
4571
|
+
}, [C, he["scroll-x"], he["scroll-y"]]), qe = Uo(P, jt == null ? void 0 : jt.y, W), lr = g(() => {
|
|
4572
4572
|
if (!jt && !ut) return;
|
|
4573
4573
|
const Q = ut ? J ? !0 : "max-content" : jt == null ? void 0 : jt.x, lt = (jt == null ? void 0 : jt.y) === "100%" ? qe : jt == null ? void 0 : jt.y;
|
|
4574
4574
|
return Q !== void 0 || lt !== void 0 ? { x: Q, y: lt } : jt ? jt.y === "100%" ? { x: jt.x, y: qe } : jt : void 0;
|
|
@@ -4580,8 +4580,8 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4580
4580
|
Ct.push(Tt);
|
|
4581
4581
|
return;
|
|
4582
4582
|
}
|
|
4583
|
-
const
|
|
4584
|
-
|
|
4583
|
+
const zt = Tt.props["data-slot-type"];
|
|
4584
|
+
zt === "title" ? Q = Tt : zt === "summary" ? lt = Tt : zt === "footer" ? _t = Tt : Ct.push(Tt);
|
|
4585
4585
|
}), { titleSlot: Q, summarySlot: lt, footerSlot: _t, otherChildren: Ct };
|
|
4586
4586
|
}, [_]), fr = g(() => {
|
|
4587
4587
|
if (!Ne) {
|
|
@@ -4616,9 +4616,9 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4616
4616
|
}
|
|
4617
4617
|
);
|
|
4618
4618
|
return /* @__PURE__ */ at(
|
|
4619
|
-
|
|
4619
|
+
zn,
|
|
4620
4620
|
{
|
|
4621
|
-
ref:
|
|
4621
|
+
ref: P,
|
|
4622
4622
|
vertical: !0,
|
|
4623
4623
|
style: { width: "100%", height: "100%", ...cr },
|
|
4624
4624
|
className: sr,
|
|
@@ -4684,9 +4684,9 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4684
4684
|
clickAction: s,
|
|
4685
4685
|
...h
|
|
4686
4686
|
}) => {
|
|
4687
|
-
const l = k((
|
|
4687
|
+
const l = k((L) => L.getDataSet), w = k((L) => {
|
|
4688
4688
|
var j;
|
|
4689
|
-
return !t || !e ? null : ((j =
|
|
4689
|
+
return !t || !e ? null : ((j = L.propsStore[`${t}_props`]) == null ? void 0 : j[e]) ?? null;
|
|
4690
4690
|
}), T = g(
|
|
4691
4691
|
() => d === "selectedCount" && a && !o ? a : o,
|
|
4692
4692
|
[d, a, o]
|
|
@@ -4696,10 +4696,10 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4696
4696
|
), S = g(
|
|
4697
4697
|
() => rt(t, T),
|
|
4698
4698
|
[t, T]
|
|
4699
|
-
), D = k((
|
|
4699
|
+
), D = k((L) => {
|
|
4700
4700
|
if (!S) return;
|
|
4701
4701
|
const j = xe(S).baseName;
|
|
4702
|
-
return
|
|
4702
|
+
return L.dataSets[j];
|
|
4703
4703
|
}), { options: A } = Te(d), O = g(() => {
|
|
4704
4704
|
if (S && C)
|
|
4705
4705
|
return l(S, C);
|
|
@@ -4712,43 +4712,43 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4712
4712
|
return {};
|
|
4713
4713
|
}
|
|
4714
4714
|
return m;
|
|
4715
|
-
}, [m]), x = (
|
|
4715
|
+
}, [m]), x = (L) => L == null || L === "" || typeof L == "string" && L.trim() === "", E = g(() => n ? i : O != null && O !== "" ? x(O) && v ? i : O : (w == null ? void 0 : w.content) !== void 0 ? w.content : i, [n, O, w == null ? void 0 : w.content, i, v]), _ = g(() => {
|
|
4716
4716
|
if (d && A.length > 0 && E !== void 0 && E !== null) {
|
|
4717
|
-
const
|
|
4718
|
-
return (
|
|
4717
|
+
const L = ce(A, E);
|
|
4718
|
+
return (L == null ? void 0 : L.label) ?? E;
|
|
4719
4719
|
}
|
|
4720
4720
|
return E;
|
|
4721
4721
|
}, [d, A, E]), M = g(() => {
|
|
4722
4722
|
if (n)
|
|
4723
4723
|
return _;
|
|
4724
|
-
const
|
|
4725
|
-
return
|
|
4724
|
+
const L = (w == null ? void 0 : w.formatType) || b;
|
|
4725
|
+
return L && _ !== void 0 && _ !== null ? ko(_, L, N) : _;
|
|
4726
4726
|
}, [n, _, b, N, w == null ? void 0 : w.formatType]), R = g(() => {
|
|
4727
|
-
const
|
|
4727
|
+
const L = { ...h };
|
|
4728
4728
|
return w && typeof w == "object" && Object.keys(w).forEach((j) => {
|
|
4729
|
-
!["content", "formatType", "formatValue", "clickAction"].includes(j) && w[j] !== void 0 && w[j] !== null && (
|
|
4730
|
-
}),
|
|
4731
|
-
}, [h, w]),
|
|
4729
|
+
!["content", "formatType", "formatValue", "clickAction"].includes(j) && w[j] !== void 0 && w[j] !== null && (L[j] = w[j]);
|
|
4730
|
+
}), L;
|
|
4731
|
+
}, [h, w]), z = (w == null ? void 0 : w.color) ?? u, Y = Ve(z), $ = g(() => {
|
|
4732
4732
|
if (!f) return;
|
|
4733
|
-
let
|
|
4733
|
+
let L = f;
|
|
4734
4734
|
if (typeof f == "string")
|
|
4735
4735
|
try {
|
|
4736
|
-
|
|
4736
|
+
L = JSON.parse(f);
|
|
4737
4737
|
} catch {
|
|
4738
4738
|
return;
|
|
4739
4739
|
}
|
|
4740
|
-
if (!
|
|
4740
|
+
if (!L || typeof L != "object") return;
|
|
4741
4741
|
const j = {};
|
|
4742
|
-
return Object.entries(
|
|
4743
|
-
X !== "" && X !== void 0 && X !== null && (j[
|
|
4742
|
+
return Object.entries(L).forEach(([P, X]) => {
|
|
4743
|
+
X !== "" && X !== void 0 && X !== null && (j[P] = X);
|
|
4744
4744
|
}), Object.keys(j).length > 0 ? j : void 0;
|
|
4745
4745
|
}, [f]), q = g(() => {
|
|
4746
|
-
const
|
|
4746
|
+
const L = { width: "100%" }, j = (w == null ? void 0 : w.fontSize) ?? c;
|
|
4747
4747
|
if (j) {
|
|
4748
|
-
const
|
|
4749
|
-
|
|
4748
|
+
const P = j && !String(j).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${j}px` : j;
|
|
4749
|
+
L.fontSize = P;
|
|
4750
4750
|
}
|
|
4751
|
-
return Y && (
|
|
4751
|
+
return Y && (L.color = Y), L;
|
|
4752
4752
|
}, [c, Y, w == null ? void 0 : w.fontSize]), K = /* @__PURE__ */ p(na, { ...R, style: { ...q, ...y, ...R.style }, children: M != null && M !== "" ? String(M) : r });
|
|
4753
4753
|
return $ ? /* @__PURE__ */ p(Kt, { theme: { token: $ }, children: K }) : K;
|
|
4754
4754
|
}, { Title: ra } = fn, Hc = ({
|
|
@@ -4780,7 +4780,7 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4780
4780
|
}), S;
|
|
4781
4781
|
}, [b, f]);
|
|
4782
4782
|
return /* @__PURE__ */ p(ra, { level: c, ...C, style: { ...T, ...d, ...C.style }, children: h || r });
|
|
4783
|
-
}, { Paragraph: ia } = fn,
|
|
4783
|
+
}, { Paragraph: ia } = fn, Uc = ({
|
|
4784
4784
|
id: e,
|
|
4785
4785
|
sessionId: t,
|
|
4786
4786
|
develop: n,
|
|
@@ -4817,7 +4817,7 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4817
4817
|
return [];
|
|
4818
4818
|
}
|
|
4819
4819
|
return e;
|
|
4820
|
-
},
|
|
4820
|
+
}, Pc = ({
|
|
4821
4821
|
id: e,
|
|
4822
4822
|
sessionId: t,
|
|
4823
4823
|
develop: n,
|
|
@@ -4904,7 +4904,7 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4904
4904
|
styles: _,
|
|
4905
4905
|
classNames: M,
|
|
4906
4906
|
token: R,
|
|
4907
|
-
...
|
|
4907
|
+
...z
|
|
4908
4908
|
}) => {
|
|
4909
4909
|
const Y = k((F) => F.addCommand), $ = k((F) => F.setDataSet), q = g(
|
|
4910
4910
|
() => rt(t, i),
|
|
@@ -4912,13 +4912,13 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4912
4912
|
), K = g(
|
|
4913
4913
|
() => i ? rt(t, `${i}_selected`) : void 0,
|
|
4914
4914
|
[t, i]
|
|
4915
|
-
),
|
|
4915
|
+
), L = g(
|
|
4916
4916
|
() => i ? rt(t, `${i}_checked`) : void 0,
|
|
4917
4917
|
[t, i]
|
|
4918
4918
|
), j = g(
|
|
4919
4919
|
() => i ? rt(t, `${i}_expanded`) : void 0,
|
|
4920
4920
|
[t, i]
|
|
4921
|
-
),
|
|
4921
|
+
), P = k((F) => {
|
|
4922
4922
|
if (!q) return;
|
|
4923
4923
|
if (r)
|
|
4924
4924
|
return F.getDataSet(q, r);
|
|
@@ -4929,11 +4929,11 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4929
4929
|
return Array.isArray(At) ? At : void 0;
|
|
4930
4930
|
}), X = k(
|
|
4931
4931
|
(F) => K ? F.getDataSet(K, "") : void 0
|
|
4932
|
-
),
|
|
4933
|
-
(F) =>
|
|
4932
|
+
), U = k(
|
|
4933
|
+
(F) => L ? F.getDataSet(L, "") : void 0
|
|
4934
4934
|
), V = k(
|
|
4935
4935
|
(F) => j ? F.getDataSet(j, "") : void 0
|
|
4936
|
-
), it = g(() => n ?
|
|
4936
|
+
), it = g(() => n ? P ?? E ?? [] : q ? P ?? [] : E ?? [], [n, q, P, E]), nt = X, et = U, vt = V, St = B(
|
|
4937
4937
|
(F, bt) => {
|
|
4938
4938
|
if (h) {
|
|
4939
4939
|
h(F, bt);
|
|
@@ -4948,9 +4948,9 @@ const Ge = 420, En = 440, ea = ({
|
|
|
4948
4948
|
l(F, bt);
|
|
4949
4949
|
return;
|
|
4950
4950
|
}
|
|
4951
|
-
|
|
4951
|
+
L && $(L, "", F), a && t && Y(t, I(a, { checkedKeys: F }));
|
|
4952
4952
|
},
|
|
4953
|
-
[l,
|
|
4953
|
+
[l, L, t, $, a, Y]
|
|
4954
4954
|
), tt = B(
|
|
4955
4955
|
(F, bt) => {
|
|
4956
4956
|
if (w) {
|
|
@@ -5044,11 +5044,11 @@ const Ge = 420, En = 440, ea = ({
|
|
|
5044
5044
|
}, [n, ot]), ht = /* @__PURE__ */ p(
|
|
5045
5045
|
Nr,
|
|
5046
5046
|
{
|
|
5047
|
-
...
|
|
5047
|
+
...z,
|
|
5048
5048
|
...n ? { motion: !1 } : {},
|
|
5049
5049
|
treeData: it,
|
|
5050
5050
|
...K != null ? { selectedKeys: nt ?? [] } : {},
|
|
5051
|
-
...
|
|
5051
|
+
...L != null ? { checkedKeys: et ?? [] } : {},
|
|
5052
5052
|
...j != null ? { expandedKeys: vt ?? [] } : {},
|
|
5053
5053
|
onSelect: St,
|
|
5054
5054
|
onCheck: gt,
|
|
@@ -5433,8 +5433,8 @@ const Ic = ({
|
|
|
5433
5433
|
}
|
|
5434
5434
|
}, [d]), S = k(
|
|
5435
5435
|
(R) => {
|
|
5436
|
-
var
|
|
5437
|
-
return l && e ? ((
|
|
5436
|
+
var z;
|
|
5437
|
+
return l && e ? ((z = R.propsStore[`${l}_props`]) == null ? void 0 : z[e]) ?? null : null;
|
|
5438
5438
|
}
|
|
5439
5439
|
), D = k(
|
|
5440
5440
|
(R) => w && h ? R.getDataSet(w, h) : void 0
|
|
@@ -5450,8 +5450,8 @@ const Ic = ({
|
|
|
5450
5450
|
return C && C[R] ? C[R] : da[R];
|
|
5451
5451
|
}, [u, A, C]), x = g(() => {
|
|
5452
5452
|
const R = { ...y };
|
|
5453
|
-
return S && typeof S == "object" && Object.keys(S).forEach((
|
|
5454
|
-
!["content", "color"].includes(
|
|
5453
|
+
return S && typeof S == "object" && Object.keys(S).forEach((z) => {
|
|
5454
|
+
!["content", "color"].includes(z) && S[z] !== void 0 && S[z] !== null && (R[z] = S[z]);
|
|
5455
5455
|
}), R;
|
|
5456
5456
|
}, [y, S]), E = (S == null ? void 0 : S.color) ?? b, M = Ve(E) || N;
|
|
5457
5457
|
return /* @__PURE__ */ p(Vn, { ...x, color: M, children: O || i });
|
|
@@ -5656,14 +5656,14 @@ const Ic = ({
|
|
|
5656
5656
|
paginationArrowStyle: _,
|
|
5657
5657
|
paginationArrowIconPrev: M,
|
|
5658
5658
|
paginationArrowIconNext: R,
|
|
5659
|
-
expandTrigger:
|
|
5659
|
+
expandTrigger: z,
|
|
5660
5660
|
// 仅设计器/业务用,不传给 DOM,避免 React 警告
|
|
5661
5661
|
...Y
|
|
5662
5662
|
}) => {
|
|
5663
5663
|
const $ = k((H) => H.addCommand), q = k((H) => H.setDataSet), K = g(
|
|
5664
5664
|
() => rt(t, i),
|
|
5665
5665
|
[t, i]
|
|
5666
|
-
),
|
|
5666
|
+
), L = k(
|
|
5667
5667
|
(H) => {
|
|
5668
5668
|
if (K)
|
|
5669
5669
|
return r ? H.getDataSet(K, r) : H.dataSets[K];
|
|
@@ -5674,20 +5674,20 @@ const Ic = ({
|
|
|
5674
5674
|
// 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
|
|
5675
5675
|
// 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
|
|
5676
5676
|
// 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
|
|
5677
|
-
), j = g(() => ({}), []),
|
|
5678
|
-
() => (
|
|
5679
|
-
[
|
|
5680
|
-
),
|
|
5681
|
-
() =>
|
|
5682
|
-
[
|
|
5677
|
+
), j = g(() => ({}), []), P = L ?? j, X = g(
|
|
5678
|
+
() => (P == null ? void 0 : P.items) ?? (Array.isArray(P) ? P : void 0) ?? (Array.isArray(P == null ? void 0 : P.value) ? P.value : void 0),
|
|
5679
|
+
[P]
|
|
5680
|
+
), U = g(() => n ? X ?? y ?? [] : K ? X ?? [] : y ?? [], [n, K, X, y]), V = g(
|
|
5681
|
+
() => P.selectedKeys ?? f,
|
|
5682
|
+
[P.selectedKeys, f]
|
|
5683
5683
|
), it = g(
|
|
5684
|
-
() =>
|
|
5685
|
-
[
|
|
5684
|
+
() => P.openKeys ?? (D && A ? void 0 : s),
|
|
5685
|
+
[P.openKeys, D, A, s]
|
|
5686
5686
|
), nt = g(
|
|
5687
5687
|
() => rt(t, D),
|
|
5688
5688
|
[t, D]
|
|
5689
5689
|
), et = k((H) => {
|
|
5690
|
-
if (!
|
|
5690
|
+
if (!P.openKeys && nt && A)
|
|
5691
5691
|
return H.getDataSet(nt, A);
|
|
5692
5692
|
}), vt = g(() => {
|
|
5693
5693
|
const H = (ut) => Array.isArray(ut) ? ut.map((pt) => {
|
|
@@ -5698,8 +5698,8 @@ const Ic = ({
|
|
|
5698
5698
|
}
|
|
5699
5699
|
return wt.children && wt.children.length > 0 && (wt.children = H(wt.children)), wt;
|
|
5700
5700
|
}) : [];
|
|
5701
|
-
return H(
|
|
5702
|
-
}, [
|
|
5701
|
+
return H(U || []);
|
|
5702
|
+
}, [U]), St = g(
|
|
5703
5703
|
() => V,
|
|
5704
5704
|
[V]
|
|
5705
5705
|
), gt = g(
|
|
@@ -6100,7 +6100,7 @@ const Ic = ({
|
|
|
6100
6100
|
);
|
|
6101
6101
|
};
|
|
6102
6102
|
}, [M, f, s, h]), {
|
|
6103
|
-
layoutChangeAction:
|
|
6103
|
+
layoutChangeAction: z,
|
|
6104
6104
|
...Y
|
|
6105
6105
|
} = v;
|
|
6106
6106
|
return /* @__PURE__ */ p(
|
|
@@ -6185,7 +6185,7 @@ const Ic = ({
|
|
|
6185
6185
|
});
|
|
6186
6186
|
}, [u, s, r, f, a, t, v]);
|
|
6187
6187
|
return /* @__PURE__ */ p(
|
|
6188
|
-
|
|
6188
|
+
Ln,
|
|
6189
6189
|
{
|
|
6190
6190
|
...m,
|
|
6191
6191
|
open: l,
|
|
@@ -6297,7 +6297,7 @@ const Ic = ({
|
|
|
6297
6297
|
}, [s]), M = g(() => {
|
|
6298
6298
|
const V = Sa(b);
|
|
6299
6299
|
return V.length > 0 ? V : void 0;
|
|
6300
|
-
}, [b]),
|
|
6300
|
+
}, [b]), z = g(() => {
|
|
6301
6301
|
if (x && r) {
|
|
6302
6302
|
const V = O(x, `${r}.activeTabKey`);
|
|
6303
6303
|
if (typeof V == "string") return V;
|
|
@@ -6308,7 +6308,7 @@ const Ic = ({
|
|
|
6308
6308
|
return;
|
|
6309
6309
|
}
|
|
6310
6310
|
x && r && N(x, `${r}.activeTabKey`, V), y && t && A(t, I(y, { key: V }));
|
|
6311
|
-
}, [f, x, r, N, y, t, A]), { titleSlot: $, extraSlot: q, coverSlot: K, actionsSlot:
|
|
6311
|
+
}, [f, x, r, N, y, t, A]), { titleSlot: $, extraSlot: q, coverSlot: K, actionsSlot: L, otherChildren: j, actionsFromChildren: P } = g(() => {
|
|
6312
6312
|
let V = null, it = null, nt = null, et = [];
|
|
6313
6313
|
const vt = [];
|
|
6314
6314
|
let St = !1;
|
|
@@ -6322,8 +6322,8 @@ const Ic = ({
|
|
|
6322
6322
|
}), { titleSlot: V, extraSlot: it, coverSlot: nt, actionsSlot: et, otherChildren: vt, actionsFromChildren: St };
|
|
6323
6323
|
}, [S, o, a, c, d]), X = g(() => {
|
|
6324
6324
|
const V = ln(h, {});
|
|
6325
|
-
return
|
|
6326
|
-
}, [h,
|
|
6325
|
+
return P ? { actionsLiMargin: "0px", ...V } : V;
|
|
6326
|
+
}, [h, P]), U = /* @__PURE__ */ p(
|
|
6327
6327
|
Ze,
|
|
6328
6328
|
{
|
|
6329
6329
|
...D,
|
|
@@ -6332,16 +6332,16 @@ const Ic = ({
|
|
|
6332
6332
|
extra: q,
|
|
6333
6333
|
cover: K,
|
|
6334
6334
|
tabBarExtraContent: u,
|
|
6335
|
-
actions:
|
|
6335
|
+
actions: L.length > 0 ? L : void 0,
|
|
6336
6336
|
tabList: M,
|
|
6337
|
-
activeTabKey:
|
|
6337
|
+
activeTabKey: z,
|
|
6338
6338
|
defaultActiveTabKey: v,
|
|
6339
6339
|
onTabChange: M ? Y : void 0,
|
|
6340
6340
|
styles: _,
|
|
6341
6341
|
children: j
|
|
6342
6342
|
}
|
|
6343
6343
|
);
|
|
6344
|
-
return X && Object.keys(X).length > 0 ? /* @__PURE__ */ p(Kt, { theme: { components: { Card: X } }, children:
|
|
6344
|
+
return X && Object.keys(X).length > 0 ? /* @__PURE__ */ p(Kt, { theme: { components: { Card: X } }, children: U }) : U;
|
|
6345
6345
|
}, hs = ({
|
|
6346
6346
|
id: e,
|
|
6347
6347
|
sessionId: t,
|
|
@@ -6508,14 +6508,14 @@ const Ic = ({
|
|
|
6508
6508
|
]
|
|
6509
6509
|
}
|
|
6510
6510
|
), [v, n, o, y]);
|
|
6511
|
-
return /* @__PURE__ */ p(
|
|
6511
|
+
return /* @__PURE__ */ p(Lr, { ...s, menu: O, onOpenChange: A, children: N });
|
|
6512
6512
|
}, gs = ({
|
|
6513
6513
|
id: e,
|
|
6514
6514
|
sessionId: t,
|
|
6515
6515
|
develop: n,
|
|
6516
6516
|
children: i,
|
|
6517
6517
|
...r
|
|
6518
|
-
}) => /* @__PURE__ */ p(
|
|
6518
|
+
}) => /* @__PURE__ */ p(zr, { ...r, children: i }), ps = ({
|
|
6519
6519
|
id: e,
|
|
6520
6520
|
sessionId: t,
|
|
6521
6521
|
develop: n,
|
|
@@ -6527,7 +6527,7 @@ const Ic = ({
|
|
|
6527
6527
|
develop: n,
|
|
6528
6528
|
children: i,
|
|
6529
6529
|
...r
|
|
6530
|
-
}) => /* @__PURE__ */ p(
|
|
6530
|
+
}) => /* @__PURE__ */ p(zn, { ...r, children: i }), bs = ({
|
|
6531
6531
|
id: e,
|
|
6532
6532
|
sessionId: t,
|
|
6533
6533
|
develop: n,
|
|
@@ -6621,7 +6621,7 @@ const Ic = ({
|
|
|
6621
6621
|
), O = () => f && Wt.Children.count(f) > 0 ? Wt.Children.map(f, (_, M) => {
|
|
6622
6622
|
const R = w[M] || {};
|
|
6623
6623
|
return /* @__PURE__ */ p(
|
|
6624
|
-
|
|
6624
|
+
Ue.Panel,
|
|
6625
6625
|
{
|
|
6626
6626
|
defaultSize: R.defaultSize,
|
|
6627
6627
|
min: R.min,
|
|
@@ -6633,7 +6633,7 @@ const Ic = ({
|
|
|
6633
6633
|
R.key || M
|
|
6634
6634
|
);
|
|
6635
6635
|
}) : w.map((_, M) => /* @__PURE__ */ p(
|
|
6636
|
-
|
|
6636
|
+
Ue.Panel,
|
|
6637
6637
|
{
|
|
6638
6638
|
defaultSize: _.defaultSize || void 0,
|
|
6639
6639
|
min: _.min || void 0,
|
|
@@ -6660,7 +6660,7 @@ const Ic = ({
|
|
|
6660
6660
|
},
|
|
6661
6661
|
_.key || M
|
|
6662
6662
|
)), { layout: N, ...x } = h, E = /* @__PURE__ */ p("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ p(
|
|
6663
|
-
|
|
6663
|
+
Ue,
|
|
6664
6664
|
{
|
|
6665
6665
|
...x,
|
|
6666
6666
|
orientation: r,
|
|
@@ -6730,18 +6730,18 @@ const Ic = ({
|
|
|
6730
6730
|
}, [S, r, C]), E = g(() => n ? x.length > 0 ? x : c || [] : S ? x : c || [], [n, S, x, c]), _ = g(() => {
|
|
6731
6731
|
let R = E;
|
|
6732
6732
|
if (!m) {
|
|
6733
|
-
const
|
|
6734
|
-
R = R.slice(
|
|
6733
|
+
const z = (D - 1) * O, Y = z + O;
|
|
6734
|
+
R = R.slice(z, Y);
|
|
6735
6735
|
}
|
|
6736
6736
|
return u ? R.slice(0, u) : R;
|
|
6737
6737
|
}, [E, m, D, O, u]);
|
|
6738
6738
|
if (!E || E.length === 0)
|
|
6739
6739
|
return a ? /* @__PURE__ */ p(fe, { children: a() }) : /* @__PURE__ */ p("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
6740
|
-
const M = (R,
|
|
6741
|
-
A(R),
|
|
6740
|
+
const M = (R, z) => {
|
|
6741
|
+
A(R), z && N(z);
|
|
6742
6742
|
};
|
|
6743
6743
|
return /* @__PURE__ */ at("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
6744
|
-
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: _.map((R,
|
|
6744
|
+
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: _.map((R, z) => /* @__PURE__ */ p(Wt.Fragment, { children: o ? o(R, z) : /* @__PURE__ */ p("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(R) }) }, R.id || z)) }),
|
|
6745
6745
|
!m && E.length > 0 && /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ p(
|
|
6746
6746
|
qn,
|
|
6747
6747
|
{
|
|
@@ -6999,7 +6999,7 @@ const Ic = ({
|
|
|
6999
6999
|
}
|
|
7000
7000
|
);
|
|
7001
7001
|
const D = l ? S(l) : null;
|
|
7002
|
-
return D ? /* @__PURE__ */ p(Xr, { fallback: /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ p(
|
|
7002
|
+
return D ? /* @__PURE__ */ p(Xr, { fallback: /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ p(Un, {}) }), children: /* @__PURE__ */ p("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: h && y !== null ? /* @__PURE__ */ p(
|
|
7003
7003
|
ae.Provider,
|
|
7004
7004
|
{
|
|
7005
7005
|
value: { dataSet: h, index: y, sessionId: i },
|
|
@@ -7088,12 +7088,22 @@ if (typeof Promise < "u") {
|
|
|
7088
7088
|
}), resolve: t, reject: n };
|
|
7089
7089
|
});
|
|
7090
7090
|
}
|
|
7091
|
+
if (typeof URL < "u") {
|
|
7092
|
+
const e = URL;
|
|
7093
|
+
typeof e.parse != "function" && (e.parse = function(t, n) {
|
|
7094
|
+
try {
|
|
7095
|
+
return arguments.length < 2 || n === void 0 ? new URL(String(t)) : new URL(String(t), String(n));
|
|
7096
|
+
} catch {
|
|
7097
|
+
return null;
|
|
7098
|
+
}
|
|
7099
|
+
});
|
|
7100
|
+
}
|
|
7091
7101
|
let un = !1;
|
|
7092
7102
|
function Ns(e) {
|
|
7093
7103
|
typeof window > "u" || (ve.GlobalWorkerOptions.workerSrc = e, un = !0);
|
|
7094
7104
|
}
|
|
7095
7105
|
function xa(e) {
|
|
7096
|
-
typeof window > "u" || un && ve.GlobalWorkerOptions.workerSrc || (ve.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${ve.version}/build/pdf.worker.min.mjs`, un = !0);
|
|
7106
|
+
typeof window > "u" || un && ve.GlobalWorkerOptions.workerSrc || (ve.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${ve.version}/legacy/build/pdf.worker.min.mjs`, un = !0);
|
|
7097
7107
|
}
|
|
7098
7108
|
const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
7099
7109
|
id: e,
|
|
@@ -7145,7 +7155,7 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7145
7155
|
() => Math.max(1, a || 1)
|
|
7146
7156
|
), O = Et(D);
|
|
7147
7157
|
O.current = D;
|
|
7148
|
-
const [N, x] = dt(null), [E, _] = dt(!!w), [M, R] = dt("all"), [
|
|
7158
|
+
const [N, x] = dt(null), [E, _] = dt(!!w), [M, R] = dt("all"), [z, Y] = dt("width"), [$, q] = dt(1), K = Et(null), L = Et(null), j = Et({}), P = Et(!1), X = Et(null), [U, V] = dt(600), [it, nt] = dt(800), et = Et(0), vt = g(
|
|
7149
7159
|
() => ({
|
|
7150
7160
|
cMapUrl: `https://unpkg.com/pdfjs-dist@${ve.version}/cmaps/`,
|
|
7151
7161
|
cMapPacked: !0
|
|
@@ -7156,7 +7166,7 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7156
7166
|
return J.getDataSet(s, `${St}.targetPage`);
|
|
7157
7167
|
});
|
|
7158
7168
|
xt(() => {
|
|
7159
|
-
const J =
|
|
7169
|
+
const J = L.current;
|
|
7160
7170
|
if (!J) return;
|
|
7161
7171
|
const H = new ResizeObserver(() => {
|
|
7162
7172
|
const wt = J.clientWidth, Ot = J.clientHeight;
|
|
@@ -7166,7 +7176,7 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7166
7176
|
const ut = J.clientWidth, pt = J.clientHeight;
|
|
7167
7177
|
return ut > 0 && V(ut), pt > 0 && nt(pt), () => H.disconnect();
|
|
7168
7178
|
}, [w]);
|
|
7169
|
-
const tt = g(() => Math.max(240,
|
|
7179
|
+
const tt = g(() => Math.max(240, U - 16), [U]), st = g(
|
|
7170
7180
|
() => Math.max(320, it - 16),
|
|
7171
7181
|
[it]
|
|
7172
7182
|
), ct = g(
|
|
@@ -7205,14 +7215,14 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7205
7215
|
({ numPages: J }) => {
|
|
7206
7216
|
x(null), _(!1);
|
|
7207
7217
|
const H = O.current, ut = Math.min(Math.max(1, H), J || 1);
|
|
7208
|
-
S(J), A(ut),
|
|
7218
|
+
S(J), A(ut), P.current = !0, X.current = ut;
|
|
7209
7219
|
},
|
|
7210
7220
|
[]
|
|
7211
7221
|
), ot = B((J) => {
|
|
7212
|
-
x(J), _(!1),
|
|
7222
|
+
x(J), _(!1), P.current = !1, X.current = null;
|
|
7213
7223
|
}, []);
|
|
7214
7224
|
xt(() => {
|
|
7215
|
-
_(!!w), x(null), q(1), S(0),
|
|
7225
|
+
_(!!w), x(null), q(1), S(0), P.current = !!w, X.current = null, j.current = {};
|
|
7216
7226
|
}, [w]), xt(() => {
|
|
7217
7227
|
const J = X.current;
|
|
7218
7228
|
if (J == null || E || C <= 0 || M !== "all") return;
|
|
@@ -7234,13 +7244,13 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7234
7244
|
if (H) return;
|
|
7235
7245
|
const Gt = j.current[Ot];
|
|
7236
7246
|
Gt && Gt.scrollIntoView({ block: "start", behavior: "auto" }), X.current = null, requestAnimationFrame(() => {
|
|
7237
|
-
H || (
|
|
7247
|
+
H || (P.current = !1);
|
|
7238
7248
|
});
|
|
7239
7249
|
});
|
|
7240
7250
|
return;
|
|
7241
7251
|
}
|
|
7242
7252
|
if (ut >= pt) {
|
|
7243
|
-
X.current = null,
|
|
7253
|
+
X.current = null, P.current = !1;
|
|
7244
7254
|
return;
|
|
7245
7255
|
}
|
|
7246
7256
|
requestAnimationFrame(wt);
|
|
@@ -7274,8 +7284,8 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7274
7284
|
}, []), bt = B(() => {
|
|
7275
7285
|
document.fullscreenElement && document.exitFullscreen();
|
|
7276
7286
|
}, []), At = B(() => {
|
|
7277
|
-
if (E || M !== "all" || C <= 0 ||
|
|
7278
|
-
const J =
|
|
7287
|
+
if (E || M !== "all" || C <= 0 || P.current) return;
|
|
7288
|
+
const J = L.current;
|
|
7279
7289
|
if (!J) return;
|
|
7280
7290
|
const H = J.scrollTop + J.clientHeight * 0.35;
|
|
7281
7291
|
let ut = D, pt = Number.POSITIVE_INFINITY;
|
|
@@ -7360,7 +7370,7 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7360
7370
|
children: /* @__PURE__ */ p(
|
|
7361
7371
|
"div",
|
|
7362
7372
|
{
|
|
7363
|
-
ref:
|
|
7373
|
+
ref: L,
|
|
7364
7374
|
onScroll: At,
|
|
7365
7375
|
style: {
|
|
7366
7376
|
flex: 1,
|
|
@@ -7391,7 +7401,7 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7391
7401
|
zIndex: 2,
|
|
7392
7402
|
pointerEvents: "none"
|
|
7393
7403
|
},
|
|
7394
|
-
children: /* @__PURE__ */ p(
|
|
7404
|
+
children: /* @__PURE__ */ p(Un, {})
|
|
7395
7405
|
}
|
|
7396
7406
|
) : null,
|
|
7397
7407
|
/* @__PURE__ */ p(
|
|
@@ -7418,8 +7428,8 @@ const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
|
7418
7428
|
li,
|
|
7419
7429
|
{
|
|
7420
7430
|
pageNumber: J,
|
|
7421
|
-
width:
|
|
7422
|
-
height:
|
|
7431
|
+
width: z === "width" ? ct : void 0,
|
|
7432
|
+
height: z === "height" ? kt : void 0,
|
|
7423
7433
|
renderTextLayer: !1,
|
|
7424
7434
|
renderAnnotationLayer: !1
|
|
7425
7435
|
}
|
|
@@ -7543,20 +7553,20 @@ function te(e, t) {
|
|
|
7543
7553
|
axis: _,
|
|
7544
7554
|
scrollbar: M,
|
|
7545
7555
|
slider: R,
|
|
7546
|
-
theme:
|
|
7556
|
+
theme: z,
|
|
7547
7557
|
state: Y,
|
|
7548
7558
|
// 事件配置
|
|
7549
7559
|
events: $,
|
|
7550
7560
|
// 其余配置直接透传
|
|
7551
7561
|
...q
|
|
7552
|
-
} = a, K = Et(null),
|
|
7562
|
+
} = a, K = Et(null), L = k((yt) => yt.getDataSet), j = k((yt) => yt.addCommand), P = g(() => {
|
|
7553
7563
|
if (v && y) {
|
|
7554
|
-
const W =
|
|
7564
|
+
const W = L(v, y);
|
|
7555
7565
|
if (W !== void 0) return W;
|
|
7556
7566
|
}
|
|
7557
7567
|
const yt = Nt(f);
|
|
7558
7568
|
return yt !== void 0 ? yt : d ? r : [];
|
|
7559
|
-
}, [f, v, y,
|
|
7569
|
+
}, [f, v, y, L, d]), X = (yt) => {
|
|
7560
7570
|
var W;
|
|
7561
7571
|
if (K.current = yt, !d && u) {
|
|
7562
7572
|
const G = Nt($);
|
|
@@ -7571,13 +7581,13 @@ function te(e, t) {
|
|
|
7571
7581
|
});
|
|
7572
7582
|
}
|
|
7573
7583
|
(W = q.onReady) == null || W.call(q, yt);
|
|
7574
|
-
},
|
|
7575
|
-
data:
|
|
7584
|
+
}, U = Nt(s) || {}, V = {
|
|
7585
|
+
data: P,
|
|
7576
7586
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
7577
|
-
height:
|
|
7578
|
-
autoFit: Ta(
|
|
7587
|
+
height: U.height ?? i,
|
|
7588
|
+
autoFit: Ta(U.autoFit, !0),
|
|
7579
7589
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
7580
|
-
...
|
|
7590
|
+
...U,
|
|
7581
7591
|
// 设计器模式禁用动画
|
|
7582
7592
|
animate: d ? !1 : Nt(O),
|
|
7583
7593
|
onReady: X,
|
|
@@ -7602,7 +7612,7 @@ function te(e, t) {
|
|
|
7602
7612
|
ct !== void 0 && (V.scrollbar = ct);
|
|
7603
7613
|
const kt = Nt(R);
|
|
7604
7614
|
kt !== void 0 && (V.slider = kt);
|
|
7605
|
-
const Bt = Nt(
|
|
7615
|
+
const Bt = Nt(z);
|
|
7606
7616
|
Bt !== void 0 && (V.theme = Bt);
|
|
7607
7617
|
const Rt = Nt(Y);
|
|
7608
7618
|
return Rt !== void 0 && (V.state = Rt), /* @__PURE__ */ p(e, { ...V });
|
|
@@ -7846,7 +7856,7 @@ export {
|
|
|
7846
7856
|
ys as AndDropdown,
|
|
7847
7857
|
ys as AndDropdownMenu,
|
|
7848
7858
|
Cs as AndDynamicContainer,
|
|
7849
|
-
|
|
7859
|
+
Lc as AndFormItem,
|
|
7850
7860
|
xs as AndIcon,
|
|
7851
7861
|
Xc as AndImage,
|
|
7852
7862
|
Ic as AndImageGroup,
|
|
@@ -7860,7 +7870,7 @@ export {
|
|
|
7860
7870
|
is as AndMenu,
|
|
7861
7871
|
us as AndModal,
|
|
7862
7872
|
ns as AndPagination,
|
|
7863
|
-
|
|
7873
|
+
Uc as AndParagraph,
|
|
7864
7874
|
ks as AndPdfViewer,
|
|
7865
7875
|
As as AndProductCategory,
|
|
7866
7876
|
bs as AndQRCode,
|
|
@@ -7880,13 +7890,13 @@ export {
|
|
|
7880
7890
|
Jc as AndSteps,
|
|
7881
7891
|
Cc as AndSwitch,
|
|
7882
7892
|
qc as AndTable,
|
|
7883
|
-
|
|
7893
|
+
Pc as AndTabs,
|
|
7884
7894
|
es as AndTag,
|
|
7885
7895
|
Wc as AndText,
|
|
7886
7896
|
Nc as AndTimePicker,
|
|
7887
7897
|
Gc as AndTimeline,
|
|
7888
7898
|
Hc as AndTitle,
|
|
7889
|
-
|
|
7899
|
+
zc as AndTransfer,
|
|
7890
7900
|
Yc as AndTree,
|
|
7891
7901
|
Rc as AndTreeSelect,
|
|
7892
7902
|
jc as AndUpload,
|
|
@@ -7939,7 +7949,7 @@ export {
|
|
|
7939
7949
|
io as useApiService,
|
|
7940
7950
|
uc as useCommandsStore,
|
|
7941
7951
|
Te as useDictOptions,
|
|
7942
|
-
|
|
7952
|
+
Lt as useFieldValidation,
|
|
7943
7953
|
lc as useItemStore,
|
|
7944
7954
|
sc as usePopCommand,
|
|
7945
7955
|
mn as useRemoteOptions,
|