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,25 +1,18 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { theme as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { BitzTableContext as
|
|
8
|
-
import { css as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
const { order:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
immediateSave: a,
|
|
17
|
-
setCountdown: C
|
|
18
|
-
} = S(M), { toolbarItemClassName: g } = N(), [h, l] = b(!1);
|
|
19
|
-
w(() => (n && o > 0 ? s.current = setInterval(() => {
|
|
20
|
-
C((i) => i - 1);
|
|
21
|
-
}, 1e3) : clearInterval(s.current), o === 0 && n && a(), () => clearInterval(s.current)), [n, o]);
|
|
22
|
-
const j = k(() => r ? !1 : void 0, [r]), v = O`
|
|
2
|
+
import { useRef as v, useContext as B, useState as S, useEffect as b, useMemo as w } from "react";
|
|
3
|
+
import { theme as D, Popconfirm as E, Statistic as F } from "antd";
|
|
4
|
+
import k from "./ColumnConfigModal.mjs";
|
|
5
|
+
import z from "../style.mjs";
|
|
6
|
+
import I from "../../../BitzButton/index.mjs";
|
|
7
|
+
import { BitzTableContext as R } from "../../Store/index.mjs";
|
|
8
|
+
import { css as A } from "../../../../node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
9
|
+
import N from "../../../../node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs";
|
|
10
|
+
const c = "表格设置", K = (e) => {
|
|
11
|
+
const { order: f, show: m = !0, icon: d = t.jsx(N, {}) } = e, { token: p } = D.useToken(), i = v(), { fullscreen: r, isSaving: n, countdown: o, cancelAutoSave: x, immediateSave: a, setCountdown: C } = B(R), { toolbarItemClassName: g } = z(), [h, l] = S(!1);
|
|
12
|
+
b(() => (n && o > 0 ? i.current = setInterval(() => {
|
|
13
|
+
C((s) => s - 1);
|
|
14
|
+
}, 1e3) : clearInterval(i.current), o === 0 && n && a(), () => clearInterval(i.current)), [n, o]);
|
|
15
|
+
const j = w(() => r ? !1 : void 0, [r]), y = A`
|
|
23
16
|
.ant-statistic {
|
|
24
17
|
display: inline-block;
|
|
25
18
|
}
|
|
@@ -43,47 +36,10 @@ const f = "表格设置", K = (e) => {
|
|
|
43
36
|
}
|
|
44
37
|
}
|
|
45
38
|
`;
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
open: h,
|
|
51
|
-
title: f,
|
|
52
|
-
onChange: async (...i) => {
|
|
53
|
-
var c;
|
|
54
|
-
return (c = e.onChange) == null ? void 0 : c.call(e, ...i);
|
|
55
|
-
},
|
|
56
|
-
getContainer: j,
|
|
57
|
-
close: () => l(!1)
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
/* @__PURE__ */ t.jsx(
|
|
61
|
-
I,
|
|
62
|
-
{
|
|
63
|
-
placement: "topRight",
|
|
64
|
-
title: "是否保存列宽设置",
|
|
65
|
-
open: n,
|
|
66
|
-
description: /* @__PURE__ */ t.jsxs("span", { children: [
|
|
67
|
-
/* @__PURE__ */ t.jsx(R, { value: o, suffix: "秒" }),
|
|
68
|
-
"后将自动保存"
|
|
69
|
-
] }),
|
|
70
|
-
onConfirm: a,
|
|
71
|
-
onCancel: x,
|
|
72
|
-
overlayClassName: v,
|
|
73
|
-
children: /* @__PURE__ */ t.jsx(
|
|
74
|
-
E,
|
|
75
|
-
{
|
|
76
|
-
type: "text",
|
|
77
|
-
className: g,
|
|
78
|
-
onClick: () => l(!0),
|
|
79
|
-
icon: d,
|
|
80
|
-
style: { order: m },
|
|
81
|
-
children: f
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
] }) : null;
|
|
39
|
+
return m ? t.jsxs(t.Fragment, { children: [t.jsx(k, { open: h, title: c, onChange: async (...s) => {
|
|
40
|
+
var u;
|
|
41
|
+
return (u = e.onChange) == null ? void 0 : u.call(e, ...s);
|
|
42
|
+
}, getContainer: j, close: () => l(!1) }), t.jsx(E, { placement: "topRight", title: "是否保存列宽设置", open: n, description: t.jsxs("span", { children: [t.jsx(F, { value: o, suffix: "秒" }), "后将自动保存"] }), onConfirm: a, onCancel: x, overlayClassName: y, children: t.jsx(I, { type: "text", className: g, onClick: () => l(!0), icon: d, style: { order: f }, children: c }) })] }) : null;
|
|
87
43
|
};
|
|
88
44
|
export {
|
|
89
45
|
K as default
|
|
@@ -1,72 +1,29 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Card as
|
|
3
|
-
import { useState as y, useContext as k, useRef as
|
|
2
|
+
import { Card as g, Flex as l, message as j } from "antd";
|
|
3
|
+
import { useState as y, useContext as k, useRef as B, useMemo as b } from "react";
|
|
4
4
|
import { BitzTableContext as E } from "../../Store/index.mjs";
|
|
5
5
|
import c from "../../../BitzButton/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const G = ({
|
|
11
|
-
|
|
12
|
-
title: m,
|
|
13
|
-
onExport: n,
|
|
14
|
-
close: t,
|
|
15
|
-
getContainer: d
|
|
16
|
-
}) => {
|
|
17
|
-
const { token: s } = O.useToken(), [p, r] = y(!1), { defaultTableExportConfig: u } = k(E), o = b(null), x = async () => {
|
|
6
|
+
import F from "../../../BitzTheme/index.mjs";
|
|
7
|
+
import O from "../Modal/index.mjs";
|
|
8
|
+
import R from "../ColConfigIcon/ExportConfig/index.mjs";
|
|
9
|
+
import T from "../../../../node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
10
|
+
const G = ({ open: f, title: m, onExport: n, close: r, getContainer: d }) => {
|
|
11
|
+
const { token: s } = F.useToken(), [u, t] = y(!1), { defaultTableExportConfig: p } = k(E), o = B(null), x = async () => {
|
|
18
12
|
var i, a;
|
|
19
|
-
if (
|
|
13
|
+
if (u)
|
|
20
14
|
return;
|
|
21
|
-
if (
|
|
22
|
-
j.error("导出设置至少需要一个字段"),
|
|
15
|
+
if (t(!0), !((i = o.current) == null ? void 0 : i.hasOne())) {
|
|
16
|
+
j.error("导出设置至少需要一个字段"), t(!1);
|
|
23
17
|
return;
|
|
24
18
|
}
|
|
25
|
-
const
|
|
26
|
-
n && (
|
|
19
|
+
const C = ((a = o.current) == null ? void 0 : a.getExportConfig()) ?? p;
|
|
20
|
+
n && (t(!1), n(C), r());
|
|
27
21
|
};
|
|
28
|
-
|
|
22
|
+
b(() => s.mode === "dark", [s.mode]);
|
|
29
23
|
const h = () => {
|
|
30
|
-
|
|
24
|
+
t(!1);
|
|
31
25
|
};
|
|
32
|
-
return
|
|
33
|
-
R,
|
|
34
|
-
{
|
|
35
|
-
open: f,
|
|
36
|
-
title: m,
|
|
37
|
-
close: t,
|
|
38
|
-
closeAfter: h,
|
|
39
|
-
getContainer: d,
|
|
40
|
-
footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
41
|
-
/* @__PURE__ */ e.jsx(
|
|
42
|
-
c,
|
|
43
|
-
{
|
|
44
|
-
type: "primary",
|
|
45
|
-
icon: /* @__PURE__ */ e.jsx(z, {}),
|
|
46
|
-
onClick: x,
|
|
47
|
-
children: "导出"
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ e.jsx(c, { onClick: t, children: "取消" })
|
|
51
|
-
] }),
|
|
52
|
-
children: /* @__PURE__ */ e.jsx(
|
|
53
|
-
C,
|
|
54
|
-
{
|
|
55
|
-
className: "container",
|
|
56
|
-
bordered: !1,
|
|
57
|
-
styles: { body: { paddingBlock: 24 } },
|
|
58
|
-
children: /* @__PURE__ */ e.jsx(l, { vertical: !0, align: "center", gap: 24, style: { height: "100%" }, children: /* @__PURE__ */ e.jsx(l, { className: "containerBody", children: /* @__PURE__ */ e.jsx(
|
|
59
|
-
T,
|
|
60
|
-
{
|
|
61
|
-
refInstance: o,
|
|
62
|
-
display: !0,
|
|
63
|
-
showSelectRadio: !0
|
|
64
|
-
}
|
|
65
|
-
) }) })
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
}
|
|
69
|
-
);
|
|
26
|
+
return e.jsx(O, { open: f, title: m, close: r, closeAfter: h, getContainer: d, footer: e.jsxs(e.Fragment, { children: [e.jsx(c, { type: "primary", icon: e.jsx(T, {}), onClick: x, children: "导出" }), e.jsx(c, { onClick: r, children: "取消" })] }), children: e.jsx(g, { className: "container", bordered: !1, styles: { body: { paddingBlock: 24 } }, children: e.jsx(l, { vertical: !0, align: "center", gap: 24, style: { height: "100%" }, children: e.jsx(l, { className: "containerBody", children: e.jsx(R, { refInstance: o, display: !0, showSelectRadio: !0 }) }) }) }) });
|
|
70
27
|
};
|
|
71
28
|
export {
|
|
72
29
|
G as default
|
|
@@ -1,47 +1,19 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as j, useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { BitzTableContext as
|
|
6
|
-
import { exportConfigTitle as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
icon: f = /* @__PURE__ */ t.jsx(I, {})
|
|
14
|
-
}) => {
|
|
15
|
-
const { toolbarItemClassName: x } = b(), [u, s] = y(!1);
|
|
16
|
-
l(i).exportConfig;
|
|
17
|
-
const { loading: c, fullscreen: n, dataSource: e } = l(i), d = E(() => n ? !1 : void 0, [n]), g = async (r) => {
|
|
2
|
+
import { memo as j, useState as E, useContext as i, useMemo as y } from "react";
|
|
3
|
+
import C from "../style.mjs";
|
|
4
|
+
import B from "../../../BitzButton/index.mjs";
|
|
5
|
+
import { BitzTableContext as l } from "../../Store/index.mjs";
|
|
6
|
+
import { exportConfigTitle as b } from "../ColConfigIcon/ColumnConfigModal.mjs";
|
|
7
|
+
import h from "./ExportModal.mjs";
|
|
8
|
+
import F from "../../../../node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
|
|
9
|
+
const I = ({ show: p = !0, order: a, onClick: e, icon: f = t.jsx(F, {}) }) => {
|
|
10
|
+
const { toolbarItemClassName: x } = C(), [u, r] = E(!1);
|
|
11
|
+
i(l).exportConfig;
|
|
12
|
+
const { loading: c, fullscreen: s, dataSource: o } = i(l), d = y(() => s ? !1 : void 0, [s]), g = async (n) => {
|
|
18
13
|
var m;
|
|
19
|
-
|
|
14
|
+
e == null || e(n.config.key, n.fields, (m = n.config) == null ? void 0 : m.info);
|
|
20
15
|
};
|
|
21
|
-
return p ?
|
|
22
|
-
/* @__PURE__ */ t.jsx(
|
|
23
|
-
C,
|
|
24
|
-
{
|
|
25
|
-
open: u,
|
|
26
|
-
title: B,
|
|
27
|
-
getContainer: d,
|
|
28
|
-
onExport: g,
|
|
29
|
-
close: () => s(!1)
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ t.jsx(
|
|
33
|
-
h,
|
|
34
|
-
{
|
|
35
|
-
type: "text",
|
|
36
|
-
className: x,
|
|
37
|
-
icon: f,
|
|
38
|
-
style: { order: a },
|
|
39
|
-
disabled: c || !(e != null && e.length),
|
|
40
|
-
onClick: () => s(!0),
|
|
41
|
-
children: "导出"
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
] }) : (
|
|
16
|
+
return p ? t.jsxs(t.Fragment, { children: [t.jsx(h, { open: u, title: b, getContainer: d, onExport: g, close: () => r(!1) }), t.jsx(B, { type: "text", className: x, icon: f, style: { order: a }, disabled: c || !(o != null && o.length), onClick: () => r(!0), children: "导出" })] }) : (
|
|
45
17
|
// <Dropdown
|
|
46
18
|
// open={open}
|
|
47
19
|
// onOpenChange={setOpen}
|
|
@@ -68,7 +40,7 @@ const z = ({
|
|
|
68
40
|
// </Dropdown>
|
|
69
41
|
null
|
|
70
42
|
);
|
|
71
|
-
}, G = j(
|
|
43
|
+
}, G = j(I);
|
|
72
44
|
export {
|
|
73
45
|
G as default
|
|
74
46
|
};
|
|
@@ -8,16 +8,13 @@ import { findParentFirstNodeByClass as j } from "../../../../utils/findNode.mjs"
|
|
|
8
8
|
import { BitzTableContext as C } from "../../Store/index.mjs";
|
|
9
9
|
import h from "../../../../node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs";
|
|
10
10
|
import k from "../../../../node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs";
|
|
11
|
-
const y = ({
|
|
12
|
-
order: d,
|
|
13
|
-
show: p = !0
|
|
14
|
-
}) => {
|
|
11
|
+
const y = ({ order: d, show: p = !0 }) => {
|
|
15
12
|
const { toolbarItemClassName: b } = L(), { fullscreen: n, setFullscreen: o } = B(C), r = z(() => n ? {
|
|
16
13
|
title: "退出全屏",
|
|
17
|
-
icon:
|
|
14
|
+
icon: s.jsx(h, {})
|
|
18
15
|
} : {
|
|
19
16
|
title: "全屏",
|
|
20
|
-
icon:
|
|
17
|
+
icon: s.jsx(k, {})
|
|
21
18
|
}, [n]), x = (e) => {
|
|
22
19
|
l.isEnabled || g.error("您的浏览器不支持全屏");
|
|
23
20
|
const t = j(e.target, "bitzTableBlock");
|
|
@@ -28,23 +25,11 @@ const y = ({
|
|
|
28
25
|
var i, m;
|
|
29
26
|
((i = c.target) != null && i.classList.contains("bitzTableBlock") || (m = c.target) != null && m.classList.contains(e)) && setTimeout(() => {
|
|
30
27
|
var u, a, f;
|
|
31
|
-
o(!!document.fullscreenElement), (a = (u = document.fullscreenElement) == null ? void 0 : u.classList) != null && a.contains(
|
|
32
|
-
"bitzTableBlock"
|
|
33
|
-
) || (f = document.fullscreenElement) != null && f.classList.contains(e) || o(!1);
|
|
28
|
+
o(!!document.fullscreenElement), (a = (u = document.fullscreenElement) == null ? void 0 : u.classList) != null && a.contains("bitzTableBlock") || (f = document.fullscreenElement) != null && f.classList.contains(e) || o(!1);
|
|
34
29
|
}, 300);
|
|
35
30
|
};
|
|
36
31
|
return document == null || document.addEventListener("fullscreenchange", t), () => document == null ? void 0 : document.removeEventListener("fullscreenchange", t);
|
|
37
|
-
}, []), p ?
|
|
38
|
-
T,
|
|
39
|
-
{
|
|
40
|
-
type: "text",
|
|
41
|
-
className: b,
|
|
42
|
-
onClick: x,
|
|
43
|
-
icon: r.icon,
|
|
44
|
-
style: { order: d },
|
|
45
|
-
children: r.title
|
|
46
|
-
}
|
|
47
|
-
) : null;
|
|
32
|
+
}, []), p ? s.jsx(T, { type: "text", className: b, onClick: x, icon: r.icon, style: { order: d }, children: r.title }) : null;
|
|
48
33
|
}, $ = E(y);
|
|
49
34
|
export {
|
|
50
35
|
$ as default
|
|
@@ -1,55 +1,23 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as r } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Modal as C, Typography as c } from "antd";
|
|
3
3
|
import { useMemo as p } from "react";
|
|
4
4
|
import g from "../../../BitzTheme/index.mjs";
|
|
5
5
|
import u from "../../../../node_modules/classnames/index.mjs";
|
|
6
|
-
import { styles as y, modalTitleHeight as
|
|
7
|
-
function H({
|
|
8
|
-
|
|
9
|
-
title: s,
|
|
10
|
-
close: a,
|
|
11
|
-
closeAfter: l,
|
|
12
|
-
getContainer: i,
|
|
13
|
-
footer: m,
|
|
14
|
-
extra: h,
|
|
15
|
-
styles: n,
|
|
16
|
-
children: d
|
|
17
|
-
}) {
|
|
18
|
-
const { token: o } = g.useToken(), r = p(() => o.mode === "dark", [o.mode]), f = () => {
|
|
6
|
+
import { styles as y, modalTitleHeight as h } from "./style.mjs";
|
|
7
|
+
function H({ open: t, title: s, close: a, closeAfter: l, getContainer: i, footer: n, extra: x, styles: m, children: d }) {
|
|
8
|
+
const { token: o } = g.useToken(), e = p(() => o.mode === "dark", [o.mode]), f = () => {
|
|
19
9
|
l();
|
|
20
10
|
};
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
margin: 0
|
|
32
|
-
},
|
|
33
|
-
children: s
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
getContainer: i,
|
|
37
|
-
open: e,
|
|
38
|
-
onCancel: a,
|
|
39
|
-
afterClose: f,
|
|
40
|
-
style: {
|
|
41
|
-
"--sortCard-bgColor": r ? "#444" : "#f2f2f2",
|
|
42
|
-
"--sortCard-titleColor": r ? "#ccc" : "#777",
|
|
43
|
-
"--radioCard-bgColor": r ? "#444" : "#F2F2F2",
|
|
44
|
-
"--radioCard-bgHoverColor": r ? "#333" : o.colorBgContainer
|
|
45
|
-
},
|
|
46
|
-
styles: n,
|
|
47
|
-
width: 700,
|
|
48
|
-
footer: m,
|
|
49
|
-
destroyOnClose: !0,
|
|
50
|
-
children: d
|
|
51
|
-
}
|
|
52
|
-
);
|
|
11
|
+
return r.jsx(C, { className: u(y(o), "tableConfigModal"), title: r.jsx(c.Title, { style: {
|
|
12
|
+
fontSize: 16,
|
|
13
|
+
lineHeight: `${h}px`,
|
|
14
|
+
margin: 0
|
|
15
|
+
}, children: s }), getContainer: i, open: t, onCancel: a, afterClose: f, style: {
|
|
16
|
+
"--sortCard-bgColor": e ? "#444" : "#f2f2f2",
|
|
17
|
+
"--sortCard-titleColor": e ? "#ccc" : "#777",
|
|
18
|
+
"--radioCard-bgColor": e ? "#444" : "#F2F2F2",
|
|
19
|
+
"--radioCard-bgHoverColor": e ? "#333" : o.colorBgContainer
|
|
20
|
+
}, styles: m, width: 700, footer: n, destroyOnClose: !0, children: d });
|
|
53
21
|
}
|
|
54
22
|
export {
|
|
55
23
|
H as default
|
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import { j as o } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { BitzTableContext as
|
|
2
|
+
import { memo as c, useContext as a } from "react";
|
|
3
|
+
import { Tooltip as u } from "antd";
|
|
4
|
+
import p from "../style.mjs";
|
|
5
|
+
import f from "../../../BitzButton/index.mjs";
|
|
6
|
+
import { BitzTableContext as d } from "../../Store/index.mjs";
|
|
7
7
|
import x from "../../../../node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs";
|
|
8
8
|
const h = (t) => {
|
|
9
|
-
const { onClick: e, order: r, show: s = !0, icon: n =
|
|
10
|
-
return s ?
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
type: "text",
|
|
14
|
-
className: i,
|
|
15
|
-
disabled: l || m,
|
|
16
|
-
onClick: e,
|
|
17
|
-
icon: n,
|
|
18
|
-
style: { order: r },
|
|
19
|
-
children: "刷新"
|
|
20
|
-
}
|
|
21
|
-
) }) : null;
|
|
22
|
-
}, z = a(h);
|
|
9
|
+
const { onClick: e, order: r, show: s = !0, icon: n = o.jsx(x, {}) } = t, { loading: i, selected: l } = a(d), { toolbarItemClassName: m } = p();
|
|
10
|
+
return s ? o.jsx(u, { title: "刷新", open: !1, children: o.jsx(f, { type: "text", className: m, disabled: i || l, onClick: e, icon: n, style: { order: r }, children: "刷新" }) }) : null;
|
|
11
|
+
}, k = c(h);
|
|
23
12
|
export {
|
|
24
|
-
|
|
13
|
+
k as default
|
|
25
14
|
};
|
|
@@ -8,15 +8,7 @@ import I from "../ExportIcon/index.mjs";
|
|
|
8
8
|
import { BitzConfigContext as R } from "../../../BitzConfigProvider/context.mjs";
|
|
9
9
|
import { BitzToolBarContext as b } from "./context.mjs";
|
|
10
10
|
import { BitzTableContext as k } from "../../Store/index.mjs";
|
|
11
|
-
const F = ["export", "refresh", "fullscreen", "config"], J = ({
|
|
12
|
-
size: W,
|
|
13
|
-
tools: l,
|
|
14
|
-
toolsConfig: m,
|
|
15
|
-
exclude: t,
|
|
16
|
-
onExport: p,
|
|
17
|
-
onRefresh: d,
|
|
18
|
-
onColumnChange: a
|
|
19
|
-
}) => {
|
|
11
|
+
const F = ["export", "refresh", "fullscreen", "config"], J = ({ size: W, tools: l, toolsConfig: m, exclude: t, onExport: p, onRefresh: d, onColumnChange: a }) => {
|
|
20
12
|
const { Table: e } = c(R), { selected: u, setToolbarWidth: x } = c(k), i = h(() => {
|
|
21
13
|
const s = l || (e == null ? void 0 : e.toolbar) || F;
|
|
22
14
|
return t != null && t.length ? s.filter((n) => !t.includes(n)) : s;
|
|
@@ -33,46 +25,7 @@ const F = ["export", "refresh", "fullscreen", "config"], J = ({
|
|
|
33
25
|
}, [i]), f = g(null);
|
|
34
26
|
return C(() => {
|
|
35
27
|
f.current && x(f.current.clientWidth);
|
|
36
|
-
}, [f.current]),
|
|
37
|
-
j,
|
|
38
|
-
{
|
|
39
|
-
ref: f,
|
|
40
|
-
style: { height: "100%", ...u && { zIndex: 10 } },
|
|
41
|
-
children: /* @__PURE__ */ r.jsxs(z.Compact, { children: [
|
|
42
|
-
/* @__PURE__ */ r.jsx(
|
|
43
|
-
I,
|
|
44
|
-
{
|
|
45
|
-
order: o.export.order,
|
|
46
|
-
show: o.export.show,
|
|
47
|
-
onClick: p
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ r.jsx(
|
|
51
|
-
B,
|
|
52
|
-
{
|
|
53
|
-
order: o.refresh.order,
|
|
54
|
-
show: o.refresh.show,
|
|
55
|
-
onClick: d
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
/* @__PURE__ */ r.jsx(
|
|
59
|
-
E,
|
|
60
|
-
{
|
|
61
|
-
order: o.fullscreen.order,
|
|
62
|
-
show: o.fullscreen.show
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
/* @__PURE__ */ r.jsx(
|
|
66
|
-
T,
|
|
67
|
-
{
|
|
68
|
-
order: o.config.order,
|
|
69
|
-
show: o.config.show,
|
|
70
|
-
onChange: a
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] })
|
|
74
|
-
}
|
|
75
|
-
) });
|
|
28
|
+
}, [f.current]), r.jsx(b.Provider, { value: m ?? {}, children: r.jsx(j, { ref: f, style: { height: "100%", ...u && { zIndex: 10 } }, children: r.jsxs(z.Compact, { children: [r.jsx(I, { order: o.export.order, show: o.export.show, onClick: p }), r.jsx(B, { order: o.refresh.order, show: o.refresh.show, onClick: d }), r.jsx(E, { order: o.fullscreen.order, show: o.fullscreen.show }), r.jsx(T, { order: o.config.order, show: o.config.show, onChange: a })] }) }) });
|
|
76
29
|
};
|
|
77
30
|
export {
|
|
78
31
|
J as default
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Space as p, Button as n } from "antd";
|
|
3
3
|
const m = ({ record: a = {}, operations: r = [], tableOperationEmit: s = () => {
|
|
4
|
-
}, ...l }) =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
className: `${(e == null ? void 0 : e.className) || ""}`,
|
|
8
|
-
type: e.type == "edit" ? "primary" : "default",
|
|
9
|
-
danger: e.type == "delete",
|
|
10
|
-
onClick: () => {
|
|
11
|
-
s(e.type, a);
|
|
12
|
-
},
|
|
13
|
-
children: e.label
|
|
14
|
-
},
|
|
15
|
-
i
|
|
16
|
-
)) }) });
|
|
4
|
+
}, ...l }) => t.jsx("div", { className: "bitzTableOperationsBlock", ...l, children: t.jsx(p, { children: r.map((e, i) => t.jsx(n, { className: `${(e == null ? void 0 : e.className) || ""}`, type: e.type == "edit" ? "primary" : "default", danger: e.type == "delete", onClick: () => {
|
|
5
|
+
s(e.type, a);
|
|
6
|
+
}, children: e.label }, i)) }) });
|
|
17
7
|
export {
|
|
18
8
|
m as default
|
|
19
9
|
};
|
|
@@ -3,54 +3,21 @@ import { useState as r, useEffect as j } from "react";
|
|
|
3
3
|
import { Select as b, Drawer as w, Input as S } from "antd";
|
|
4
4
|
import k from "../../BitzButton/index.mjs";
|
|
5
5
|
import "./index.less.mjs";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
value: "key"
|
|
12
|
-
},
|
|
13
|
-
onChange: t,
|
|
14
|
-
...y
|
|
15
|
-
}) => {
|
|
16
|
-
const [c, m] = r([]), [f, l] = r([]), [n, o] = r(!1), u = () => {
|
|
6
|
+
const T = ({ value: s, placeholder: i = "请选择", fieldNames: p = {
|
|
7
|
+
label: "name",
|
|
8
|
+
value: "key"
|
|
9
|
+
}, onChange: t, ...y }) => {
|
|
10
|
+
const [c, m] = r([]), [n, l] = r([]), [f, o] = r(!1), u = () => {
|
|
17
11
|
l([]), t == null || t([], []);
|
|
18
|
-
}, d = (x,
|
|
19
|
-
l(
|
|
12
|
+
}, d = (x, a) => {
|
|
13
|
+
l(a), t == null || t(x, a);
|
|
20
14
|
};
|
|
21
15
|
return j(() => {
|
|
22
16
|
if (s && !Array.isArray(s))
|
|
23
|
-
throw new Error(
|
|
24
|
-
`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`
|
|
25
|
-
);
|
|
17
|
+
throw new Error(`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`);
|
|
26
18
|
m(s ?? []);
|
|
27
|
-
}, [s]),
|
|
28
|
-
/* @__PURE__ */ e.jsx(
|
|
29
|
-
b,
|
|
30
|
-
{
|
|
31
|
-
style: { width: "200px" },
|
|
32
|
-
allowClear: !0,
|
|
33
|
-
mode: "tags",
|
|
34
|
-
maxTagCount: "responsive",
|
|
35
|
-
value: c,
|
|
36
|
-
options: f,
|
|
37
|
-
fieldNames: p,
|
|
38
|
-
showSearch: !1,
|
|
39
|
-
open: !1,
|
|
40
|
-
placeholder: a,
|
|
41
|
-
popupClassName: "tableSelectPopupBlock",
|
|
42
|
-
dropdownRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
43
|
-
onClick: () => o(!0),
|
|
44
|
-
onClear: u,
|
|
45
|
-
onChange: d
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
/* @__PURE__ */ e.jsxs(w, { open: n, placement: "bottom", height: "100%", children: [
|
|
49
|
-
/* @__PURE__ */ e.jsx(S, {}),
|
|
50
|
-
/* @__PURE__ */ e.jsx(k, { onClick: () => o(!1), children: "关闭" })
|
|
51
|
-
] })
|
|
52
|
-
] });
|
|
19
|
+
}, [s]), e.jsxs("div", { children: [e.jsx(b, { style: { width: "200px" }, allowClear: !0, mode: "tags", maxTagCount: "responsive", value: c, options: n, fieldNames: p, showSearch: !1, open: !1, placeholder: i, popupClassName: "tableSelectPopupBlock", dropdownRender: () => e.jsx(e.Fragment, {}), onClick: () => o(!0), onClear: u, onChange: d }), e.jsxs(w, { open: f, placement: "bottom", height: "100%", children: [e.jsx(S, {}), e.jsx(k, { onClick: () => o(!1), children: "关闭" })] })] });
|
|
53
20
|
};
|
|
54
21
|
export {
|
|
55
|
-
|
|
22
|
+
T as default
|
|
56
23
|
};
|