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