bitz-react-admin-ui 2.5.9 → 2.6.0
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 +25 -4
- package/dist/assets/iconfont/IconClose.mjs +24 -3
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
- package/dist/assets/iconfont/IconCuowu.mjs +23 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
- package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
- package/dist/assets/iconfont/IconFabu.mjs +35 -5
- package/dist/assets/iconfont/IconFanhui.mjs +25 -4
- package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
- package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
- package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
- package/dist/assets/iconfont/IconIcon21.mjs +25 -4
- package/dist/assets/iconfont/IconJincoude.mjs +25 -4
- package/dist/assets/iconfont/IconJinggao.mjs +25 -4
- package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
- package/dist/assets/iconfont/IconMore.mjs +41 -4
- package/dist/assets/iconfont/IconShanchu.mjs +27 -6
- package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
- package/dist/assets/iconfont/IconSousuo.mjs +27 -6
- package/dist/assets/iconfont/IconTejincou.mjs +25 -4
- package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
- package/dist/assets/iconfont/IconTishi1.mjs +27 -6
- package/dist/assets/iconfont/IconTuodong.mjs +28 -7
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
- package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
- package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
- package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
- 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/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/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +1 -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 +47 -15
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
- 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 +80 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +129 -33
- 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 +11 -4
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +170 -133
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
- package/dist/components/BitzTable/Store/utils/index.mjs +48 -38
- package/dist/components/BitzTable/SubTable/index.mjs +91 -43
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +57 -40
- package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +476 -213
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +83 -27
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +278 -150
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +129 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +97 -43
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +28 -6
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +38 -9
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +37 -8
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -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 +90 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
- package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
- package/dist/components/BitzTableSelect/index.mjs +65 -14
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +41 -14
- package/dist/components/BitzText/utils.mjs +3 -3
- 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/BitzTooltip/index.mjs +47 -17
- package/dist/components/BitzTooltip/style.mjs +9 -6
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- 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/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useDebounceFn/index.mjs +29 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/lodash-polyfill.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +37 -34
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -5
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -8,7 +8,13 @@ import h from "../../../node_modules/.store/classnames@2.5.1/node_modules/classn
|
|
|
8
8
|
import c from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
|
|
9
9
|
import o from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
10
10
|
import g from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
|
|
11
|
-
const O = ({
|
|
11
|
+
const O = ({
|
|
12
|
+
size: C,
|
|
13
|
+
add: n,
|
|
14
|
+
excel: r,
|
|
15
|
+
actions: m,
|
|
16
|
+
children: E
|
|
17
|
+
}) => {
|
|
12
18
|
const { blockCls: x, addBtnClassName: y, btnClassName: p } = k(C), w = f(() => [
|
|
13
19
|
{
|
|
14
20
|
key: "download",
|
|
@@ -25,17 +31,79 @@ const O = ({ size: C, add: n, excel: r, actions: m, children: E }) => {
|
|
|
25
31
|
// ),
|
|
26
32
|
},
|
|
27
33
|
...(r == null ? void 0 : r.otherMenu) ?? []
|
|
28
|
-
], [r]), d = f(() => m == null ? void 0 : m.map((t, e) => t.type === "primary" ?
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
], [r]), d = f(() => m == null ? void 0 : m.map((t, e) => t.type === "primary" ? /* @__PURE__ */ s.jsx(
|
|
35
|
+
i,
|
|
36
|
+
{
|
|
37
|
+
type: "primary",
|
|
38
|
+
icon: /* @__PURE__ */ s.jsx(c, {}),
|
|
39
|
+
className: h(y, t.className),
|
|
40
|
+
...o(t, "text", "type", "className", "children"),
|
|
41
|
+
children: t == null ? void 0 : t.text
|
|
42
|
+
},
|
|
43
|
+
e
|
|
44
|
+
) : t.type === "secondary" ? /* @__PURE__ */ s.jsx(
|
|
45
|
+
i,
|
|
46
|
+
{
|
|
47
|
+
type: "text",
|
|
48
|
+
className: h(p, t.className),
|
|
49
|
+
...o(t, "text", "type", "className", "children"),
|
|
50
|
+
children: t == null ? void 0 : t.text
|
|
51
|
+
},
|
|
52
|
+
e
|
|
53
|
+
) : /* @__PURE__ */ s.jsx(
|
|
54
|
+
N,
|
|
55
|
+
{
|
|
56
|
+
getPopupContainer: (a) => {
|
|
57
|
+
var j, u;
|
|
58
|
+
return (u = (j = a.parentElement) == null ? void 0 : j.parentElement) == null ? void 0 : u.parentElement;
|
|
59
|
+
},
|
|
60
|
+
...o(t, "text", "className", "children"),
|
|
61
|
+
children: /* @__PURE__ */ s.jsx(
|
|
62
|
+
i,
|
|
63
|
+
{
|
|
64
|
+
className: h(p, t.className),
|
|
65
|
+
type: "text",
|
|
66
|
+
children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
|
|
67
|
+
!t.text || typeof t.text == "string" ? /* @__PURE__ */ s.jsx("span", { children: t.text }) : t.text,
|
|
68
|
+
/* @__PURE__ */ s.jsx(g, {})
|
|
69
|
+
] })
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
},
|
|
73
|
+
e
|
|
74
|
+
)), [m]);
|
|
75
|
+
return /* @__PURE__ */ s.jsxs(l.Compact, { className: x, style: { height: "100%" }, children: [
|
|
76
|
+
(n == null ? void 0 : n.show) !== !1 && /* @__PURE__ */ s.jsx(
|
|
77
|
+
i,
|
|
78
|
+
{
|
|
79
|
+
type: "primary",
|
|
80
|
+
icon: /* @__PURE__ */ s.jsx(c, {}),
|
|
81
|
+
className: y,
|
|
82
|
+
...o(n, "text", "show", "type", "className", "children"),
|
|
83
|
+
children: n == null ? void 0 : n.text
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
m ? d : E,
|
|
87
|
+
(r == null ? void 0 : r.show) !== !1 && /* @__PURE__ */ s.jsx(
|
|
88
|
+
N,
|
|
89
|
+
{
|
|
90
|
+
menu: { items: w, onClick: ({ key: t }) => {
|
|
91
|
+
var e;
|
|
92
|
+
return (e = r == null ? void 0 : r.onClick) == null ? void 0 : e.call(r, t);
|
|
93
|
+
} },
|
|
94
|
+
trigger: (r == null ? void 0 : r.trigger) || ["click"],
|
|
95
|
+
getPopupContainer: (t) => {
|
|
96
|
+
var e, a;
|
|
97
|
+
return (a = (e = t.parentElement) == null ? void 0 : e.parentElement) == null ? void 0 : a.parentElement;
|
|
98
|
+
},
|
|
99
|
+
...o(r, "text", "show", "menu", "trigger", "children"),
|
|
100
|
+
children: /* @__PURE__ */ s.jsx(i, { className: p, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
|
|
101
|
+
/* @__PURE__ */ s.jsx("span", { children: (r == null ? void 0 : r.text) ?? "Excel文档导入" }),
|
|
102
|
+
/* @__PURE__ */ s.jsx(g, {})
|
|
103
|
+
] }) })
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] });
|
|
39
107
|
};
|
|
40
108
|
export {
|
|
41
109
|
O as default
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import p from "../../BitzButton/index.mjs";
|
|
3
3
|
import c from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const z = ({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import { useMemo as s } from "react";
|
|
5
|
+
import x from "./style.mjs";
|
|
6
|
+
import B from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
|
|
7
|
+
const z = ({
|
|
8
|
+
className: o,
|
|
9
|
+
icon: n,
|
|
10
|
+
type: r,
|
|
11
|
+
...i
|
|
12
|
+
}) => {
|
|
13
|
+
const { addBtnClassName: m, btnClassName: a } = x(), u = s(() => {
|
|
14
|
+
if (n)
|
|
15
|
+
return n;
|
|
11
16
|
if (r === "primary")
|
|
12
|
-
return
|
|
13
|
-
}, [
|
|
14
|
-
let t =
|
|
15
|
-
return r === "primary" && (t = m), c(t,
|
|
16
|
-
}, [r,
|
|
17
|
+
return /* @__PURE__ */ e.jsx(B, {});
|
|
18
|
+
}, [n, r]), l = s(() => {
|
|
19
|
+
let t = a;
|
|
20
|
+
return r === "primary" && (t = m), c(t, o);
|
|
21
|
+
}, [r, o]), f = s(() => {
|
|
17
22
|
let t = "text";
|
|
18
23
|
return r === "primary" && (t = "primary"), t;
|
|
19
|
-
}, [r,
|
|
20
|
-
return
|
|
24
|
+
}, [r, o]);
|
|
25
|
+
return /* @__PURE__ */ e.jsx(p, { className: l, icon: u, type: f, ...i });
|
|
21
26
|
};
|
|
22
27
|
export {
|
|
23
28
|
z as default
|
|
@@ -75,15 +75,18 @@ const X = (m) => {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
];
|
|
78
|
-
G(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
G(
|
|
79
|
+
{
|
|
80
|
+
theme: y,
|
|
81
|
+
token: a,
|
|
82
|
+
hashId: r,
|
|
83
|
+
path: [n]
|
|
84
|
+
},
|
|
85
|
+
() => [
|
|
86
|
+
D(n, i, c, a),
|
|
87
|
+
A(n, p, a)
|
|
88
|
+
]
|
|
89
|
+
);
|
|
87
90
|
const b = `${v}${c}`, N = x(i, b, r), R = x(i, p, b, r);
|
|
88
91
|
return { blockCls: n, addBtnClassName: N, btnClassName: R };
|
|
89
92
|
};
|
|
@@ -1,44 +1,132 @@
|
|
|
1
1
|
import { j as n } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import T from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
3
|
-
import { Space as I, Skeleton as R, theme as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import { Space as I, Skeleton as R, theme as P } from "antd";
|
|
4
|
+
import { forwardRef as E, useContext as L, useMemo as C, Fragment as M, useRef as D } from "react";
|
|
5
|
+
import x from "../../BitzButton/index.mjs";
|
|
6
|
+
import F, { actionColBtnGap as H } from "./style.mjs";
|
|
7
7
|
import "../index.mjs";
|
|
8
8
|
import w from "../Dropdown/index.mjs";
|
|
9
9
|
import { tablePaddingInline as O } from "../../BitzConfigProvider/context.mjs";
|
|
10
10
|
import { BitzTableContext as W } from "../Store/index.mjs";
|
|
11
|
-
const b = ({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
const b = ({
|
|
12
|
+
skeletonCls: m,
|
|
13
|
+
...l
|
|
14
|
+
}) => /* @__PURE__ */ n.jsxs(x, { type: "text", ...l, children: [
|
|
15
|
+
/* @__PURE__ */ n.jsx("span", { children: l.children }),
|
|
16
|
+
/* @__PURE__ */ n.jsx(
|
|
17
|
+
R,
|
|
18
|
+
{
|
|
19
|
+
active: !0,
|
|
20
|
+
title: !1,
|
|
21
|
+
className: m,
|
|
22
|
+
paragraph: {
|
|
23
|
+
rows: 1,
|
|
24
|
+
width: "100%"
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
)
|
|
28
|
+
] }), _ = E(
|
|
29
|
+
({ loading: m, actionGroup: l, customActions: r }, p) => {
|
|
30
|
+
const { loading: f, fullscreen: y } = L(W), a = C(() => m ?? f, [m, f]), {
|
|
31
|
+
primaryBtnClassName: d,
|
|
32
|
+
dangerBtnClassName: o,
|
|
33
|
+
secondaryBtnClassName: u,
|
|
34
|
+
maskClassName: B,
|
|
35
|
+
skeletonBtnClassName: h,
|
|
36
|
+
skeletonClassName: g
|
|
37
|
+
} = F(), j = C(() => {
|
|
38
|
+
const i = l.length >= 4 ? 2 : l.length, c = l.slice(0, i), t = [];
|
|
39
|
+
if (c != null && c.length && c.forEach((e, s) => {
|
|
40
|
+
t.push(
|
|
41
|
+
a ? /* @__PURE__ */ n.jsx(
|
|
42
|
+
b,
|
|
43
|
+
{
|
|
44
|
+
className: h,
|
|
45
|
+
skeletonCls: g,
|
|
46
|
+
children: e == null ? void 0 : e.label
|
|
47
|
+
},
|
|
48
|
+
s
|
|
49
|
+
) : e.children ? /* @__PURE__ */ n.jsx(w, { menu: { items: e.children }, children: /* @__PURE__ */ n.jsx(
|
|
50
|
+
x,
|
|
51
|
+
{
|
|
52
|
+
type: "text",
|
|
53
|
+
className: e.danger ? o : d,
|
|
54
|
+
children: e == null ? void 0 : e.label
|
|
55
|
+
}
|
|
56
|
+
) }, s) : /* @__PURE__ */ n.jsx(
|
|
57
|
+
x,
|
|
58
|
+
{
|
|
59
|
+
type: "text",
|
|
60
|
+
className: e.danger ? o : d,
|
|
61
|
+
onClick: e == null ? void 0 : e.onClick,
|
|
62
|
+
children: e == null ? void 0 : e.label
|
|
63
|
+
},
|
|
64
|
+
s
|
|
65
|
+
)
|
|
66
|
+
);
|
|
67
|
+
}), i === 2 && l.length >= 4) {
|
|
68
|
+
const e = l.slice(2, l.length);
|
|
69
|
+
t.push(
|
|
70
|
+
a ? /* @__PURE__ */ n.jsx(
|
|
71
|
+
b,
|
|
72
|
+
{
|
|
73
|
+
className: h,
|
|
74
|
+
skeletonCls: g,
|
|
75
|
+
children: "更多"
|
|
76
|
+
},
|
|
77
|
+
5
|
|
78
|
+
) : /* @__PURE__ */ n.jsx(w, { menu: { items: e }, children: /* @__PURE__ */ n.jsx(x, { type: "text", className: u, children: "更多" }) }, 5)
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
return t;
|
|
82
|
+
}, [a, l]), k = C(() => {
|
|
83
|
+
if (!(r != null && r.length))
|
|
84
|
+
return;
|
|
85
|
+
const i = r.map((t, e) => /* @__PURE__ */ n.jsx(
|
|
86
|
+
b,
|
|
87
|
+
{
|
|
88
|
+
className: h,
|
|
89
|
+
skeletonCls: g,
|
|
90
|
+
children: t == null ? void 0 : t.label
|
|
91
|
+
},
|
|
92
|
+
e
|
|
93
|
+
)), c = r.map((t, e) => {
|
|
94
|
+
let s = /* @__PURE__ */ n.jsx(
|
|
95
|
+
x,
|
|
96
|
+
{
|
|
97
|
+
type: "text",
|
|
98
|
+
className: t.danger ? o : d,
|
|
99
|
+
onClick: t.onClick,
|
|
100
|
+
children: t == null ? void 0 : t.label
|
|
101
|
+
},
|
|
102
|
+
e
|
|
103
|
+
);
|
|
104
|
+
t.type === "secondary" && (s = /* @__PURE__ */ n.jsx(
|
|
105
|
+
x,
|
|
106
|
+
{
|
|
107
|
+
type: "text",
|
|
108
|
+
className: u,
|
|
109
|
+
onClick: t.onClick,
|
|
110
|
+
children: t == null ? void 0 : t.label
|
|
111
|
+
},
|
|
112
|
+
e
|
|
113
|
+
));
|
|
114
|
+
const N = t.render ?? ((z, S) => /* @__PURE__ */ n.jsx(M, { children: z }, S));
|
|
115
|
+
return N == null ? void 0 : N(s, e);
|
|
116
|
+
});
|
|
117
|
+
return a ? i : c;
|
|
118
|
+
}, [a, r]);
|
|
119
|
+
return /* @__PURE__ */ n.jsxs("div", { onClick: (i) => i.stopPropagation(), style: { overflow: "hidden" }, children: [
|
|
120
|
+
/* @__PURE__ */ n.jsx(I, { size: H, ref: p, className: "actionGroup", children: k ?? j }),
|
|
121
|
+
/* @__PURE__ */ n.jsx("div", { className: B })
|
|
122
|
+
] });
|
|
123
|
+
}
|
|
124
|
+
);
|
|
37
125
|
function $(m) {
|
|
38
126
|
var h;
|
|
39
|
-
const { actionGroup: l, loading: r, customActions: p, defaultWidth:
|
|
127
|
+
const { actionGroup: l, loading: r, customActions: p, defaultWidth: f, ...y } = m, a = ((h = P.useToken().token.Table) == null ? void 0 : h.cellPaddingInline) ?? O, d = D(null), o = T(d), u = C(() => o != null && o.width ? o.width + a * 2 + 1 : f ?? 141, [o, a, f]);
|
|
40
128
|
return C(() => ({
|
|
41
|
-
width: Math.floor(
|
|
129
|
+
width: Math.floor(u),
|
|
42
130
|
mobileHide: !0,
|
|
43
131
|
isOperationCol: !0,
|
|
44
132
|
title: "操作",
|
|
@@ -50,10 +138,18 @@ function $(m) {
|
|
|
50
138
|
render: (g, j, k) => {
|
|
51
139
|
var t, e;
|
|
52
140
|
const i = ((t = p == null ? void 0 : p(j, k)) == null ? void 0 : t.filter((s) => s.type != "detail")) ?? [], c = ((e = l == null ? void 0 : l(j, k)) == null ? void 0 : e.filter((s) => s.type != "detail")) ?? [];
|
|
53
|
-
return n.jsx(
|
|
141
|
+
return /* @__PURE__ */ n.jsx(
|
|
142
|
+
_,
|
|
143
|
+
{
|
|
144
|
+
actionGroup: c,
|
|
145
|
+
customActions: i,
|
|
146
|
+
loading: r,
|
|
147
|
+
ref: d
|
|
148
|
+
}
|
|
149
|
+
);
|
|
54
150
|
},
|
|
55
151
|
...y
|
|
56
|
-
}), [
|
|
152
|
+
}), [u, d, r, l, p]);
|
|
57
153
|
}
|
|
58
154
|
export {
|
|
59
155
|
_ as BitzTableAction,
|
|
@@ -99,18 +99,21 @@ const O = () => {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
];
|
|
102
|
-
N(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
102
|
+
N(
|
|
103
|
+
{
|
|
104
|
+
theme: h,
|
|
105
|
+
token: s,
|
|
106
|
+
hashId: r,
|
|
107
|
+
path: [e]
|
|
108
|
+
},
|
|
109
|
+
() => [
|
|
110
|
+
u(e, B),
|
|
111
|
+
d(i, s),
|
|
112
|
+
g(l, s),
|
|
113
|
+
y(c, s),
|
|
114
|
+
C(m, p)
|
|
115
|
+
]
|
|
116
|
+
);
|
|
114
117
|
const v = n(e, i, r), $ = n(e, l, r), f = n(e, c, r), S = n(e, m, r), x = n(p, r), b = n(B, r);
|
|
115
118
|
return {
|
|
116
119
|
defaultCls: e,
|
|
@@ -8,7 +8,14 @@ const p = (r, s) => r == null ? void 0 : r.map((t) => {
|
|
|
8
8
|
return o != null && o.children && (o.children = p(o == null ? void 0 : o.children, s), o.popupClassName = s), o;
|
|
9
9
|
}), j = ({ menu: r, overlayClassName: s, ...t }) => {
|
|
10
10
|
const { popupClassName: o } = n(), a = m(() => p(r == null ? void 0 : r.items, o), [r == null ? void 0 : r.items]);
|
|
11
|
-
return e.jsx(
|
|
11
|
+
return /* @__PURE__ */ e.jsx(
|
|
12
|
+
c,
|
|
13
|
+
{
|
|
14
|
+
...t,
|
|
15
|
+
menu: { ...r, items: a },
|
|
16
|
+
overlayClassName: d(o, s)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
12
19
|
};
|
|
13
20
|
export {
|
|
14
21
|
j as default
|
|
@@ -89,12 +89,15 @@ const ee = () => {
|
|
|
89
89
|
}
|
|
90
90
|
];
|
|
91
91
|
};
|
|
92
|
-
j(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
j(
|
|
93
|
+
{
|
|
94
|
+
theme: N,
|
|
95
|
+
token: a,
|
|
96
|
+
hashId: i,
|
|
97
|
+
path: [o]
|
|
98
|
+
},
|
|
99
|
+
() => [G(o, m, a)]
|
|
100
|
+
);
|
|
98
101
|
const I = `${D}${m}`;
|
|
99
102
|
return {
|
|
100
103
|
popupClassName: v(o, I, i)
|
|
@@ -5,15 +5,28 @@ import { useMemo as m } from "react";
|
|
|
5
5
|
import c from "./style.mjs";
|
|
6
6
|
import d from "../Dropdown/style.mjs";
|
|
7
7
|
import x from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
|
|
8
|
-
const
|
|
8
|
+
const a = (t, o) => t == null ? void 0 : t.map((e) => {
|
|
9
9
|
const r = { ...e };
|
|
10
|
-
return r != null && r.children && (r.children =
|
|
11
|
-
}), y = ({
|
|
10
|
+
return r != null && r.children && (r.children = a(r == null ? void 0 : r.children, o), r.popupClassName = o), r;
|
|
11
|
+
}), y = ({
|
|
12
|
+
...t
|
|
13
|
+
}) => {
|
|
12
14
|
const { btnClassName: o } = c();
|
|
13
|
-
return s.jsx(n, { className: o, type: "text", ...t });
|
|
15
|
+
return /* @__PURE__ */ s.jsx(n, { className: o, type: "text", ...t });
|
|
14
16
|
}, S = ({ menu: t, children: o }) => {
|
|
15
|
-
const { btnClassName: e } = c(), { popupClassName: r } = d(),
|
|
16
|
-
return
|
|
17
|
+
const { btnClassName: e } = c(), { popupClassName: r } = d(), i = m(() => a(t == null ? void 0 : t.items, r), [t == null ? void 0 : t.items]);
|
|
18
|
+
return /* @__PURE__ */ s.jsx(
|
|
19
|
+
p,
|
|
20
|
+
{
|
|
21
|
+
menu: { ...t, items: i },
|
|
22
|
+
overlayClassName: r,
|
|
23
|
+
trigger: ["click"],
|
|
24
|
+
children: /* @__PURE__ */ s.jsx(n, { className: e, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 2, children: [
|
|
25
|
+
/* @__PURE__ */ s.jsx("span", { children: o }),
|
|
26
|
+
/* @__PURE__ */ s.jsx(x, {})
|
|
27
|
+
] }) })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
17
30
|
};
|
|
18
31
|
export {
|
|
19
32
|
y as BitzSelectionBarButton,
|
|
@@ -8,11 +8,18 @@ const N = ({ children: o }) => {
|
|
|
8
8
|
const { blockClassName: r, showCls: a, batchOperationClassName: m } = d(), { selected: s, toolbarWidth: e } = n(x), l = p(() => i(r, {
|
|
9
9
|
[`${a}`]: s
|
|
10
10
|
}), [s]);
|
|
11
|
-
return t.jsx("div", { className: l, children: t.jsx(
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
return /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(
|
|
12
|
+
c.Compact,
|
|
13
|
+
{
|
|
14
|
+
className: m,
|
|
15
|
+
style: {
|
|
16
|
+
...e && {
|
|
17
|
+
width: `calc(100% - 50px - ${e}px)`
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
children: o || /* @__PURE__ */ t.jsx("div", {})
|
|
14
21
|
}
|
|
15
|
-
|
|
22
|
+
) });
|
|
16
23
|
};
|
|
17
24
|
export {
|
|
18
25
|
N as default
|
|
@@ -98,14 +98,24 @@ const _ = () => {
|
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
100
|
};
|
|
101
|
-
j(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
j(
|
|
102
|
+
{
|
|
103
|
+
theme: T,
|
|
104
|
+
token: i,
|
|
105
|
+
hashId: o,
|
|
106
|
+
path: [r]
|
|
107
|
+
},
|
|
108
|
+
() => [
|
|
109
|
+
x(
|
|
110
|
+
r,
|
|
111
|
+
l,
|
|
112
|
+
s,
|
|
113
|
+
m,
|
|
114
|
+
f,
|
|
115
|
+
i
|
|
116
|
+
)
|
|
117
|
+
]
|
|
118
|
+
);
|
|
109
119
|
const w = `${d}${r}`, y = n(r, w, o), B = n(m, o), N = n(f, o), v = n(s, o);
|
|
110
120
|
return {
|
|
111
121
|
blockClassName: y,
|