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,59 +1,22 @@
|
|
|
1
1
|
import { j as r } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Modal as N, Typography as k, Card as B, Flex as u } from "antd";
|
|
3
|
-
import { useMemo as
|
|
3
|
+
import { useMemo as f, useState as F, useRef as m } from "react";
|
|
4
4
|
import H from "../../../BitzTheme/index.mjs";
|
|
5
5
|
import R from "../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
6
|
import { styles as T } from "./style.mjs";
|
|
7
|
-
function $({
|
|
8
|
-
|
|
9
|
-
title: C,
|
|
10
|
-
close: g,
|
|
11
|
-
closeAfter: p,
|
|
12
|
-
getContainer: x,
|
|
13
|
-
footer: y,
|
|
14
|
-
extra: t,
|
|
15
|
-
children: j
|
|
16
|
-
}) {
|
|
17
|
-
const { token: o } = H.useToken(), n = m(() => o.mode === "dark", [o.mode]), [l, b] = F(0), M = () => {
|
|
7
|
+
function $({ open: h, title: C, close: g, closeAfter: p, getContainer: x, footer: y, extra: t, children: j }) {
|
|
8
|
+
const { token: o } = H.useToken(), n = f(() => o.mode === "dark", [o.mode]), [l, b] = F(0), M = () => {
|
|
18
9
|
p(), b(l + 1);
|
|
19
|
-
}, e =
|
|
20
|
-
var
|
|
21
|
-
return e.current && s.current ? ((
|
|
10
|
+
}, e = m(null), s = m(null), i = f(() => {
|
|
11
|
+
var a, c, d;
|
|
12
|
+
return e.current && s.current ? ((a = e.current) == null ? void 0 : a.clientHeight) - ((c = s.current) == null ? void 0 : c.clientHeight) - 24 : e.current && !t ? (d = e.current) == null ? void 0 : d.clientHeight : "100%";
|
|
22
13
|
}, [e.current, s.current, t]);
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
open: h,
|
|
30
|
-
onCancel: g,
|
|
31
|
-
afterClose: M,
|
|
32
|
-
style: {
|
|
33
|
-
"--sortCard-bgColor": n ? "#444" : "#f2f2f2",
|
|
34
|
-
"--sortCard-titleColor": n ? "#ccc" : "#777",
|
|
35
|
-
"--radioCard-bgColor": n ? "#444" : "#F2F2F2",
|
|
36
|
-
"--radioCard-bgHoverColor": n ? "#333" : o.colorBgContainer
|
|
37
|
-
},
|
|
38
|
-
width: 700,
|
|
39
|
-
footer: y,
|
|
40
|
-
children: /* @__PURE__ */ r.jsx(B, { className: "container", bordered: !1, children: /* @__PURE__ */ r.jsxs(
|
|
41
|
-
u,
|
|
42
|
-
{
|
|
43
|
-
ref: e,
|
|
44
|
-
vertical: !0,
|
|
45
|
-
align: "center",
|
|
46
|
-
gap: 24,
|
|
47
|
-
style: { height: "100%" },
|
|
48
|
-
children: [
|
|
49
|
-
t && /* @__PURE__ */ r.jsx("div", { className: "extraContent", ref: s, children: t }),
|
|
50
|
-
/* @__PURE__ */ r.jsx(u, { className: "containerBody", style: { height: i || "100%" }, children: j(i) })
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
l
|
|
54
|
-
) })
|
|
55
|
-
}
|
|
56
|
-
);
|
|
14
|
+
return r.jsx(N, { className: R(T(o), "tableConfigModal"), title: r.jsx(k.Title, { style: { fontSize: 16, margin: 0 }, children: C }), getContainer: x, open: h, onCancel: g, afterClose: M, style: {
|
|
15
|
+
"--sortCard-bgColor": n ? "#444" : "#f2f2f2",
|
|
16
|
+
"--sortCard-titleColor": n ? "#ccc" : "#777",
|
|
17
|
+
"--radioCard-bgColor": n ? "#444" : "#F2F2F2",
|
|
18
|
+
"--radioCard-bgHoverColor": n ? "#333" : o.colorBgContainer
|
|
19
|
+
}, width: 700, footer: y, children: r.jsx(B, { className: "container", bordered: !1, children: r.jsxs(u, { ref: e, vertical: !0, align: "center", gap: 24, style: { height: "100%" }, children: [t && r.jsx("div", { className: "extraContent", ref: s, children: t }), r.jsx(u, { className: "containerBody", style: { height: i || "100%" }, children: j(i) })] }, l) }) });
|
|
57
20
|
}
|
|
58
21
|
export {
|
|
59
22
|
$ as default
|
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import { j as o } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { BitzTableContext as
|
|
2
|
+
import { memo as c, useContext as a } from "react";
|
|
3
|
+
import { Tooltip as u } from "antd";
|
|
4
|
+
import p from "../style.mjs";
|
|
5
|
+
import f from "../../../BitzButton/index.mjs";
|
|
6
|
+
import { BitzTableContext as d } from "../../Store/index.mjs";
|
|
7
7
|
import x from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs";
|
|
8
8
|
const h = (t) => {
|
|
9
|
-
const { onClick: e, order: r, show: s = !0, icon: n =
|
|
10
|
-
return s ?
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
type: "text",
|
|
14
|
-
className: i,
|
|
15
|
-
disabled: l || m,
|
|
16
|
-
onClick: e,
|
|
17
|
-
icon: n,
|
|
18
|
-
style: { order: r },
|
|
19
|
-
children: "刷新"
|
|
20
|
-
}
|
|
21
|
-
) }) : null;
|
|
22
|
-
}, z = a(h);
|
|
9
|
+
const { onClick: e, order: r, show: s = !0, icon: n = o.jsx(x, {}) } = t, { loading: i, selected: l } = a(d), { toolbarItemClassName: m } = p();
|
|
10
|
+
return s ? o.jsx(u, { title: "刷新", open: !1, children: o.jsx(f, { type: "text", className: m, disabled: i || l, onClick: e, icon: n, style: { order: r }, children: "刷新" }) }) : null;
|
|
11
|
+
}, k = c(h);
|
|
23
12
|
export {
|
|
24
|
-
|
|
13
|
+
k as default
|
|
25
14
|
};
|
|
@@ -8,15 +8,7 @@ import j from "../ExportIcon/index.mjs";
|
|
|
8
8
|
import { BitzConfigContext as z } from "../../../BitzConfigProvider/context.mjs";
|
|
9
9
|
import { BitzToolBarContext as B } from "./context.mjs";
|
|
10
10
|
import { BitzTableContext as I } from "../../Store/index.mjs";
|
|
11
|
-
const T = ["export", "refresh", "fullscreen", "config"], A = ({
|
|
12
|
-
size: E,
|
|
13
|
-
tools: i,
|
|
14
|
-
toolsConfig: c,
|
|
15
|
-
exclude: t,
|
|
16
|
-
onExport: h,
|
|
17
|
-
onRefresh: p,
|
|
18
|
-
onColumnChange: d
|
|
19
|
-
}) => {
|
|
11
|
+
const T = ["export", "refresh", "fullscreen", "config"], A = ({ size: E, tools: i, toolsConfig: c, exclude: t, onExport: h, onRefresh: p, onColumnChange: d }) => {
|
|
20
12
|
const { Table: r } = l(z), { selected: a } = l(I), f = m(() => {
|
|
21
13
|
const e = i || (r == null ? void 0 : r.toolbar) || T;
|
|
22
14
|
return t != null && t.length ? e.filter((n) => !t.includes(n)) : e;
|
|
@@ -31,45 +23,7 @@ const T = ["export", "refresh", "fullscreen", "config"], A = ({
|
|
|
31
23
|
e[n].order = w + 1, e[n].show = f.includes(n);
|
|
32
24
|
}), e;
|
|
33
25
|
}, [f]);
|
|
34
|
-
return
|
|
35
|
-
x.Compact,
|
|
36
|
-
{
|
|
37
|
-
style: { height: "100%", ...a && { zIndex: 10 } },
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ s.jsx(
|
|
40
|
-
j,
|
|
41
|
-
{
|
|
42
|
-
order: o.export.order,
|
|
43
|
-
show: o.export.show,
|
|
44
|
-
onClick: h
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ s.jsx(
|
|
48
|
-
u,
|
|
49
|
-
{
|
|
50
|
-
order: o.refresh.order,
|
|
51
|
-
show: o.refresh.show,
|
|
52
|
-
onClick: p
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
/* @__PURE__ */ s.jsx(
|
|
56
|
-
C,
|
|
57
|
-
{
|
|
58
|
-
order: o.fullscreen.order,
|
|
59
|
-
show: o.fullscreen.show
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
/* @__PURE__ */ s.jsx(
|
|
63
|
-
g,
|
|
64
|
-
{
|
|
65
|
-
order: o.config.order,
|
|
66
|
-
show: o.config.show,
|
|
67
|
-
onChange: d
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
) });
|
|
26
|
+
return s.jsx(B.Provider, { value: c ?? {}, children: s.jsxs(x.Compact, { style: { height: "100%", ...a && { zIndex: 10 } }, children: [s.jsx(j, { order: o.export.order, show: o.export.show, onClick: h }), s.jsx(u, { order: o.refresh.order, show: o.refresh.show, onClick: p }), s.jsx(C, { order: o.fullscreen.order, show: o.fullscreen.show }), s.jsx(g, { order: o.config.order, show: o.config.show, onChange: d })] }) });
|
|
73
27
|
};
|
|
74
28
|
export {
|
|
75
29
|
A as default
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Space as p, Button as n } from "antd";
|
|
3
3
|
const m = ({ record: a = {}, operations: r = [], tableOperationEmit: s = () => {
|
|
4
|
-
}, ...l }) =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
className: `${(e == null ? void 0 : e.className) || ""}`,
|
|
8
|
-
type: e.type == "edit" ? "primary" : "default",
|
|
9
|
-
danger: e.type == "delete",
|
|
10
|
-
onClick: () => {
|
|
11
|
-
s(e.type, a);
|
|
12
|
-
},
|
|
13
|
-
children: e.label
|
|
14
|
-
},
|
|
15
|
-
i
|
|
16
|
-
)) }) });
|
|
4
|
+
}, ...l }) => t.jsx("div", { className: "bitzTableOperationsBlock", ...l, children: t.jsx(p, { children: r.map((e, i) => t.jsx(n, { className: `${(e == null ? void 0 : e.className) || ""}`, type: e.type == "edit" ? "primary" : "default", danger: e.type == "delete", onClick: () => {
|
|
5
|
+
s(e.type, a);
|
|
6
|
+
}, children: e.label }, i)) }) });
|
|
17
7
|
export {
|
|
18
8
|
m as default
|
|
19
9
|
};
|
|
@@ -3,54 +3,21 @@ import { useState as r, useEffect as j } from "react";
|
|
|
3
3
|
import { Select as b, Drawer as w, Input as S } from "antd";
|
|
4
4
|
import k from "../../BitzButton/index.mjs";
|
|
5
5
|
import "./index.less.mjs";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
value: "key"
|
|
12
|
-
},
|
|
13
|
-
onChange: t,
|
|
14
|
-
...y
|
|
15
|
-
}) => {
|
|
16
|
-
const [c, m] = r([]), [f, l] = r([]), [n, o] = r(!1), u = () => {
|
|
6
|
+
const T = ({ value: s, placeholder: i = "请选择", fieldNames: p = {
|
|
7
|
+
label: "name",
|
|
8
|
+
value: "key"
|
|
9
|
+
}, onChange: t, ...y }) => {
|
|
10
|
+
const [c, m] = r([]), [n, l] = r([]), [f, o] = r(!1), u = () => {
|
|
17
11
|
l([]), t == null || t([], []);
|
|
18
|
-
}, d = (x,
|
|
19
|
-
l(
|
|
12
|
+
}, d = (x, a) => {
|
|
13
|
+
l(a), t == null || t(x, a);
|
|
20
14
|
};
|
|
21
15
|
return j(() => {
|
|
22
16
|
if (s && !Array.isArray(s))
|
|
23
|
-
throw new Error(
|
|
24
|
-
`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`
|
|
25
|
-
);
|
|
17
|
+
throw new Error(`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`);
|
|
26
18
|
m(s ?? []);
|
|
27
|
-
}, [s]),
|
|
28
|
-
/* @__PURE__ */ e.jsx(
|
|
29
|
-
b,
|
|
30
|
-
{
|
|
31
|
-
style: { width: "200px" },
|
|
32
|
-
allowClear: !0,
|
|
33
|
-
mode: "tags",
|
|
34
|
-
maxTagCount: "responsive",
|
|
35
|
-
value: c,
|
|
36
|
-
options: f,
|
|
37
|
-
fieldNames: p,
|
|
38
|
-
showSearch: !1,
|
|
39
|
-
open: !1,
|
|
40
|
-
placeholder: a,
|
|
41
|
-
popupClassName: "tableSelectPopupBlock",
|
|
42
|
-
dropdownRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
43
|
-
onClick: () => o(!0),
|
|
44
|
-
onClear: u,
|
|
45
|
-
onChange: d
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
/* @__PURE__ */ e.jsxs(w, { open: n, placement: "bottom", height: "100%", children: [
|
|
49
|
-
/* @__PURE__ */ e.jsx(S, {}),
|
|
50
|
-
/* @__PURE__ */ e.jsx(k, { onClick: () => o(!1), children: "关闭" })
|
|
51
|
-
] })
|
|
52
|
-
] });
|
|
19
|
+
}, [s]), e.jsxs("div", { children: [e.jsx(b, { style: { width: "200px" }, allowClear: !0, mode: "tags", maxTagCount: "responsive", value: c, options: n, fieldNames: p, showSearch: !1, open: !1, placeholder: i, popupClassName: "tableSelectPopupBlock", dropdownRender: () => e.jsx(e.Fragment, {}), onClick: () => o(!0), onClear: u, onChange: d }), e.jsxs(w, { open: f, placement: "bottom", height: "100%", children: [e.jsx(S, {}), e.jsx(k, { onClick: () => o(!1), children: "关闭" })] })] });
|
|
53
20
|
};
|
|
54
21
|
export {
|
|
55
|
-
|
|
22
|
+
T as default
|
|
56
23
|
};
|
|
@@ -1,91 +1,25 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as i, useEffect as
|
|
3
|
-
import { Select as
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
page: T,
|
|
15
|
-
onPageChange: k,
|
|
16
|
-
searchInput: y,
|
|
17
|
-
showToolTagSelect: E,
|
|
18
|
-
toolTags: A,
|
|
19
|
-
onToolTagChange: B,
|
|
20
|
-
lrLayout: D,
|
|
21
|
-
parentRender: P,
|
|
22
|
-
placeholder: d = "请选择",
|
|
23
|
-
fieldNames: p,
|
|
24
|
-
onChange: e,
|
|
25
|
-
...v
|
|
26
|
-
}) {
|
|
27
|
-
const [m, F] = i([]), [u, o] = i([]), [c, f] = i(!1), [N, O] = i(!1), $ = () => {
|
|
28
|
-
o([]), e == null || e([], []);
|
|
29
|
-
}, q = (s, r, H) => {
|
|
30
|
-
H === "confirm" ? f(!1) : (o([...r]), e == null || e([...s], [...r]));
|
|
31
|
-
}, z = (s, r) => {
|
|
32
|
-
o(r), e == null || e(s, r);
|
|
33
|
-
}, G = (s) => {
|
|
34
|
-
!c && s && f(!0), !N && !s && c && f(!1);
|
|
1
|
+
import { j as m } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useState as i, useEffect as u } from "react";
|
|
3
|
+
import { Select as q } from "antd";
|
|
4
|
+
import z from "../SelectPopup/index.mjs";
|
|
5
|
+
function K({ value: o, options: t, columns: b, tableData: S, total: d, loading: T, loadingFailed: V, loadAgain: w, page: x, onPageChange: g, searchInput: h, showToolTagSelect: j, toolTags: y, onToolTagChange: D, lrLayout: k, parentRender: A, placeholder: E = "请选择", fieldNames: p, onChange: e, ...N }) {
|
|
6
|
+
const [n, P] = i([]), [f, r] = i([]), [a, c] = i(!1), [B, F] = i(!1), v = () => {
|
|
7
|
+
r([]), e == null || e([], []);
|
|
8
|
+
}, I = (l, s, $) => {
|
|
9
|
+
$ === "confirm" ? c(!1) : (r([...s]), e == null || e([...l], [...s]));
|
|
10
|
+
}, L = (l, s) => {
|
|
11
|
+
r(s), e == null || e(l, s);
|
|
12
|
+
}, O = (l) => {
|
|
13
|
+
!a && l && c(!0), !B && !l && a && c(!1);
|
|
35
14
|
};
|
|
36
|
-
return
|
|
37
|
-
if (
|
|
38
|
-
throw new Error(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, [
|
|
43
|
-
t != null && t.length && o(t);
|
|
44
|
-
}, [t]), /* @__PURE__ */ S.jsx(
|
|
45
|
-
I,
|
|
46
|
-
{
|
|
47
|
-
allowClear: !0,
|
|
48
|
-
className: "tableSelectBlock",
|
|
49
|
-
mode: "multiple",
|
|
50
|
-
maxTagCount: "responsive",
|
|
51
|
-
value: m,
|
|
52
|
-
options: u,
|
|
53
|
-
fieldNames: p,
|
|
54
|
-
showSearch: !1,
|
|
55
|
-
open: c,
|
|
56
|
-
placeholder: d,
|
|
57
|
-
popupClassName: "tableSelectPopupBlock",
|
|
58
|
-
dropdownRender: () => /* @__PURE__ */ S.jsx(
|
|
59
|
-
J,
|
|
60
|
-
{
|
|
61
|
-
columns: a,
|
|
62
|
-
tableData: n,
|
|
63
|
-
total: x,
|
|
64
|
-
page: T,
|
|
65
|
-
onPageChange: k,
|
|
66
|
-
searchInput: y,
|
|
67
|
-
loading: V,
|
|
68
|
-
loadingFailed: j,
|
|
69
|
-
loadAgain: w,
|
|
70
|
-
keys: m,
|
|
71
|
-
rows: u,
|
|
72
|
-
fieldNames: p,
|
|
73
|
-
onChange: q,
|
|
74
|
-
onDropdownVisibleChange: O,
|
|
75
|
-
showToolTagSelect: E,
|
|
76
|
-
toolTags: A,
|
|
77
|
-
onToolTagChange: B,
|
|
78
|
-
lrLayout: D,
|
|
79
|
-
parentRender: P
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
|
-
onClear: $,
|
|
83
|
-
onDropdownVisibleChange: G,
|
|
84
|
-
onChange: z,
|
|
85
|
-
...v
|
|
86
|
-
}
|
|
87
|
-
);
|
|
15
|
+
return u(() => {
|
|
16
|
+
if (o && !Array.isArray(o))
|
|
17
|
+
throw new Error(`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${o}`);
|
|
18
|
+
P(o ?? []);
|
|
19
|
+
}, [o]), u(() => {
|
|
20
|
+
t != null && t.length && r(t);
|
|
21
|
+
}, [t]), m.jsx(q, { allowClear: !0, className: "tableSelectBlock", mode: "multiple", maxTagCount: "responsive", value: n, options: f, fieldNames: p, showSearch: !1, open: a, placeholder: E, popupClassName: "tableSelectPopupBlock", dropdownRender: () => m.jsx(z, { columns: b, tableData: S, total: d, page: x, onPageChange: g, searchInput: h, loading: T, loadingFailed: V, loadAgain: w, keys: n, rows: f, fieldNames: p, onChange: I, onDropdownVisibleChange: F, showToolTagSelect: j, toolTags: y, onToolTagChange: D, lrLayout: k, parentRender: A }), onClear: v, onDropdownVisibleChange: O, onChange: L, ...N });
|
|
88
22
|
}
|
|
89
23
|
export {
|
|
90
|
-
|
|
24
|
+
K as default
|
|
91
25
|
};
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import m from "../../BitzDescriptions/index.mjs";
|
|
3
|
+
import a from "../TableCell/index.mjs";
|
|
4
4
|
import u from "../TextBlock/index.mjs";
|
|
5
|
-
import { defaultValue as
|
|
6
|
-
const w = (
|
|
7
|
-
const l =
|
|
5
|
+
import { defaultValue as d } from "../index.mjs";
|
|
6
|
+
const w = (o, n, e) => {
|
|
7
|
+
const l = o.map((r) => (typeof r.title == "string" && (r.title = i.jsx(u, { value: r.title, bold: 600 })), {
|
|
8
8
|
...r,
|
|
9
9
|
width: "auto",
|
|
10
|
-
render: (t,
|
|
11
|
-
const
|
|
10
|
+
render: (t, f, c) => {
|
|
11
|
+
const g = (n == null ? void 0 : n.length) === 1 ? !1 : c + 1 > ((n == null ? void 0 : n.length) || 0) / 2;
|
|
12
12
|
if (r != null && r.render) {
|
|
13
|
-
const s = r.render(t,
|
|
13
|
+
const s = r.render(t, f, c);
|
|
14
14
|
if (typeof s == "object")
|
|
15
15
|
return s;
|
|
16
|
-
if (["boolean", "number", "bigint", "string"].includes(
|
|
17
|
-
|
|
18
|
-
))
|
|
19
|
-
return /* @__PURE__ */ i.jsx(m, { value: `${s}`, isLatterHalf: f });
|
|
16
|
+
if (["boolean", "number", "bigint", "string"].includes(typeof s))
|
|
17
|
+
return i.jsx(a, { value: `${s}`, isLatterHalf: g });
|
|
20
18
|
}
|
|
21
|
-
return !t && !["boolean", "number", "bigint"].includes(typeof t) ?
|
|
19
|
+
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? i.jsx(u, { value: d }) : i.jsx(a, { value: t, isLatterHalf: g });
|
|
22
20
|
}
|
|
23
21
|
}));
|
|
24
22
|
return [
|
|
@@ -27,32 +25,24 @@ const w = (n, o, e) => {
|
|
|
27
25
|
rowScope: "row",
|
|
28
26
|
className: "numRow",
|
|
29
27
|
width: 80,
|
|
30
|
-
render: (r, t,
|
|
28
|
+
render: (r, t, f) => f + 1 + (e.page - 1) * e.size
|
|
31
29
|
},
|
|
32
30
|
...l
|
|
33
31
|
];
|
|
34
|
-
}, R = (
|
|
32
|
+
}, R = (o, n) => o ? {
|
|
35
33
|
expandable: {
|
|
36
34
|
rowExpandable: (e) => {
|
|
37
35
|
var l;
|
|
38
|
-
return
|
|
36
|
+
return n ? !0 : (l = e[o]) == null ? void 0 : l.length;
|
|
39
37
|
},
|
|
40
38
|
expandedRowRender: (e) => {
|
|
41
39
|
var r;
|
|
42
|
-
const l = (r = e[
|
|
43
|
-
return
|
|
44
|
-
p,
|
|
45
|
-
{
|
|
46
|
-
size: "small",
|
|
47
|
-
bordered: !0,
|
|
48
|
-
items: l,
|
|
49
|
-
column: { xs: 1, sm: 1, md: 1, lg: 2, xl: 2, xxl: 2 }
|
|
50
|
-
}
|
|
51
|
-
);
|
|
40
|
+
const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
|
|
41
|
+
return i.jsx(m, { size: "small", bordered: !0, items: l, column: { xs: 1, sm: 1, md: 1, lg: 2, xl: 2, xxl: 2 } });
|
|
52
42
|
}
|
|
53
43
|
}
|
|
54
|
-
} : null, S = (
|
|
55
|
-
if (
|
|
44
|
+
} : null, S = (o, n) => {
|
|
45
|
+
if (o) {
|
|
56
46
|
const e = {
|
|
57
47
|
gutter: 20,
|
|
58
48
|
left: {
|
|
@@ -67,7 +57,7 @@ const w = (n, o, e) => {
|
|
|
67
57
|
button: 4
|
|
68
58
|
}
|
|
69
59
|
};
|
|
70
|
-
return
|
|
60
|
+
return n || (e.right.search = 11, e.right.operation = 13, e.right.toolTagSelect = 0, e.right.totalSelect = 11, e.right.button = void 0), e;
|
|
71
61
|
} else {
|
|
72
62
|
const e = {
|
|
73
63
|
gutter: 0,
|
|
@@ -83,7 +73,7 @@ const w = (n, o, e) => {
|
|
|
83
73
|
button: void 0
|
|
84
74
|
}
|
|
85
75
|
};
|
|
86
|
-
return
|
|
76
|
+
return n || (e.right.search = 11, e.right.operation = 13, e.right.toolTagSelect = 0, e.right.totalSelect = 11), e;
|
|
87
77
|
}
|
|
88
78
|
};
|
|
89
79
|
export {
|