bitz-react-admin-ui 2.2.8 → 2.2.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/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +51 -19
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +30 -14
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +121 -89
- package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
- package/dist/components/BitzTable/SubTable/index.mjs +100 -52
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +395 -187
- package/dist/components/BitzTable/Table/style.mjs +11 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -12
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,14 +1,19 @@
|
|
|
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 A } from "../../../Store/index.mjs";
|
|
3
|
+
import D from "../../../../BitzTheme/index.mjs";
|
|
4
|
+
import { findParentFirstNodeByClass as L } from "../../../../../utils/findNode.mjs";
|
|
5
|
+
import M from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
6
|
+
import { Form as C, Flex as y, Checkbox as O, Radio as c, InputNumber as P, Select as G } from "antd";
|
|
7
|
+
import { memo as $, useRef as q, useMemo as h, useContext as F, useState as f, useEffect as J, useImperativeHandle as Q } from "react";
|
|
8
8
|
import R from "./DndList.mjs";
|
|
9
|
-
function U({
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
function U({
|
|
10
|
+
display: r,
|
|
11
|
+
showSelectRadio: g = !1,
|
|
12
|
+
parentHeight: u,
|
|
13
|
+
refInstance: I
|
|
14
|
+
}) {
|
|
15
|
+
D.useToken();
|
|
16
|
+
const v = q(null), t = M(v), N = h(() => ({
|
|
12
17
|
// display: display ? 'flex' : 'none'
|
|
13
18
|
width: r ? "100%" : 0,
|
|
14
19
|
height: "100%",
|
|
@@ -20,17 +25,19 @@ function U({ display: r, showSelectRadio: g = !1, parentHeight: f, refInstance:
|
|
|
20
25
|
left: 0,
|
|
21
26
|
right: 0
|
|
22
27
|
}
|
|
23
|
-
}), [r]),
|
|
28
|
+
}), [r]), T = h(() => typeof u == "number" && u && (t != null && t.height) ? u - (t == null ? void 0 : t.height) - 20 : "auto", [u, t == null ? void 0 : t.height]), l = F(A).exportConfig, x = F(A).selected, [i, w] = f([]), [a, p] = f([]), [m, b] = f("current"), [k, E] = f("page"), [j, S] = f(1);
|
|
24
29
|
J(() => {
|
|
25
30
|
var e, s;
|
|
26
|
-
p(l.fields), w(l.fields.map((d) => d.field)),
|
|
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);
|
|
27
34
|
}, [l, g, x]);
|
|
28
|
-
const o =
|
|
35
|
+
const o = h(() => a.filter((e) => e.show).map((e) => e.field), [a]), B = h(() => i.length === o.length, [i, o]), V = h(() => o.length > 0 && o.length < i.length, [o, i]), z = ({ target: e }) => {
|
|
29
36
|
p(a.map((s) => ({ ...s, show: e.checked })));
|
|
30
|
-
},
|
|
37
|
+
}, K = (e, s) => {
|
|
31
38
|
p(e), w(s);
|
|
32
39
|
};
|
|
33
|
-
return Q(
|
|
40
|
+
return Q(I, () => ({
|
|
34
41
|
getExportConfig: () => {
|
|
35
42
|
const e = {
|
|
36
43
|
fields: [],
|
|
@@ -43,15 +50,84 @@ function U({ display: r, showSelectRadio: g = !1, parentHeight: f, refInstance:
|
|
|
43
50
|
let d = !1;
|
|
44
51
|
o.includes(s.field) && (d = !0), e.fields.push({ ...s, show: d });
|
|
45
52
|
}), m === "any" && (e.config.info = {
|
|
46
|
-
type:
|
|
47
|
-
value: (
|
|
53
|
+
type: k,
|
|
54
|
+
value: (j || 0) < 1 ? 1 : j || 1
|
|
48
55
|
}), e;
|
|
49
56
|
},
|
|
50
57
|
hasOne: () => o.length > 0
|
|
51
|
-
})),
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
|
|
58
|
+
})), /* @__PURE__ */ n.jsxs(
|
|
59
|
+
C,
|
|
60
|
+
{
|
|
61
|
+
style: N,
|
|
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
|
+
);
|
|
55
131
|
}
|
|
56
132
|
const te = $(U);
|
|
57
133
|
export {
|
|
@@ -1,6 +1,13 @@
|
|
|
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
|
|
3
|
+
const d = ({
|
|
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
|
+
] }) });
|
|
4
11
|
export {
|
|
5
|
-
|
|
12
|
+
d as default
|
|
6
13
|
};
|
|
@@ -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 H from "../../../../../assets/iconfont/IconKuansongde.mjs";
|
|
9
|
+
import C from "../../../../../assets/iconfont/IconTekuansong.mjs";
|
|
10
|
+
import S from "../../../../../assets/iconfont/IconJincoude.mjs";
|
|
11
|
+
import k from "../../../../../assets/iconfont/IconZhongdengde.mjs";
|
|
12
|
+
import w from "../../../../../assets/iconfont/IconTejincou.mjs";
|
|
13
|
+
import T from "../../../../../assets/iconfont/IconWufengexian.mjs";
|
|
14
|
+
import R from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
|
|
15
|
+
import B from "../../../../../assets/iconfont/IconHangfengexian.mjs";
|
|
16
|
+
import G from "../../../../../assets/iconfont/IconLiefengexian.mjs";
|
|
17
|
+
import F from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
|
|
18
|
+
import N 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 W } from "../../../../BitzConfigProvider/context.mjs";
|
|
36
|
+
import { BitzTableContext as E } from "../../../Store/index.mjs";
|
|
37
|
+
import $ from "../../../../BitzTheme/index.mjs";
|
|
38
|
+
import { Form as t, Radio as d, Checkbox as A } from "antd";
|
|
39
|
+
import D from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
40
|
+
import { forwardRef as J, useMemo as K, useContext as u, 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,75 +45,129 @@ 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 } = $.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 = u(W).Table) == null ? void 0 : x.stylesScope, { defaultTableSize: P, stylesConfig: I } = u(E), r = (b = u(Y).config) == null ? void 0 : b.stylesConfig, p = (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 = D(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
|
+
...I,
|
|
65
65
|
stylesScope: g === "global"
|
|
66
66
|
});
|
|
67
67
|
}, []);
|
|
68
|
-
const
|
|
69
|
-
defaultSize:
|
|
68
|
+
const v = Z({
|
|
69
|
+
defaultSize: P,
|
|
70
70
|
items: [
|
|
71
71
|
{
|
|
72
72
|
key: "xs",
|
|
73
73
|
label: "特紧凑",
|
|
74
|
-
icon:
|
|
74
|
+
icon: w
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
key: "sm",
|
|
78
78
|
label: "紧凑",
|
|
79
|
-
icon:
|
|
79
|
+
icon: S
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
key: "md",
|
|
83
83
|
label: "中等",
|
|
84
|
-
icon:
|
|
84
|
+
icon: k
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
key: "lg",
|
|
88
88
|
label: "宽松",
|
|
89
|
-
icon:
|
|
89
|
+
icon: H
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
key: "xl",
|
|
93
93
|
label: "特宽松",
|
|
94
|
-
icon:
|
|
94
|
+
icon: C
|
|
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
|
-
|
|
100
|
+
})), /* @__PURE__ */ o.jsxs(
|
|
101
|
+
t,
|
|
102
|
+
{
|
|
103
|
+
form: c,
|
|
104
|
+
style: j,
|
|
105
|
+
labelCol: { span: 3 },
|
|
106
|
+
labelAlign: "left",
|
|
107
|
+
colon: !1,
|
|
108
|
+
className: "stylesConfigFormContent",
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ o.jsx(t.Item, { label: "行高", name: "size", children: /* @__PURE__ */ o.jsx(d.Group, { ...p("size", "sizeRadioGroup"), children: v.map(({ key: i, label: m, icon: n }) => /* @__PURE__ */ o.jsx(l, { label: m, value: i, children: /* @__PURE__ */ o.jsx(n, { ...z }) }, i)) }) }),
|
|
111
|
+
/* @__PURE__ */ o.jsx(t.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("bordered", "splitBorderRadioGroup"), children: [
|
|
112
|
+
/* @__PURE__ */ o.jsx(l, { label: "无分割线", value: "hide", children: /* @__PURE__ */ o.jsx(T, { size: 26, color: e.colorPrimaryHover }) }),
|
|
113
|
+
/* @__PURE__ */ o.jsx(l, { label: "行分割线", value: "row", children: /* @__PURE__ */ o.jsx(
|
|
114
|
+
B,
|
|
115
|
+
{
|
|
116
|
+
size: 26,
|
|
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);
|
|
117
171
|
export {
|
|
118
|
-
|
|
172
|
+
$o as default
|
|
119
173
|
};
|
|
@@ -1,18 +1,40 @@
|
|
|
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 x, useState as C, 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
|
-
|
|
9
|
+
const o = "表格设置", v = (e) => {
|
|
10
|
+
const { order: l, show: i = !0, icon: m = /* @__PURE__ */ t.jsx(B, {}) } = e, { fullscreen: n } = x(y), { toolbarItemClassName: a } = h(), [c, s] = C(!1), f = d(() => n ? !1 : void 0, [n]);
|
|
11
|
+
return i ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
12
|
+
/* @__PURE__ */ t.jsx(
|
|
13
|
+
j,
|
|
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;
|
|
15
37
|
};
|
|
16
38
|
export {
|
|
17
|
-
|
|
39
|
+
v as default
|
|
18
40
|
};
|
|
@@ -1,14 +1,20 @@
|
|
|
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 E, useRef as b, 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
|
-
|
|
9
|
+
import M from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
10
|
+
const q = ({
|
|
11
|
+
open: u,
|
|
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 () => {
|
|
12
18
|
var f, l;
|
|
13
19
|
if (g)
|
|
14
20
|
return;
|
|
@@ -16,23 +22,47 @@ const q = ({ open: u, title: p, onExport: s, close: o, getContainer: d }) => {
|
|
|
16
22
|
y.error("导出设置至少需要一个字段"), t(!1);
|
|
17
23
|
return;
|
|
18
24
|
}
|
|
19
|
-
const k = ((l = n.current) == null ? void 0 : l.getExportConfig()) ??
|
|
25
|
+
const k = ((l = n.current) == null ? void 0 : l.getExportConfig()) ?? h;
|
|
20
26
|
s && (t(!1), r(!0), s(k).finally(() => {
|
|
21
27
|
r(!1), o();
|
|
22
28
|
}));
|
|
23
29
|
};
|
|
24
|
-
|
|
30
|
+
B(() => i.mode === "dark", [i.mode]);
|
|
25
31
|
const j = () => {
|
|
26
32
|
r(!1), t(!1);
|
|
27
33
|
};
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
return /* @__PURE__ */ e.jsx(
|
|
35
|
+
T,
|
|
36
|
+
{
|
|
37
|
+
open: u,
|
|
38
|
+
title: p,
|
|
39
|
+
close: o,
|
|
40
|
+
closeAfter: j,
|
|
41
|
+
getContainer: d,
|
|
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
|
+
);
|
|
36
66
|
};
|
|
37
67
|
export {
|
|
38
68
|
q as default
|
|
@@ -1,20 +1,52 @@
|
|
|
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 b, useState as i, useContext as a, useMemo as g } from "react";
|
|
3
|
+
import E 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
|
-
|
|
6
|
+
import { exportConfigTitle as I } from "../ColConfigIcon/ColumnConfigModal.mjs";
|
|
7
|
+
import h from "./ExportModal.mjs";
|
|
8
|
+
import z from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
|
|
9
|
+
const D = ({
|
|
10
|
+
show: f = !0,
|
|
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);
|
|
11
16
|
a(m).exportConfig;
|
|
12
|
-
const { loading:
|
|
17
|
+
const { loading: j, fullscreen: n } = a(m), y = g(() => n ? !1 : void 0, [n]), C = async (e) => {
|
|
13
18
|
var l;
|
|
14
19
|
if (o)
|
|
15
|
-
return r(!0), 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));
|
|
16
25
|
};
|
|
17
|
-
return f ? t.jsxs(t.Fragment, { children: [
|
|
26
|
+
return f ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
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
|
+
] }) : (
|
|
18
50
|
// <Dropdown
|
|
19
51
|
// open={open}
|
|
20
52
|
// onOpenChange={setOpen}
|
|
@@ -41,7 +73,7 @@ const z = ({ show: f = !0, order: p, onClick: o, icon: u = t.jsx(h, {}) }) => {
|
|
|
41
73
|
// </Dropdown>
|
|
42
74
|
null
|
|
43
75
|
);
|
|
44
|
-
},
|
|
76
|
+
}, F = b(D);
|
|
45
77
|
export {
|
|
46
|
-
|
|
78
|
+
F as default
|
|
47
79
|
};
|
|
@@ -9,13 +9,16 @@ 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 = ({
|
|
12
|
+
const g = ({
|
|
13
|
+
order: m,
|
|
14
|
+
show: u = !0
|
|
15
|
+
}) => {
|
|
13
16
|
const { toolbarItemClassName: a } = E(), { fullscreen: n, setFullscreen: s } = p(T), o = x(() => n ? {
|
|
14
17
|
title: "退出全屏",
|
|
15
|
-
icon: t.jsx(h, {})
|
|
18
|
+
icon: /* @__PURE__ */ t.jsx(h, {})
|
|
16
19
|
} : {
|
|
17
20
|
title: "全屏",
|
|
18
|
-
icon: t.jsx(C, {})
|
|
21
|
+
icon: /* @__PURE__ */ t.jsx(C, {})
|
|
19
22
|
}, [n]), f = (l) => {
|
|
20
23
|
r.isEnabled || j.error("您的浏览器不支持全屏");
|
|
21
24
|
const e = z(l.target, "bitzTableBlock");
|
|
@@ -25,7 +28,17 @@ const g = ({ order: m, show: u = !0 }) => {
|
|
|
25
28
|
var e, i, c;
|
|
26
29
|
(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));
|
|
27
30
|
}), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
|
|
28
|
-
})), []), u ? t.jsx(B, { title: o.title, open: !1, children: t.jsx(
|
|
31
|
+
})), []), u ? /* @__PURE__ */ t.jsx(B, { title: o.title, open: !1, children: /* @__PURE__ */ t.jsx(
|
|
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;
|
|
29
42
|
}, P = d(g);
|
|
30
43
|
export {
|
|
31
44
|
P as default
|