bitz-react-admin-ui 2.1.3 → 2.1.5
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/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- 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/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- 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/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- 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 +43 -9
- package/dist/components/BitzTable/Store/index.mjs +259 -146
- package/dist/components/BitzTable/Store/utils/index.mjs +26 -25
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +73 -61
- 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 +5 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +89 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +1 -2
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +46 -32
- package/dist/components/BitzTable/ToolBar/index.d.ts +5 -2
- 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/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- 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/dist/utils/WithFluent.d.ts +9 -0
- package/dist/utils/WithFluent.mjs +58 -0
- package/dist/utils/time.mjs +1 -1
- 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,55 +1,67 @@
|
|
|
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
|
-
|
|
2
|
+
import { create as $, useModal as ee, antdModalV5 as te } from "@ebay/nice-modal-react";
|
|
3
|
+
import { Modal as oe, Typography as re, Card as se, Segmented as ne, Flex as le, message as L } from "antd";
|
|
4
|
+
import { useState as x, useContext as D, useRef as S, useMemo as ie } from "react";
|
|
5
|
+
import { BitzTableContext as ae } from "../../Store/index.mjs";
|
|
6
|
+
import W from "../../../BitzButton/index.mjs";
|
|
7
|
+
import ce from "../../../BitzTheme/index.mjs";
|
|
8
|
+
import me from "../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
9
|
+
import fe from "./StylesConfig/index.mjs";
|
|
10
|
+
import de from "./ColumnsSort/index.mjs";
|
|
11
|
+
import ue from "./ExportConfig/index.mjs";
|
|
12
|
+
import { styles as pe } from "./style.mjs";
|
|
13
|
+
import { BitzConfigContext as ge } from "../../../BitzConfigProvider/context.mjs";
|
|
14
|
+
import ye from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
15
|
+
import Ce from "../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
16
|
+
const Ve = $(
|
|
17
|
+
({ title: q, onChange: r, getContainer: A }) => {
|
|
18
|
+
const { token: s } = ce.useToken(), n = ee(), [l, a] = x(1), [G, h] = x(!1);
|
|
19
|
+
x(!1);
|
|
20
20
|
const {
|
|
21
|
-
persistenceType:
|
|
22
|
-
persistenceKey:
|
|
23
|
-
onlineChange:
|
|
24
|
-
setColumnsMap:
|
|
25
|
-
setSortKeyColumns:
|
|
26
|
-
stylesStorageType:
|
|
27
|
-
stylesStorageKey:
|
|
21
|
+
persistenceType: I,
|
|
22
|
+
persistenceKey: j,
|
|
23
|
+
onlineChange: c,
|
|
24
|
+
setColumnsMap: J,
|
|
25
|
+
setSortKeyColumns: P,
|
|
26
|
+
stylesStorageType: Q,
|
|
27
|
+
stylesStorageKey: b,
|
|
28
28
|
setTableStylesConfig: m,
|
|
29
|
-
onlineStylesConfigChange:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
29
|
+
onlineStylesConfigChange: f,
|
|
30
|
+
exportStorageType: U,
|
|
31
|
+
exportStorageKey: K,
|
|
32
|
+
setTableExportConfig: X,
|
|
33
|
+
onlineExportConfigChange: d
|
|
34
|
+
} = D(ae), o = D(ge).Table, t = S(null), T = S(null), u = S(null), Y = async () => {
|
|
35
|
+
var v, B, F, M, R, z, w, N, V, E, O, H;
|
|
36
|
+
const p = (v = t.current) == null ? void 0 : v.getCheckedKeys();
|
|
37
|
+
if (!(p != null && p.length)) {
|
|
38
|
+
a(2), L.error("表格至少需要显示一列");
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (!((B = u.current) == null ? void 0 : B.hasOne())) {
|
|
42
|
+
a(3), L.error("导出设置至少需要一个字段");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const g = (F = T.current) == null ? void 0 : F.getFormInstance(), y = await (g == null ? void 0 : g.getFieldsValue()), Z = Ce(y, "stylesScope"), C = {
|
|
46
|
+
...(M = t.current) == null ? void 0 : M.getLeftSortColumns(),
|
|
47
|
+
...(R = t.current) == null ? void 0 : R.getCenterSortColumns(),
|
|
48
|
+
...(z = t.current) == null ? void 0 : z.getRightSortColumns()
|
|
49
|
+
}, _ = [
|
|
50
|
+
...((w = t.current) == null ? void 0 : w.getLeftSortKeys()) ?? [],
|
|
51
|
+
...((N = t.current) == null ? void 0 : N.getCenterSortKeys()) ?? [],
|
|
52
|
+
...((V = t.current) == null ? void 0 : V.getRightSortKeys()) ?? []
|
|
53
|
+
], k = ((E = u.current) == null ? void 0 : E.getExportConfig()) ?? [];
|
|
54
|
+
m == null || m(Z), (O = o == null ? void 0 : o.setStylesScope) == null || O.call(o, y.stylesScope ? "global" : "current"), J(C), P(_), X(k), Q === "online" && b && (f == null || f(b, y)), I === "online" && j && (c == null || c(j, C)), U === "online" && K && (d == null || d(K, k)), r ? (h(!0), (H = r == null ? void 0 : r(C)) == null || H.finally(() => {
|
|
55
|
+
h(!1), n.hide();
|
|
56
|
+
})) : n.hide();
|
|
57
|
+
}, i = ie(() => s.mode === "dark", [s.mode]);
|
|
46
58
|
return /* @__PURE__ */ e.jsx(
|
|
47
|
-
|
|
59
|
+
oe,
|
|
48
60
|
{
|
|
49
|
-
className:
|
|
50
|
-
title: /* @__PURE__ */ e.jsx(
|
|
51
|
-
getContainer:
|
|
52
|
-
...
|
|
61
|
+
className: me(pe(s), "tableConfigModal"),
|
|
62
|
+
title: /* @__PURE__ */ e.jsx(re.Title, { style: { fontSize: 16, margin: 0 }, children: q }),
|
|
63
|
+
getContainer: A,
|
|
64
|
+
...te(n),
|
|
53
65
|
style: {
|
|
54
66
|
"--sortCard-bgColor": i ? "#444" : "#f2f2f2",
|
|
55
67
|
"--sortCard-titleColor": i ? "#ccc" : "#777",
|
|
@@ -60,20 +72,20 @@ const be = A(
|
|
|
60
72
|
width: 700,
|
|
61
73
|
footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
62
74
|
/* @__PURE__ */ e.jsx(
|
|
63
|
-
|
|
75
|
+
W,
|
|
64
76
|
{
|
|
65
77
|
type: "primary",
|
|
66
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
67
|
-
onClick:
|
|
68
|
-
loading:
|
|
78
|
+
icon: /* @__PURE__ */ e.jsx(ye, {}),
|
|
79
|
+
onClick: Y,
|
|
80
|
+
loading: G,
|
|
69
81
|
children: "保存"
|
|
70
82
|
}
|
|
71
83
|
),
|
|
72
|
-
/* @__PURE__ */ e.jsx(
|
|
84
|
+
/* @__PURE__ */ e.jsx(W, { onClick: () => n.hide(), children: "取消" })
|
|
73
85
|
] }),
|
|
74
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
86
|
+
children: /* @__PURE__ */ e.jsxs(se, { className: "container", bordered: !1, children: [
|
|
75
87
|
/* @__PURE__ */ e.jsx("div", { className: "segmentedWrapper", children: /* @__PURE__ */ e.jsx(
|
|
76
|
-
|
|
88
|
+
ne,
|
|
77
89
|
{
|
|
78
90
|
size: "large",
|
|
79
91
|
options: [
|
|
@@ -81,14 +93,14 @@ const be = A(
|
|
|
81
93
|
{ label: "列设置", value: 2 },
|
|
82
94
|
{ label: "导出设置", value: 3 }
|
|
83
95
|
],
|
|
84
|
-
value:
|
|
85
|
-
onChange:
|
|
96
|
+
value: l,
|
|
97
|
+
onChange: a
|
|
86
98
|
}
|
|
87
99
|
) }),
|
|
88
|
-
/* @__PURE__ */ e.jsxs(
|
|
89
|
-
/* @__PURE__ */ e.jsx(
|
|
90
|
-
/* @__PURE__ */ e.jsx(
|
|
91
|
-
/* @__PURE__ */ e.jsx(
|
|
100
|
+
/* @__PURE__ */ e.jsxs(le, { className: "containerBody", children: [
|
|
101
|
+
/* @__PURE__ */ e.jsx(fe, { ref: T, display: l === 1 }),
|
|
102
|
+
/* @__PURE__ */ e.jsx(de, { ref: t, display: l === 2 }),
|
|
103
|
+
/* @__PURE__ */ e.jsx(ue, { ref: u, display: l === 3 })
|
|
92
104
|
] })
|
|
93
105
|
] })
|
|
94
106
|
}
|
|
@@ -96,5 +108,5 @@ const be = A(
|
|
|
96
108
|
}
|
|
97
109
|
);
|
|
98
110
|
export {
|
|
99
|
-
|
|
111
|
+
Ve as default
|
|
100
112
|
};
|
|
@@ -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;
|