bitz-react-admin-ui 2.2.7 → 2.2.8
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/Draggable.mjs +4 -0
- package/dist/_virtual/DraggableCore.mjs +4 -0
- package/dist/_virtual/Resizable.mjs +4 -0
- package/dist/_virtual/ResizableBox.mjs +4 -0
- package/dist/_virtual/_commonjsHelpers.mjs +26 -4
- package/dist/_virtual/cjs.mjs +4 -0
- package/dist/_virtual/clsx.m.mjs +6 -0
- package/dist/_virtual/domFns.mjs +4 -0
- package/dist/_virtual/getPrefix.mjs +4 -0
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/_virtual/index6.mjs +4 -0
- package/dist/_virtual/log.mjs +4 -0
- package/dist/_virtual/positionFns.mjs +4 -0
- package/dist/_virtual/propTypes.mjs +4 -0
- package/dist/_virtual/shims.mjs +4 -0
- package/dist/_virtual/utils.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +4 -10
- package/dist/assets/iconfont/IconClose.mjs +1 -7
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
- package/dist/assets/iconfont/IconCuowu.mjs +2 -8
- package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
- package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
- package/dist/assets/iconfont/IconFabu.mjs +3 -18
- package/dist/assets/iconfont/IconFanhui.mjs +5 -11
- package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
- package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
- package/dist/assets/iconfont/IconIcon21.mjs +2 -8
- package/dist/assets/iconfont/IconJincoude.mjs +3 -9
- package/dist/assets/iconfont/IconJinggao.mjs +2 -8
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
- package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
- package/dist/assets/iconfont/IconMore.mjs +4 -26
- package/dist/assets/iconfont/IconShanchu.mjs +5 -11
- package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
- package/dist/assets/iconfont/IconSousuo.mjs +4 -10
- package/dist/assets/iconfont/IconTejincou.mjs +1 -7
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
- package/dist/assets/iconfont/IconTishi1.mjs +6 -12
- package/dist/assets/iconfont/IconTuodong.mjs +6 -12
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
- package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
- package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
- package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
- 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/BitzConvert/DropdownToButton/index.mjs +11 -14
- package/dist/components/BitzConvert/index.mjs +1 -1
- 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/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 +19 -51
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
- 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.d.ts +21 -9
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
- 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 +2 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.mjs +89 -121
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
- package/dist/components/BitzTable/SubTable/index.mjs +52 -94
- package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
- package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.mjs +248 -436
- package/dist/components/BitzTable/Table/style.mjs +1 -11
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +145 -253
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
- 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 +12 -49
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
- 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 -87
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
- package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
- package/dist/components/BitzTableSelect/index.mjs +13 -61
- package/dist/components/BitzTag/index.mjs +1 -1
- 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/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/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +9 -8
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +12 -27
- 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.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { BitzTableContext as
|
|
3
|
-
import
|
|
4
|
-
import { findParentFirstNodeByClass as
|
|
5
|
-
import
|
|
6
|
-
import { Form as
|
|
7
|
-
import { memo as $, useRef as q, useMemo as
|
|
2
|
+
import { BitzTableContext as k } from "../../../Store/index.mjs";
|
|
3
|
+
import K from "../../../../BitzTheme/index.mjs";
|
|
4
|
+
import { findParentFirstNodeByClass as M } from "../../../../../utils/findNode.mjs";
|
|
5
|
+
import L from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
6
|
+
import { Form as j, Flex as y, Checkbox as O, Radio as u, InputNumber as P, Select as G } from "antd";
|
|
7
|
+
import { memo as $, useRef as q, useMemo as c, useContext as A, useState as h, useEffect as J, useImperativeHandle as Q } from "react";
|
|
8
8
|
import R from "./DndList.mjs";
|
|
9
|
-
function U({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
parentHeight: u,
|
|
13
|
-
refInstance: I
|
|
14
|
-
}) {
|
|
15
|
-
D.useToken();
|
|
16
|
-
const v = q(null), t = M(v), N = h(() => ({
|
|
9
|
+
function U({ display: r, showSelectRadio: g = !1, parentHeight: f, refInstance: S }) {
|
|
10
|
+
K.useToken();
|
|
11
|
+
const v = q(null), t = L(v), I = c(() => ({
|
|
17
12
|
// display: display ? 'flex' : 'none'
|
|
18
13
|
width: r ? "100%" : 0,
|
|
19
14
|
height: "100%",
|
|
@@ -25,19 +20,17 @@ function U({
|
|
|
25
20
|
left: 0,
|
|
26
21
|
right: 0
|
|
27
22
|
}
|
|
28
|
-
}), [r]),
|
|
23
|
+
}), [r]), N = c(() => typeof f == "number" && f && (t != null && t.height) ? f - (t == null ? void 0 : t.height) - 20 : "auto", [f, t == null ? void 0 : t.height]), l = A(k).exportConfig, x = A(k).selected, [i, w] = h([]), [a, p] = h([]), [m, F] = h("current"), [E, B] = h("page"), [C, b] = h(1);
|
|
29
24
|
J(() => {
|
|
30
25
|
var e, s;
|
|
31
|
-
p(l.fields), w(l.fields.map((d) => d.field)), b(
|
|
32
|
-
g && x ? "selectedRows" : l.config.key
|
|
33
|
-
), E(((e = l.config.info) == null ? void 0 : e.type) ?? "page"), S(((s = l.config.info) == null ? void 0 : s.value) ?? 1);
|
|
26
|
+
p(l.fields), w(l.fields.map((d) => d.field)), F(g && x ? "selectedRows" : l.config.key), B(((e = l.config.info) == null ? void 0 : e.type) ?? "page"), b(((s = l.config.info) == null ? void 0 : s.value) ?? 1);
|
|
34
27
|
}, [l, g, x]);
|
|
35
|
-
const o =
|
|
28
|
+
const o = c(() => a.filter((e) => e.show).map((e) => e.field), [a]), T = c(() => i.length === o.length, [i, o]), D = c(() => o.length > 0 && o.length < i.length, [o, i]), V = ({ target: e }) => {
|
|
36
29
|
p(a.map((s) => ({ ...s, show: e.checked })));
|
|
37
|
-
},
|
|
30
|
+
}, z = (e, s) => {
|
|
38
31
|
p(e), w(s);
|
|
39
32
|
};
|
|
40
|
-
return Q(
|
|
33
|
+
return Q(S, () => ({
|
|
41
34
|
getExportConfig: () => {
|
|
42
35
|
const e = {
|
|
43
36
|
fields: [],
|
|
@@ -50,84 +43,15 @@ function U({
|
|
|
50
43
|
let d = !1;
|
|
51
44
|
o.includes(s.field) && (d = !0), e.fields.push({ ...s, show: d });
|
|
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: T }, children: [
|
|
68
|
-
/* @__PURE__ */ n.jsx(
|
|
69
|
-
O,
|
|
70
|
-
{
|
|
71
|
-
checked: B,
|
|
72
|
-
indeterminate: V,
|
|
73
|
-
onChange: z,
|
|
74
|
-
style: { alignSelf: "flex-start" },
|
|
75
|
-
children: "全选"
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
/* @__PURE__ */ n.jsx(
|
|
79
|
-
R,
|
|
80
|
-
{
|
|
81
|
-
dataList: a,
|
|
82
|
-
keys: i,
|
|
83
|
-
onChange: p,
|
|
84
|
-
onMoveEnd: K
|
|
85
|
-
}
|
|
86
|
-
)
|
|
87
|
-
] }) }),
|
|
88
|
-
/* @__PURE__ */ n.jsx(C.Item, { label: "导出设置", className: "exportTotal", children: /* @__PURE__ */ n.jsx(
|
|
89
|
-
c.Group,
|
|
90
|
-
{
|
|
91
|
-
ref: v,
|
|
92
|
-
value: m,
|
|
93
|
-
onChange: ({ target: e }) => b(e.value),
|
|
94
|
-
children: /* @__PURE__ */ n.jsxs(y, { vertical: !0, gap: 8, align: "flex-start", children: [
|
|
95
|
-
g && x && /* @__PURE__ */ n.jsx(c, { value: "selectedRows", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出选中数据" }) }),
|
|
96
|
-
/* @__PURE__ */ n.jsx(c, { value: "current", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "仅导出当前页" }) }),
|
|
97
|
-
/* @__PURE__ */ n.jsx(c, { value: "any", children: /* @__PURE__ */ n.jsxs(y, { align: "center", gap: 8, children: [
|
|
98
|
-
/* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }),
|
|
99
|
-
/* @__PURE__ */ n.jsx(
|
|
100
|
-
P,
|
|
101
|
-
{
|
|
102
|
-
controls: !1,
|
|
103
|
-
min: 1,
|
|
104
|
-
value: j,
|
|
105
|
-
onChange: (e) => S(e),
|
|
106
|
-
style: { width: 120 },
|
|
107
|
-
addonAfter: /* @__PURE__ */ n.jsx(
|
|
108
|
-
G,
|
|
109
|
-
{
|
|
110
|
-
value: k,
|
|
111
|
-
onChange: E,
|
|
112
|
-
options: [
|
|
113
|
-
{ label: "页", value: "page" },
|
|
114
|
-
{ label: "条", value: "pieces" }
|
|
115
|
-
],
|
|
116
|
-
onClick: (e) => e.preventDefault(),
|
|
117
|
-
getPopupContainer: (e) => L(e, "containerBody")
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
/* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })
|
|
123
|
-
] }) }),
|
|
124
|
-
/* @__PURE__ */ n.jsx(c, { value: "all", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })
|
|
125
|
-
] })
|
|
126
|
-
}
|
|
127
|
-
) })
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
);
|
|
51
|
+
})), n.jsxs(j, { style: I, 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: N }, children: [n.jsx(O, { checked: T, indeterminate: D, onChange: V, style: { alignSelf: "flex-start" }, children: "全选" }), n.jsx(R, { dataList: a, keys: i, onChange: p, onMoveEnd: z })] }) }), n.jsx(j.Item, { label: "导出设置", className: "exportTotal", children: n.jsx(u.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(u, { value: "selectedRows", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出选中数据" }) }), n.jsx(u, { value: "current", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "仅导出当前页" }) }), n.jsx(u, { value: "any", children: n.jsxs(y, { align: "center", gap: 8, children: [n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }), n.jsx(P, { controls: !1, min: 1, value: C, onChange: (e) => b(e), style: { width: 120 }, addonAfter: n.jsx(G, { value: E, onChange: B, options: [
|
|
52
|
+
{ label: "页", value: "page" },
|
|
53
|
+
{ label: "条", value: "pieces" }
|
|
54
|
+
], onClick: (e) => e.preventDefault(), getPopupContainer: (e) => M(e, "containerBody") }) }), n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })] }) }), n.jsx(u, { value: "all", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })] }) }) })] });
|
|
131
55
|
}
|
|
132
56
|
const te = $(U);
|
|
133
57
|
export {
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { j as r } from "../../../../../node_modules/.store/react@18.2.0/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
|
};
|
|
@@ -5,17 +5,17 @@ import "../../../../../assets/iconfont/IconColumnFixedRight.mjs";
|
|
|
5
5
|
import "../../../../../assets/iconfont/IconColumnCancelFixed.mjs";
|
|
6
6
|
import "../../../../../assets/iconfont/IconMore.mjs";
|
|
7
7
|
import "../../../../../assets/iconfont/IconIcFluentHomeRegular.mjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
8
|
+
import v from "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
9
|
+
import B from "../../../../../assets/iconfont/IconTekuansong.mjs";
|
|
10
|
+
import E from "../../../../../assets/iconfont/IconJincoude.mjs";
|
|
11
|
+
import H from "../../../../../assets/iconfont/IconZhongdengde.mjs";
|
|
12
|
+
import S from "../../../../../assets/iconfont/IconTejincou.mjs";
|
|
13
|
+
import k from "../../../../../assets/iconfont/IconWufengexian.mjs";
|
|
14
|
+
import F from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
|
|
15
|
+
import w from "../../../../../assets/iconfont/IconHangfengexian.mjs";
|
|
16
|
+
import T from "../../../../../assets/iconfont/IconLiefengexian.mjs";
|
|
17
|
+
import R from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
|
|
18
|
+
import G from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
|
|
19
19
|
import "../../../../../assets/iconfont/IconZhongzhi.mjs";
|
|
20
20
|
import "../../../../../assets/iconfont/IconGaojisousuo.mjs";
|
|
21
21
|
import "../../../../../assets/iconfont/IconSousuo.mjs";
|
|
@@ -32,12 +32,12 @@ import "../../../../../assets/iconfont/IconFabu.mjs";
|
|
|
32
32
|
import "../../../../../assets/iconfont/IconShanchu1.mjs";
|
|
33
33
|
import "../../../../../assets/iconfont/IconShanchu.mjs";
|
|
34
34
|
import "../../../../../assets/iconfont/IconTuodong.mjs";
|
|
35
|
-
import { BitzConfigContext as
|
|
36
|
-
import { BitzTableContext as
|
|
37
|
-
import
|
|
38
|
-
import { Form as t, Radio as
|
|
39
|
-
import
|
|
40
|
-
import { forwardRef as J, useMemo as K, useContext as
|
|
35
|
+
import { BitzConfigContext as A } from "../../../../BitzConfigProvider/context.mjs";
|
|
36
|
+
import { BitzTableContext as N } from "../../../Store/index.mjs";
|
|
37
|
+
import W from "../../../../BitzTheme/index.mjs";
|
|
38
|
+
import { Form as t, Radio as p, Checkbox as D } from "antd";
|
|
39
|
+
import $ from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
40
|
+
import { forwardRef as J, useMemo as K, useContext as d, useEffect as L, useImperativeHandle as M, memo as V } from "react";
|
|
41
41
|
import { BitzToolBarContext as Y } from "../../Wrapper/context.mjs";
|
|
42
42
|
import l from "./RadioCard.mjs";
|
|
43
43
|
const Z = ({ defaultSize: s, items: a }) => a.map((e) => e.key === s ? {
|
|
@@ -45,129 +45,75 @@ const Z = ({ defaultSize: s, items: a }) => a.map((e) => e.key === s ? {
|
|
|
45
45
|
label: `${e.label}(默认)`
|
|
46
46
|
} : e), q = J(({ display: s }, a) => {
|
|
47
47
|
var x, b, f;
|
|
48
|
-
const { token: e } =
|
|
48
|
+
const { token: e } = W.useToken(), j = K(() => ({
|
|
49
49
|
width: "100%",
|
|
50
50
|
...{ display: s ? "flex" : "none" }
|
|
51
51
|
}), [s]), z = {
|
|
52
52
|
size: 26,
|
|
53
53
|
color: e.colorPrimary
|
|
54
|
-
}, [c] = t.useForm(), g = (x =
|
|
54
|
+
}, [c] = t.useForm(), g = (x = d(A).Table) == null ? void 0 : x.stylesScope, { defaultTableSize: C, stylesConfig: P } = d(N), r = (b = d(Y).config) == null ? void 0 : b.stylesConfig, u = (i, m) => {
|
|
55
55
|
var y, h;
|
|
56
56
|
let n = m;
|
|
57
|
-
return (y = r == null ? void 0 : r[i]) != null && y.disabled && (n =
|
|
57
|
+
return (y = r == null ? void 0 : r[i]) != null && y.disabled && (n = $(m, "disabledControl")), {
|
|
58
58
|
disabled: (h = r == null ? void 0 : r[i]) == null ? void 0 : h.disabled,
|
|
59
59
|
className: n
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
L(() => {
|
|
63
63
|
c.setFieldsValue({
|
|
64
|
-
...
|
|
64
|
+
...P,
|
|
65
65
|
stylesScope: g === "global"
|
|
66
66
|
});
|
|
67
67
|
}, []);
|
|
68
|
-
const
|
|
69
|
-
defaultSize:
|
|
68
|
+
const I = Z({
|
|
69
|
+
defaultSize: C,
|
|
70
70
|
items: [
|
|
71
71
|
{
|
|
72
72
|
key: "xs",
|
|
73
73
|
label: "特紧凑",
|
|
74
|
-
icon:
|
|
74
|
+
icon: S
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
key: "sm",
|
|
78
78
|
label: "紧凑",
|
|
79
|
-
icon:
|
|
79
|
+
icon: E
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
key: "md",
|
|
83
83
|
label: "中等",
|
|
84
|
-
icon:
|
|
84
|
+
icon: H
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
key: "lg",
|
|
88
88
|
label: "宽松",
|
|
89
|
-
icon:
|
|
89
|
+
icon: v
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
key: "xl",
|
|
93
93
|
label: "特宽松",
|
|
94
|
-
icon:
|
|
94
|
+
icon: B
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
});
|
|
98
98
|
return M(a, () => ({
|
|
99
99
|
getFormInstance: () => c
|
|
100
|
-
})),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
color: [
|
|
118
|
-
e.colorPrimaryHover,
|
|
119
|
-
e.colorPrimary,
|
|
120
|
-
e.colorPrimary,
|
|
121
|
-
e.colorPrimaryHover
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
) }),
|
|
125
|
-
/* @__PURE__ */ o.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ o.jsx(
|
|
126
|
-
G,
|
|
127
|
-
{
|
|
128
|
-
size: 26,
|
|
129
|
-
color: [
|
|
130
|
-
e.colorPrimaryHover,
|
|
131
|
-
e.colorPrimary,
|
|
132
|
-
e.colorPrimary,
|
|
133
|
-
e.colorPrimaryHover
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
) }),
|
|
137
|
-
/* @__PURE__ */ o.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ o.jsx(
|
|
138
|
-
R,
|
|
139
|
-
{
|
|
140
|
-
size: 26,
|
|
141
|
-
color: [
|
|
142
|
-
e.colorPrimaryHover,
|
|
143
|
-
e.colorPrimary,
|
|
144
|
-
e.colorPrimary,
|
|
145
|
-
e.colorPrimaryHover
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
) })
|
|
149
|
-
] }) }),
|
|
150
|
-
/* @__PURE__ */ o.jsx(t.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("zebra", "zebraRadioGroup"), children: [
|
|
151
|
-
/* @__PURE__ */ o.jsx(l, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ o.jsx(
|
|
152
|
-
F,
|
|
153
|
-
{
|
|
154
|
-
size: 26,
|
|
155
|
-
color: [e.colorPrimaryHover, e.colorPrimary]
|
|
156
|
-
}
|
|
157
|
-
) }),
|
|
158
|
-
/* @__PURE__ */ o.jsx(l, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ o.jsx(
|
|
159
|
-
N,
|
|
160
|
-
{
|
|
161
|
-
size: 26,
|
|
162
|
-
color: e.colorPrimaryHover
|
|
163
|
-
}
|
|
164
|
-
) })
|
|
165
|
-
] }) }),
|
|
166
|
-
/* @__PURE__ */ o.jsx(t.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: /* @__PURE__ */ o.jsx(A, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
);
|
|
170
|
-
}), $o = V(q);
|
|
100
|
+
})), o.jsxs(t, { form: c, style: j, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "stylesConfigFormContent", children: [o.jsx(t.Item, { label: "行高", name: "size", children: o.jsx(p.Group, { ...u("size", "sizeRadioGroup"), children: I.map(({ key: i, label: m, icon: n }) => o.jsx(l, { label: m, value: i, children: o.jsx(n, { ...z }) }, i)) }) }), o.jsx(t.Item, { label: "分割线", name: "bordered", children: o.jsxs(p.Group, { ...u("bordered", "splitBorderRadioGroup"), children: [o.jsx(l, { label: "无分割线", value: "hide", children: o.jsx(k, { size: 26, color: e.colorPrimaryHover }) }), o.jsx(l, { label: "行分割线", value: "row", children: o.jsx(w, { size: 26, color: [
|
|
101
|
+
e.colorPrimaryHover,
|
|
102
|
+
e.colorPrimary,
|
|
103
|
+
e.colorPrimary,
|
|
104
|
+
e.colorPrimaryHover
|
|
105
|
+
] }) }), o.jsx(l, { label: "列分割线", value: "column", children: o.jsx(T, { size: 26, color: [
|
|
106
|
+
e.colorPrimaryHover,
|
|
107
|
+
e.colorPrimary,
|
|
108
|
+
e.colorPrimary,
|
|
109
|
+
e.colorPrimaryHover
|
|
110
|
+
] }) }), o.jsx(l, { label: "行列分割线", value: "row-column", children: o.jsx(F, { size: 26, color: [
|
|
111
|
+
e.colorPrimaryHover,
|
|
112
|
+
e.colorPrimary,
|
|
113
|
+
e.colorPrimary,
|
|
114
|
+
e.colorPrimaryHover
|
|
115
|
+
] }) })] }) }), o.jsx(t.Item, { label: "斑马纹", name: "zebra", children: o.jsxs(p.Group, { ...u("zebra", "zebraRadioGroup"), children: [o.jsx(l, { label: "有斑马纹", value: !0, children: o.jsx(R, { size: 26, color: [e.colorPrimaryHover, e.colorPrimary] }) }), o.jsx(l, { label: "无斑马纹", value: !1, children: o.jsx(G, { size: 26, color: e.colorPrimaryHover }) })] }) }), o.jsx(t.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: o.jsx(D, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })] });
|
|
116
|
+
}), Wo = V(q);
|
|
171
117
|
export {
|
|
172
|
-
|
|
118
|
+
Wo as default
|
|
173
119
|
};
|
|
@@ -1,40 +1,18 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useContext as
|
|
2
|
+
import { useContext as C, useState as x, useMemo as d } from "react";
|
|
3
3
|
import { Tooltip as g } from "antd";
|
|
4
4
|
import j from "./ColumnConfigModal.mjs";
|
|
5
5
|
import h from "../style.mjs";
|
|
6
6
|
import p from "../../../BitzButton/index.mjs";
|
|
7
7
|
import { BitzTableContext as y } from "../../Store/index.mjs";
|
|
8
8
|
import B from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs";
|
|
9
|
-
const o = "表格设置",
|
|
10
|
-
const { order:
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
open: c,
|
|
16
|
-
title: o,
|
|
17
|
-
onChange: async (...u) => {
|
|
18
|
-
var r;
|
|
19
|
-
return (r = e.onChange) == null ? void 0 : r.call(e, ...u);
|
|
20
|
-
},
|
|
21
|
-
getContainer: f,
|
|
22
|
-
close: () => s(!1)
|
|
23
|
-
}
|
|
24
|
-
),
|
|
25
|
-
/* @__PURE__ */ t.jsx(g, { title: o, open: !1, children: /* @__PURE__ */ t.jsx(
|
|
26
|
-
p,
|
|
27
|
-
{
|
|
28
|
-
type: "text",
|
|
29
|
-
className: a,
|
|
30
|
-
onClick: () => s(!0),
|
|
31
|
-
icon: m,
|
|
32
|
-
style: { order: l },
|
|
33
|
-
children: o
|
|
34
|
-
}
|
|
35
|
-
) })
|
|
36
|
-
] }) : null;
|
|
9
|
+
const o = "表格设置", w = (e) => {
|
|
10
|
+
const { order: i, show: l = !0, icon: m = t.jsx(B, {}) } = e, { fullscreen: n } = C(y), { toolbarItemClassName: a } = h(), [c, s] = x(!1), f = d(() => n ? !1 : void 0, [n]);
|
|
11
|
+
return l ? t.jsxs(t.Fragment, { children: [t.jsx(j, { open: c, title: o, onChange: async (...u) => {
|
|
12
|
+
var r;
|
|
13
|
+
return (r = e.onChange) == null ? void 0 : r.call(e, ...u);
|
|
14
|
+
}, getContainer: f, close: () => s(!1) }), t.jsx(g, { title: o, open: !1, children: t.jsx(p, { type: "text", className: a, onClick: () => s(!0), icon: m, style: { order: i }, children: o }) })] }) : null;
|
|
37
15
|
};
|
|
38
16
|
export {
|
|
39
|
-
|
|
17
|
+
w as default
|
|
40
18
|
};
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.2.0/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.6/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.2.0/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.6/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
|
};
|
|
@@ -9,16 +9,13 @@ import { findParentFirstNodeByClass as z } from "../../../../utils/findNode.mjs"
|
|
|
9
9
|
import { BitzTableContext as T } from "../../Store/index.mjs";
|
|
10
10
|
import h from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs";
|
|
11
11
|
import C from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs";
|
|
12
|
-
const g = ({
|
|
13
|
-
order: m,
|
|
14
|
-
show: u = !0
|
|
15
|
-
}) => {
|
|
12
|
+
const g = ({ order: m, show: u = !0 }) => {
|
|
16
13
|
const { toolbarItemClassName: a } = E(), { fullscreen: n, setFullscreen: s } = p(T), o = x(() => n ? {
|
|
17
14
|
title: "退出全屏",
|
|
18
|
-
icon:
|
|
15
|
+
icon: t.jsx(h, {})
|
|
19
16
|
} : {
|
|
20
17
|
title: "全屏",
|
|
21
|
-
icon:
|
|
18
|
+
icon: t.jsx(C, {})
|
|
22
19
|
}, [n]), f = (l) => {
|
|
23
20
|
r.isEnabled || j.error("您的浏览器不支持全屏");
|
|
24
21
|
const e = z(l.target, "bitzTableBlock");
|
|
@@ -28,17 +25,7 @@ const g = ({
|
|
|
28
25
|
var e, i, c;
|
|
29
26
|
(e = l.target) != null && e.classList.contains("bitzTableBlock") && (s(!!document.fullscreenElement), (c = (i = document.fullscreenElement) == null ? void 0 : i.classList) != null && c.contains("bitzTableBlock") || s(!1));
|
|
30
27
|
}), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
|
|
31
|
-
})), []), u ?
|
|
32
|
-
F,
|
|
33
|
-
{
|
|
34
|
-
type: "text",
|
|
35
|
-
className: a,
|
|
36
|
-
onClick: f,
|
|
37
|
-
icon: o.icon,
|
|
38
|
-
style: { order: m },
|
|
39
|
-
children: o.title
|
|
40
|
-
}
|
|
41
|
-
) }) : null;
|
|
28
|
+
})), []), u ? t.jsx(B, { title: o.title, open: !1, children: t.jsx(F, { type: "text", className: a, onClick: f, icon: o.icon, style: { order: m }, children: o.title }) }) : null;
|
|
42
29
|
}, P = d(g);
|
|
43
30
|
export {
|
|
44
31
|
P as default
|