bitz-react-admin-ui 2.1.3 → 2.1.6
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/assets/iconfont/IconColumnCancelFixed.d.ts +7 -0
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +35 -0
- package/dist/assets/iconfont/IconColumnFixedLeft.d.ts +7 -0
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +35 -0
- package/dist/assets/iconfont/IconColumnFixedRight.d.ts +7 -0
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +35 -0
- package/dist/assets/iconfont/IconDragOrder.d.ts +7 -0
- package/dist/assets/iconfont/IconDragOrder.mjs +35 -0
- package/dist/assets/iconfont/index.d.ts +5 -1
- package/dist/assets/iconfont/index.mjs +105 -89
- package/dist/components/BitzFluentInput/index.d.ts +2 -5
- package/dist/components/BitzFluentInput/index.mjs +4 -58
- package/dist/components/BitzFluentSelect/index.d.ts +4 -5
- package/dist/components/BitzFluentSelect/index.mjs +4 -58
- package/dist/components/BitzFluentTreeSelect/index.mjs +6 -0
- package/dist/components/BitzTable/Dropdown/index.mjs +16 -15
- package/dist/components/BitzTable/Select/index.d.ts +4 -0
- package/dist/components/BitzTable/Select/index.mjs +11 -0
- package/dist/components/BitzTable/Select/style.d.ts +4 -0
- package/dist/components/BitzTable/Select/style.mjs +66 -0
- package/dist/components/BitzTable/Store/index.d.ts +52 -9
- package/dist/components/BitzTable/Store/index.mjs +276 -156
- package/dist/components/BitzTable/Store/utils/index.mjs +26 -25
- package/dist/components/BitzTable/Table/index.mjs +226 -229
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +82 -67
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +118 -61
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +4 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +48 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +5 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +84 -15
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +59 -50
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +47 -21
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +11 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +97 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +1 -6
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +63 -32
- package/dist/components/BitzTable/ToolBar/index.d.ts +9 -3
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +148 -123
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +21 -18
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +94 -92
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.d.ts +9 -0
- package/dist/utils/WithFluent.mjs +58 -0
- package/package.json +2 -1
- package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +0 -5
- package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +0 -15
|
@@ -1,79 +1,94 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { create as
|
|
3
|
-
import { Modal as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { BitzTableContext as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { styles as
|
|
13
|
-
import { BitzConfigContext as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
({ title:
|
|
18
|
-
const { token: s } =
|
|
19
|
-
|
|
20
|
-
const {
|
|
21
|
-
persistenceType:
|
|
22
|
-
persistenceKey:
|
|
23
|
-
onlineChange:
|
|
24
|
-
setColumnsMap:
|
|
25
|
-
setSortKeyColumns:
|
|
26
|
-
stylesStorageType:
|
|
27
|
-
stylesStorageKey:
|
|
28
|
-
setTableStylesConfig:
|
|
29
|
-
onlineStylesConfigChange:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
import { create as te, useModal as oe, antdModalV5 as re } from "@ebay/nice-modal-react";
|
|
3
|
+
import { Modal as se, Typography as ne, Card as le, Segmented as ie, Flex as ae, message as D } from "antd";
|
|
4
|
+
import { useState as c, useContext as W, useRef as h, useMemo as ce } from "react";
|
|
5
|
+
import { BitzTableContext as me } from "../../Store/index.mjs";
|
|
6
|
+
import q from "../../../BitzButton/index.mjs";
|
|
7
|
+
import fe from "../../../BitzTheme/index.mjs";
|
|
8
|
+
import de from "../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
9
|
+
import ue from "./StylesConfig/index.mjs";
|
|
10
|
+
import pe from "./ColumnsSort/index.mjs";
|
|
11
|
+
import ge from "./ExportConfig/index.mjs";
|
|
12
|
+
import { styles as ye } from "./style.mjs";
|
|
13
|
+
import { BitzConfigContext as Ce } from "../../../BitzConfigProvider/context.mjs";
|
|
14
|
+
import xe from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
15
|
+
import Se from "../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
16
|
+
const Oe = te(
|
|
17
|
+
({ title: A, onChange: r, getContainer: G }) => {
|
|
18
|
+
const { token: s } = fe.useToken(), n = oe(), [l, m] = c(1), [I, j] = c(!1);
|
|
19
|
+
c(!1);
|
|
20
|
+
const [J, i] = c(!1), {
|
|
21
|
+
persistenceType: P,
|
|
22
|
+
persistenceKey: b,
|
|
23
|
+
onlineChange: f,
|
|
24
|
+
setColumnsMap: Q,
|
|
25
|
+
setSortKeyColumns: U,
|
|
26
|
+
stylesStorageType: X,
|
|
27
|
+
stylesStorageKey: K,
|
|
28
|
+
setTableStylesConfig: d,
|
|
29
|
+
onlineStylesConfigChange: u,
|
|
30
|
+
exportStorageType: Y,
|
|
31
|
+
exportStorageKey: T,
|
|
32
|
+
setTableExportConfig: Z,
|
|
33
|
+
onlineExportConfigChange: p
|
|
34
|
+
} = W(me), o = W(Ce).Table, t = h(null), k = h(null), g = h(null), _ = async () => {
|
|
35
|
+
var B, F, M, R, z, w, N, V, E, O, H, L;
|
|
36
|
+
if (J)
|
|
37
|
+
return;
|
|
38
|
+
i(!0);
|
|
39
|
+
const y = (B = t.current) == null ? void 0 : B.getCheckedKeys();
|
|
40
|
+
if (!(y != null && y.length)) {
|
|
41
|
+
m(2), D.error("表格至少需要显示一列"), i(!1);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (!((F = g.current) == null ? void 0 : F.hasOne())) {
|
|
45
|
+
m(3), D.error("导出设置至少需要一个字段"), i(!1);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const C = (M = k.current) == null ? void 0 : M.getFormInstance(), x = await (C == null ? void 0 : C.getFieldsValue()), $ = Se(x, "stylesScope"), S = {
|
|
49
|
+
...(R = t.current) == null ? void 0 : R.getLeftSortColumns(),
|
|
50
|
+
...(z = t.current) == null ? void 0 : z.getCenterSortColumns(),
|
|
51
|
+
...(w = t.current) == null ? void 0 : w.getRightSortColumns()
|
|
52
|
+
}, ee = [
|
|
53
|
+
...((N = t.current) == null ? void 0 : N.getLeftSortKeys()) ?? [],
|
|
54
|
+
...((V = t.current) == null ? void 0 : V.getCenterSortKeys()) ?? [],
|
|
55
|
+
...((E = t.current) == null ? void 0 : E.getRightSortKeys()) ?? []
|
|
56
|
+
], v = ((O = g.current) == null ? void 0 : O.getExportConfig()) ?? [];
|
|
57
|
+
d == null || d($), (H = o == null ? void 0 : o.setStylesScope) == null || H.call(o, x.stylesScope ? "global" : "current"), Q(S), U(ee), Z(v), X === "online" && K && (u == null || u(K, x)), P === "online" && b && (f == null || f(b, S)), Y === "online" && T && (p == null || p(T, v)), i(!1), r ? (j(!0), (L = r == null ? void 0 : r(S)) == null || L.finally(() => {
|
|
58
|
+
j(!1), n.hide();
|
|
59
|
+
})) : n.hide();
|
|
60
|
+
}, a = ce(() => s.mode === "dark", [s.mode]);
|
|
46
61
|
return /* @__PURE__ */ e.jsx(
|
|
47
|
-
|
|
62
|
+
se,
|
|
48
63
|
{
|
|
49
|
-
className:
|
|
50
|
-
title: /* @__PURE__ */ e.jsx(
|
|
51
|
-
getContainer:
|
|
52
|
-
...
|
|
64
|
+
className: de(ye(s), "tableConfigModal"),
|
|
65
|
+
title: /* @__PURE__ */ e.jsx(ne.Title, { style: { fontSize: 16, margin: 0 }, children: A }),
|
|
66
|
+
getContainer: G,
|
|
67
|
+
...re(n),
|
|
53
68
|
style: {
|
|
54
|
-
"--sortCard-bgColor":
|
|
55
|
-
"--sortCard-titleColor":
|
|
56
|
-
"--radioCard-bgColor":
|
|
57
|
-
"--radioCard-bgHoverColor":
|
|
69
|
+
"--sortCard-bgColor": a ? "#444" : "#f2f2f2",
|
|
70
|
+
"--sortCard-titleColor": a ? "#ccc" : "#777",
|
|
71
|
+
"--radioCard-bgColor": a ? "#444" : "#F2F2F2",
|
|
72
|
+
"--radioCard-bgHoverColor": a ? "#333" : s.colorBgContainer
|
|
58
73
|
},
|
|
59
74
|
styles: { body: { maxHeight: window.innerHeight - 300 } },
|
|
60
75
|
width: 700,
|
|
61
76
|
footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
62
77
|
/* @__PURE__ */ e.jsx(
|
|
63
|
-
|
|
78
|
+
q,
|
|
64
79
|
{
|
|
65
80
|
type: "primary",
|
|
66
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
67
|
-
onClick:
|
|
68
|
-
loading:
|
|
81
|
+
icon: /* @__PURE__ */ e.jsx(xe, {}),
|
|
82
|
+
onClick: _,
|
|
83
|
+
loading: I,
|
|
69
84
|
children: "保存"
|
|
70
85
|
}
|
|
71
86
|
),
|
|
72
|
-
/* @__PURE__ */ e.jsx(
|
|
87
|
+
/* @__PURE__ */ e.jsx(q, { onClick: () => n.hide(), children: "取消" })
|
|
73
88
|
] }),
|
|
74
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
89
|
+
children: /* @__PURE__ */ e.jsxs(le, { className: "container", bordered: !1, children: [
|
|
75
90
|
/* @__PURE__ */ e.jsx("div", { className: "segmentedWrapper", children: /* @__PURE__ */ e.jsx(
|
|
76
|
-
|
|
91
|
+
ie,
|
|
77
92
|
{
|
|
78
93
|
size: "large",
|
|
79
94
|
options: [
|
|
@@ -81,14 +96,14 @@ const be = A(
|
|
|
81
96
|
{ label: "列设置", value: 2 },
|
|
82
97
|
{ label: "导出设置", value: 3 }
|
|
83
98
|
],
|
|
84
|
-
value:
|
|
85
|
-
onChange:
|
|
99
|
+
value: l,
|
|
100
|
+
onChange: m
|
|
86
101
|
}
|
|
87
102
|
) }),
|
|
88
|
-
/* @__PURE__ */ e.jsxs(
|
|
89
|
-
/* @__PURE__ */ e.jsx(
|
|
90
|
-
/* @__PURE__ */ e.jsx(
|
|
91
|
-
/* @__PURE__ */ e.jsx(
|
|
103
|
+
/* @__PURE__ */ e.jsxs(ae, { className: "containerBody", children: [
|
|
104
|
+
/* @__PURE__ */ e.jsx(ue, { ref: k, display: l === 1 }),
|
|
105
|
+
/* @__PURE__ */ e.jsx(pe, { ref: t, display: l === 2 }),
|
|
106
|
+
/* @__PURE__ */ e.jsx(ge, { ref: g, display: l === 3 })
|
|
92
107
|
] })
|
|
93
108
|
] })
|
|
94
109
|
}
|
|
@@ -96,5 +111,5 @@ const be = A(
|
|
|
96
111
|
}
|
|
97
112
|
);
|
|
98
113
|
export {
|
|
99
|
-
|
|
114
|
+
Oe as default
|
|
100
115
|
};
|
|
@@ -1,94 +1,151 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import { useSortable as
|
|
4
|
-
import { CSS as
|
|
5
|
-
import { Flex as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { j as o } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import D, { useState as E, useMemo as F } from "react";
|
|
3
|
+
import { useSortable as R } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
4
|
+
import { CSS as b } from "../../../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
|
|
5
|
+
import { Flex as p, Checkbox as v, Tooltip as w } from "antd";
|
|
6
|
+
import M from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
7
|
+
import O from "../../../../../assets/iconfont/IconDragOrder.mjs";
|
|
8
|
+
import g from "../../../../../assets/iconfont/IconColumnFixedLeft.mjs";
|
|
9
|
+
import h from "../../../../../assets/iconfont/IconColumnFixedRight.mjs";
|
|
10
|
+
import x from "../../../../../assets/iconfont/IconColumnCancelFixed.mjs";
|
|
11
|
+
import "../../../../../assets/iconfont/IconMore.mjs";
|
|
12
|
+
import "../../../../../assets/iconfont/IconIcFluentHomeRegular.mjs";
|
|
13
|
+
import "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
14
|
+
import "../../../../../assets/iconfont/IconTekuansong.mjs";
|
|
15
|
+
import "../../../../../assets/iconfont/IconJincoude.mjs";
|
|
16
|
+
import "../../../../../assets/iconfont/IconZhongdengde.mjs";
|
|
17
|
+
import "../../../../../assets/iconfont/IconTejincou.mjs";
|
|
18
|
+
import "../../../../../assets/iconfont/IconWufengexian.mjs";
|
|
19
|
+
import "../../../../../assets/iconfont/IconHangliefengexian.mjs";
|
|
20
|
+
import "../../../../../assets/iconfont/IconHangfengexian.mjs";
|
|
21
|
+
import "../../../../../assets/iconfont/IconLiefengexian.mjs";
|
|
22
|
+
import "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
|
|
23
|
+
import "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
|
|
24
|
+
import "../../../../../assets/iconfont/IconZhongzhi.mjs";
|
|
25
|
+
import "../../../../../assets/iconfont/IconGaojisousuo.mjs";
|
|
26
|
+
import "../../../../../assets/iconfont/IconSousuo.mjs";
|
|
27
|
+
import "../../../../../assets/iconfont/IconClose.mjs";
|
|
28
|
+
import "../../../../../assets/iconfont/IconFanhui.mjs";
|
|
29
|
+
import "../../../../../assets/iconfont/IconJinggao.mjs";
|
|
30
|
+
import "../../../../../assets/iconfont/IconIcon21.mjs";
|
|
31
|
+
import "../../../../../assets/iconfont/IconChenggong.mjs";
|
|
32
|
+
import "../../../../../assets/iconfont/IconTishi1.mjs";
|
|
33
|
+
import "../../../../../assets/iconfont/IconDuigoux.mjs";
|
|
34
|
+
import "../../../../../assets/iconfont/IconCuowu.mjs";
|
|
35
|
+
import "../../../../../assets/iconfont/IconXinxitishi.mjs";
|
|
36
|
+
import "../../../../../assets/iconfont/IconFabu.mjs";
|
|
37
|
+
import "../../../../../assets/iconfont/IconShanchu1.mjs";
|
|
38
|
+
import "../../../../../assets/iconfont/IconShanchu.mjs";
|
|
39
|
+
import "../../../../../assets/iconfont/IconTuodong.mjs";
|
|
40
|
+
const d = ({ icon: t, className: r, open: e, title: i, onClick: n }) => /* @__PURE__ */ o.jsx(
|
|
41
|
+
w,
|
|
10
42
|
{
|
|
11
|
-
getTooltipContainer: (
|
|
12
|
-
title:
|
|
43
|
+
getTooltipContainer: (s) => s.parentElement,
|
|
44
|
+
title: i,
|
|
13
45
|
open: e ? !1 : void 0,
|
|
14
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ o.jsx(t, { className: r, onClick: n })
|
|
15
47
|
}
|
|
16
48
|
), T = ({
|
|
17
|
-
item:
|
|
49
|
+
item: t,
|
|
18
50
|
placement: r,
|
|
19
51
|
onLeftClick: e,
|
|
20
|
-
onRightClick:
|
|
21
|
-
onCheckboxChange:
|
|
52
|
+
onRightClick: i,
|
|
53
|
+
onCheckboxChange: n
|
|
22
54
|
}) => {
|
|
23
55
|
const {
|
|
24
|
-
attributes:
|
|
25
|
-
isDragging:
|
|
56
|
+
attributes: s,
|
|
57
|
+
isDragging: m,
|
|
26
58
|
setNodeRef: u,
|
|
27
|
-
listeners:
|
|
28
|
-
transform:
|
|
29
|
-
transition:
|
|
30
|
-
} =
|
|
31
|
-
id:
|
|
59
|
+
listeners: j,
|
|
60
|
+
transform: C,
|
|
61
|
+
transition: I
|
|
62
|
+
} = R({
|
|
63
|
+
id: t == null ? void 0 : t.key
|
|
32
64
|
// disabled: item?.disabled,
|
|
33
65
|
}), k = {
|
|
34
|
-
transition:
|
|
35
|
-
transform:
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
66
|
+
transition: I,
|
|
67
|
+
transform: b.Transform.toString(C)
|
|
68
|
+
}, y = ({ target: l }) => {
|
|
69
|
+
n(t.key, l.checked);
|
|
70
|
+
}, [N, S] = E(!1), c = (l) => {
|
|
71
|
+
S(l);
|
|
72
|
+
}, { text: a, icon: f } = F(() => r === "left" ? {
|
|
73
|
+
text: {
|
|
74
|
+
left: "取消固定",
|
|
75
|
+
right: "固定在右侧"
|
|
76
|
+
},
|
|
77
|
+
icon: {
|
|
78
|
+
left: x,
|
|
79
|
+
right: h
|
|
80
|
+
}
|
|
81
|
+
} : r === "center" ? {
|
|
82
|
+
text: {
|
|
83
|
+
left: "固定在左侧",
|
|
84
|
+
right: "固定在右侧"
|
|
85
|
+
},
|
|
86
|
+
icon: {
|
|
87
|
+
left: g,
|
|
88
|
+
right: h
|
|
89
|
+
}
|
|
90
|
+
} : {
|
|
91
|
+
text: {
|
|
92
|
+
left: "固定在左侧",
|
|
93
|
+
right: "取消固定"
|
|
94
|
+
},
|
|
95
|
+
icon: {
|
|
96
|
+
left: g,
|
|
97
|
+
right: x
|
|
98
|
+
}
|
|
99
|
+
}, [r]);
|
|
100
|
+
return /* @__PURE__ */ o.jsxs(
|
|
101
|
+
p,
|
|
45
102
|
{
|
|
46
103
|
align: "center",
|
|
47
|
-
className:
|
|
104
|
+
className: M({ draggingSortItem: m }, "sortItem"),
|
|
48
105
|
style: k,
|
|
49
106
|
ref: u,
|
|
50
|
-
onMouseEnter: () =>
|
|
51
|
-
onMouseLeave: () =>
|
|
52
|
-
...
|
|
107
|
+
onMouseEnter: () => c(!0),
|
|
108
|
+
onMouseLeave: () => c(!1),
|
|
109
|
+
...s,
|
|
53
110
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
111
|
+
/* @__PURE__ */ o.jsx(p, { align: "center", className: "dragIcon", ...j, children: /* @__PURE__ */ o.jsx(O, {}) }),
|
|
112
|
+
/* @__PURE__ */ o.jsx(
|
|
113
|
+
v,
|
|
57
114
|
{
|
|
58
|
-
checked:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
children: o.title
|
|
115
|
+
checked: t.show,
|
|
116
|
+
onChange: y,
|
|
117
|
+
title: t.title,
|
|
118
|
+
children: t.title
|
|
63
119
|
}
|
|
64
120
|
),
|
|
65
|
-
|
|
66
|
-
|
|
121
|
+
/* @__PURE__ */ o.jsxs(
|
|
122
|
+
p,
|
|
67
123
|
{
|
|
68
124
|
style: {
|
|
69
125
|
height: "100%",
|
|
70
126
|
display: N ? "flex" : "none"
|
|
71
127
|
},
|
|
128
|
+
align: "center",
|
|
72
129
|
className: "operation pointerCursor",
|
|
73
130
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
|
|
131
|
+
/* @__PURE__ */ o.jsx(
|
|
132
|
+
d,
|
|
76
133
|
{
|
|
77
134
|
className: "leftOperation",
|
|
78
|
-
title:
|
|
79
|
-
open:
|
|
80
|
-
icon:
|
|
81
|
-
onClick: () => e(
|
|
135
|
+
title: a.left,
|
|
136
|
+
open: m,
|
|
137
|
+
icon: f.left,
|
|
138
|
+
onClick: () => e(t.key, r)
|
|
82
139
|
}
|
|
83
140
|
),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
141
|
+
/* @__PURE__ */ o.jsx(
|
|
142
|
+
d,
|
|
86
143
|
{
|
|
87
144
|
className: "rightOperation",
|
|
88
|
-
title:
|
|
89
|
-
open:
|
|
90
|
-
icon:
|
|
91
|
-
onClick: () =>
|
|
145
|
+
title: a.right,
|
|
146
|
+
open: m,
|
|
147
|
+
icon: f.right,
|
|
148
|
+
onClick: () => i(t.key, r)
|
|
92
149
|
}
|
|
93
150
|
)
|
|
94
151
|
]
|
|
@@ -97,7 +154,7 @@ const g = ({ icon: o, className: r, open: e, title: n, onClick: t }) => /* @__PU
|
|
|
97
154
|
]
|
|
98
155
|
}
|
|
99
156
|
);
|
|
100
|
-
},
|
|
157
|
+
}, It = D.memo(T);
|
|
101
158
|
export {
|
|
102
|
-
|
|
159
|
+
It as default
|
|
103
160
|
};
|
|
@@ -4,11 +4,12 @@ interface ColumnsSortProps {
|
|
|
4
4
|
}
|
|
5
5
|
export interface ColumnsSortImperativeProps {
|
|
6
6
|
getLeftSortColumns: () => any;
|
|
7
|
-
getLeftSortKeys: () => any;
|
|
7
|
+
getLeftSortKeys: () => any[];
|
|
8
8
|
getCenterSortColumns: () => any;
|
|
9
|
-
getCenterSortKeys: () => any;
|
|
9
|
+
getCenterSortKeys: () => any[];
|
|
10
10
|
getRightSortColumns: () => any;
|
|
11
|
-
getRightSortKeys: () => any;
|
|
11
|
+
getRightSortKeys: () => any[];
|
|
12
|
+
getCheckedKeys: () => any[];
|
|
12
13
|
}
|
|
13
14
|
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ColumnsSortProps & import("react").RefAttributes<ColumnsSortImperativeProps>>>;
|
|
14
15
|
export default _default;
|