bitz-react-admin-ui 2.2.0 → 2.2.2
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/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- 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/BitzPagination/index.d.ts +4 -0
- package/dist/components/BitzPagination/index.mjs +22 -21
- package/dist/components/BitzTable/ActionCol/index.mjs +1 -7
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +18 -45
- package/dist/components/BitzTable/Store/index.mjs +1 -3
- package/dist/components/BitzTable/Table/SortTableContext.d.ts +2 -2
- package/dist/components/BitzTable/Table/SortableRow.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.d.ts +9 -1
- package/dist/components/BitzTable/Table/index.mjs +309 -268
- package/dist/components/BitzTable/Table/style.d.ts +2 -1
- package/dist/components/BitzTable/Table/style.mjs +17 -15
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +17 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +11 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +21 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +6 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +19 -24
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +41 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +118 -126
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +6 -2
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +9 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +27 -1
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +28 -24
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -4
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +0 -1
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +13 -18
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +56 -52
- package/dist/components/BitzTable/ToolBar/style.mjs +46 -46
- package/dist/components/BitzTable/index.d.ts +2 -2
- 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/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const getCssVar: ({ height, evenRowBgColor, colorBgContainer, table, gap, borderColor, scrollbarWidth, other, }: {
|
|
1
|
+
export declare const getCssVar: ({ height, fontFamily, evenRowBgColor, colorBgContainer, table, gap, borderColor, scrollbarWidth, other, }: {
|
|
2
2
|
height: any;
|
|
3
|
+
fontFamily: any;
|
|
3
4
|
evenRowBgColor: any;
|
|
4
5
|
colorBgContainer: any;
|
|
5
6
|
table: any;
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
const j = ({
|
|
2
2
|
height: v,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
fontFamily: w,
|
|
4
|
+
evenRowBgColor: e,
|
|
5
|
+
colorBgContainer: I,
|
|
5
6
|
table: o,
|
|
6
|
-
gap:
|
|
7
|
-
borderColor:
|
|
8
|
-
scrollbarWidth:
|
|
7
|
+
gap: R,
|
|
8
|
+
borderColor: u,
|
|
9
|
+
scrollbarWidth: y,
|
|
9
10
|
other: V
|
|
10
11
|
}) => {
|
|
11
|
-
var
|
|
12
|
+
var i, h, g, x, r, n, T, p, s, d, $, H, m, S, C, f, k, z, B, c;
|
|
12
13
|
return {
|
|
13
14
|
height: v,
|
|
15
|
+
"--font-family": w,
|
|
14
16
|
"--toolbar-bgColor": o == null ? void 0 : o.toolbarBgColor,
|
|
15
17
|
"--thead-bgColor": o == null ? void 0 : o.headerBg,
|
|
16
18
|
"--thead-hoverBgColor": o == null ? void 0 : o.headerSortHoverBg,
|
|
17
|
-
"--evenRow-BgColor":
|
|
18
|
-
"--oddRow-BgColor":
|
|
19
|
+
"--evenRow-BgColor": e,
|
|
20
|
+
"--oddRow-BgColor": I,
|
|
19
21
|
"--radioCheckbox-borderColor": o == null ? void 0 : o.radioCheckboxBorderColor,
|
|
20
22
|
"--expandIcon-borderColor": o == null ? void 0 : o.expandIconBorderColor,
|
|
21
23
|
"--rowHover-bgColor": o == null ? void 0 : o.rowHoverBg,
|
|
22
|
-
"--borderColor":
|
|
23
|
-
"--container-gap": `${
|
|
24
|
-
"--scrollbar-width": `${
|
|
25
|
-
"--xlTable-fontSize": `${(
|
|
26
|
-
"--lgTable-fontSize": `${(
|
|
24
|
+
"--borderColor": u,
|
|
25
|
+
"--container-gap": `${R}px`,
|
|
26
|
+
"--scrollbar-width": `${y || 0}px`,
|
|
27
|
+
"--xlTable-fontSize": `${(i = o == null ? void 0 : o.xlTable) == null ? void 0 : i.fontSize}px`,
|
|
28
|
+
"--lgTable-fontSize": `${(h = o == null ? void 0 : o.lgTable) == null ? void 0 : h.fontSize}px`,
|
|
27
29
|
"--mdTable-fontSize": `${(g = o == null ? void 0 : o.mdTable) == null ? void 0 : g.fontSize}px`,
|
|
28
30
|
"--smTable-fontSize": `${(x = o == null ? void 0 : o.smTable) == null ? void 0 : x.fontSize}px`,
|
|
29
31
|
"--xsTable-fontSize": `${(r = o == null ? void 0 : o.xsTable) == null ? void 0 : r.fontSize}px`,
|
|
@@ -37,8 +39,8 @@ const j = ({
|
|
|
37
39
|
"--mdTable-lineHeight": `${(m = o == null ? void 0 : o.mdTable) == null ? void 0 : m.lineHeight}px`,
|
|
38
40
|
"--smTable-lineHeight": `${(S = o == null ? void 0 : o.smTable) == null ? void 0 : S.lineHeight}px`,
|
|
39
41
|
"--xsTable-lineHeight": `${(C = o == null ? void 0 : o.xsTable) == null ? void 0 : C.lineHeight}px`,
|
|
40
|
-
"--xlSkeleton-height": `${(
|
|
41
|
-
"--lgSkeleton-height": `${(
|
|
42
|
+
"--xlSkeleton-height": `${(f = o == null ? void 0 : o.xlTable) == null ? void 0 : f.skeletonHeight}px`,
|
|
43
|
+
"--lgSkeleton-height": `${(k = o == null ? void 0 : o.lgTable) == null ? void 0 : k.skeletonHeight}px`,
|
|
42
44
|
"--mdSkeleton-height": `${(z = o == null ? void 0 : o.mdTable) == null ? void 0 : z.skeletonHeight}px`,
|
|
43
45
|
"--smSkeleton-height": `${(B = o == null ? void 0 : o.smTable) == null ? void 0 : B.skeletonHeight}px`,
|
|
44
46
|
"--xsSkeleton-height": `${(c = o == null ? void 0 : o.xsTable) == null ? void 0 : c.skeletonHeight}px`,
|
|
@@ -97,8 +97,23 @@ const fe = "导出设置", he = ({
|
|
|
97
97
|
),
|
|
98
98
|
children: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
99
99
|
/* @__PURE__ */ e.jsx(oe, { ref: k, display: i === 1 }),
|
|
100
|
-
/* @__PURE__ */ e.jsx(
|
|
101
|
-
|
|
100
|
+
/* @__PURE__ */ e.jsx(
|
|
101
|
+
re,
|
|
102
|
+
{
|
|
103
|
+
parentHeight: t,
|
|
104
|
+
ref: s,
|
|
105
|
+
display: i === 2
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ e.jsx(
|
|
109
|
+
se,
|
|
110
|
+
{
|
|
111
|
+
parentHeight: t,
|
|
112
|
+
refInstance: x,
|
|
113
|
+
display: i === 3,
|
|
114
|
+
showSelectRadio: !1
|
|
115
|
+
}
|
|
116
|
+
)
|
|
102
117
|
] })
|
|
103
118
|
}
|
|
104
119
|
);
|
|
@@ -45,7 +45,14 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
|
|
|
45
45
|
getTooltipContainer: (p) => p.parentElement,
|
|
46
46
|
title: e,
|
|
47
47
|
open: r ? !1 : void 0,
|
|
48
|
-
children: /* @__PURE__ */ o.jsx(
|
|
48
|
+
children: /* @__PURE__ */ o.jsx(
|
|
49
|
+
t,
|
|
50
|
+
{
|
|
51
|
+
size: s.fontSize + 4,
|
|
52
|
+
className: n,
|
|
53
|
+
onClick: i
|
|
54
|
+
}
|
|
55
|
+
)
|
|
49
56
|
}
|
|
50
57
|
);
|
|
51
58
|
}, B = ({
|
|
@@ -107,7 +114,9 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
|
|
|
107
114
|
return /* @__PURE__ */ o.jsxs(
|
|
108
115
|
"div",
|
|
109
116
|
{
|
|
110
|
-
className: q({ sortItemDragging: m }, "sortItem", {
|
|
117
|
+
className: q({ sortItemDragging: m }, "sortItem", {
|
|
118
|
+
showSortItemOperat: a && !n
|
|
119
|
+
}),
|
|
111
120
|
style: z,
|
|
112
121
|
ref: S,
|
|
113
122
|
onMouseEnter: () => c(!0),
|
|
@@ -58,34 +58,27 @@ const U = ({
|
|
|
58
58
|
onDragStart: y,
|
|
59
59
|
onDragEnd: D,
|
|
60
60
|
onDragCancel: () => f(-1),
|
|
61
|
-
children: /* @__PURE__ */ s.jsx(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
isDragOverlay: !0
|
|
83
|
-
},
|
|
84
|
-
x[i].key
|
|
85
|
-
) })
|
|
86
|
-
] })
|
|
87
|
-
}
|
|
88
|
-
)
|
|
61
|
+
children: /* @__PURE__ */ s.jsx(N, { items: d, strategy: O, children: /* @__PURE__ */ s.jsxs(F, { vertical: !0, className: "sortList", children: [
|
|
62
|
+
x.map((e) => /* @__PURE__ */ s.jsx(
|
|
63
|
+
u,
|
|
64
|
+
{
|
|
65
|
+
item: e,
|
|
66
|
+
placement: g,
|
|
67
|
+
onLeftClick: h,
|
|
68
|
+
onRightClick: p,
|
|
69
|
+
onCheckboxChange: b
|
|
70
|
+
},
|
|
71
|
+
e.key
|
|
72
|
+
)),
|
|
73
|
+
/* @__PURE__ */ s.jsx(K, { children: i !== -1 && /* @__PURE__ */ s.jsx(
|
|
74
|
+
u,
|
|
75
|
+
{
|
|
76
|
+
item: x[i],
|
|
77
|
+
isDragOverlay: !0
|
|
78
|
+
},
|
|
79
|
+
x[i].key
|
|
80
|
+
) })
|
|
81
|
+
] }) })
|
|
89
82
|
}
|
|
90
83
|
);
|
|
91
84
|
};
|
|
@@ -34,7 +34,12 @@ const Re = ye(
|
|
|
34
34
|
}, []);
|
|
35
35
|
const W = k(() => ((o, t) => o.map((s) => {
|
|
36
36
|
var _;
|
|
37
|
-
const { key: n, dataIndex: r, children: l, ...C } = s, y = be(
|
|
37
|
+
const { key: n, dataIndex: r, children: l, ...C } = s, y = be(
|
|
38
|
+
s,
|
|
39
|
+
[t == null ? void 0 : t.columnKey, C.index].join("-")
|
|
40
|
+
), u = i[y || "null"] || {
|
|
41
|
+
show: !0
|
|
42
|
+
};
|
|
38
43
|
return {
|
|
39
44
|
key: y,
|
|
40
45
|
...Ee(C, ["className"]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportFieldsConfigProps } from
|
|
2
|
-
import { FC } from
|
|
1
|
+
import { ExportFieldsConfigProps } from '@/components/BitzTable/Store';
|
|
2
|
+
import { FC } from 'react';
|
|
3
3
|
interface DndListProps {
|
|
4
4
|
dataList: ExportFieldsConfigProps[];
|
|
5
5
|
keys: any[];
|
|
@@ -3,12 +3,7 @@ import { DndContext as j, closestCenter as u, DragOverlay as h } from "../../../
|
|
|
3
3
|
import { SortableContext as v, rectSortingStrategy as y, arrayMove as l } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
4
4
|
import { useState as C } from "react";
|
|
5
5
|
import m from "./DndItem.mjs";
|
|
6
|
-
const E = ({
|
|
7
|
-
dataList: r,
|
|
8
|
-
keys: a,
|
|
9
|
-
onChange: x,
|
|
10
|
-
onMoveEnd: d
|
|
11
|
-
}) => {
|
|
6
|
+
const E = ({ dataList: r, keys: a, onChange: x, onMoveEnd: d }) => {
|
|
12
7
|
const [s, c] = C(-1), f = (t) => {
|
|
13
8
|
const { active: e } = t;
|
|
14
9
|
e && c(e.data.current.sortable.index);
|
|
@@ -32,24 +27,24 @@ const E = ({
|
|
|
32
27
|
onDragStart: f,
|
|
33
28
|
onDragEnd: D,
|
|
34
29
|
onDragCancel: () => c(-1),
|
|
35
|
-
children: /* @__PURE__ */ o.jsx(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
)
|
|
30
|
+
children: /* @__PURE__ */ o.jsx(v, { items: a, strategy: y, children: /* @__PURE__ */ o.jsxs("div", { className: "sortList", children: [
|
|
31
|
+
r.map((t) => /* @__PURE__ */ o.jsx(
|
|
32
|
+
m,
|
|
33
|
+
{
|
|
34
|
+
item: t,
|
|
35
|
+
onCheckboxChange: p
|
|
36
|
+
},
|
|
37
|
+
t.field
|
|
38
|
+
)),
|
|
39
|
+
/* @__PURE__ */ o.jsx(h, { children: s !== -1 && /* @__PURE__ */ o.jsx(
|
|
40
|
+
m,
|
|
41
|
+
{
|
|
42
|
+
item: r[s],
|
|
43
|
+
isDragOverlay: !0
|
|
44
|
+
},
|
|
45
|
+
r[s].field
|
|
46
|
+
) })
|
|
47
|
+
] }) })
|
|
53
48
|
}
|
|
54
49
|
);
|
|
55
50
|
};
|
|
@@ -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, parentHeight, refInstance, }: ExportConfigComponentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
declare const _default: import("react").MemoExoticComponent<typeof ExportConfig>;
|
|
16
16
|
export default _default;
|
|
@@ -28,7 +28,9 @@ function R({
|
|
|
28
28
|
}), [r]), T = h(() => typeof g == "number" && (t != null && t.height) ? g - (t == null ? void 0 : t.height) - 20 : "auto", [g, t == null ? void 0 : t.height]), l = F(A).exportConfig, x = F(A).selected, [i, w] = f([]), [a, u] = f([]), [m, b] = f("current"), [k, E] = f("page"), [j, S] = f(1);
|
|
29
29
|
H(() => {
|
|
30
30
|
var e, s;
|
|
31
|
-
u(l.fields), w(l.fields.map((p) => p.field)), b(
|
|
31
|
+
u(l.fields), w(l.fields.map((p) => p.field)), b(
|
|
32
|
+
d && x ? "selectedRows" : l.config.key
|
|
33
|
+
), E(((e = l.config.info) == null ? void 0 : e.type) ?? "page"), S(((s = l.config.info) == null ? void 0 : s.value) ?? 1);
|
|
32
34
|
}, [l, d, x]);
|
|
33
35
|
const o = h(() => a.filter((e) => e.show).map((e) => e.field), [a]), B = h(() => i.length === o.length, [i, o]), V = h(() => o.length > 0 && o.length < i.length, [o, i]), z = ({ target: e }) => {
|
|
34
36
|
u(a.map((s) => ({ ...s, show: e.checked })));
|
|
@@ -83,38 +85,46 @@ function R({
|
|
|
83
85
|
}
|
|
84
86
|
)
|
|
85
87
|
] }) }),
|
|
86
|
-
/* @__PURE__ */ n.jsx(C.Item, { label: "导出设置", className: "exportTotal", children: /* @__PURE__ */ n.jsx(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
addonAfter: /* @__PURE__ */ n.jsx(
|
|
100
|
-
G,
|
|
88
|
+
/* @__PURE__ */ n.jsx(C.Item, { label: "导出设置", className: "exportTotal", children: /* @__PURE__ */ n.jsx(
|
|
89
|
+
c.Group,
|
|
90
|
+
{
|
|
91
|
+
ref: v,
|
|
92
|
+
value: m,
|
|
93
|
+
onChange: ({ target: e }) => b(e.value),
|
|
94
|
+
children: /* @__PURE__ */ n.jsxs(y, { vertical: !0, gap: 8, align: "flex-start", children: [
|
|
95
|
+
d && x && /* @__PURE__ */ n.jsx(c, { value: "selectedRows", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出选中数据" }) }),
|
|
96
|
+
/* @__PURE__ */ n.jsx(c, { value: "current", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "仅导出当前页" }) }),
|
|
97
|
+
/* @__PURE__ */ n.jsx(c, { value: "any", children: /* @__PURE__ */ n.jsxs(y, { align: "center", gap: 8, children: [
|
|
98
|
+
/* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }),
|
|
99
|
+
/* @__PURE__ */ n.jsx(
|
|
100
|
+
P,
|
|
101
101
|
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
controls: !1,
|
|
103
|
+
min: 1,
|
|
104
|
+
value: j,
|
|
105
|
+
onChange: (e) => S(e),
|
|
106
|
+
style: { width: 120 },
|
|
107
|
+
addonAfter: /* @__PURE__ */ n.jsx(
|
|
108
|
+
G,
|
|
109
|
+
{
|
|
110
|
+
value: k,
|
|
111
|
+
onChange: E,
|
|
112
|
+
options: [
|
|
113
|
+
{ label: "页", value: "page" },
|
|
114
|
+
{ label: "条", value: "pieces" }
|
|
115
|
+
],
|
|
116
|
+
onClick: (e) => e.preventDefault(),
|
|
117
|
+
getPopupContainer: (e) => L(e, "containerBody")
|
|
118
|
+
}
|
|
119
|
+
)
|
|
110
120
|
}
|
|
111
|
-
)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
),
|
|
122
|
+
/* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })
|
|
123
|
+
] }) }),
|
|
124
|
+
/* @__PURE__ */ n.jsx(c, { value: "all", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })
|
|
125
|
+
] })
|
|
126
|
+
}
|
|
127
|
+
) })
|
|
118
128
|
]
|
|
119
129
|
}
|
|
120
130
|
);
|
|
@@ -43,139 +43,131 @@ import l from "./RadioCard.mjs";
|
|
|
43
43
|
const Z = ({ defaultSize: s, items: a }) => a.map((e) => e.key === s ? {
|
|
44
44
|
...e,
|
|
45
45
|
label: `${e.label}(默认)`
|
|
46
|
-
} : e), q = J(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
className: n
|
|
61
|
-
};
|
|
46
|
+
} : e), q = J(({ display: s }, a) => {
|
|
47
|
+
var x, b, f;
|
|
48
|
+
const { token: e } = $.useToken(), j = K(() => ({
|
|
49
|
+
width: "100%",
|
|
50
|
+
...{ display: s ? "flex" : "none" }
|
|
51
|
+
}), [s]), z = {
|
|
52
|
+
size: 26,
|
|
53
|
+
color: e.colorPrimary
|
|
54
|
+
}, [c] = t.useForm(), g = (x = u(W).Table) == null ? void 0 : x.stylesScope, { defaultTableSize: P, stylesConfig: I } = u(E), r = (b = u(Y).config) == null ? void 0 : b.stylesConfig, p = (i, m) => {
|
|
55
|
+
var y, h;
|
|
56
|
+
let n = m;
|
|
57
|
+
return (y = r == null ? void 0 : r[i]) != null && y.disabled && (n = D(m, "disabledControl")), {
|
|
58
|
+
disabled: (h = r == null ? void 0 : r[i]) == null ? void 0 : h.disabled,
|
|
59
|
+
className: n
|
|
62
60
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, []);
|
|
69
|
-
const v = Z({
|
|
70
|
-
defaultSize: P,
|
|
71
|
-
items: [
|
|
72
|
-
{
|
|
73
|
-
key: "xs",
|
|
74
|
-
label: "特紧凑",
|
|
75
|
-
icon: w
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
key: "sm",
|
|
79
|
-
label: "紧凑",
|
|
80
|
-
icon: S
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
key: "md",
|
|
84
|
-
label: "中等",
|
|
85
|
-
icon: k
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
key: "lg",
|
|
89
|
-
label: "宽松",
|
|
90
|
-
icon: H
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
key: "xl",
|
|
94
|
-
label: "特宽松",
|
|
95
|
-
icon: C
|
|
96
|
-
}
|
|
97
|
-
]
|
|
61
|
+
};
|
|
62
|
+
L(() => {
|
|
63
|
+
c.setFieldsValue({
|
|
64
|
+
...I,
|
|
65
|
+
stylesScope: g === "global"
|
|
98
66
|
});
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
67
|
+
}, []);
|
|
68
|
+
const v = Z({
|
|
69
|
+
defaultSize: P,
|
|
70
|
+
items: [
|
|
71
|
+
{
|
|
72
|
+
key: "xs",
|
|
73
|
+
label: "特紧凑",
|
|
74
|
+
icon: w
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: "sm",
|
|
78
|
+
label: "紧凑",
|
|
79
|
+
icon: S
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: "md",
|
|
83
|
+
label: "中等",
|
|
84
|
+
icon: k
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: "lg",
|
|
88
|
+
label: "宽松",
|
|
89
|
+
icon: H
|
|
90
|
+
},
|
|
103
91
|
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
92
|
+
key: "xl",
|
|
93
|
+
label: "特宽松",
|
|
94
|
+
icon: C
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
});
|
|
98
|
+
return M(a, () => ({
|
|
99
|
+
getFormInstance: () => c
|
|
100
|
+
})), /* @__PURE__ */ o.jsxs(
|
|
101
|
+
t,
|
|
102
|
+
{
|
|
103
|
+
form: c,
|
|
104
|
+
style: j,
|
|
105
|
+
labelCol: { span: 3 },
|
|
106
|
+
labelAlign: "left",
|
|
107
|
+
colon: !1,
|
|
108
|
+
className: "stylesConfigFormContent",
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ o.jsx(t.Item, { label: "行高", name: "size", children: /* @__PURE__ */ o.jsx(d.Group, { ...p("size", "sizeRadioGroup"), children: v.map(({ key: i, label: m, icon: n }) => /* @__PURE__ */ o.jsx(l, { label: m, value: i, children: /* @__PURE__ */ o.jsx(n, { ...z }) }, i)) }) }),
|
|
111
|
+
/* @__PURE__ */ o.jsx(t.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("bordered", "splitBorderRadioGroup"), children: [
|
|
112
|
+
/* @__PURE__ */ o.jsx(l, { label: "无分割线", value: "hide", children: /* @__PURE__ */ o.jsx(T, { size: 26, color: e.colorPrimaryHover }) }),
|
|
113
|
+
/* @__PURE__ */ o.jsx(l, { label: "行分割线", value: "row", children: /* @__PURE__ */ o.jsx(
|
|
114
|
+
B,
|
|
114
115
|
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
size: 26,
|
|
122
|
-
color: [
|
|
123
|
-
e.colorPrimaryHover,
|
|
124
|
-
e.colorPrimary,
|
|
125
|
-
e.colorPrimary,
|
|
126
|
-
e.colorPrimaryHover
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
) }),
|
|
130
|
-
/* @__PURE__ */ o.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ o.jsx(
|
|
131
|
-
G,
|
|
132
|
-
{
|
|
133
|
-
size: 26,
|
|
134
|
-
color: [
|
|
135
|
-
e.colorPrimaryHover,
|
|
136
|
-
e.colorPrimary,
|
|
137
|
-
e.colorPrimary,
|
|
138
|
-
e.colorPrimaryHover
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
) }),
|
|
142
|
-
/* @__PURE__ */ o.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ o.jsx(
|
|
143
|
-
R,
|
|
144
|
-
{
|
|
145
|
-
size: 26,
|
|
146
|
-
color: [
|
|
147
|
-
e.colorPrimaryHover,
|
|
148
|
-
e.colorPrimary,
|
|
149
|
-
e.colorPrimary,
|
|
150
|
-
e.colorPrimaryHover
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
) })
|
|
116
|
+
size: 26,
|
|
117
|
+
color: [
|
|
118
|
+
e.colorPrimaryHover,
|
|
119
|
+
e.colorPrimary,
|
|
120
|
+
e.colorPrimary,
|
|
121
|
+
e.colorPrimaryHover
|
|
154
122
|
]
|
|
155
123
|
}
|
|
156
124
|
) }),
|
|
157
|
-
/* @__PURE__ */ o.jsx(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
125
|
+
/* @__PURE__ */ o.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ o.jsx(
|
|
126
|
+
G,
|
|
127
|
+
{
|
|
128
|
+
size: 26,
|
|
129
|
+
color: [
|
|
130
|
+
e.colorPrimaryHover,
|
|
131
|
+
e.colorPrimary,
|
|
132
|
+
e.colorPrimary,
|
|
133
|
+
e.colorPrimaryHover
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
) }),
|
|
137
|
+
/* @__PURE__ */ o.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ o.jsx(
|
|
138
|
+
R,
|
|
139
|
+
{
|
|
140
|
+
size: 26,
|
|
141
|
+
color: [
|
|
142
|
+
e.colorPrimaryHover,
|
|
143
|
+
e.colorPrimary,
|
|
144
|
+
e.colorPrimary,
|
|
145
|
+
e.colorPrimaryHover
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
) })
|
|
149
|
+
] }) }),
|
|
150
|
+
/* @__PURE__ */ o.jsx(t.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("zebra", "zebraRadioGroup"), children: [
|
|
151
|
+
/* @__PURE__ */ o.jsx(l, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ o.jsx(
|
|
152
|
+
F,
|
|
153
|
+
{
|
|
154
|
+
size: 26,
|
|
155
|
+
color: [e.colorPrimaryHover, e.colorPrimary]
|
|
156
|
+
}
|
|
157
|
+
) }),
|
|
158
|
+
/* @__PURE__ */ o.jsx(l, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ o.jsx(
|
|
159
|
+
N,
|
|
160
|
+
{
|
|
161
|
+
size: 26,
|
|
162
|
+
color: e.colorPrimaryHover
|
|
163
|
+
}
|
|
164
|
+
) })
|
|
165
|
+
] }) }),
|
|
166
|
+
/* @__PURE__ */ o.jsx(t.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: /* @__PURE__ */ o.jsx(A, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
}), $o = V(q);
|
|
179
171
|
export {
|
|
180
172
|
$o as default
|
|
181
173
|
};
|
|
@@ -56,11 +56,15 @@ const m = (o) => i`
|
|
|
56
56
|
--dragIcon-width: calc(16px + ${r(o.fontSize + 4)});
|
|
57
57
|
/* 16px是.operation的padding-inline-end加上margin-left */
|
|
58
58
|
--operation-width: calc(${r(o.fontSize + 4)} * 2 + 16px);
|
|
59
|
-
grid-template-columns: var(--dragIcon-width) calc(
|
|
59
|
+
grid-template-columns: var(--dragIcon-width) calc(
|
|
60
|
+
100% - var(--dragIcon-width)
|
|
61
|
+
);
|
|
60
62
|
border-radius: ${r(o.borderRadius)};
|
|
61
63
|
|
|
62
64
|
&.showSortItemOperat {
|
|
63
|
-
grid-template-columns: var(--dragIcon-width) calc(
|
|
65
|
+
grid-template-columns: var(--dragIcon-width) calc(
|
|
66
|
+
100% - var(--dragIcon-width) - var(--operation-width)
|
|
67
|
+
) var(--operation-width);
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
&:hover {
|