bitz-react-admin-ui 2.5.6 → 2.5.7
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/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzTable/Store/index.d.ts +14 -1
- package/dist/components/BitzTable/Store/index.mjs +64 -59
- package/dist/components/BitzTable/Table/index.d.ts +2 -5
- package/dist/components/BitzTable/Table/index.mjs +319 -319
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +55 -63
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +160 -162
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +78 -79
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +47 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +6 -4
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +40 -45
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +29 -34
- package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +3 -2
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +38 -56
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +12 -8
- package/dist/components/BitzTable/ToolBar/index.d.ts +1 -1
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Segmented as _, message as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { Segmented as _, message as F } from "antd";
|
|
3
|
+
import { useState as a, useContext as L, useRef as j, useMemo as $ } from "react";
|
|
4
4
|
import { BitzTableContext as ee } from "../../Store/index.mjs";
|
|
5
|
-
import
|
|
5
|
+
import A from "../../../BitzButton/index.mjs";
|
|
6
6
|
import te from "../../../BitzTheme/index.mjs";
|
|
7
7
|
import oe from "./StylesConfig/index.mjs";
|
|
8
8
|
import re from "./ColumnsSort/index.mjs";
|
|
@@ -10,77 +10,77 @@ import se from "./ExportConfig/index.mjs";
|
|
|
10
10
|
import { BitzConfigContext as ne } from "../../../BitzConfigProvider/context.mjs";
|
|
11
11
|
import le from "../Modal/index.mjs";
|
|
12
12
|
import ie from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
13
|
-
import
|
|
14
|
-
const
|
|
15
|
-
open:
|
|
16
|
-
title:
|
|
17
|
-
onChange:
|
|
18
|
-
close:
|
|
19
|
-
getContainer:
|
|
13
|
+
import fe from "../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
14
|
+
const ae = "导出设置", ke = ({
|
|
15
|
+
open: D,
|
|
16
|
+
title: I,
|
|
17
|
+
onChange: s,
|
|
18
|
+
close: n,
|
|
19
|
+
getContainer: q
|
|
20
20
|
}) => {
|
|
21
|
-
const { token: T } = te.useToken(), [
|
|
22
|
-
|
|
23
|
-
const [
|
|
21
|
+
const { token: T } = te.useToken(), [l, i] = a(1), [G, m] = a(!1);
|
|
22
|
+
a(!1);
|
|
23
|
+
const [H, t] = a(!1), {
|
|
24
24
|
persistenceType: J,
|
|
25
25
|
persistenceKey: R,
|
|
26
|
-
onlineChange:
|
|
26
|
+
onlineChange: c,
|
|
27
27
|
setColumnsMap: N,
|
|
28
28
|
stylesStorageType: P,
|
|
29
29
|
stylesStorageKey: b,
|
|
30
|
-
setTableStylesConfig:
|
|
31
|
-
onlineStylesConfigChange:
|
|
30
|
+
setTableStylesConfig: u,
|
|
31
|
+
onlineStylesConfigChange: p,
|
|
32
32
|
defaultTableExportConfig: Q,
|
|
33
33
|
exportStorageType: U,
|
|
34
|
-
exportStorageKey:
|
|
34
|
+
exportStorageKey: k,
|
|
35
35
|
setTableExportConfig: W,
|
|
36
|
-
onlineExportConfigChange:
|
|
37
|
-
} =
|
|
38
|
-
var v, z, B, E,
|
|
39
|
-
if (
|
|
36
|
+
onlineExportConfigChange: d
|
|
37
|
+
} = L(ee), o = L(ne).Table, r = j(null), h = j(null), g = j(null), X = async () => {
|
|
38
|
+
var v, z, B, E, K, M, O, V, w;
|
|
39
|
+
if (H)
|
|
40
40
|
return;
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
if (!(
|
|
44
|
-
|
|
41
|
+
t(!0);
|
|
42
|
+
const x = (v = r.current) == null ? void 0 : v.getCheckedKeys();
|
|
43
|
+
if (!(x != null && x.length)) {
|
|
44
|
+
i(2), F.error("表格至少需要显示一列"), t(!1);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
if (!((z =
|
|
48
|
-
|
|
47
|
+
if (!((z = g.current) == null ? void 0 : z.hasOne())) {
|
|
48
|
+
i(3), F.error("导出设置至少需要一个字段"), t(!1);
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
|
-
const y = (B =
|
|
52
|
-
...(E =
|
|
53
|
-
...(
|
|
54
|
-
...(
|
|
55
|
-
}, S = ((
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
})) :
|
|
51
|
+
const y = (B = h.current) == null ? void 0 : B.getFormInstance(), f = await (y == null ? void 0 : y.getFieldsValue()), Z = fe(f, "stylesScope"), C = {
|
|
52
|
+
...(E = r.current) == null ? void 0 : E.getLeftSortColumns(),
|
|
53
|
+
...(K = r.current) == null ? void 0 : K.getCenterSortColumns(),
|
|
54
|
+
...(M = r.current) == null ? void 0 : M.getRightSortColumns()
|
|
55
|
+
}, S = ((O = g.current) == null ? void 0 : O.getExportConfig()) ?? Q;
|
|
56
|
+
u == null || u(Z), (V = o == null ? void 0 : o.setStylesScope) == null || V.call(o, f.stylesScope ? "global" : "current"), N(C), W(S), P === "online" && b && (p == null || p(b, f)), J === "online" && R && (c == null || c(R, C)), U === "online" && k && (d == null || d(k, S)), t(!1), s ? (m(!0), (w = s == null ? void 0 : s(f, C, S)) == null || w.finally(() => {
|
|
57
|
+
m(!1), n();
|
|
58
|
+
})) : n();
|
|
59
59
|
};
|
|
60
60
|
$(() => T.mode === "dark", [T.mode]);
|
|
61
61
|
const Y = () => {
|
|
62
|
-
|
|
62
|
+
i(1), m(!1), t(!1);
|
|
63
63
|
};
|
|
64
|
-
return /* @__PURE__ */ e.
|
|
64
|
+
return /* @__PURE__ */ e.jsxs(
|
|
65
65
|
le,
|
|
66
66
|
{
|
|
67
|
-
open:
|
|
68
|
-
title:
|
|
69
|
-
close:
|
|
67
|
+
open: D,
|
|
68
|
+
title: I,
|
|
69
|
+
close: n,
|
|
70
70
|
closeAfter: Y,
|
|
71
|
-
getContainer:
|
|
71
|
+
getContainer: q,
|
|
72
72
|
footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
73
73
|
/* @__PURE__ */ e.jsx(
|
|
74
|
-
|
|
74
|
+
A,
|
|
75
75
|
{
|
|
76
76
|
type: "primary",
|
|
77
77
|
icon: /* @__PURE__ */ e.jsx(ie, {}),
|
|
78
78
|
onClick: X,
|
|
79
|
-
loading:
|
|
79
|
+
loading: G,
|
|
80
80
|
children: "保存"
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
/* @__PURE__ */ e.jsx(
|
|
83
|
+
/* @__PURE__ */ e.jsx(A, { onClick: n, children: "取消" })
|
|
84
84
|
] }),
|
|
85
85
|
extra: /* @__PURE__ */ e.jsx(
|
|
86
86
|
_,
|
|
@@ -89,36 +89,28 @@ const fe = "导出设置", he = ({
|
|
|
89
89
|
options: [
|
|
90
90
|
{ label: "外观设置", value: 1 },
|
|
91
91
|
{ label: "列设置", value: 2 },
|
|
92
|
-
{ label:
|
|
92
|
+
{ label: ae, value: 3 }
|
|
93
93
|
],
|
|
94
|
-
value:
|
|
95
|
-
onChange:
|
|
94
|
+
value: l,
|
|
95
|
+
onChange: i
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
children:
|
|
99
|
-
/* @__PURE__ */ e.jsx(oe, { ref:
|
|
100
|
-
/* @__PURE__ */ e.jsx(
|
|
101
|
-
re,
|
|
102
|
-
{
|
|
103
|
-
parentHeight: t,
|
|
104
|
-
ref: s,
|
|
105
|
-
display: i === 2
|
|
106
|
-
}
|
|
107
|
-
),
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ e.jsx(oe, { ref: h, display: l === 1 }),
|
|
100
|
+
/* @__PURE__ */ e.jsx(re, { ref: r, display: l === 2 }),
|
|
108
101
|
/* @__PURE__ */ e.jsx(
|
|
109
102
|
se,
|
|
110
103
|
{
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
display: i === 3,
|
|
104
|
+
refInstance: g,
|
|
105
|
+
display: l === 3,
|
|
114
106
|
showSelectRadio: !1
|
|
115
107
|
}
|
|
116
108
|
)
|
|
117
|
-
]
|
|
109
|
+
]
|
|
118
110
|
}
|
|
119
111
|
);
|
|
120
112
|
};
|
|
121
113
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
ke as default,
|
|
115
|
+
ae as exportConfigTitle
|
|
124
116
|
};
|
|
@@ -1,269 +1,267 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as l } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { findParentFirstNodeByClass as pe } from "../../../../../utils/findNode.mjs";
|
|
2
3
|
import { css as me } from "../../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
3
|
-
import { theme as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { useImmer as
|
|
6
|
-
import Se from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
4
|
+
import { theme as ge, Flex as D, Typography as P, Space as xe, Checkbox as Ce, Button as ye } from "antd";
|
|
5
|
+
import { forwardRef as ke, useRef as we, useState as m, useEffect as O, useMemo as S, useContext as Me, useImperativeHandle as Se, memo as Le } from "react";
|
|
6
|
+
import { useImmer as je } from "../../../../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
|
|
7
7
|
import "../../../index.mjs";
|
|
8
|
-
import { columnSort as be, genColumnKey as Ke, updateNestedObject as
|
|
9
|
-
import
|
|
10
|
-
import { BitzTableContext as
|
|
11
|
-
import
|
|
8
|
+
import { columnSort as be, genColumnKey as Ke, updateNestedObject as L } from "../../../Store/utils/index.mjs";
|
|
9
|
+
import $ from "./DndList.mjs";
|
|
10
|
+
import { BitzTableContext as Re } from "../../../Store/index.mjs";
|
|
11
|
+
import ve from "../../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
|
|
12
12
|
import Ee from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
13
|
-
const
|
|
14
|
-
({ display:
|
|
15
|
-
const { token:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
left: 0,
|
|
25
|
-
right: 0
|
|
13
|
+
const Ne = ke(
|
|
14
|
+
({ display: q }, ee) => {
|
|
15
|
+
const { token: te } = ge.useToken(), N = we(null), [A, se] = m(0);
|
|
16
|
+
O(() => {
|
|
17
|
+
const e = pe(N.current, "ant-card-body");
|
|
18
|
+
if (e) {
|
|
19
|
+
const { paddingBlockStart: s, paddingBlockEnd: t } = window.getComputedStyle(e), n = parseInt(s) + parseInt(t), o = e.clientHeight - n, c = e.firstElementChild;
|
|
20
|
+
if (c) {
|
|
21
|
+
const { rowGap: r } = window.getComputedStyle(c), i = c == null ? void 0 : c.querySelector(".extraContent"), p = i == null ? void 0 : i.clientHeight, a = o - p - parseInt(r), { rowGap: _ } = window.getComputedStyle(N.current), z = a - parseInt(_) - 36;
|
|
22
|
+
se(z);
|
|
23
|
+
}
|
|
26
24
|
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}, { defaultColumnKeyMap:
|
|
32
|
-
|
|
33
|
-
const e = Object.keys(
|
|
34
|
-
|
|
25
|
+
}, [N.current]);
|
|
26
|
+
const oe = S(() => ({
|
|
27
|
+
display: q ? "flex" : "none",
|
|
28
|
+
width: "100%"
|
|
29
|
+
}), [q]), { defaultColumnKeyMap: J, baseColumns: Q, columnsMap: U } = Me(Re), [d, V] = je({});
|
|
30
|
+
O(() => {
|
|
31
|
+
const e = Object.keys(U).length ? U : J;
|
|
32
|
+
V(e);
|
|
35
33
|
}, []);
|
|
36
|
-
const
|
|
37
|
-
var
|
|
38
|
-
const { key: o, dataIndex: c, children:
|
|
34
|
+
const W = S(() => ((s, t) => s.map((n) => {
|
|
35
|
+
var z;
|
|
36
|
+
const { key: o, dataIndex: c, children: r, ...i } = n, p = Ke(
|
|
39
37
|
n,
|
|
40
|
-
[t == null ? void 0 : t.columnKey,
|
|
41
|
-
),
|
|
38
|
+
[t == null ? void 0 : t.columnKey, i.index].join("-")
|
|
39
|
+
), a = d[p || "null"] || {
|
|
42
40
|
show: !0
|
|
43
41
|
};
|
|
44
42
|
return {
|
|
45
|
-
key:
|
|
46
|
-
...Ee(
|
|
43
|
+
key: p,
|
|
44
|
+
...Ee(i, ["className"]),
|
|
47
45
|
selectable: !1,
|
|
48
|
-
disabled:
|
|
49
|
-
disableCheckbox: typeof
|
|
46
|
+
disabled: a.disabled === !0,
|
|
47
|
+
disableCheckbox: typeof a.disabled == "boolean" ? a == null ? void 0 : a.disabled : (z = a == null ? void 0 : a.disabled) == null ? void 0 : z.checkbox,
|
|
50
48
|
isLeaf: t ? !0 : void 0,
|
|
51
|
-
...
|
|
49
|
+
...a
|
|
52
50
|
};
|
|
53
|
-
}))(
|
|
54
|
-
|
|
51
|
+
}))(Q ?? []).sort(be(d)), [d, Q]);
|
|
52
|
+
O(() => {
|
|
55
53
|
var n, o;
|
|
56
54
|
const e = {}, s = {}, t = {};
|
|
57
|
-
for (const c in
|
|
58
|
-
((n =
|
|
59
|
-
|
|
60
|
-
}, [
|
|
61
|
-
const [
|
|
62
|
-
|
|
55
|
+
for (const c in d)
|
|
56
|
+
((n = d[c]) == null ? void 0 : n.fixed) === "left" ? e[c] = d[c] : ((o = d[c]) == null ? void 0 : o.fixed) === "right" ? s[c] = d[c] : t[c] = d[c];
|
|
57
|
+
g(e), x(s), C(t);
|
|
58
|
+
}, [d]);
|
|
59
|
+
const [j, I] = m([]), [y, b] = m([]), [h, g] = m({}), [K, H] = m([]), [k, R] = m([]), [f, x] = m({}), [v, T] = m([]), [w, E] = m([]), [u, C] = m({});
|
|
60
|
+
O(() => {
|
|
63
61
|
const e = [], s = [], t = [], n = [], o = [], c = [];
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}),
|
|
67
|
-
}, [
|
|
62
|
+
W.forEach((r) => {
|
|
63
|
+
r.fixed === "left" ? (e.push(r), s.push(r.key)) : r.fixed === "right" ? (t.push(r), n.push(r.key)) : (o.push(r), c.push(r.key));
|
|
64
|
+
}), I(e), b(s), H(t), R(n), T(o), E(c);
|
|
65
|
+
}, [W]);
|
|
68
66
|
const ne = (e) => {
|
|
69
|
-
|
|
67
|
+
g(e);
|
|
70
68
|
}, ce = (e, s) => {
|
|
71
|
-
|
|
69
|
+
g(e), b(s);
|
|
72
70
|
}, re = (e) => {
|
|
73
71
|
x(e);
|
|
74
72
|
}, le = (e, s) => {
|
|
75
|
-
x(e),
|
|
73
|
+
x(e), R(s);
|
|
76
74
|
}, ie = (e) => {
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
},
|
|
75
|
+
C(e);
|
|
76
|
+
}, ae = (e, s) => {
|
|
77
|
+
C(e), E(s);
|
|
78
|
+
}, X = (e, s, t, n) => {
|
|
81
79
|
const o = { ...s[e] };
|
|
82
|
-
delete s[e],
|
|
83
|
-
...
|
|
84
|
-
[e]: { ...o, fixed: void 0, order:
|
|
80
|
+
delete s[e], C({
|
|
81
|
+
...u,
|
|
82
|
+
[e]: { ...o, fixed: void 0, order: v.length }
|
|
85
83
|
});
|
|
86
|
-
const c = t.findIndex((
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
return
|
|
90
|
-
},
|
|
84
|
+
const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
|
|
85
|
+
T([...v, { ...r, fixed: void 0 }]);
|
|
86
|
+
const i = n.splice(c, 1);
|
|
87
|
+
return E([...w, ...i]), { map: s, list: t, keys: n };
|
|
88
|
+
}, Y = (e, s, t, n) => {
|
|
91
89
|
const o = { ...s[e] };
|
|
92
|
-
delete s[e],
|
|
90
|
+
delete s[e], g({
|
|
93
91
|
...h,
|
|
94
|
-
[e]: { ...o, fixed: "left", order:
|
|
92
|
+
[e]: { ...o, fixed: "left", order: j.length, show: !0 }
|
|
95
93
|
});
|
|
96
|
-
const c = t.findIndex((
|
|
97
|
-
|
|
98
|
-
const
|
|
99
|
-
return
|
|
100
|
-
},
|
|
94
|
+
const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
|
|
95
|
+
I([...j, { ...r, fixed: "left" }]);
|
|
96
|
+
const i = n.splice(c, 1);
|
|
97
|
+
return b([...y, ...i]), { map: s, list: t, keys: n };
|
|
98
|
+
}, Z = (e, s, t, n) => {
|
|
101
99
|
const o = { ...s[e] };
|
|
102
100
|
delete s[e], x({
|
|
103
|
-
...
|
|
101
|
+
...f,
|
|
104
102
|
[e]: {
|
|
105
103
|
...o,
|
|
106
104
|
fixed: "right",
|
|
107
|
-
order:
|
|
105
|
+
order: K.length,
|
|
108
106
|
show: !0
|
|
109
107
|
}
|
|
110
108
|
});
|
|
111
|
-
const c = t.findIndex((
|
|
112
|
-
|
|
113
|
-
const
|
|
114
|
-
return
|
|
115
|
-
},
|
|
109
|
+
const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
|
|
110
|
+
H([...K, { ...r, fixed: "right" }]);
|
|
111
|
+
const i = n.splice(c, 1);
|
|
112
|
+
return R([...k, ...i]), { map: s, list: t, keys: n };
|
|
113
|
+
}, F = (e, s) => {
|
|
116
114
|
if (s === "left") {
|
|
117
|
-
const { map: t, list: n, keys: o } =
|
|
115
|
+
const { map: t, list: n, keys: o } = X(
|
|
118
116
|
e,
|
|
119
117
|
h,
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
j,
|
|
119
|
+
y
|
|
122
120
|
);
|
|
123
|
-
|
|
121
|
+
g({ ...t }), I([...n]), b([...o]);
|
|
124
122
|
} else if (s === "center") {
|
|
125
|
-
const { map: t, list: n, keys: o } =
|
|
123
|
+
const { map: t, list: n, keys: o } = Y(
|
|
126
124
|
e,
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
u,
|
|
126
|
+
v,
|
|
129
127
|
w
|
|
130
128
|
);
|
|
131
|
-
|
|
129
|
+
C({ ...t }), T([...n]), E([...o]);
|
|
132
130
|
} else {
|
|
133
|
-
const { map: t, list: n, keys: o } =
|
|
131
|
+
const { map: t, list: n, keys: o } = Y(
|
|
134
132
|
e,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
f,
|
|
134
|
+
K,
|
|
135
|
+
k
|
|
138
136
|
);
|
|
139
|
-
x({ ...t }),
|
|
137
|
+
x({ ...t }), H([...n]), R([...o]);
|
|
140
138
|
}
|
|
141
|
-
},
|
|
139
|
+
}, G = (e, s) => {
|
|
142
140
|
if (s === "left") {
|
|
143
|
-
const { map: t, list: n, keys: o } =
|
|
141
|
+
const { map: t, list: n, keys: o } = Z(
|
|
144
142
|
e,
|
|
145
143
|
h,
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
j,
|
|
145
|
+
y
|
|
148
146
|
);
|
|
149
|
-
|
|
147
|
+
g({ ...t }), I([...n]), b([...o]);
|
|
150
148
|
} else if (s === "center") {
|
|
151
|
-
const { map: t, list: n, keys: o } =
|
|
149
|
+
const { map: t, list: n, keys: o } = Z(
|
|
152
150
|
e,
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
u,
|
|
152
|
+
v,
|
|
155
153
|
w
|
|
156
154
|
);
|
|
157
|
-
|
|
155
|
+
C({ ...t }), T([...n]), E([...o]);
|
|
158
156
|
} else {
|
|
159
|
-
const { map: t, list: n, keys: o } =
|
|
157
|
+
const { map: t, list: n, keys: o } = X(
|
|
160
158
|
e,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
f,
|
|
160
|
+
K,
|
|
161
|
+
k
|
|
164
162
|
);
|
|
165
|
-
x({ ...t }),
|
|
163
|
+
x({ ...t }), H([...n]), R([...o]);
|
|
166
164
|
}
|
|
167
|
-
},
|
|
168
|
-
e.checked ? (
|
|
169
|
-
},
|
|
165
|
+
}, de = ({ target: e }) => {
|
|
166
|
+
e.checked ? (g(L(h, "show", !0)), C(L(u, "show", !0)), x(L(f, "show", !0))) : (g(L(h, "show", !1)), C(L(u, "show", !1)), x(L(f, "show", !1)));
|
|
167
|
+
}, B = S(() => [...y, ...w, ...k], [y, w, k]), M = S(() => {
|
|
170
168
|
var s, t, n;
|
|
171
169
|
const e = [];
|
|
172
170
|
for (const o in h)
|
|
173
171
|
(s = h[o]) != null && s.show && e.push(o);
|
|
174
|
-
for (const o in
|
|
175
|
-
(t =
|
|
176
|
-
for (const o in
|
|
177
|
-
(n =
|
|
172
|
+
for (const o in u)
|
|
173
|
+
(t = u[o]) != null && t.show && e.push(o);
|
|
174
|
+
for (const o in f)
|
|
175
|
+
(n = f[o]) != null && n.show && e.push(o);
|
|
178
176
|
return e;
|
|
179
|
-
}, [h,
|
|
180
|
-
|
|
177
|
+
}, [h, u, f]), he = S(() => B.length === M.length, [B, M]), fe = S(() => M.length > 0 && M.length < B.length, [M, B]), ue = () => {
|
|
178
|
+
V({ ...J });
|
|
181
179
|
};
|
|
182
|
-
return
|
|
180
|
+
return Se(ee, () => ({
|
|
183
181
|
getLeftSortColumns: () => h,
|
|
184
|
-
getCenterSortColumns: () =>
|
|
185
|
-
getRightSortColumns: () =>
|
|
186
|
-
getCheckedKeys: () =>
|
|
187
|
-
})), /* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
|
|
182
|
+
getCenterSortColumns: () => u,
|
|
183
|
+
getRightSortColumns: () => f,
|
|
184
|
+
getCheckedKeys: () => M
|
|
185
|
+
})), /* @__PURE__ */ l.jsxs(D, { vertical: !0, gap: 16, style: oe, ref: N, children: [
|
|
186
|
+
/* @__PURE__ */ l.jsxs("div", { className: "sortContent", children: [
|
|
187
|
+
/* @__PURE__ */ l.jsxs(D, { vertical: !0, className: "sortCard", gap: 6, style: { height: A }, children: [
|
|
188
|
+
/* @__PURE__ */ l.jsx(P.Title, { level: 5, className: "title", children: "固定在左侧" }),
|
|
189
|
+
/* @__PURE__ */ l.jsx(
|
|
190
|
+
$,
|
|
193
191
|
{
|
|
194
192
|
placement: "left",
|
|
195
|
-
dataList:
|
|
196
|
-
keys:
|
|
193
|
+
dataList: j,
|
|
194
|
+
keys: y,
|
|
197
195
|
columnsMap: h,
|
|
198
|
-
onLeftClick:
|
|
199
|
-
onRightClick:
|
|
196
|
+
onLeftClick: F,
|
|
197
|
+
onRightClick: G,
|
|
200
198
|
onChange: ne,
|
|
201
199
|
onMoveEnd: ce
|
|
202
200
|
}
|
|
203
201
|
)
|
|
204
202
|
] }),
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
|
|
203
|
+
/* @__PURE__ */ l.jsxs(D, { vertical: !0, className: "sortCard", gap: 6, style: { height: A }, children: [
|
|
204
|
+
/* @__PURE__ */ l.jsx(P.Title, { level: 5, className: "title", children: "不固定" }),
|
|
205
|
+
/* @__PURE__ */ l.jsx(
|
|
206
|
+
$,
|
|
209
207
|
{
|
|
210
208
|
placement: "center",
|
|
211
|
-
dataList:
|
|
209
|
+
dataList: v,
|
|
212
210
|
keys: w,
|
|
213
|
-
columnsMap:
|
|
214
|
-
onLeftClick:
|
|
215
|
-
onRightClick:
|
|
211
|
+
columnsMap: u,
|
|
212
|
+
onLeftClick: F,
|
|
213
|
+
onRightClick: G,
|
|
216
214
|
onChange: ie,
|
|
217
|
-
onMoveEnd:
|
|
215
|
+
onMoveEnd: ae
|
|
218
216
|
}
|
|
219
217
|
)
|
|
220
218
|
] }),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
|
|
219
|
+
/* @__PURE__ */ l.jsxs(D, { vertical: !0, className: "sortCard", gap: 6, style: { height: A }, children: [
|
|
220
|
+
/* @__PURE__ */ l.jsx(P.Title, { level: 5, className: "title", children: "固定在右侧" }),
|
|
221
|
+
/* @__PURE__ */ l.jsx(
|
|
222
|
+
$,
|
|
225
223
|
{
|
|
226
224
|
placement: "right",
|
|
227
|
-
dataList:
|
|
228
|
-
keys:
|
|
229
|
-
columnsMap:
|
|
230
|
-
onLeftClick:
|
|
231
|
-
onRightClick:
|
|
225
|
+
dataList: K,
|
|
226
|
+
keys: k,
|
|
227
|
+
columnsMap: f,
|
|
228
|
+
onLeftClick: F,
|
|
229
|
+
onRightClick: G,
|
|
232
230
|
onChange: re,
|
|
233
231
|
onMoveEnd: le
|
|
234
232
|
}
|
|
235
233
|
)
|
|
236
234
|
] })
|
|
237
235
|
] }),
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
|
|
236
|
+
/* @__PURE__ */ l.jsxs(xe, { size: 16, align: "end", style: { height: 36 }, children: [
|
|
237
|
+
/* @__PURE__ */ l.jsx(
|
|
238
|
+
Ce,
|
|
241
239
|
{
|
|
242
240
|
indeterminate: fe,
|
|
243
|
-
checked:
|
|
244
|
-
onChange:
|
|
245
|
-
children:
|
|
241
|
+
checked: he,
|
|
242
|
+
onChange: de,
|
|
243
|
+
children: "全选"
|
|
246
244
|
}
|
|
247
245
|
),
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
|
|
246
|
+
/* @__PURE__ */ l.jsx(
|
|
247
|
+
ye,
|
|
250
248
|
{
|
|
251
249
|
type: "link",
|
|
252
|
-
icon: /* @__PURE__ */
|
|
250
|
+
icon: /* @__PURE__ */ l.jsx(ve, {}),
|
|
253
251
|
size: "small",
|
|
254
252
|
onClick: ue,
|
|
255
253
|
className: me`
|
|
256
254
|
&:hover {
|
|
257
|
-
color: ${
|
|
255
|
+
color: ${te.colorPrimary} !important;
|
|
258
256
|
}
|
|
259
257
|
`,
|
|
260
|
-
children:
|
|
258
|
+
children: "重置"
|
|
261
259
|
}
|
|
262
260
|
)
|
|
263
261
|
] })
|
|
264
262
|
] });
|
|
265
263
|
}
|
|
266
|
-
),
|
|
264
|
+
), qe = Le(Ne);
|
|
267
265
|
export {
|
|
268
|
-
|
|
266
|
+
qe as default
|
|
269
267
|
};
|
|
@@ -11,6 +11,6 @@ interface ExportConfigComponentProps<T extends boolean> {
|
|
|
11
11
|
showSelectRadio: T;
|
|
12
12
|
refInstance: Ref<ExportConfigImperativeProps<BooleanConvertType<T>>>;
|
|
13
13
|
}
|
|
14
|
-
declare function ExportConfig<T extends boolean>({ display, showSelectRadio,
|
|
14
|
+
declare function ExportConfig<T extends boolean>({ display, showSelectRadio, refInstance, }: ExportConfigComponentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
declare const _default: import("react").MemoExoticComponent<typeof ExportConfig>;
|
|
16
16
|
export default _default;
|