bitz-react-admin-ui 2.7.9 → 2.7.11
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/IconChenggong.mjs +4 -25
- package/dist/assets/iconfont/IconClose.mjs +3 -24
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
- package/dist/assets/iconfont/IconCuowu.mjs +2 -23
- package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
- package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
- package/dist/assets/iconfont/IconFabu.mjs +5 -35
- package/dist/assets/iconfont/IconFanhui.mjs +4 -25
- package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
- package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
- package/dist/assets/iconfont/IconIcon21.mjs +4 -25
- package/dist/assets/iconfont/IconJincoude.mjs +4 -25
- package/dist/assets/iconfont/IconJinggao.mjs +4 -25
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
- package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
- package/dist/assets/iconfont/IconMore.mjs +4 -41
- package/dist/assets/iconfont/IconShanchu.mjs +6 -27
- package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
- package/dist/assets/iconfont/IconSousuo.mjs +6 -27
- package/dist/assets/iconfont/IconTejincou.mjs +4 -25
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
- package/dist/assets/iconfont/IconTishi1.mjs +6 -27
- package/dist/assets/iconfont/IconTuodong.mjs +7 -28
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
- package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
- package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
- package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +8 -41
- package/dist/components/BitzAddressBook/index.mjs +35 -122
- package/dist/components/BitzAppPage/index.mjs +4 -18
- package/dist/components/BitzAppRefresh/index.mjs +15 -27
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +9 -23
- package/dist/components/BitzCalendar/index.mjs +19 -52
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
- package/dist/components/BitzCascader/index.mjs +2 -6
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +1 -3
- package/dist/components/BitzConfigProvider/index.mjs +8 -12
- package/dist/components/BitzConfirmModal/index.mjs +1 -24
- package/dist/components/BitzDescriptions/index.mjs +1 -11
- package/dist/components/BitzDrawer/index.mjs +2 -17
- package/dist/components/BitzEmpty/index.mjs +2 -6
- package/dist/components/BitzException/index.mjs +1 -6
- package/dist/components/BitzFloatLayout/index.mjs +1 -10
- package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +15 -47
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
- package/dist/components/BitzFuiCalendar/index.mjs +1 -7
- package/dist/components/BitzFullScreen/index.mjs +6 -9
- package/dist/components/BitzHighlight/Child.mjs +9 -23
- package/dist/components/BitzHighlight/Highlight.mjs +5 -26
- package/dist/components/BitzHighlight/chunks.mjs +17 -20
- package/dist/components/BitzHighlight/style.mjs +1 -4
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +5 -12
- package/dist/components/BitzLanguageTabs/index.mjs +3 -14
- package/dist/components/BitzLazyLoad/index.mjs +1 -7
- package/dist/components/BitzList/List.mjs +3 -17
- package/dist/components/BitzList/LoadMore.mjs +20 -29
- package/dist/components/BitzLoadMore/index.mjs +14 -34
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
- package/dist/components/BitzMeetingTime/index.mjs +6 -10
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +11 -24
- package/dist/components/BitzNoData/index.mjs +1 -4
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
- package/dist/components/BitzPageContainer/index.mjs +46 -107
- package/dist/components/BitzPageHeader/index.mjs +21 -89
- package/dist/components/BitzPagination/index.mjs +22 -71
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
- package/dist/components/BitzQRCode/index.mjs +1 -6
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
- package/dist/components/BitzQueryFilter/index.mjs +20 -69
- package/dist/components/BitzRefresh/index.mjs +1 -5
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +30 -24
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +1 -31
- package/dist/components/BitzSwitch/index.mjs +2 -7
- package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +12 -80
- package/dist/components/BitzTable/ActionBar/Button.mjs +15 -20
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.mjs +44 -182
- package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
- package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
- package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
- package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +4 -11
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.mjs +62 -103
- package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
- package/dist/components/BitzTable/SubTable/index.mjs +73 -122
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +21 -43
- package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.mjs +295 -544
- package/dist/components/BitzTable/Table/style.mjs +1 -10
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +31 -105
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +159 -346
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +38 -135
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +5 -18
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +49 -121
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +18 -62
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +16 -59
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +5 -20
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -46
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- package/dist/components/BitzTableOperations/index.mjs +3 -13
- package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
- package/dist/components/BitzTableSelect/Select/index.mjs +21 -90
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +69 -219
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +22 -87
- package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
- package/dist/components/BitzTableSelect/index.mjs +14 -65
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +14 -41
- package/dist/components/BitzText/utils.mjs +3 -3
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +1 -11
- package/dist/components/BitzTimer/Form.mjs +11 -32
- package/dist/components/BitzTimer/Timer.mjs +38 -76
- package/dist/components/BitzTimer/index.mjs +43 -66
- package/dist/components/BitzToast/Toast/index.mjs +10 -28
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTooltip/index.mjs +20 -59
- package/dist/components/BitzTooltip/style.mjs +6 -9
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- package/dist/components/BitzTree/index.mjs +1 -4
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +43 -81
- package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
- package/dist/components/BitzWebAppModal/index.mjs +3 -6
- package/dist/hooks/use-event-listener.mjs +2 -11
- package/dist/hooks/use-lock-fn.mjs +10 -13
- package/dist/hooks/use-scroll-parent.mjs +14 -16
- package/dist/hooks/useEvent.mjs +4 -7
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +3 -9
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,53 +1,27 @@
|
|
|
1
1
|
import { j as o } from "../../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { DndContext as
|
|
3
|
-
import { SortableContext as
|
|
4
|
-
import { useState as
|
|
2
|
+
import { DndContext as p, closestCenter as j, DragOverlay as u } from "../../../../../node_modules/@dnd-kit/core/dist/core.esm.mjs";
|
|
3
|
+
import { SortableContext as C, rectSortingStrategy as v, arrayMove as l } from "../../../../../node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
4
|
+
import { useState as y } from "react";
|
|
5
5
|
import m from "./DndItem.mjs";
|
|
6
|
-
const
|
|
7
|
-
const [s, c] =
|
|
6
|
+
const N = ({ dataList: n, keys: a, onChange: x, onMoveEnd: d }) => {
|
|
7
|
+
const [s, c] = y(-1), f = (t) => {
|
|
8
8
|
const { active: e } = t;
|
|
9
9
|
e && c(e.data.current.sortable.index);
|
|
10
|
-
},
|
|
10
|
+
}, g = (t) => {
|
|
11
11
|
const { over: e } = t;
|
|
12
12
|
if (e) {
|
|
13
|
-
const
|
|
14
|
-
s !==
|
|
13
|
+
const r = e.data.current.sortable.index;
|
|
14
|
+
s !== r && (D(s, r), c(-1));
|
|
15
15
|
}
|
|
16
|
-
},
|
|
17
|
-
const
|
|
18
|
-
d(i,
|
|
19
|
-
},
|
|
20
|
-
const
|
|
21
|
-
i[
|
|
16
|
+
}, D = (t, e) => {
|
|
17
|
+
const r = l(a, t, e), i = l(n, t, e);
|
|
18
|
+
d(i, r);
|
|
19
|
+
}, S = (t, e) => {
|
|
20
|
+
const r = n.findIndex((h) => h.field === t), i = JSON.parse(JSON.stringify(n));
|
|
21
|
+
i[r].show = e, x(i);
|
|
22
22
|
};
|
|
23
|
-
return
|
|
24
|
-
j,
|
|
25
|
-
{
|
|
26
|
-
collisionDetection: u,
|
|
27
|
-
onDragStart: f,
|
|
28
|
-
onDragEnd: D,
|
|
29
|
-
onDragCancel: () => c(-1),
|
|
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
|
-
] }) })
|
|
48
|
-
}
|
|
49
|
-
);
|
|
23
|
+
return o.jsx(p, { collisionDetection: j, onDragStart: f, onDragEnd: g, onDragCancel: () => c(-1), children: o.jsx(C, { items: a, strategy: v, children: o.jsxs("div", { className: "sortList", children: [n.map((t) => o.jsx(m, { item: t, onCheckboxChange: S }, t.field)), o.jsx(u, { children: s !== -1 && o.jsx(m, { item: n[s], isDragOverlay: !0 }, n[s].field) })] }) }) });
|
|
50
24
|
};
|
|
51
25
|
export {
|
|
52
|
-
|
|
26
|
+
N as default
|
|
53
27
|
};
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as n } from "../../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { BitzTableContext as Q } from "../../../Store/index.mjs";
|
|
3
3
|
import U from "../../../../BitzTheme/index.mjs";
|
|
4
4
|
import { findParentFirstNodeByClass as W } from "../../../../../utils/findNode.mjs";
|
|
5
5
|
import { css as X } from "../../../../../node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
6
|
-
import { Form as
|
|
7
|
-
import { memo as
|
|
6
|
+
import { Form as k, Flex as C, Checkbox as Y, Button as Z, Radio as d, InputNumber as H, Select as ee } from "antd";
|
|
7
|
+
import { memo as ne, useRef as D, useEffect as I, useMemo as p, useContext as te, useState as h, useImperativeHandle as oe } from "react";
|
|
8
8
|
import le from "./DndList.mjs";
|
|
9
9
|
import se from "../../../../../node_modules/lodash-es/merge.mjs";
|
|
10
10
|
import re from "../../../../../node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}) {
|
|
17
|
-
const { token: O } = U.useToken();
|
|
18
|
-
I(null);
|
|
19
|
-
const m = I(null);
|
|
20
|
-
K(() => {
|
|
11
|
+
function ie({ display: s, postHeight: r, showSelectRadio: j = !1, refInstance: M }) {
|
|
12
|
+
const { token: K } = U.useToken();
|
|
13
|
+
D(null);
|
|
14
|
+
const m = D(null);
|
|
15
|
+
I(() => {
|
|
21
16
|
m.current && (r == null || r(m.current.clientHeight));
|
|
22
17
|
}, [m.current]);
|
|
23
|
-
const
|
|
18
|
+
const O = p(() => ({
|
|
24
19
|
// display: display ? 'flex' : 'none'
|
|
25
20
|
width: s ? "100%" : 0,
|
|
26
21
|
pointerEvents: s ? "auto" : "none",
|
|
@@ -31,154 +26,62 @@ function ae({
|
|
|
31
26
|
left: 0,
|
|
32
27
|
right: 0
|
|
33
28
|
}
|
|
34
|
-
}), [s]),
|
|
35
|
-
|
|
36
|
-
var
|
|
29
|
+
}), [s]), i = te(Q), b = i.defaultTableExportConfig, y = i.exportConfigHardCodedValue, v = i.exportConfig, w = i.selected, t = i.pagination, a = i.total, [c, A] = h([]), [u, f] = h([]), [E, F] = h("current"), [x, T] = h("page"), [B, N] = h(1);
|
|
30
|
+
I(() => {
|
|
31
|
+
var R, S, V, z;
|
|
37
32
|
let e = { ...v };
|
|
38
|
-
y && (e = se(v, y)),
|
|
33
|
+
y && (e = se(v, y)), f(e.fields), A(e.fields.map((J) => J.field));
|
|
39
34
|
let g = j && w ? "selectedRows" : e.config.key;
|
|
40
|
-
|
|
35
|
+
F(g), T(((S = (R = e.config) == null ? void 0 : R.info) == null ? void 0 : S.type) ?? "page"), N(((z = (V = e.config) == null ? void 0 : V.info) == null ? void 0 : z.value) ?? 1);
|
|
41
36
|
}, [v, y, j, w]);
|
|
42
|
-
const l = p(() =>
|
|
43
|
-
|
|
37
|
+
const l = p(() => u.filter((e) => e.show).map((e) => e.field), [u]), P = p(() => c.length === l.length, [c, l]), L = p(() => l.length > 0 && l.length < c.length, [l, c]), _ = ({ target: e }) => {
|
|
38
|
+
f(u.map((o) => ({ ...o, show: e.checked })));
|
|
44
39
|
}, $ = (e, o) => {
|
|
45
|
-
|
|
40
|
+
f(e), A(o);
|
|
46
41
|
}, G = p(() => {
|
|
47
42
|
if (x === "page") {
|
|
48
|
-
if (
|
|
49
|
-
let e = Math.floor(
|
|
50
|
-
return
|
|
43
|
+
if (a && (t != null && t.size)) {
|
|
44
|
+
let e = Math.floor(a / (t == null ? void 0 : t.size));
|
|
45
|
+
return a % (t == null ? void 0 : t.size) && e++, e;
|
|
51
46
|
}
|
|
52
47
|
return 1;
|
|
53
48
|
}
|
|
54
|
-
return
|
|
55
|
-
}, [x,
|
|
56
|
-
|
|
49
|
+
return a;
|
|
50
|
+
}, [x, t, a]), q = () => {
|
|
51
|
+
f(b.fields), F(b.config.key);
|
|
57
52
|
};
|
|
58
53
|
return oe(M, () => ({
|
|
59
54
|
getExportConfig: () => {
|
|
60
55
|
const e = {
|
|
61
56
|
fields: [],
|
|
62
57
|
config: {
|
|
63
|
-
key:
|
|
58
|
+
key: E,
|
|
64
59
|
info: void 0
|
|
65
60
|
}
|
|
66
61
|
};
|
|
67
|
-
return
|
|
62
|
+
return u.forEach((o) => {
|
|
68
63
|
let g = !1;
|
|
69
64
|
l.includes(o.field) && (g = !0), e.fields.push({ ...o, show: g });
|
|
70
|
-
}),
|
|
65
|
+
}), E === "any" && (e.config.info = {
|
|
71
66
|
type: x,
|
|
72
|
-
value: (
|
|
67
|
+
value: (B || 0) < 1 ? 1 : B || 1
|
|
73
68
|
}), { ...e };
|
|
74
69
|
},
|
|
75
70
|
hasOne: () => l.length > 0
|
|
76
|
-
})),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
style: { width: "100%" },
|
|
80
|
-
labelCol: { span: 3 },
|
|
81
|
-
labelAlign: "left",
|
|
82
|
-
colon: !1,
|
|
83
|
-
className: "exportConfigFormContent",
|
|
84
|
-
...r && {
|
|
85
|
-
style: { paddingTop: 16 }
|
|
86
|
-
},
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ t.jsx(T.Item, { label: "导出字段", className: "exportFields", children: /* @__PURE__ */ t.jsxs(C, { gap: 8, vertical: !0, children: [
|
|
89
|
-
/* @__PURE__ */ t.jsxs(C, { gap: 20, className: "checkAllAndReset", children: [
|
|
90
|
-
/* @__PURE__ */ t.jsx(
|
|
91
|
-
Y,
|
|
92
|
-
{
|
|
93
|
-
checked: D,
|
|
94
|
-
indeterminate: L,
|
|
95
|
-
onChange: _,
|
|
96
|
-
style: { alignSelf: "flex-start" },
|
|
97
|
-
children: /* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "全选" })
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
r && /* @__PURE__ */ t.jsx(
|
|
101
|
-
Z,
|
|
102
|
-
{
|
|
103
|
-
type: "link",
|
|
104
|
-
icon: /* @__PURE__ */ t.jsx(re, {}),
|
|
105
|
-
size: "small",
|
|
106
|
-
onClick: q,
|
|
107
|
-
className: X`
|
|
71
|
+
})), n.jsx("div", { ref: m, style: O, children: n.jsxs(k, { style: { width: "100%" }, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "exportConfigFormContent", ...r && {
|
|
72
|
+
style: { paddingTop: 16 }
|
|
73
|
+
}, children: [n.jsx(k.Item, { label: "导出字段", className: "exportFields", children: n.jsxs(C, { gap: 8, vertical: !0, children: [n.jsxs(C, { gap: 20, className: "checkAllAndReset", children: [n.jsx(Y, { checked: P, indeterminate: L, onChange: _, style: { alignSelf: "flex-start" }, children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "全选" }) }), r && n.jsx(Z, { type: "link", icon: n.jsx(re, {}), size: "small", onClick: q, className: X`
|
|
108
74
|
&:hover {
|
|
109
|
-
color: ${
|
|
75
|
+
color: ${K.colorPrimary} !important;
|
|
110
76
|
}
|
|
111
|
-
`,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
le,
|
|
118
|
-
{
|
|
119
|
-
dataList: f,
|
|
120
|
-
keys: c,
|
|
121
|
-
onChange: d,
|
|
122
|
-
onMoveEnd: $
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
] }) }),
|
|
126
|
-
/* @__PURE__ */ t.jsx(
|
|
127
|
-
T.Item,
|
|
128
|
-
{
|
|
129
|
-
label: "导出设置",
|
|
130
|
-
className: "exportTotal",
|
|
131
|
-
...r && {
|
|
132
|
-
style: { paddingBottom: 8 }
|
|
133
|
-
},
|
|
134
|
-
children: /* @__PURE__ */ t.jsx(
|
|
135
|
-
u.Group,
|
|
136
|
-
{
|
|
137
|
-
value: k,
|
|
138
|
-
onChange: ({ target: e }) => b(e.value),
|
|
139
|
-
children: /* @__PURE__ */ t.jsxs(C, { vertical: !0, gap: 8, align: "flex-start", children: [
|
|
140
|
-
j && w && /* @__PURE__ */ t.jsx(u, { value: "selectedRows", children: "导出选中数据" }),
|
|
141
|
-
/* @__PURE__ */ t.jsx(u, { value: "current", children: "仅导出当前页" }),
|
|
142
|
-
/* @__PURE__ */ t.jsx(u, { value: "any", children: /* @__PURE__ */ t.jsxs(C, { align: "center", gap: 8, children: [
|
|
143
|
-
/* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }),
|
|
144
|
-
/* @__PURE__ */ t.jsx(
|
|
145
|
-
H,
|
|
146
|
-
{
|
|
147
|
-
controls: !1,
|
|
148
|
-
precision: 0,
|
|
149
|
-
min: 1,
|
|
150
|
-
max: G,
|
|
151
|
-
value: E,
|
|
152
|
-
onChange: (e) => S(e),
|
|
153
|
-
style: { width: 120 },
|
|
154
|
-
addonAfter: /* @__PURE__ */ t.jsx(
|
|
155
|
-
ee,
|
|
156
|
-
{
|
|
157
|
-
value: x,
|
|
158
|
-
onChange: R,
|
|
159
|
-
options: [
|
|
160
|
-
{ label: "页", value: "page" },
|
|
161
|
-
{ label: "条", value: "pieces" }
|
|
162
|
-
],
|
|
163
|
-
onClick: (e) => e.preventDefault(),
|
|
164
|
-
getPopupContainer: (e) => W(e, "containerBody")
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
}
|
|
168
|
-
),
|
|
169
|
-
/* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })
|
|
170
|
-
] }) }),
|
|
171
|
-
/* @__PURE__ */ t.jsx(u, { value: "all", children: "导出全部数据" })
|
|
172
|
-
] })
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
}
|
|
176
|
-
)
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
) });
|
|
77
|
+
`, children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "重置" }) })] }), n.jsx(le, { dataList: u, keys: c, onChange: f, onMoveEnd: $ })] }) }), n.jsx(k.Item, { label: "导出设置", className: "exportTotal", ...r && {
|
|
78
|
+
style: { paddingBottom: 8 }
|
|
79
|
+
}, children: n.jsx(d.Group, { value: E, onChange: ({ target: e }) => F(e.value), children: n.jsxs(C, { vertical: !0, gap: 8, align: "flex-start", children: [j && w && n.jsx(d, { value: "selectedRows", children: "导出选中数据" }), n.jsx(d, { value: "current", children: "仅导出当前页" }), n.jsx(d, { value: "any", children: n.jsxs(C, { align: "center", gap: 8, children: [n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }), n.jsx(H, { controls: !1, precision: 0, min: 1, max: G, value: B, onChange: (e) => N(e), style: { width: 120 }, addonAfter: n.jsx(ee, { value: x, onChange: T, options: [
|
|
80
|
+
{ label: "页", value: "page" },
|
|
81
|
+
{ label: "条", value: "pieces" }
|
|
82
|
+
], onClick: (e) => e.preventDefault(), getPopupContainer: (e) => W(e, "containerBody") }) }), n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })] }) }), n.jsx(d, { value: "all", children: "导出全部数据" })] }) }) })] }) });
|
|
180
83
|
}
|
|
181
|
-
const Ce =
|
|
84
|
+
const Ce = ne(ie);
|
|
182
85
|
export {
|
|
183
86
|
Ce as default
|
|
184
87
|
};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { j as r } from "../../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Radio as i, Flex as o, Typography as s } from "antd";
|
|
3
|
-
const
|
|
4
|
-
label: e,
|
|
5
|
-
value: t,
|
|
6
|
-
children: a
|
|
7
|
-
}) => /* @__PURE__ */ r.jsx(i, { value: t, children: /* @__PURE__ */ r.jsxs(o, { vertical: !0, align: "center", gap: 8, children: [
|
|
8
|
-
a,
|
|
9
|
-
/* @__PURE__ */ r.jsx(s.Text, { children: e })
|
|
10
|
-
] }) });
|
|
3
|
+
const x = ({ label: e, value: t, children: a }) => r.jsx(i, { value: t, children: r.jsxs(o, { vertical: !0, align: "center", gap: 8, children: [a, r.jsx(s.Text, { children: e })] }) });
|
|
11
4
|
export {
|
|
12
|
-
|
|
5
|
+
x as default
|
|
13
6
|
};
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import { j as e } from "../../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Flex as
|
|
3
|
-
import { useId as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
return
|
|
7
|
-
/* @__PURE__ */ e.jsx("label", { htmlFor: `${s}${r}`, className: "stylesScopeLabel", children: "应用到全局表格" }),
|
|
8
|
-
/* @__PURE__ */ e.jsx(
|
|
9
|
-
i,
|
|
10
|
-
{
|
|
11
|
-
id: `${s}${r}`,
|
|
12
|
-
value: t,
|
|
13
|
-
onChange: c,
|
|
14
|
-
disabled: o,
|
|
15
|
-
checkedChildren: "是",
|
|
16
|
-
unCheckedChildren: "否"
|
|
17
|
-
}
|
|
18
|
-
)
|
|
19
|
-
] });
|
|
2
|
+
import { Flex as c, Switch as u } from "antd";
|
|
3
|
+
import { useId as i } from "react";
|
|
4
|
+
const r = "stylesScope", h = ({ value: o, disabled: t, onChange: l }) => {
|
|
5
|
+
const s = i();
|
|
6
|
+
return e.jsxs(c, { align: "center", gap: 10, children: [e.jsx("label", { htmlFor: `${r}${s}`, className: "stylesScopeLabel", children: "应用到全局表格" }), e.jsx(u, { id: `${r}${s}`, value: o, onChange: l, disabled: t, checkedChildren: "是", unCheckedChildren: "否" })] });
|
|
20
7
|
};
|
|
21
8
|
export {
|
|
22
9
|
h as default
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { j as e } from "../../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
2
|
+
import T from "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
3
|
+
import A from "../../../../../assets/iconfont/IconTekuansong.mjs";
|
|
4
|
+
import G from "../../../../../assets/iconfont/IconJincoude.mjs";
|
|
5
|
+
import N from "../../../../../assets/iconfont/IconZhongdengde.mjs";
|
|
6
|
+
import W from "../../../../../assets/iconfont/IconTejincou.mjs";
|
|
7
|
+
import D from "../../../../../assets/iconfont/IconWufengexian.mjs";
|
|
8
|
+
import V from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
|
|
9
|
+
import $ from "../../../../../assets/iconfont/IconHangfengexian.mjs";
|
|
10
10
|
import J from "../../../../../assets/iconfont/IconLiefengexian.mjs";
|
|
11
11
|
import K from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
|
|
12
12
|
import L from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
|
|
13
13
|
import { BitzConfigContext as M } from "../../../../BitzConfigProvider/context.mjs";
|
|
14
14
|
import { BitzTableContext as O } from "../../../Store/index.mjs";
|
|
15
15
|
import Y from "../../../../BitzTheme/index.mjs";
|
|
16
|
-
import { Form as n, Radio as p, Row as Z, Col as
|
|
16
|
+
import { Form as n, Radio as p, Row as Z, Col as I, Button as q } from "antd";
|
|
17
17
|
import Q from "../../../../../node_modules/classnames/index.mjs";
|
|
18
|
-
import { forwardRef as U, useRef as
|
|
18
|
+
import { forwardRef as U, useRef as P, useEffect as x, useMemo as X, useContext as h, useImperativeHandle as _, useState as ee, memo as oe } from "react";
|
|
19
19
|
import { BitzToolBarContext as re } from "../../Wrapper/context.mjs";
|
|
20
20
|
import s from "./RadioCard.mjs";
|
|
21
21
|
import le from "./ScopeSwitch.mjs";
|
|
22
22
|
import se from "../../../../../node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
|
|
23
|
-
const te = ({ defaultSize: l, items:
|
|
23
|
+
const te = ({ defaultSize: l, items: u }) => u.map((t) => t.key === l ? {
|
|
24
24
|
...t,
|
|
25
25
|
label: `${t.label}(默认)`
|
|
26
|
-
} : t), ie = U(({ display: l, postHeight:
|
|
26
|
+
} : t), ie = U(({ display: l, postHeight: u }, t) => {
|
|
27
27
|
var j, g;
|
|
28
|
-
const { token: o } = Y.useToken(), y =
|
|
28
|
+
const { token: o } = Y.useToken(), y = P(null);
|
|
29
29
|
x(() => {
|
|
30
30
|
var r;
|
|
31
|
-
|
|
31
|
+
u((r = y.current) == null ? void 0 : r.clientHeight);
|
|
32
32
|
}, []);
|
|
33
|
-
const
|
|
33
|
+
const v = X(() => ({
|
|
34
34
|
display: "flex",
|
|
35
35
|
width: l ? "100%" : 0,
|
|
36
36
|
pointerEvents: l ? "auto" : "none",
|
|
@@ -44,151 +44,79 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
|
|
|
44
44
|
}), [l]), S = {
|
|
45
45
|
size: 26,
|
|
46
46
|
color: o.colorPrimary
|
|
47
|
-
}, [a] = n.useForm(),
|
|
48
|
-
var
|
|
47
|
+
}, [a] = n.useForm(), B = (j = h(M).Table) == null ? void 0 : j.stylesScope, { defaultTableSize: w, stylesConfig: E, defaultTableStylesConfig: b } = h(O), i = (g = h(re).config) == null ? void 0 : g.stylesConfig, d = (r, c) => {
|
|
48
|
+
var C, z;
|
|
49
49
|
let m = c;
|
|
50
|
-
return (
|
|
51
|
-
disabled: (
|
|
50
|
+
return (C = i == null ? void 0 : i[r]) != null && C.disabled && (m = Q(c, "disabledControl")), {
|
|
51
|
+
disabled: (z = i == null ? void 0 : i[r]) == null ? void 0 : z.disabled,
|
|
52
52
|
className: m
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
x(() => {
|
|
56
56
|
a.setFieldsValue({
|
|
57
57
|
...b,
|
|
58
|
-
...
|
|
59
|
-
stylesScope:
|
|
58
|
+
...E,
|
|
59
|
+
stylesScope: B === "global"
|
|
60
60
|
});
|
|
61
61
|
}, []);
|
|
62
|
-
const
|
|
62
|
+
const H = () => {
|
|
63
63
|
a.setFieldsValue({
|
|
64
64
|
...b,
|
|
65
65
|
stylesScope: !1
|
|
66
66
|
});
|
|
67
|
-
},
|
|
68
|
-
defaultSize:
|
|
67
|
+
}, R = te({
|
|
68
|
+
defaultSize: w,
|
|
69
69
|
items: [
|
|
70
70
|
{
|
|
71
71
|
key: "xs",
|
|
72
72
|
label: "特紧凑",
|
|
73
|
-
icon:
|
|
73
|
+
icon: W
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
key: "sm",
|
|
77
77
|
label: "紧凑",
|
|
78
|
-
icon:
|
|
78
|
+
icon: G
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
key: "md",
|
|
82
82
|
label: "中等",
|
|
83
|
-
icon:
|
|
83
|
+
icon: N
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
key: "lg",
|
|
87
87
|
label: "宽松",
|
|
88
|
-
icon:
|
|
88
|
+
icon: T
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: "xl",
|
|
92
92
|
label: "特宽松",
|
|
93
|
-
icon:
|
|
93
|
+
icon: A
|
|
94
94
|
}
|
|
95
95
|
]
|
|
96
96
|
});
|
|
97
97
|
_(t, () => ({
|
|
98
98
|
getFormInstance: () => a
|
|
99
99
|
}));
|
|
100
|
-
const f =
|
|
100
|
+
const f = P(null), [F, k] = ee("auto");
|
|
101
101
|
return x(() => {
|
|
102
|
-
f &&
|
|
103
|
-
}, []),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
/* @__PURE__ */ e.jsx(s, { label: "行分割线", value: "row", children: /* @__PURE__ */ e.jsx(
|
|
121
|
-
D,
|
|
122
|
-
{
|
|
123
|
-
size: 26,
|
|
124
|
-
color: [
|
|
125
|
-
o.colorPrimaryHover,
|
|
126
|
-
o.colorPrimary,
|
|
127
|
-
o.colorPrimary,
|
|
128
|
-
o.colorPrimaryHover
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
) }),
|
|
132
|
-
/* @__PURE__ */ e.jsx(s, { label: "列分割线", value: "column", children: /* @__PURE__ */ e.jsx(
|
|
133
|
-
J,
|
|
134
|
-
{
|
|
135
|
-
size: 26,
|
|
136
|
-
color: [
|
|
137
|
-
o.colorPrimaryHover,
|
|
138
|
-
o.colorPrimary,
|
|
139
|
-
o.colorPrimary,
|
|
140
|
-
o.colorPrimaryHover
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
) }),
|
|
144
|
-
/* @__PURE__ */ e.jsx(s, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ e.jsx(
|
|
145
|
-
$,
|
|
146
|
-
{
|
|
147
|
-
size: 26,
|
|
148
|
-
color: [
|
|
149
|
-
o.colorPrimaryHover,
|
|
150
|
-
o.colorPrimary,
|
|
151
|
-
o.colorPrimary,
|
|
152
|
-
o.colorPrimaryHover
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
) })
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
) }),
|
|
159
|
-
/* @__PURE__ */ e.jsx(n.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ e.jsxs(p.Group, { ...u("zebra", "zebraRadioGroup"), children: [
|
|
160
|
-
/* @__PURE__ */ e.jsx(s, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ e.jsx(
|
|
161
|
-
K,
|
|
162
|
-
{
|
|
163
|
-
size: 26,
|
|
164
|
-
color: [o.colorPrimaryHover, o.colorPrimary]
|
|
165
|
-
}
|
|
166
|
-
) }),
|
|
167
|
-
/* @__PURE__ */ e.jsx(s, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ e.jsx(
|
|
168
|
-
L,
|
|
169
|
-
{
|
|
170
|
-
size: 26,
|
|
171
|
-
color: o.colorPrimaryHover
|
|
172
|
-
}
|
|
173
|
-
) })
|
|
174
|
-
] }) }),
|
|
175
|
-
/* @__PURE__ */ e.jsxs(Z, { gutter: 16, className: "scopeAndReset", children: [
|
|
176
|
-
/* @__PURE__ */ e.jsx(P, { ref: f, style: { width: B }, className: "scope", children: /* @__PURE__ */ e.jsx(n.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(le, {}) }) }),
|
|
177
|
-
/* @__PURE__ */ e.jsx(P, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
|
|
178
|
-
q,
|
|
179
|
-
{
|
|
180
|
-
type: "link",
|
|
181
|
-
icon: /* @__PURE__ */ e.jsx(se, {}),
|
|
182
|
-
size: "small",
|
|
183
|
-
onClick: k,
|
|
184
|
-
children: "重置"
|
|
185
|
-
}
|
|
186
|
-
) })
|
|
187
|
-
] })
|
|
188
|
-
]
|
|
189
|
-
}
|
|
190
|
-
) });
|
|
191
|
-
}), Re = oe(ie);
|
|
102
|
+
f && k(f.current.clientWidth + 10);
|
|
103
|
+
}, []), e.jsx("div", { style: v, ref: y, children: e.jsxs(n, { form: a, style: { width: "100%" }, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "stylesConfigFormContent", children: [e.jsx(n.Item, { label: "行高", name: "size", children: e.jsx(p.Group, { ...d("size", "sizeRadioGroup"), children: R.map(({ key: r, label: c, icon: m }) => e.jsx(s, { label: c, value: r, children: e.jsx(m, { ...S }) }, r)) }) }), e.jsx(n.Item, { label: "分割线", name: "bordered", children: e.jsxs(p.Group, { ...d("bordered", "splitBorderRadioGroup"), children: [e.jsx(s, { label: "无分割线", value: "hide", children: e.jsx(D, { size: 26, color: o.colorPrimaryHover }) }), e.jsx(s, { label: "行分割线", value: "row", children: e.jsx($, { size: 26, color: [
|
|
104
|
+
o.colorPrimaryHover,
|
|
105
|
+
o.colorPrimary,
|
|
106
|
+
o.colorPrimary,
|
|
107
|
+
o.colorPrimaryHover
|
|
108
|
+
] }) }), e.jsx(s, { label: "列分割线", value: "column", children: e.jsx(J, { size: 26, color: [
|
|
109
|
+
o.colorPrimaryHover,
|
|
110
|
+
o.colorPrimary,
|
|
111
|
+
o.colorPrimary,
|
|
112
|
+
o.colorPrimaryHover
|
|
113
|
+
] }) }), e.jsx(s, { label: "行列分割线", value: "row-column", children: e.jsx(V, { size: 26, color: [
|
|
114
|
+
o.colorPrimaryHover,
|
|
115
|
+
o.colorPrimary,
|
|
116
|
+
o.colorPrimary,
|
|
117
|
+
o.colorPrimaryHover
|
|
118
|
+
] }) })] }) }), e.jsx(n.Item, { label: "斑马纹", name: "zebra", children: e.jsxs(p.Group, { ...d("zebra", "zebraRadioGroup"), children: [e.jsx(s, { label: "有斑马纹", value: !0, children: e.jsx(K, { size: 26, color: [o.colorPrimaryHover, o.colorPrimary] }) }), e.jsx(s, { label: "无斑马纹", value: !1, children: e.jsx(L, { size: 26, color: o.colorPrimaryHover }) })] }) }), e.jsxs(Z, { gutter: 16, className: "scopeAndReset", children: [e.jsx(I, { ref: f, style: { width: F }, className: "scope", children: e.jsx(n.Item, { name: "stylesScope", children: e.jsx(le, {}) }) }), e.jsx(I, { style: { alignSelf: "flex-end" }, className: "reset", children: e.jsx(q, { type: "link", icon: e.jsx(se, {}), size: "small", onClick: H, children: "重置" }) })] })] }) });
|
|
119
|
+
}), Ee = oe(ie);
|
|
192
120
|
export {
|
|
193
|
-
|
|
121
|
+
Ee as default
|
|
194
122
|
};
|