bitz-react-admin-ui 2.5.3 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/assets/iconfont/IconChenggong.mjs +4 -25
- package/dist/assets/iconfont/IconClose.mjs +3 -24
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
- package/dist/assets/iconfont/IconCuowu.mjs +2 -23
- package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
- package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
- package/dist/assets/iconfont/IconFabu.mjs +5 -35
- package/dist/assets/iconfont/IconFanhui.mjs +4 -25
- package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
- package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
- package/dist/assets/iconfont/IconIcon21.mjs +4 -25
- package/dist/assets/iconfont/IconJincoude.mjs +4 -25
- package/dist/assets/iconfont/IconJinggao.mjs +4 -25
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
- package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
- package/dist/assets/iconfont/IconMore.mjs +4 -41
- package/dist/assets/iconfont/IconShanchu.mjs +6 -27
- package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
- package/dist/assets/iconfont/IconSousuo.mjs +6 -27
- package/dist/assets/iconfont/IconTejincou.mjs +4 -25
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
- package/dist/assets/iconfont/IconTishi1.mjs +6 -27
- package/dist/assets/iconfont/IconTuodong.mjs +7 -28
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
- package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
- package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
- package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +8 -41
- package/dist/components/BitzAddressBook/index.mjs +35 -122
- package/dist/components/BitzAppPage/index.mjs +4 -18
- package/dist/components/BitzAppRefresh/index.mjs +15 -27
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +9 -23
- package/dist/components/BitzCalendar/index.mjs +19 -52
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
- package/dist/components/BitzCascader/index.mjs +2 -6
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +1 -3
- package/dist/components/BitzConfigProvider/index.mjs +8 -12
- package/dist/components/BitzConfirmModal/index.mjs +1 -24
- package/dist/components/BitzDescriptions/index.mjs +1 -11
- package/dist/components/BitzDrawer/index.mjs +2 -17
- package/dist/components/BitzEmpty/index.mjs +2 -6
- package/dist/components/BitzException/index.mjs +1 -6
- package/dist/components/BitzFloatLayout/index.mjs +1 -10
- package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +15 -47
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
- package/dist/components/BitzFuiCalendar/index.mjs +1 -7
- package/dist/components/BitzFullScreen/index.mjs +6 -9
- package/dist/components/BitzHighlight/Child.mjs +9 -23
- package/dist/components/BitzHighlight/Highlight.mjs +5 -26
- package/dist/components/BitzHighlight/chunks.mjs +17 -20
- package/dist/components/BitzHighlight/style.mjs +1 -4
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +5 -12
- package/dist/components/BitzLanguageTabs/index.mjs +3 -14
- package/dist/components/BitzLazyLoad/index.mjs +1 -7
- package/dist/components/BitzList/List.mjs +3 -17
- package/dist/components/BitzList/LoadMore.mjs +20 -29
- package/dist/components/BitzLoadMore/index.mjs +14 -34
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
- package/dist/components/BitzMeetingTime/index.mjs +6 -10
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +11 -24
- package/dist/components/BitzNoData/index.mjs +1 -4
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
- package/dist/components/BitzPageContainer/index.mjs +46 -107
- package/dist/components/BitzPageHeader/index.mjs +21 -89
- package/dist/components/BitzPagination/index.mjs +22 -71
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
- package/dist/components/BitzQRCode/index.mjs +1 -6
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
- package/dist/components/BitzQueryFilter/index.mjs +20 -69
- package/dist/components/BitzRefresh/index.mjs +1 -5
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +30 -24
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +1 -31
- package/dist/components/BitzSwitch/index.mjs +2 -7
- package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +12 -80
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.mjs +48 -93
- package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
- package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
- package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
- package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +4 -11
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.mjs +170 -207
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
- package/dist/components/BitzTable/SubTable/index.mjs +43 -91
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +37 -59
- package/dist/components/BitzTable/Table/SortTableContext.d.ts +1 -2
- package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.mjs +336 -513
- package/dist/components/BitzTable/Table/style.mjs +1 -10
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +148 -256
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +21 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +52 -106
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
- 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 +13 -57
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- package/dist/components/BitzTableOperations/index.mjs +3 -13
- package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
- package/dist/components/BitzTableSelect/Select/index.mjs +21 -90
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +84 -235
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +21 -84
- package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
- package/dist/components/BitzTableSelect/index.mjs +14 -65
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.d.ts +9 -0
- package/dist/components/BitzText/index.less.mjs +4 -0
- package/dist/components/BitzText/index.mjs +37 -0
- package/dist/components/BitzText/utils.d.ts +4 -0
- package/dist/components/BitzText/utils.mjs +5 -0
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +1 -11
- package/dist/components/BitzTimer/Form.mjs +11 -32
- package/dist/components/BitzTimer/Timer.mjs +38 -76
- package/dist/components/BitzTimer/index.mjs +43 -66
- package/dist/components/BitzToast/Toast/index.mjs +10 -28
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTooltip/index.d.ts +17 -0
- package/dist/components/BitzTooltip/index.mjs +66 -0
- package/dist/components/BitzTooltip/style.d.ts +4 -0
- package/dist/components/BitzTooltip/style.mjs +47 -0
- package/dist/components/BitzTooltip/utils.d.ts +2 -0
- package/dist/components/BitzTooltip/utils.mjs +4 -0
- package/dist/components/BitzTree/index.mjs +1 -4
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +43 -81
- package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
- package/dist/components/BitzWebAppModal/index.mjs +3 -6
- package/dist/hooks/use-event-listener.mjs +2 -11
- package/dist/hooks/use-lock-fn.mjs +10 -13
- package/dist/hooks/use-scroll-parent.mjs +14 -16
- package/dist/hooks/useEvent.mjs +4 -7
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +42 -38
- package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +21 -0
- package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs +63 -0
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +7 -28
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -8,13 +8,7 @@ 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 = ({
|
|
12
|
-
size: C,
|
|
13
|
-
add: n,
|
|
14
|
-
excel: r,
|
|
15
|
-
actions: m,
|
|
16
|
-
children: E
|
|
17
|
-
}) => {
|
|
11
|
+
const O = ({ size: C, add: n, excel: r, actions: m, children: E }) => {
|
|
18
12
|
const { blockCls: x, addBtnClassName: y, btnClassName: p } = k(C), w = f(() => [
|
|
19
13
|
{
|
|
20
14
|
key: "download",
|
|
@@ -31,79 +25,17 @@ const O = ({
|
|
|
31
25
|
// ),
|
|
32
26
|
},
|
|
33
27
|
...(r == null ? void 0 : r.otherMenu) ?? []
|
|
34
|
-
], [r]), d = f(() => m == null ? void 0 : m.map((t, e) => t.type === "primary" ?
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
e
|
|
44
|
-
) :
|
|
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
|
-
] });
|
|
28
|
+
], [r]), d = f(() => m == null ? void 0 : m.map((t, e) => t.type === "primary" ? s.jsx(i, { type: "primary", icon: s.jsx(c, {}), className: h(y, t.className), ...o(t, "text", "type", "className", "children"), children: t == null ? void 0 : t.text }, e) : t.type === "secondary" ? s.jsx(i, { type: "text", className: h(p, t.className), ...o(t, "text", "type", "className", "children"), children: t == null ? void 0 : t.text }, e) : s.jsx(N, { getPopupContainer: (a) => {
|
|
29
|
+
var j, u;
|
|
30
|
+
return (u = (j = a.parentElement) == null ? void 0 : j.parentElement) == null ? void 0 : u.parentElement;
|
|
31
|
+
}, ...o(t, "text", "className", "children"), children: s.jsx(i, { className: h(p, t.className), type: "text", children: s.jsxs(l, { size: 6, children: [!t.text || typeof t.text == "string" ? s.jsx("span", { children: t.text }) : t.text, s.jsx(g, {})] }) }) }, e)), [m]);
|
|
32
|
+
return s.jsxs(l.Compact, { className: x, style: { height: "100%" }, children: [(n == null ? void 0 : n.show) !== !1 && s.jsx(i, { type: "primary", icon: s.jsx(c, {}), className: y, ...o(n, "text", "show", "type", "className", "children"), children: n == null ? void 0 : n.text }), m ? d : E, (r == null ? void 0 : r.show) !== !1 && s.jsx(N, { menu: { items: w, onClick: ({ key: t }) => {
|
|
33
|
+
var e;
|
|
34
|
+
return (e = r == null ? void 0 : r.onClick) == null ? void 0 : e.call(r, t);
|
|
35
|
+
} }, trigger: (r == null ? void 0 : r.trigger) || ["click"], getPopupContainer: (t) => {
|
|
36
|
+
var e, a;
|
|
37
|
+
return (a = (e = t.parentElement) == null ? void 0 : e.parentElement) == null ? void 0 : a.parentElement;
|
|
38
|
+
}, ...o(r, "text", "show", "menu", "trigger", "children"), children: s.jsx(i, { className: p, type: "text", children: s.jsxs(l, { size: 6, children: [s.jsx("span", { children: (r == null ? void 0 : r.text) ?? "Excel文档导入" }), s.jsx(g, {})] }) }) })] });
|
|
107
39
|
};
|
|
108
40
|
export {
|
|
109
41
|
O as default
|
|
@@ -3,7 +3,7 @@ import e from "../../BitzButton/index.mjs";
|
|
|
3
3
|
import r from "./style.mjs";
|
|
4
4
|
const i = ({ ...t }) => {
|
|
5
5
|
const { btnClassName: o } = r();
|
|
6
|
-
return
|
|
6
|
+
return s.jsx(e, { className: o, type: "text", ...t });
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
i as default
|
|
@@ -75,18 +75,15 @@ const X = (m) => {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
];
|
|
78
|
-
G(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
(
|
|
86
|
-
|
|
87
|
-
A(n, p, a)
|
|
88
|
-
]
|
|
89
|
-
);
|
|
78
|
+
G({
|
|
79
|
+
theme: y,
|
|
80
|
+
token: a,
|
|
81
|
+
hashId: r,
|
|
82
|
+
path: [n]
|
|
83
|
+
}, () => [
|
|
84
|
+
D(n, i, c, a),
|
|
85
|
+
A(n, p, a)
|
|
86
|
+
]);
|
|
90
87
|
const b = `${v}${c}`, N = x(i, b, r), R = x(i, p, b, r);
|
|
91
88
|
return { blockCls: n, addBtnClassName: N, btnClassName: R };
|
|
92
89
|
};
|
|
@@ -1,82 +1,44 @@
|
|
|
1
1
|
import { j as n } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { Space as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
return r;
|
|
45
|
-
}, [s]), d = x(() => l != null && l.length ? l.map((t, r) => {
|
|
46
|
-
let e = /* @__PURE__ */ n.jsx(
|
|
47
|
-
p,
|
|
48
|
-
{
|
|
49
|
-
type: "text",
|
|
50
|
-
className: t.danger ? c : a,
|
|
51
|
-
onClick: t.onClick,
|
|
52
|
-
children: t == null ? void 0 : t.label
|
|
53
|
-
},
|
|
54
|
-
r
|
|
55
|
-
);
|
|
56
|
-
t.type === "secondary" && (e = /* @__PURE__ */ n.jsx(
|
|
57
|
-
p,
|
|
58
|
-
{
|
|
59
|
-
type: "text",
|
|
60
|
-
className: h,
|
|
61
|
-
onClick: t.onClick,
|
|
62
|
-
children: t == null ? void 0 : t.label
|
|
63
|
-
},
|
|
64
|
-
r
|
|
65
|
-
));
|
|
66
|
-
const o = t.render ?? ((u, g) => /* @__PURE__ */ n.jsx(R, { children: u }, g));
|
|
67
|
-
return o == null ? void 0 : o(e, r);
|
|
68
|
-
}) : void 0, [l]);
|
|
69
|
-
return /* @__PURE__ */ n.jsxs("div", { onClick: (i) => i.stopPropagation(), style: { overflow: "hidden" }, children: [
|
|
70
|
-
/* @__PURE__ */ n.jsx(w, { size: S, ref: b, className: "actionGroup", children: d ?? m }),
|
|
71
|
-
/* @__PURE__ */ n.jsx("div", { className: f })
|
|
72
|
-
] });
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
function J(s) {
|
|
76
|
-
var r;
|
|
77
|
-
const { actionGroup: l, loading: b, customActions: a, defaultWidth: c, ...h } = s, f = ((r = z.useToken().token.Table) == null ? void 0 : r.cellPaddingInline) ?? E, m = T(null), d = B(m), i = x(() => d != null && d.width ? d.width + f * 2 + 1 : c ?? 141, [d, f, c]);
|
|
78
|
-
return x(() => ({
|
|
79
|
-
width: Math.floor(i),
|
|
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 F } from "antd";
|
|
4
|
+
import { forwardRef as P, useContext as E, useMemo as C, Fragment as L, useRef as M } from "react";
|
|
5
|
+
import u from "../../BitzButton/index.mjs";
|
|
6
|
+
import D, { actionColBtnGap as H } from "./style.mjs";
|
|
7
|
+
import "../index.mjs";
|
|
8
|
+
import w from "../Dropdown/index.mjs";
|
|
9
|
+
import { tablePaddingInline as O } from "../../BitzConfigProvider/context.mjs";
|
|
10
|
+
import { BitzTableContext as W } from "../Store/index.mjs";
|
|
11
|
+
const b = ({ skeletonCls: m, ...l }) => n.jsxs(u, { type: "text", ...l, children: [n.jsx("span", { children: l.children }), n.jsx(R, { active: !0, title: !1, className: m, paragraph: {
|
|
12
|
+
rows: 1,
|
|
13
|
+
width: "100%"
|
|
14
|
+
} })] }), _ = P(({ loading: m, actionGroup: l, customActions: r }, p) => {
|
|
15
|
+
const { loading: x, fullscreen: y } = E(W), a = C(() => m ?? x, [m, x]), { primaryBtnClassName: d, dangerBtnClassName: o, secondaryBtnClassName: f, maskClassName: B, skeletonBtnClassName: h, skeletonClassName: g } = D(), j = C(() => {
|
|
16
|
+
const i = l.length >= 4 ? 2 : l.length, c = l.slice(0, i), t = [];
|
|
17
|
+
if (c != null && c.length && c.forEach((e, s) => {
|
|
18
|
+
t.push(a ? n.jsx(b, { className: h, skeletonCls: g, children: e == null ? void 0 : e.label }, s) : e.children ? n.jsx(w, { menu: { items: e.children }, children: n.jsx(u, { type: "text", className: e.danger ? o : d, children: e == null ? void 0 : e.label }) }, s) : n.jsx(u, { type: "text", className: e.danger ? o : d, onClick: e == null ? void 0 : e.onClick, children: e == null ? void 0 : e.label }, s));
|
|
19
|
+
}), i === 2 && l.length >= 4) {
|
|
20
|
+
const e = l.slice(2, l.length);
|
|
21
|
+
t.push(a ? n.jsx(b, { className: h, skeletonCls: g, children: "更多" }, 5) : n.jsx(w, { menu: { items: e }, children: n.jsx(u, { type: "text", className: f, children: "更多" }) }, 5));
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
}, [a, l]), k = C(() => {
|
|
25
|
+
if (!(r != null && r.length))
|
|
26
|
+
return;
|
|
27
|
+
const i = r.map((t, e) => n.jsx(b, { className: h, skeletonCls: g, children: t == null ? void 0 : t.label }, e)), c = r.map((t, e) => {
|
|
28
|
+
let s = n.jsx(u, { type: "text", className: t.danger ? o : d, onClick: t.onClick, children: t == null ? void 0 : t.label }, e);
|
|
29
|
+
t.type === "secondary" && (s = n.jsx(u, { type: "text", className: f, onClick: t.onClick, children: t == null ? void 0 : t.label }, e));
|
|
30
|
+
const N = t.render ?? ((z, S) => n.jsx(L, { children: z }, S));
|
|
31
|
+
return N == null ? void 0 : N(s, e);
|
|
32
|
+
});
|
|
33
|
+
return a ? i : c;
|
|
34
|
+
}, [a, r]);
|
|
35
|
+
return n.jsxs("div", { onClick: (i) => i.stopPropagation(), style: { overflow: "hidden" }, children: [n.jsx(I, { size: H, ref: p, className: "actionGroup", children: k ?? j }), n.jsx("div", { className: B })] });
|
|
36
|
+
});
|
|
37
|
+
function $(m) {
|
|
38
|
+
var h;
|
|
39
|
+
const { actionGroup: l, loading: r, customActions: p, defaultWidth: x, ...y } = m, a = ((h = F.useToken().token.Table) == null ? void 0 : h.cellPaddingInline) ?? O, d = M(null), o = T(d), f = C(() => o != null && o.width ? o.width + a * 2 + 1 : x ?? 141, [o, a, x]);
|
|
40
|
+
return C(() => ({
|
|
41
|
+
width: Math.floor(f),
|
|
80
42
|
mobileHide: !0,
|
|
81
43
|
isOperationCol: !0,
|
|
82
44
|
title: "操作",
|
|
@@ -85,22 +47,15 @@ function J(s) {
|
|
|
85
47
|
dataIndex: "operationCol",
|
|
86
48
|
className: "operationCol",
|
|
87
49
|
disabled: !0,
|
|
88
|
-
render: (
|
|
89
|
-
var
|
|
90
|
-
const
|
|
91
|
-
return
|
|
92
|
-
M,
|
|
93
|
-
{
|
|
94
|
-
actionGroup: k,
|
|
95
|
-
customActions: g,
|
|
96
|
-
ref: m
|
|
97
|
-
}
|
|
98
|
-
);
|
|
50
|
+
render: (g, j, k) => {
|
|
51
|
+
var t, e;
|
|
52
|
+
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(_, { actionGroup: c, customActions: i, loading: r, ref: d });
|
|
99
54
|
},
|
|
100
|
-
...
|
|
101
|
-
}), [
|
|
55
|
+
...y
|
|
56
|
+
}), [f, d, r, l, p]);
|
|
102
57
|
}
|
|
103
58
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
59
|
+
_ as BitzTableAction,
|
|
60
|
+
$ as default
|
|
106
61
|
};
|
|
@@ -99,21 +99,18 @@ const O = () => {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
];
|
|
102
|
-
N(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
()
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
C(m, p)
|
|
115
|
-
]
|
|
116
|
-
);
|
|
102
|
+
N({
|
|
103
|
+
theme: h,
|
|
104
|
+
token: s,
|
|
105
|
+
hashId: r,
|
|
106
|
+
path: [e]
|
|
107
|
+
}, () => [
|
|
108
|
+
u(e, B),
|
|
109
|
+
d(i, s),
|
|
110
|
+
g(l, s),
|
|
111
|
+
y(c, s),
|
|
112
|
+
C(m, p)
|
|
113
|
+
]);
|
|
117
114
|
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);
|
|
118
115
|
return {
|
|
119
116
|
defaultCls: e,
|
|
@@ -8,14 +8,7 @@ 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
|
|
12
|
-
c,
|
|
13
|
-
{
|
|
14
|
-
...t,
|
|
15
|
-
menu: { ...r, items: a },
|
|
16
|
-
overlayClassName: d(o, s)
|
|
17
|
-
}
|
|
18
|
-
);
|
|
11
|
+
return e.jsx(c, { ...t, menu: { ...r, items: a }, overlayClassName: d(o, s) });
|
|
19
12
|
};
|
|
20
13
|
export {
|
|
21
14
|
j as default
|
|
@@ -89,15 +89,12 @@ const ee = () => {
|
|
|
89
89
|
}
|
|
90
90
|
];
|
|
91
91
|
};
|
|
92
|
-
j(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
() => [G(o, m, a)]
|
|
100
|
-
);
|
|
92
|
+
j({
|
|
93
|
+
theme: N,
|
|
94
|
+
token: a,
|
|
95
|
+
hashId: i,
|
|
96
|
+
path: [o]
|
|
97
|
+
}, () => [G(o, m, a)]);
|
|
101
98
|
const I = `${D}${m}`;
|
|
102
99
|
return {
|
|
103
100
|
popupClassName: v(o, I, i)
|
|
@@ -5,28 +5,15 @@ 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 i = (t, o) => t == null ? void 0 : t.map((e) => {
|
|
9
9
|
const r = { ...e };
|
|
10
|
-
return r != null && r.children && (r.children =
|
|
11
|
-
}), y = ({
|
|
12
|
-
...t
|
|
13
|
-
}) => {
|
|
10
|
+
return r != null && r.children && (r.children = i(r == null ? void 0 : r.children, o), r.popupClassName = o), r;
|
|
11
|
+
}), y = ({ ...t }) => {
|
|
14
12
|
const { btnClassName: o } = c();
|
|
15
|
-
return
|
|
13
|
+
return s.jsx(n, { className: o, type: "text", ...t });
|
|
16
14
|
}, S = ({ menu: t, children: o }) => {
|
|
17
|
-
const { btnClassName: e } = c(), { popupClassName: r } = d(),
|
|
18
|
-
return
|
|
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
|
-
);
|
|
15
|
+
const { btnClassName: e } = c(), { popupClassName: r } = d(), a = m(() => i(t == null ? void 0 : t.items, r), [t == null ? void 0 : t.items]);
|
|
16
|
+
return s.jsx(p, { menu: { ...t, items: a }, overlayClassName: r, trigger: ["click"], children: s.jsx(n, { className: e, type: "text", children: s.jsxs(l, { size: 2, children: [s.jsx("span", { children: o }), s.jsx(x, {})] }) }) });
|
|
30
17
|
};
|
|
31
18
|
export {
|
|
32
19
|
y as BitzSelectionBarButton,
|
|
@@ -8,18 +8,11 @@ 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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
className: m,
|
|
15
|
-
style: {
|
|
16
|
-
...e && {
|
|
17
|
-
width: `calc(100% - 50px - ${e}px)`
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
children: o || /* @__PURE__ */ t.jsx("div", {})
|
|
11
|
+
return t.jsx("div", { className: l, children: t.jsx(c.Compact, { className: m, style: {
|
|
12
|
+
...e && {
|
|
13
|
+
width: `calc(100% - 50px - ${e}px)`
|
|
21
14
|
}
|
|
22
|
-
) });
|
|
15
|
+
}, children: o || t.jsx("div", {}) }) });
|
|
23
16
|
};
|
|
24
17
|
export {
|
|
25
18
|
N as default
|
|
@@ -98,24 +98,14 @@ const _ = () => {
|
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
100
|
};
|
|
101
|
-
j(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
x(
|
|
110
|
-
r,
|
|
111
|
-
l,
|
|
112
|
-
s,
|
|
113
|
-
m,
|
|
114
|
-
f,
|
|
115
|
-
i
|
|
116
|
-
)
|
|
117
|
-
]
|
|
118
|
-
);
|
|
101
|
+
j({
|
|
102
|
+
theme: T,
|
|
103
|
+
token: i,
|
|
104
|
+
hashId: o,
|
|
105
|
+
path: [r]
|
|
106
|
+
}, () => [
|
|
107
|
+
x(r, l, s, m, f, i)
|
|
108
|
+
]);
|
|
119
109
|
const w = `${d}${r}`, y = n(r, w, o), B = n(m, o), N = n(f, o), v = n(s, o);
|
|
120
110
|
return {
|
|
121
111
|
blockClassName: y,
|