bitz-react-admin-ui 2.5.7 → 2.5.9
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/BitzFluentRangeTimePicker/index.d.ts +5 -0
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +10 -0
- 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 +15 -20
- 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.d.ts +11 -2
- package/dist/components/BitzTable/Store/index.mjs +200 -224
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
- package/dist/components/BitzTable/Store/utils/index.mjs +41 -30
- package/dist/components/BitzTable/SubTable/index.mjs +43 -91
- 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 +230 -475
- 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 +27 -83
- 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 +143 -251
- 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.d.ts +2 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +63 -116
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +43 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +10 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +13 -42
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +8 -37
- 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 +17 -47
- 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/index.d.ts +1 -0
- package/dist/index.mjs +108 -106
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +5 -27
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,134 +1,81 @@
|
|
|
1
1
|
import { j as t } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { BitzTableContext as
|
|
3
|
-
import
|
|
4
|
-
import { findParentFirstNodeByClass as
|
|
5
|
-
import { Form as
|
|
6
|
-
import { memo as
|
|
7
|
-
import
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
import { BitzTableContext as U } from "../../../Store/index.mjs";
|
|
3
|
+
import W from "../../../../BitzTheme/index.mjs";
|
|
4
|
+
import { findParentFirstNodeByClass as N } from "../../../../../utils/findNode.mjs";
|
|
5
|
+
import { Form as F, Flex as k, Checkbox as X, Radio as p, InputNumber as Y, Select as Z } from "antd";
|
|
6
|
+
import { memo as _, useRef as z, useState as a, useEffect as D, useMemo as f, useContext as ee, useImperativeHandle as te } from "react";
|
|
7
|
+
import ne from "./DndList.mjs";
|
|
8
|
+
function oe({ display: b, showSelectRadio: C = !1, fromExportIcon: A, refInstance: M }) {
|
|
9
|
+
W.useToken(), z(null);
|
|
10
|
+
const y = z(null), [R, V] = a("auto");
|
|
11
|
+
D(() => {
|
|
12
|
+
const e = N(y.current, "ant-card-body");
|
|
13
|
+
if (e) {
|
|
14
|
+
const { paddingBlockStart: n, paddingBlockEnd: l } = window.getComputedStyle(e), x = parseInt(n) + parseInt(l), B = e.clientHeight - x, d = e.firstElementChild;
|
|
15
|
+
if (d) {
|
|
16
|
+
const { rowGap: $ } = window.getComputedStyle(d), E = d == null ? void 0 : d.querySelector(".extraContent"), J = E == null ? void 0 : E.clientHeight, Q = B - J - parseInt($) - 20 - 120;
|
|
17
|
+
V(Q);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}, [y.current]);
|
|
21
|
+
const K = f(() => ({
|
|
22
|
+
display: b ? "flex" : "none",
|
|
16
23
|
width: "100%"
|
|
17
|
-
}), [
|
|
18
|
-
|
|
19
|
-
var e,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
let e = Math.floor(r / (n == null ? void 0 : n.size));
|
|
32
|
-
return r % (n == null ? void 0 : n.size) && e++, e;
|
|
24
|
+
}), [b]), h = ee(U), r = h.exportConfig, j = h.selected, o = h.pagination, i = h.total, [c, H] = a([]), [u, g] = a([]), [w, T] = a("current"), [m, I] = a("page"), [v, S] = a(1);
|
|
25
|
+
D(() => {
|
|
26
|
+
var e, n, l, x;
|
|
27
|
+
g(r.fields), H(r.fields.map((B) => B.field)), T(C && j ? "selectedRows" : r.config.key), I(((n = (e = r.config) == null ? void 0 : e.info) == null ? void 0 : n.type) ?? "page"), S(((x = (l = r.config) == null ? void 0 : l.info) == null ? void 0 : x.value) ?? 1);
|
|
28
|
+
}, [r, C, j]);
|
|
29
|
+
const s = f(() => u.filter((e) => e.show).map((e) => e.field), [u]), G = f(() => c.length === s.length, [c, s]), L = f(() => s.length > 0 && s.length < c.length, [s, c]), O = ({ target: e }) => {
|
|
30
|
+
g(u.map((n) => ({ ...n, show: e.checked })));
|
|
31
|
+
}, P = (e, n) => {
|
|
32
|
+
g(e), H(n);
|
|
33
|
+
}, q = f(() => {
|
|
34
|
+
if (m === "page") {
|
|
35
|
+
if (i && (o != null && o.size)) {
|
|
36
|
+
let e = Math.floor(i / (o == null ? void 0 : o.size));
|
|
37
|
+
return i % (o == null ? void 0 : o.size) && e++, e;
|
|
33
38
|
}
|
|
34
39
|
return 1;
|
|
35
40
|
}
|
|
36
|
-
return
|
|
37
|
-
}, [
|
|
38
|
-
return
|
|
41
|
+
return i;
|
|
42
|
+
}, [m, o, i]);
|
|
43
|
+
return te(M, () => ({
|
|
39
44
|
getExportConfig: () => {
|
|
40
45
|
const e = {
|
|
41
46
|
fields: [],
|
|
42
47
|
config: {
|
|
43
|
-
key:
|
|
48
|
+
key: w,
|
|
44
49
|
info: void 0
|
|
45
50
|
}
|
|
46
51
|
};
|
|
47
|
-
return
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
type:
|
|
52
|
-
value: (
|
|
52
|
+
return u.forEach((n) => {
|
|
53
|
+
let l = !1;
|
|
54
|
+
s.includes(n.field) && (l = !0), e.fields.push({ ...n, show: l });
|
|
55
|
+
}), w === "any" && (e.config.info = {
|
|
56
|
+
type: m,
|
|
57
|
+
value: (v || 0) < 1 ? 1 : v || 1
|
|
53
58
|
}), e;
|
|
54
59
|
},
|
|
55
|
-
hasOne: () =>
|
|
56
|
-
})),
|
|
57
|
-
|
|
58
|
-
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
O,
|
|
68
|
-
{
|
|
69
|
-
checked: I,
|
|
70
|
-
indeterminate: R,
|
|
71
|
-
onChange: B,
|
|
72
|
-
style: { alignSelf: "flex-start" },
|
|
73
|
-
children: "全选"
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
/* @__PURE__ */ t.jsx(
|
|
77
|
-
U,
|
|
78
|
-
{
|
|
79
|
-
dataList: i,
|
|
80
|
-
keys: a,
|
|
81
|
-
onChange: h,
|
|
82
|
-
onMoveEnd: V
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
] }) }),
|
|
86
|
-
/* @__PURE__ */ t.jsx(y.Item, { label: "导出设置", className: "exportTotal", children: /* @__PURE__ */ t.jsx(
|
|
87
|
-
f.Group,
|
|
88
|
-
{
|
|
89
|
-
ref: A,
|
|
90
|
-
value: C,
|
|
91
|
-
onChange: ({ target: e }) => w(e.value),
|
|
92
|
-
children: /* @__PURE__ */ t.jsxs(v, { vertical: !0, gap: 8, align: "flex-start", children: [
|
|
93
|
-
m && g && /* @__PURE__ */ t.jsx(f, { value: "selectedRows", children: "导出选中数据" }),
|
|
94
|
-
/* @__PURE__ */ t.jsx(f, { value: "current", children: "仅导出当前页" }),
|
|
95
|
-
/* @__PURE__ */ t.jsx(f, { value: "any", children: /* @__PURE__ */ t.jsxs(v, { align: "center", gap: 8, children: [
|
|
96
|
-
/* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }),
|
|
97
|
-
/* @__PURE__ */ t.jsx(
|
|
98
|
-
P,
|
|
99
|
-
{
|
|
100
|
-
controls: !1,
|
|
101
|
-
min: 1,
|
|
102
|
-
max: K,
|
|
103
|
-
value: j,
|
|
104
|
-
onChange: (e) => N(e),
|
|
105
|
-
style: { width: 120 },
|
|
106
|
-
addonAfter: /* @__PURE__ */ t.jsx(
|
|
107
|
-
G,
|
|
108
|
-
{
|
|
109
|
-
value: x,
|
|
110
|
-
onChange: E,
|
|
111
|
-
options: [
|
|
112
|
-
{ label: "页", value: "page" },
|
|
113
|
-
{ label: "条", value: "pieces" }
|
|
114
|
-
],
|
|
115
|
-
onClick: (e) => e.preventDefault(),
|
|
116
|
-
getPopupContainer: (e) => L(e, "containerBody")
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
/* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })
|
|
122
|
-
] }) }),
|
|
123
|
-
/* @__PURE__ */ t.jsx(f, { value: "all", children: "导出全部数据" })
|
|
124
|
-
] })
|
|
125
|
-
}
|
|
126
|
-
) })
|
|
127
|
-
]
|
|
60
|
+
hasOne: () => s.length > 0
|
|
61
|
+
})), t.jsx("div", { ref: y, style: K, children: t.jsxs(F, { style: { width: "100%" }, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "exportConfigFormContent", children: [t.jsx(F.Item, { label: "导出字段", className: "exportFields", children: t.jsxs(k, { vertical: !0, style: {
|
|
62
|
+
gap: 8,
|
|
63
|
+
...!A && {
|
|
64
|
+
maxHeight: R
|
|
65
|
+
}
|
|
66
|
+
}, children: [t.jsx(X, { checked: G, indeterminate: L, onChange: O, style: { alignSelf: "flex-start" }, children: "全选" }), t.jsx(ne, { dataList: u, keys: c, onChange: g, onMoveEnd: P })] }) }), t.jsx(F.Item, { label: "导出设置", className: "exportTotal", style: {
|
|
67
|
+
...A ? {
|
|
68
|
+
marginTop: 20
|
|
69
|
+
} : {
|
|
70
|
+
height: 120,
|
|
71
|
+
marginTop: 20
|
|
128
72
|
}
|
|
129
|
-
)
|
|
73
|
+
}, children: t.jsx(p.Group, { value: w, onChange: ({ target: e }) => T(e.value), children: t.jsxs(k, { vertical: !0, gap: 8, align: "flex-start", children: [C && j && t.jsx(p, { value: "selectedRows", children: "导出选中数据" }), t.jsx(p, { value: "current", children: "仅导出当前页" }), t.jsx(p, { value: "any", children: t.jsxs(k, { align: "center", gap: 8, children: [t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }), t.jsx(Y, { controls: !1, min: 1, max: q, value: v, onChange: (e) => S(e), style: { width: 120 }, addonAfter: t.jsx(Z, { value: m, onChange: I, options: [
|
|
74
|
+
{ label: "页", value: "page" },
|
|
75
|
+
{ label: "条", value: "pieces" }
|
|
76
|
+
], onClick: (e) => e.preventDefault(), getPopupContainer: (e) => N(e, "containerBody") }) }), t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })] }) }), t.jsx(p, { value: "all", children: "导出全部数据" })] }) }) })] }) });
|
|
130
77
|
}
|
|
131
|
-
const
|
|
78
|
+
const pe = _(oe);
|
|
132
79
|
export {
|
|
133
|
-
|
|
80
|
+
pe as default
|
|
134
81
|
};
|
|
@@ -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,20 +1,20 @@
|
|
|
1
1
|
import { j as e } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
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 i, Radio as
|
|
17
|
-
import
|
|
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 T from "../../../../../assets/iconfont/IconHangfengexian.mjs";
|
|
10
|
+
import R from "../../../../../assets/iconfont/IconLiefengexian.mjs";
|
|
11
|
+
import w 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";
|
|
@@ -23,128 +23,74 @@ const Z = ({ defaultSize: n, items: c }) => c.map((o) => o.key === n ? {
|
|
|
23
23
|
label: `${o.label}(默认)`
|
|
24
24
|
} : o), q = J(({ display: n }, c) => {
|
|
25
25
|
var x, b, f;
|
|
26
|
-
const { token: o } =
|
|
26
|
+
const { token: o } = W.useToken(), h = K(() => ({
|
|
27
27
|
width: "100%",
|
|
28
28
|
display: n ? "flex" : "none"
|
|
29
29
|
}), [n]), z = {
|
|
30
30
|
size: 26,
|
|
31
31
|
color: o.colorPrimary
|
|
32
|
-
}, [m] = i.useForm(), g = (x = p(
|
|
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, j;
|
|
34
34
|
let t = a;
|
|
35
|
-
return (y = r == null ? void 0 : r[s]) != null && y.disabled && (t =
|
|
35
|
+
return (y = r == null ? void 0 : r[s]) != null && y.disabled && (t = $(a, "disabledControl")), {
|
|
36
36
|
disabled: (j = r == null ? void 0 : r[s]) == null ? void 0 : j.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
|
-
size: 26,
|
|
95
|
-
color: [
|
|
96
|
-
o.colorPrimaryHover,
|
|
97
|
-
o.colorPrimary,
|
|
98
|
-
o.colorPrimary,
|
|
99
|
-
o.colorPrimaryHover
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
) }),
|
|
103
|
-
/* @__PURE__ */ e.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ e.jsx(
|
|
104
|
-
G,
|
|
105
|
-
{
|
|
106
|
-
size: 26,
|
|
107
|
-
color: [
|
|
108
|
-
o.colorPrimaryHover,
|
|
109
|
-
o.colorPrimary,
|
|
110
|
-
o.colorPrimary,
|
|
111
|
-
o.colorPrimaryHover
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
) }),
|
|
115
|
-
/* @__PURE__ */ e.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ e.jsx(
|
|
116
|
-
w,
|
|
117
|
-
{
|
|
118
|
-
size: 26,
|
|
119
|
-
color: [
|
|
120
|
-
o.colorPrimaryHover,
|
|
121
|
-
o.colorPrimary,
|
|
122
|
-
o.colorPrimary,
|
|
123
|
-
o.colorPrimaryHover
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
) })
|
|
127
|
-
] }) }),
|
|
128
|
-
/* @__PURE__ */ e.jsx(i.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ e.jsxs(u.Group, { ...d("zebra", "zebraRadioGroup"), children: [
|
|
129
|
-
/* @__PURE__ */ e.jsx(l, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ e.jsx(
|
|
130
|
-
F,
|
|
131
|
-
{
|
|
132
|
-
size: 26,
|
|
133
|
-
color: [o.colorPrimaryHover, o.colorPrimary]
|
|
134
|
-
}
|
|
135
|
-
) }),
|
|
136
|
-
/* @__PURE__ */ e.jsx(l, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ e.jsx(
|
|
137
|
-
N,
|
|
138
|
-
{
|
|
139
|
-
size: 26,
|
|
140
|
-
color: o.colorPrimaryHover
|
|
141
|
-
}
|
|
142
|
-
) })
|
|
143
|
-
] }) }),
|
|
144
|
-
/* @__PURE__ */ e.jsx(i.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: /* @__PURE__ */ e.jsx(A, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
);
|
|
78
|
+
})), e.jsxs(i, { form: m, style: h, 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(T, { 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(R, { 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(w, { 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: "应用到全局表格" }) })] });
|
|
148
94
|
}), be = V(q);
|
|
149
95
|
export {
|
|
150
96
|
be as default
|
|
@@ -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
|
|
@@ -221,10 +221,10 @@ const m = (o) => i`
|
|
|
221
221
|
.exportConfigFormContent {
|
|
222
222
|
display: flex;
|
|
223
223
|
flex-direction: column;
|
|
224
|
-
row-gap: 10px;
|
|
225
224
|
|
|
226
225
|
.ant-form-item {
|
|
227
226
|
width: 100%;
|
|
227
|
+
margin-bottom: 0;
|
|
228
228
|
|
|
229
229
|
.ant-form-item-label > label {
|
|
230
230
|
height: auto;
|
|
@@ -232,6 +232,15 @@ const m = (o) => i`
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
+
.ant-tree-draggable-icon {
|
|
236
|
+
transition: none;
|
|
237
|
+
align-self: center;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.ant-tree-treenode:not(:disabled):hover .ant-tree-draggable-icon {
|
|
241
|
+
opacity: 1;
|
|
242
|
+
}
|
|
243
|
+
|
|
235
244
|
.sortList {
|
|
236
245
|
flex: 1;
|
|
237
246
|
overflow: hidden auto;
|
|
@@ -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 C } from "antd";
|
|
3
|
-
import { useState as g, useContext as j, useRef as k, useMemo as
|
|
4
|
-
import { BitzTableContext as
|
|
3
|
+
import { useState as g, useContext as j, useRef as k, useMemo as E } from "react";
|
|
4
|
+
import { BitzTableContext as y } from "../../Store/index.mjs";
|
|
5
5
|
import f from "../../../BitzButton/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import B from "../../../BitzTheme/index.mjs";
|
|
7
|
+
import b from "../Modal/index.mjs";
|
|
8
8
|
import O from "../ColConfigIcon/ExportConfig/index.mjs";
|
|
9
9
|
import R from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
title: c,
|
|
13
|
-
onExport: n,
|
|
14
|
-
close: o,
|
|
15
|
-
getContainer: l
|
|
16
|
-
}) => {
|
|
17
|
-
const { token: s } = b.useToken(), [u, t] = g(!1), { defaultTableExportConfig: p } = j(E), r = k(null), x = async () => {
|
|
10
|
+
const H = ({ open: c, title: l, onExport: n, close: o, getContainer: m }) => {
|
|
11
|
+
const { token: s } = B.useToken(), [u, t] = g(!1), { defaultTableExportConfig: p } = j(y), r = k(null), x = async () => {
|
|
18
12
|
var i, a;
|
|
19
13
|
if (u)
|
|
20
14
|
return;
|
|
@@ -25,40 +19,17 @@ const I = ({
|
|
|
25
19
|
const h = ((a = r.current) == null ? void 0 : a.getExportConfig()) ?? p;
|
|
26
20
|
n && (t(!1), n(h), o());
|
|
27
21
|
};
|
|
28
|
-
|
|
22
|
+
E(() => s.mode === "dark", [s.mode]);
|
|
29
23
|
const d = () => {
|
|
30
24
|
t(!1);
|
|
31
25
|
};
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
title: c,
|
|
37
|
-
close: o,
|
|
38
|
-
closeAfter: d,
|
|
39
|
-
getContainer: l,
|
|
40
|
-
styles: {
|
|
41
|
-
content: {
|
|
42
|
-
maxHeight: "calc(100vh - 200px)",
|
|
43
|
-
height: "auto"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
47
|
-
/* @__PURE__ */ e.jsx(
|
|
48
|
-
f,
|
|
49
|
-
{
|
|
50
|
-
type: "primary",
|
|
51
|
-
icon: /* @__PURE__ */ e.jsx(R, {}),
|
|
52
|
-
onClick: x,
|
|
53
|
-
children: "导出"
|
|
54
|
-
}
|
|
55
|
-
),
|
|
56
|
-
/* @__PURE__ */ e.jsx(f, { onClick: o, children: "取消" })
|
|
57
|
-
] }),
|
|
58
|
-
children: /* @__PURE__ */ e.jsx(O, { refInstance: r, display: !0, showSelectRadio: !0 })
|
|
26
|
+
return e.jsx(b, { open: c, title: l, close: o, closeAfter: d, getContainer: m, styles: {
|
|
27
|
+
content: {
|
|
28
|
+
maxHeight: "calc(100vh - 200px)",
|
|
29
|
+
height: "auto"
|
|
59
30
|
}
|
|
60
|
-
);
|
|
31
|
+
}, footer: e.jsxs(e.Fragment, { children: [e.jsx(f, { type: "primary", icon: e.jsx(R, {}), onClick: x, children: "导出" }), e.jsx(f, { onClick: o, children: "取消" })] }), children: e.jsx(O, { refInstance: r, fromExportIcon: !0, display: !0, showSelectRadio: !0 }) });
|
|
61
32
|
};
|
|
62
33
|
export {
|
|
63
|
-
|
|
34
|
+
H as default
|
|
64
35
|
};
|
|
@@ -1,47 +1,19 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/.store/react@18.3.1/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/.store/@ant-design_icons@5.3.7/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
|
};
|