bitz-react-admin-ui 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- 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/BitzFluentTimePicker/index.mjs +1 -1
- 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 +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.mjs +33 -129
- 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 +170 -207
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
- package/dist/components/BitzTable/SubTable/index.mjs +43 -91
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +37 -59
- 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 +292 -515
- 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 +28 -92
- 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 +148 -256
- 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 +21 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +52 -106
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +13 -57
- 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 +84 -235
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +21 -84
- 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.d.ts +9 -0
- package/dist/components/BitzText/index.less.mjs +4 -0
- package/dist/components/BitzText/index.mjs +37 -0
- package/dist/components/BitzText/utils.d.ts +4 -0
- package/dist/components/BitzText/utils.mjs +5 -0
- 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.d.ts +17 -0
- package/dist/components/BitzTooltip/index.mjs +66 -0
- package/dist/components/BitzTooltip/style.d.ts +4 -0
- package/dist/components/BitzTooltip/style.mjs +47 -0
- package/dist/components/BitzTooltip/utils.d.ts +2 -0
- package/dist/components/BitzTooltip/utils.mjs +4 -0
- 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/index.d.ts +2 -0
- package/dist/index.mjs +42 -38
- package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +21 -0
- package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs +63 -0
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +7 -28
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { j as n } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { BitzTableContext as
|
|
3
|
-
import
|
|
2
|
+
import { BitzTableContext as A } from "../../../Store/index.mjs";
|
|
3
|
+
import L from "../../../../BitzTheme/index.mjs";
|
|
4
4
|
import { findParentFirstNodeByClass as O } from "../../../../../utils/findNode.mjs";
|
|
5
5
|
import P from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
6
|
-
import { Form as
|
|
7
|
-
import { memo as J, useRef as Q, useMemo as
|
|
6
|
+
import { Form as j, Flex as y, Checkbox as G, Radio as c, InputNumber as $, Select as q } from "antd";
|
|
7
|
+
import { memo as J, useRef as Q, useMemo as h, useContext as S, useState as f, useEffect as R, useImperativeHandle as U } from "react";
|
|
8
8
|
import W from "./DndList.mjs";
|
|
9
|
-
function X({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
parentHeight: p,
|
|
13
|
-
refInstance: N
|
|
14
|
-
}) {
|
|
15
|
-
M.useToken();
|
|
16
|
-
const v = Q(null), t = P(v), T = f(() => ({
|
|
9
|
+
function X({ display: r, showSelectRadio: g = !1, parentHeight: p, refInstance: I }) {
|
|
10
|
+
L.useToken();
|
|
11
|
+
const v = Q(null), t = P(v), N = h(() => ({
|
|
17
12
|
// display: display ? 'flex' : 'none'
|
|
18
13
|
width: r ? "100%" : 0,
|
|
19
14
|
height: "100%",
|
|
@@ -25,19 +20,17 @@ function X({
|
|
|
25
20
|
left: 0,
|
|
26
21
|
right: 0
|
|
27
22
|
}
|
|
28
|
-
}), [r]),
|
|
23
|
+
}), [r]), T = h(() => typeof p == "number" && p && (t != null && t.height) ? p - (t == null ? void 0 : t.height) - 20 : "auto", [p, t == null ? void 0 : t.height]), l = S(A).exportConfig, x = S(A).selected, [i, w] = f([]), [a, d] = f([]), [m, F] = f("current"), [E, B] = f("page"), [C, b] = f(1);
|
|
29
24
|
R(() => {
|
|
30
|
-
var e, s,
|
|
31
|
-
d(l.fields), w(l.fields.map((
|
|
32
|
-
g && x ? "selectedRows" : l.config.key
|
|
33
|
-
), E(((s = (e = l.config) == null ? void 0 : e.info) == null ? void 0 : s.type) ?? "page"), S(((A = (c = l.config) == null ? void 0 : c.info) == null ? void 0 : A.value) ?? 1);
|
|
25
|
+
var e, s, u, k;
|
|
26
|
+
d(l.fields), w(l.fields.map((M) => M.field)), F(g && x ? "selectedRows" : l.config.key), B(((s = (e = l.config) == null ? void 0 : e.info) == null ? void 0 : s.type) ?? "page"), b(((k = (u = l.config) == null ? void 0 : u.info) == null ? void 0 : k.value) ?? 1);
|
|
34
27
|
}, [l, g, x]);
|
|
35
|
-
const o =
|
|
28
|
+
const o = h(() => a.filter((e) => e.show).map((e) => e.field), [a]), D = h(() => i.length === o.length, [i, o]), V = h(() => o.length > 0 && o.length < i.length, [o, i]), z = ({ target: e }) => {
|
|
36
29
|
d(a.map((s) => ({ ...s, show: e.checked })));
|
|
37
|
-
},
|
|
30
|
+
}, K = (e, s) => {
|
|
38
31
|
d(e), w(s);
|
|
39
32
|
};
|
|
40
|
-
return U(
|
|
33
|
+
return U(I, () => ({
|
|
41
34
|
getExportConfig: () => {
|
|
42
35
|
const e = {
|
|
43
36
|
fields: [],
|
|
@@ -47,87 +40,18 @@ function X({
|
|
|
47
40
|
}
|
|
48
41
|
};
|
|
49
42
|
return a.forEach((s) => {
|
|
50
|
-
let
|
|
51
|
-
o.includes(s.field) && (
|
|
43
|
+
let u = !1;
|
|
44
|
+
o.includes(s.field) && (u = !0), e.fields.push({ ...s, show: u });
|
|
52
45
|
}), m === "any" && (e.config.info = {
|
|
53
|
-
type:
|
|
54
|
-
value: (
|
|
46
|
+
type: E,
|
|
47
|
+
value: (C || 0) < 1 ? 1 : C || 1
|
|
55
48
|
}), e;
|
|
56
49
|
},
|
|
57
50
|
hasOne: () => o.length > 0
|
|
58
|
-
})),
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
labelCol: { span: 3 },
|
|
63
|
-
labelAlign: "left",
|
|
64
|
-
colon: !1,
|
|
65
|
-
className: "exportConfigFormContent",
|
|
66
|
-
children: [
|
|
67
|
-
/* @__PURE__ */ n.jsx(C.Item, { label: "导出字段", className: "exportFields", children: /* @__PURE__ */ n.jsxs(y, { vertical: !0, style: { gap: 8, maxHeight: B }, children: [
|
|
68
|
-
/* @__PURE__ */ n.jsx(
|
|
69
|
-
G,
|
|
70
|
-
{
|
|
71
|
-
checked: V,
|
|
72
|
-
indeterminate: z,
|
|
73
|
-
onChange: K,
|
|
74
|
-
style: { alignSelf: "flex-start" },
|
|
75
|
-
children: "全选"
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
/* @__PURE__ */ n.jsx(
|
|
79
|
-
W,
|
|
80
|
-
{
|
|
81
|
-
dataList: a,
|
|
82
|
-
keys: i,
|
|
83
|
-
onChange: d,
|
|
84
|
-
onMoveEnd: D
|
|
85
|
-
}
|
|
86
|
-
)
|
|
87
|
-
] }) }),
|
|
88
|
-
/* @__PURE__ */ n.jsx(C.Item, { label: "导出设置", className: "exportTotal", children: /* @__PURE__ */ n.jsx(
|
|
89
|
-
h.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
|
-
g && x && /* @__PURE__ */ n.jsx(h, { value: "selectedRows", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出选中数据" }) }),
|
|
96
|
-
/* @__PURE__ */ n.jsx(h, { value: "current", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "仅导出当前页" }) }),
|
|
97
|
-
/* @__PURE__ */ n.jsx(h, { 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
|
-
$,
|
|
101
|
-
{
|
|
102
|
-
controls: !1,
|
|
103
|
-
min: 1,
|
|
104
|
-
value: j,
|
|
105
|
-
onChange: (e) => S(e),
|
|
106
|
-
style: { width: 120 },
|
|
107
|
-
addonAfter: /* @__PURE__ */ n.jsx(
|
|
108
|
-
q,
|
|
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) => O(e, "containerBody")
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
/* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })
|
|
123
|
-
] }) }),
|
|
124
|
-
/* @__PURE__ */ n.jsx(h, { value: "all", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })
|
|
125
|
-
] })
|
|
126
|
-
}
|
|
127
|
-
) })
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
);
|
|
51
|
+
})), n.jsxs(j, { style: N, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "exportConfigFormContent", children: [n.jsx(j.Item, { label: "导出字段", className: "exportFields", children: n.jsxs(y, { vertical: !0, style: { gap: 8, maxHeight: T }, children: [n.jsx(G, { checked: D, indeterminate: V, onChange: z, style: { alignSelf: "flex-start" }, children: "全选" }), n.jsx(W, { dataList: a, keys: i, onChange: d, onMoveEnd: K })] }) }), n.jsx(j.Item, { label: "导出设置", className: "exportTotal", children: n.jsx(c.Group, { ref: v, value: m, onChange: ({ target: e }) => F(e.value), children: n.jsxs(y, { vertical: !0, gap: 8, align: "flex-start", children: [g && x && n.jsx(c, { value: "selectedRows", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出选中数据" }) }), n.jsx(c, { value: "current", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "仅导出当前页" }) }), n.jsx(c, { value: "any", children: n.jsxs(y, { align: "center", gap: 8, children: [n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }), n.jsx($, { controls: !1, min: 1, value: C, onChange: (e) => b(e), style: { width: 120 }, addonAfter: n.jsx(q, { value: E, onChange: B, options: [
|
|
52
|
+
{ label: "页", value: "page" },
|
|
53
|
+
{ label: "条", value: "pieces" }
|
|
54
|
+
], onClick: (e) => e.preventDefault(), getPopupContainer: (e) => O(e, "containerBody") }) }), n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })] }) }), n.jsx(c, { value: "all", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })] }) }) })] });
|
|
131
55
|
}
|
|
132
56
|
const oe = J(X);
|
|
133
57
|
export {
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { j as r } from "../../../../../node_modules/.store/react@18.3.1/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,151 +1,97 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { BitzConfigContext as
|
|
14
|
-
import { BitzTableContext as
|
|
15
|
-
import
|
|
16
|
-
import { Form as
|
|
17
|
-
import
|
|
1
|
+
import { j as e } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import v from "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
3
|
+
import B from "../../../../../assets/iconfont/IconTekuansong.mjs";
|
|
4
|
+
import E from "../../../../../assets/iconfont/IconJincoude.mjs";
|
|
5
|
+
import H from "../../../../../assets/iconfont/IconZhongdengde.mjs";
|
|
6
|
+
import S from "../../../../../assets/iconfont/IconTejincou.mjs";
|
|
7
|
+
import k from "../../../../../assets/iconfont/IconWufengexian.mjs";
|
|
8
|
+
import F from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
|
|
9
|
+
import w from "../../../../../assets/iconfont/IconHangfengexian.mjs";
|
|
10
|
+
import T from "../../../../../assets/iconfont/IconLiefengexian.mjs";
|
|
11
|
+
import R from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
|
|
12
|
+
import G from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
|
|
13
|
+
import { BitzConfigContext as A } from "../../../../BitzConfigProvider/context.mjs";
|
|
14
|
+
import { BitzTableContext as N } from "../../../Store/index.mjs";
|
|
15
|
+
import W from "../../../../BitzTheme/index.mjs";
|
|
16
|
+
import { Form as i, Radio as d, Checkbox as D } from "antd";
|
|
17
|
+
import $ from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
18
18
|
import { forwardRef as J, useMemo as K, useContext as p, useEffect as L, useImperativeHandle as M, memo as V } from "react";
|
|
19
19
|
import { BitzToolBarContext as Y } from "../../Wrapper/context.mjs";
|
|
20
20
|
import l from "./RadioCard.mjs";
|
|
21
|
-
const Z = ({ defaultSize: n, items: c }) => c.map((
|
|
22
|
-
...
|
|
23
|
-
label: `${
|
|
24
|
-
} :
|
|
21
|
+
const Z = ({ defaultSize: n, items: c }) => c.map((o) => o.key === n ? {
|
|
22
|
+
...o,
|
|
23
|
+
label: `${o.label}(默认)`
|
|
24
|
+
} : o), q = J(({ display: n }, c) => {
|
|
25
25
|
var x, b, f;
|
|
26
|
-
const { token:
|
|
26
|
+
const { token: o } = W.useToken(), j = K(() => ({
|
|
27
27
|
width: "100%",
|
|
28
28
|
...{ display: n ? "flex" : "none" }
|
|
29
29
|
}), [n]), z = {
|
|
30
30
|
size: 26,
|
|
31
|
-
color:
|
|
32
|
-
}, [m] =
|
|
31
|
+
color: o.colorPrimary
|
|
32
|
+
}, [m] = i.useForm(), g = (x = p(A).Table) == null ? void 0 : x.stylesScope, { defaultTableSize: C, stylesConfig: P } = p(N), r = (b = p(Y).config) == null ? void 0 : b.stylesConfig, u = (s, a) => {
|
|
33
33
|
var y, h;
|
|
34
34
|
let t = a;
|
|
35
|
-
return (y = r == null ? void 0 : r[
|
|
36
|
-
disabled: (h = r == null ? void 0 : r[
|
|
35
|
+
return (y = r == null ? void 0 : r[s]) != null && y.disabled && (t = $(a, "disabledControl")), {
|
|
36
|
+
disabled: (h = r == null ? void 0 : r[s]) == null ? void 0 : h.disabled,
|
|
37
37
|
className: t
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
L(() => {
|
|
41
41
|
m.setFieldsValue({
|
|
42
|
-
...
|
|
42
|
+
...P,
|
|
43
43
|
stylesScope: g === "global"
|
|
44
44
|
});
|
|
45
45
|
}, []);
|
|
46
|
-
const
|
|
47
|
-
defaultSize:
|
|
46
|
+
const I = Z({
|
|
47
|
+
defaultSize: C,
|
|
48
48
|
items: [
|
|
49
49
|
{
|
|
50
50
|
key: "xs",
|
|
51
51
|
label: "特紧凑",
|
|
52
|
-
icon:
|
|
52
|
+
icon: S
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
key: "sm",
|
|
56
56
|
label: "紧凑",
|
|
57
|
-
icon:
|
|
57
|
+
icon: E
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
key: "md",
|
|
61
61
|
label: "中等",
|
|
62
|
-
icon:
|
|
62
|
+
icon: H
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
key: "lg",
|
|
66
66
|
label: "宽松",
|
|
67
|
-
icon:
|
|
67
|
+
icon: v
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
key: "xl",
|
|
71
71
|
label: "特宽松",
|
|
72
|
-
icon:
|
|
72
|
+
icon: B
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
75
|
});
|
|
76
76
|
return M(c, () => ({
|
|
77
77
|
getFormInstance: () => m
|
|
78
|
-
})),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
color: [
|
|
96
|
-
e.colorPrimaryHover,
|
|
97
|
-
e.colorPrimary,
|
|
98
|
-
e.colorPrimary,
|
|
99
|
-
e.colorPrimaryHover
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
) }),
|
|
103
|
-
/* @__PURE__ */ o.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ o.jsx(
|
|
104
|
-
G,
|
|
105
|
-
{
|
|
106
|
-
size: 26,
|
|
107
|
-
color: [
|
|
108
|
-
e.colorPrimaryHover,
|
|
109
|
-
e.colorPrimary,
|
|
110
|
-
e.colorPrimary,
|
|
111
|
-
e.colorPrimaryHover
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
) }),
|
|
115
|
-
/* @__PURE__ */ o.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ o.jsx(
|
|
116
|
-
R,
|
|
117
|
-
{
|
|
118
|
-
size: 26,
|
|
119
|
-
color: [
|
|
120
|
-
e.colorPrimaryHover,
|
|
121
|
-
e.colorPrimary,
|
|
122
|
-
e.colorPrimary,
|
|
123
|
-
e.colorPrimaryHover
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
) })
|
|
127
|
-
] }) }),
|
|
128
|
-
/* @__PURE__ */ o.jsx(s.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ o.jsxs(u.Group, { ...d("zebra", "zebraRadioGroup"), children: [
|
|
129
|
-
/* @__PURE__ */ o.jsx(l, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ o.jsx(
|
|
130
|
-
F,
|
|
131
|
-
{
|
|
132
|
-
size: 26,
|
|
133
|
-
color: [e.colorPrimaryHover, e.colorPrimary]
|
|
134
|
-
}
|
|
135
|
-
) }),
|
|
136
|
-
/* @__PURE__ */ o.jsx(l, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ o.jsx(
|
|
137
|
-
N,
|
|
138
|
-
{
|
|
139
|
-
size: 26,
|
|
140
|
-
color: e.colorPrimaryHover
|
|
141
|
-
}
|
|
142
|
-
) })
|
|
143
|
-
] }) }),
|
|
144
|
-
/* @__PURE__ */ o.jsx(s.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: "应用到全局表格" }) })
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
}), fo = V(q);
|
|
78
|
+
})), e.jsxs(i, { form: m, style: j, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "stylesConfigFormContent", children: [e.jsx(i.Item, { label: "行高", name: "size", children: e.jsx(d.Group, { ...u("size", "sizeRadioGroup"), children: I.map(({ key: s, label: a, icon: t }) => e.jsx(l, { label: a, value: s, children: e.jsx(t, { ...z }) }, s)) }) }), e.jsx(i.Item, { label: "分割线", name: "bordered", children: e.jsxs(d.Group, { ...u("bordered", "splitBorderRadioGroup"), children: [e.jsx(l, { label: "无分割线", value: "hide", children: e.jsx(k, { size: 26, color: o.colorPrimaryHover }) }), e.jsx(l, { label: "行分割线", value: "row", children: e.jsx(w, { size: 26, color: [
|
|
79
|
+
o.colorPrimaryHover,
|
|
80
|
+
o.colorPrimary,
|
|
81
|
+
o.colorPrimary,
|
|
82
|
+
o.colorPrimaryHover
|
|
83
|
+
] }) }), e.jsx(l, { label: "列分割线", value: "column", children: e.jsx(T, { size: 26, color: [
|
|
84
|
+
o.colorPrimaryHover,
|
|
85
|
+
o.colorPrimary,
|
|
86
|
+
o.colorPrimary,
|
|
87
|
+
o.colorPrimaryHover
|
|
88
|
+
] }) }), e.jsx(l, { label: "行列分割线", value: "row-column", children: e.jsx(F, { size: 26, color: [
|
|
89
|
+
o.colorPrimaryHover,
|
|
90
|
+
o.colorPrimary,
|
|
91
|
+
o.colorPrimary,
|
|
92
|
+
o.colorPrimaryHover
|
|
93
|
+
] }) })] }) }), e.jsx(i.Item, { label: "斑马纹", name: "zebra", children: e.jsxs(d.Group, { ...u("zebra", "zebraRadioGroup"), children: [e.jsx(l, { label: "有斑马纹", value: !0, children: e.jsx(R, { size: 26, color: [o.colorPrimaryHover, o.colorPrimary] }) }), e.jsx(l, { label: "无斑马纹", value: !1, children: e.jsx(G, { size: 26, color: o.colorPrimaryHover }) })] }) }), e.jsx(i.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: e.jsx(D, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })] });
|
|
94
|
+
}), be = V(q);
|
|
149
95
|
export {
|
|
150
|
-
|
|
96
|
+
be as default
|
|
151
97
|
};
|
|
@@ -4,35 +4,13 @@ import g from "./ColumnConfigModal.mjs";
|
|
|
4
4
|
import j from "../style.mjs";
|
|
5
5
|
import h from "../../../BitzButton/index.mjs";
|
|
6
6
|
import { BitzTableContext as y } from "../../Store/index.mjs";
|
|
7
|
-
import
|
|
7
|
+
import p from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs";
|
|
8
8
|
const r = "表格设置", k = (e) => {
|
|
9
|
-
const { order:
|
|
10
|
-
return
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
open: u,
|
|
15
|
-
title: r,
|
|
16
|
-
onChange: async (...f) => {
|
|
17
|
-
var s;
|
|
18
|
-
return (s = e.onChange) == null ? void 0 : s.call(e, ...f);
|
|
19
|
-
},
|
|
20
|
-
getContainer: c,
|
|
21
|
-
close: () => n(!1)
|
|
22
|
-
}
|
|
23
|
-
),
|
|
24
|
-
/* @__PURE__ */ t.jsx(
|
|
25
|
-
h,
|
|
26
|
-
{
|
|
27
|
-
type: "text",
|
|
28
|
-
className: a,
|
|
29
|
-
onClick: () => n(!0),
|
|
30
|
-
icon: i,
|
|
31
|
-
style: { order: l },
|
|
32
|
-
children: r
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
] }) : null;
|
|
9
|
+
const { order: i, show: l = !0, icon: m = t.jsx(p, {}) } = e, { fullscreen: n } = C(y), { toolbarItemClassName: a } = j(), [u, o] = x(!1), c = d(() => n ? !1 : void 0, [n]);
|
|
10
|
+
return l ? t.jsxs(t.Fragment, { children: [t.jsx(g, { open: u, title: r, onChange: async (...f) => {
|
|
11
|
+
var s;
|
|
12
|
+
return (s = e.onChange) == null ? void 0 : s.call(e, ...f);
|
|
13
|
+
}, getContainer: c, close: () => o(!1) }), t.jsx(h, { type: "text", className: a, onClick: () => o(!0), icon: m, style: { order: i }, children: r })] }) : null;
|
|
36
14
|
};
|
|
37
15
|
export {
|
|
38
16
|
k as default
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { message as y } from "antd";
|
|
3
|
-
import { useState as m, useContext as
|
|
3
|
+
import { useState as m, useContext as B, useRef as E, useMemo as b } from "react";
|
|
4
4
|
import { BitzTableContext as O } from "../../Store/index.mjs";
|
|
5
5
|
import c from "../../../BitzButton/index.mjs";
|
|
6
6
|
import R from "../../../BitzTheme/index.mjs";
|
|
7
7
|
import T from "../Modal/index.mjs";
|
|
8
8
|
import z from "../ColConfigIcon/ExportConfig/index.mjs";
|
|
9
|
-
import
|
|
10
|
-
const q = ({
|
|
11
|
-
|
|
12
|
-
title: p,
|
|
13
|
-
onExport: s,
|
|
14
|
-
close: o,
|
|
15
|
-
getContainer: d
|
|
16
|
-
}) => {
|
|
17
|
-
const { token: i } = R.useToken(), [x, r] = m(!1), [g, t] = m(!1), { defaultTableExportConfig: h } = E(O), n = b(null), C = async () => {
|
|
9
|
+
import A from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
10
|
+
const q = ({ open: u, title: p, onExport: s, close: o, getContainer: d }) => {
|
|
11
|
+
const { token: i } = R.useToken(), [x, r] = m(!1), [g, t] = m(!1), { defaultTableExportConfig: C } = B(O), n = E(null), h = async () => {
|
|
18
12
|
var f, l;
|
|
19
13
|
if (g)
|
|
20
14
|
return;
|
|
@@ -22,47 +16,23 @@ const q = ({
|
|
|
22
16
|
y.error("导出设置至少需要一个字段"), t(!1);
|
|
23
17
|
return;
|
|
24
18
|
}
|
|
25
|
-
const k = ((l = n.current) == null ? void 0 : l.getExportConfig()) ??
|
|
19
|
+
const k = ((l = n.current) == null ? void 0 : l.getExportConfig()) ?? C;
|
|
26
20
|
s && (t(!1), r(!0), s(k).finally(() => {
|
|
27
21
|
r(!1), o();
|
|
28
22
|
}));
|
|
29
23
|
};
|
|
30
|
-
|
|
24
|
+
b(() => i.mode === "dark", [i.mode]);
|
|
31
25
|
const j = () => {
|
|
32
26
|
r(!1), t(!1);
|
|
33
27
|
};
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
-
/* @__PURE__ */ e.jsx(
|
|
44
|
-
c,
|
|
45
|
-
{
|
|
46
|
-
type: "primary",
|
|
47
|
-
icon: /* @__PURE__ */ e.jsx(M, {}),
|
|
48
|
-
onClick: C,
|
|
49
|
-
loading: x,
|
|
50
|
-
children: "导出"
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
/* @__PURE__ */ e.jsx(c, { onClick: o, children: "取消" })
|
|
54
|
-
] }),
|
|
55
|
-
children: (a) => /* @__PURE__ */ e.jsx(
|
|
56
|
-
z,
|
|
57
|
-
{
|
|
58
|
-
parentHeight: a,
|
|
59
|
-
refInstance: n,
|
|
60
|
-
display: !0,
|
|
61
|
-
showSelectRadio: !0
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
);
|
|
28
|
+
return e.jsx(T, { open: u, title: p, close: o, closeAfter: j, getContainer: d, footer: e.jsxs(e.Fragment, { children: [e.jsx(c, {
|
|
29
|
+
type: "primary",
|
|
30
|
+
icon: e.jsx(A, {}),
|
|
31
|
+
onClick: h,
|
|
32
|
+
// disabled={!isEdit}
|
|
33
|
+
loading: x,
|
|
34
|
+
children: "导出"
|
|
35
|
+
}), e.jsx(c, { onClick: o, children: "取消" })] }), children: (a) => e.jsx(z, { parentHeight: a, refInstance: n, display: !0, showSelectRadio: !0 }) });
|
|
66
36
|
};
|
|
67
37
|
export {
|
|
68
38
|
q as default
|
|
@@ -1,52 +1,20 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
2
|
+
import { memo as y, useState as i, useContext as a, useMemo as E } from "react";
|
|
3
|
+
import b from "../style.mjs";
|
|
4
4
|
import B from "../../../BitzButton/index.mjs";
|
|
5
5
|
import { BitzTableContext as m } from "../../Store/index.mjs";
|
|
6
|
-
import { exportConfigTitle as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
order: p,
|
|
12
|
-
onClick: o,
|
|
13
|
-
icon: c = /* @__PURE__ */ t.jsx(z, {})
|
|
14
|
-
}) => {
|
|
15
|
-
const { toolbarItemClassName: u } = E(), [x, s] = i(!1), [d, r] = i(!1);
|
|
6
|
+
import { exportConfigTitle as F } from "../ColConfigIcon/ColumnConfigModal.mjs";
|
|
7
|
+
import I from "./ExportModal.mjs";
|
|
8
|
+
import h from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
|
|
9
|
+
const z = ({ show: f = !0, order: p, onClick: o, icon: u = t.jsx(h, {}) }) => {
|
|
10
|
+
const { toolbarItemClassName: c } = b(), [x, n] = i(!1), [d, r] = i(!1);
|
|
16
11
|
a(m).exportConfig;
|
|
17
|
-
const { loading:
|
|
12
|
+
const { loading: C, fullscreen: s } = a(m), g = E(() => s ? !1 : void 0, [s]), j = async (e) => {
|
|
18
13
|
var l;
|
|
19
14
|
if (o)
|
|
20
|
-
return r(!0), o(
|
|
21
|
-
e.config.key,
|
|
22
|
-
e.fields,
|
|
23
|
-
(l = e.config) == null ? void 0 : l.info
|
|
24
|
-
).finally(() => r(!1));
|
|
15
|
+
return r(!0), o(e.config.key, e.fields, (l = e.config) == null ? void 0 : l.info).finally(() => r(!1));
|
|
25
16
|
};
|
|
26
|
-
return f ?
|
|
27
|
-
/* @__PURE__ */ t.jsx(
|
|
28
|
-
h,
|
|
29
|
-
{
|
|
30
|
-
open: x,
|
|
31
|
-
title: I,
|
|
32
|
-
getContainer: y,
|
|
33
|
-
onExport: C,
|
|
34
|
-
close: () => s(!1)
|
|
35
|
-
}
|
|
36
|
-
),
|
|
37
|
-
/* @__PURE__ */ t.jsx(
|
|
38
|
-
B,
|
|
39
|
-
{
|
|
40
|
-
type: "text",
|
|
41
|
-
className: u,
|
|
42
|
-
icon: c,
|
|
43
|
-
style: { order: p },
|
|
44
|
-
disabled: j || d,
|
|
45
|
-
onClick: () => s(!0),
|
|
46
|
-
children: "导出"
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
] }) : (
|
|
17
|
+
return f ? t.jsxs(t.Fragment, { children: [t.jsx(I, { open: x, title: F, getContainer: g, onExport: j, close: () => n(!1) }), t.jsx(B, { type: "text", className: c, icon: u, style: { order: p }, disabled: C || d, onClick: () => n(!0), children: "导出" })] }) : (
|
|
50
18
|
// <Dropdown
|
|
51
19
|
// open={open}
|
|
52
20
|
// onOpenChange={setOpen}
|
|
@@ -73,7 +41,7 @@ const D = ({
|
|
|
73
41
|
// </Dropdown>
|
|
74
42
|
null
|
|
75
43
|
);
|
|
76
|
-
},
|
|
44
|
+
}, A = y(z);
|
|
77
45
|
export {
|
|
78
|
-
|
|
46
|
+
A as default
|
|
79
47
|
};
|
|
@@ -8,16 +8,13 @@ import { findParentFirstNodeByClass as z } from "../../../../utils/findNode.mjs"
|
|
|
8
8
|
import { BitzTableContext as j } from "../../Store/index.mjs";
|
|
9
9
|
import C from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs";
|
|
10
10
|
import T from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs";
|
|
11
|
-
const g = ({
|
|
12
|
-
order: m,
|
|
13
|
-
show: u = !0
|
|
14
|
-
}) => {
|
|
11
|
+
const g = ({ order: m, show: u = !0 }) => {
|
|
15
12
|
const { toolbarItemClassName: a } = B(), { fullscreen: t, setFullscreen: r } = p(j), s = x(() => t ? {
|
|
16
13
|
title: "退出全屏",
|
|
17
|
-
icon:
|
|
14
|
+
icon: o.jsx(C, {})
|
|
18
15
|
} : {
|
|
19
16
|
title: "全屏",
|
|
20
|
-
icon:
|
|
17
|
+
icon: o.jsx(T, {})
|
|
21
18
|
}, [t]), f = (n) => {
|
|
22
19
|
l.isEnabled || F.error("您的浏览器不支持全屏");
|
|
23
20
|
const e = z(n.target, "bitzTableBlock");
|
|
@@ -27,17 +24,7 @@ const g = ({
|
|
|
27
24
|
var e, i, c;
|
|
28
25
|
(e = n.target) != null && e.classList.contains("bitzTableBlock") && (r(!!document.fullscreenElement), (c = (i = document.fullscreenElement) == null ? void 0 : i.classList) != null && c.contains("bitzTableBlock") || r(!1));
|
|
29
26
|
}), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
|
|
30
|
-
})), []), u ?
|
|
31
|
-
E,
|
|
32
|
-
{
|
|
33
|
-
type: "text",
|
|
34
|
-
className: a,
|
|
35
|
-
onClick: f,
|
|
36
|
-
icon: s.icon,
|
|
37
|
-
style: { order: m },
|
|
38
|
-
children: s.title
|
|
39
|
-
}
|
|
40
|
-
) : null;
|
|
27
|
+
})), []), u ? o.jsx(E, { type: "text", className: a, onClick: f, icon: s.icon, style: { order: m }, children: s.title }) : null;
|
|
41
28
|
}, G = d(g);
|
|
42
29
|
export {
|
|
43
30
|
G as default
|