bitz-react-admin-ui 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- package/dist/assets/iconfont/index.mjs +29 -29
- 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 +9 -18
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFluentInput/index.mjs +23 -4
- package/dist/components/BitzFluentSelect/index.mjs +24 -5
- 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 +29 -6
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +62 -14
- 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 +33 -5
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +90 -16
- 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 +32 -14
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +68 -45
- package/dist/components/BitzTable/Table/index.mjs +305 -145
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +82 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +95 -21
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +246 -138
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +142 -85
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +29 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +52 -9
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +21 -11
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Skeleton as n } from "antd";
|
|
3
|
-
const o = (t) =>
|
|
3
|
+
const o = (t) => /* @__PURE__ */ e.jsx(
|
|
4
|
+
n,
|
|
5
|
+
{
|
|
6
|
+
...t
|
|
7
|
+
}
|
|
8
|
+
), r = (t) => /* @__PURE__ */ e.jsx(
|
|
9
|
+
n.Button,
|
|
10
|
+
{
|
|
11
|
+
...t
|
|
12
|
+
}
|
|
13
|
+
), s = (t) => /* @__PURE__ */ e.jsx(
|
|
14
|
+
n.Avatar,
|
|
15
|
+
{
|
|
16
|
+
...t
|
|
17
|
+
}
|
|
18
|
+
), a = (t) => /* @__PURE__ */ e.jsx(
|
|
19
|
+
n.Input,
|
|
20
|
+
{
|
|
21
|
+
...t
|
|
22
|
+
}
|
|
23
|
+
), u = (t) => /* @__PURE__ */ e.jsx(
|
|
24
|
+
n.Image,
|
|
25
|
+
{
|
|
26
|
+
...t
|
|
27
|
+
}
|
|
28
|
+
), l = (t) => /* @__PURE__ */ e.jsx(
|
|
29
|
+
n.Node,
|
|
30
|
+
{
|
|
31
|
+
...t
|
|
32
|
+
}
|
|
33
|
+
);
|
|
4
34
|
o.Button = r;
|
|
5
35
|
o.Avatar = s;
|
|
6
36
|
o.Input = a;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Switch as p } from "antd";
|
|
3
|
-
const n = ({
|
|
3
|
+
const n = ({
|
|
4
|
+
checkedChildren: t = "开启",
|
|
5
|
+
unCheckedChildren: r = "关闭",
|
|
6
|
+
defaultChecked: o = !0,
|
|
7
|
+
...s
|
|
8
|
+
}) => {
|
|
4
9
|
const e = {
|
|
5
10
|
checkedChildren: t,
|
|
6
11
|
unCheckedChildren: r,
|
|
7
12
|
defaultChecked: o,
|
|
8
13
|
...s
|
|
9
14
|
};
|
|
10
|
-
return i.jsx(p, { ...e });
|
|
15
|
+
return /* @__PURE__ */ i.jsx(p, { ...e });
|
|
11
16
|
};
|
|
12
17
|
export {
|
|
13
18
|
n as default
|
|
@@ -1,20 +1,37 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as f } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import r from "react";
|
|
3
3
|
import "./index.less.mjs";
|
|
4
4
|
import p from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
5
|
const k = r.forwardRef((t, o) => {
|
|
6
|
-
const {
|
|
6
|
+
const {
|
|
7
|
+
value: a,
|
|
8
|
+
zIndex: n = 1,
|
|
9
|
+
route: i,
|
|
10
|
+
fixed: s = !0,
|
|
11
|
+
border: c = !0,
|
|
12
|
+
safeAreaInsetBottom: l = !0,
|
|
13
|
+
onChange: b,
|
|
14
|
+
children: d
|
|
15
|
+
} = t, m = {
|
|
7
16
|
...i ? {} : {},
|
|
8
17
|
currentName: a,
|
|
9
18
|
onClick: (e) => {
|
|
10
19
|
b(e);
|
|
11
20
|
}
|
|
12
|
-
},
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
}, u = (e) => r.cloneElement(e, m);
|
|
22
|
+
return /* @__PURE__ */ f.jsx(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
ref: o,
|
|
26
|
+
className: p("bitzTabbarBlock", {
|
|
27
|
+
bitzTabbarFixedBlock: s,
|
|
28
|
+
bitzTabbarBlockBorder: c,
|
|
29
|
+
bitzTabbarBlockBottomSafe: l
|
|
30
|
+
}),
|
|
31
|
+
style: { zIndex: n },
|
|
32
|
+
children: r.Children.map(d, u)
|
|
33
|
+
}
|
|
34
|
+
);
|
|
18
35
|
});
|
|
19
36
|
export {
|
|
20
37
|
k as default
|
|
@@ -5,7 +5,10 @@ import j from "../../assets/iconfont/index.mjs";
|
|
|
5
5
|
import "./index.less.mjs";
|
|
6
6
|
const y = ({ name: o, config: t, title: n, children: l, badgeProps: m, ...v }) => {
|
|
7
7
|
const { onClick: I, currentName: e } = v, a = s.useToken().token.colorPrimary, i = s.useToken().token.colorText, x = c(() => t[o === e ? "activeIcon" : "inactiveIcon"], [t, e, o]), d = c(() => o === e ? t.activeColor : t.inactiveColor, [t.activeColor, t.inactiveColor, e, o]), u = c(() => o === e ? a : i, [a, e, o, i]), b = c(() => t[o === e ? "activeImage" : "inactiveImage"], [t, e, o]);
|
|
8
|
-
return r.jsxs("div", { className: "tabbarItem", onClick: () => I(o), children: [
|
|
8
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "tabbarItem", onClick: () => I(o), children: [
|
|
9
|
+
/* @__PURE__ */ r.jsx("div", { className: `${"activeIcon" in t ? "tabbarItemIcon" : "tabbarItemImage"}`, children: /* @__PURE__ */ r.jsx(C, { ...m, children: /* @__PURE__ */ r.jsx("div", { className: "activeIcon" in t ? "icon" : "image", children: "activeIcon" in t ? /* @__PURE__ */ r.jsx(j, { name: x, color: d, size: 22 }) : /* @__PURE__ */ r.jsx("img", { src: b }) }) }) }),
|
|
10
|
+
/* @__PURE__ */ r.jsx("div", { className: "tabbarItemText", style: { color: u }, children: n || l })
|
|
11
|
+
] });
|
|
9
12
|
};
|
|
10
13
|
export {
|
|
11
14
|
y as default
|
|
@@ -6,7 +6,12 @@ import c from "./style.mjs";
|
|
|
6
6
|
import g from "../Dropdown/index.mjs";
|
|
7
7
|
import w from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
|
|
8
8
|
import B from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
|
|
9
|
-
const G = ({
|
|
9
|
+
const G = ({
|
|
10
|
+
size: h,
|
|
11
|
+
add: i,
|
|
12
|
+
excel: t,
|
|
13
|
+
children: d
|
|
14
|
+
}) => {
|
|
10
15
|
const { blockCls: j, addBtnClassName: k, btnClassName: C } = c(h), y = b(() => {
|
|
11
16
|
var s, r, n, m, a, l, p, e;
|
|
12
17
|
return [
|
|
@@ -27,10 +32,33 @@ const G = ({ size: h, add: i, excel: t, children: d }) => {
|
|
|
27
32
|
...(t == null ? void 0 : t.otherMenu) ?? []
|
|
28
33
|
];
|
|
29
34
|
}, [t]);
|
|
30
|
-
return o.jsxs(u.Compact, { className: j, style: { height: "100%" }, children: [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
return /* @__PURE__ */ o.jsxs(u.Compact, { className: j, style: { height: "100%" }, children: [
|
|
36
|
+
i.show !== !1 && /* @__PURE__ */ o.jsx(
|
|
37
|
+
f,
|
|
38
|
+
{
|
|
39
|
+
type: "primary",
|
|
40
|
+
icon: /* @__PURE__ */ o.jsx(w, {}),
|
|
41
|
+
onClick: i.onClick,
|
|
42
|
+
className: k,
|
|
43
|
+
children: i.text
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
d,
|
|
47
|
+
t.show !== !1 && /* @__PURE__ */ o.jsx(
|
|
48
|
+
g,
|
|
49
|
+
{
|
|
50
|
+
menu: { items: y, onClick: ({ key: s }) => {
|
|
51
|
+
var r;
|
|
52
|
+
return (r = t.onClick) == null ? void 0 : r.call(t, s);
|
|
53
|
+
} },
|
|
54
|
+
trigger: (t == null ? void 0 : t.trigger) || ["click"],
|
|
55
|
+
children: /* @__PURE__ */ o.jsx(f, { className: C, type: "text", children: /* @__PURE__ */ o.jsxs(u, { size: 6, children: [
|
|
56
|
+
/* @__PURE__ */ o.jsx("span", { children: t.text ?? "Excel文档导入" }),
|
|
57
|
+
/* @__PURE__ */ o.jsx(B, {})
|
|
58
|
+
] }) })
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] });
|
|
34
62
|
};
|
|
35
63
|
export {
|
|
36
64
|
G 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 s.jsx(e, { className: o, type: "text", ...t });
|
|
6
|
+
return /* @__PURE__ */ s.jsx(e, { className: o, type: "text", ...t });
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
i as default
|
|
@@ -72,15 +72,18 @@ const Q = (m) => {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
];
|
|
75
|
-
A(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
A(
|
|
76
|
+
{
|
|
77
|
+
theme: g,
|
|
78
|
+
token: i,
|
|
79
|
+
hashId: n,
|
|
80
|
+
path: [r]
|
|
81
|
+
},
|
|
82
|
+
() => [
|
|
83
|
+
B(r, a, c, i),
|
|
84
|
+
h(r, p, i)
|
|
85
|
+
]
|
|
86
|
+
);
|
|
84
87
|
const d = `${u}${c}`, x = f(a, d, n), y = f(a, p, d, n);
|
|
85
88
|
return { blockCls: r, addBtnClassName: x, btnClassName: y };
|
|
86
89
|
};
|
|
@@ -5,27 +5,92 @@ import { useRef as y, useMemo as C } from "react";
|
|
|
5
5
|
import p from "../../BitzButton/index.mjs";
|
|
6
6
|
import k from "./style.mjs";
|
|
7
7
|
import N from "../Dropdown/index.mjs";
|
|
8
|
-
const g = ({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const g = ({
|
|
9
|
+
skeletonCls: n,
|
|
10
|
+
...s
|
|
11
|
+
}) => /* @__PURE__ */ t.jsxs(p, { type: "text", ...s, children: [
|
|
12
|
+
/* @__PURE__ */ t.jsx("span", { children: s.children }),
|
|
13
|
+
/* @__PURE__ */ t.jsx(
|
|
14
|
+
w,
|
|
15
|
+
{
|
|
16
|
+
active: !0,
|
|
17
|
+
title: !1,
|
|
18
|
+
className: n,
|
|
19
|
+
paragraph: {
|
|
20
|
+
rows: 1,
|
|
21
|
+
width: "100%"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] });
|
|
26
|
+
function z({
|
|
27
|
+
loading: n,
|
|
28
|
+
actionGroup: s,
|
|
29
|
+
refInstance: m
|
|
30
|
+
}) {
|
|
31
|
+
const {
|
|
32
|
+
gap: h,
|
|
33
|
+
primaryBtnClassName: i,
|
|
34
|
+
dangerBtnClassName: o,
|
|
35
|
+
dropdownBtnClassName: l,
|
|
36
|
+
maskClassName: d,
|
|
37
|
+
skeletonBtnClassName: u,
|
|
38
|
+
skeletonClassName: x
|
|
39
|
+
} = k(), f = C(() => {
|
|
14
40
|
const r = s.length >= 4 ? 2 : s.length, a = s.slice(0, r), c = [];
|
|
15
41
|
if (a != null && a.length && a.forEach((e, j) => {
|
|
16
|
-
c.push(
|
|
42
|
+
c.push(
|
|
43
|
+
n ? /* @__PURE__ */ t.jsx(
|
|
44
|
+
g,
|
|
45
|
+
{
|
|
46
|
+
className: u,
|
|
47
|
+
skeletonCls: x,
|
|
48
|
+
children: e == null ? void 0 : e.label
|
|
49
|
+
},
|
|
50
|
+
j
|
|
51
|
+
) : e.children ? /* @__PURE__ */ t.jsx(N, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
|
|
52
|
+
p,
|
|
53
|
+
{
|
|
54
|
+
type: "text",
|
|
55
|
+
className: e.danger ? o : i,
|
|
56
|
+
children: e == null ? void 0 : e.label
|
|
57
|
+
}
|
|
58
|
+
) }, j) : /* @__PURE__ */ t.jsx(
|
|
59
|
+
p,
|
|
60
|
+
{
|
|
61
|
+
type: "text",
|
|
62
|
+
className: e.danger ? o : i,
|
|
63
|
+
onClick: e == null ? void 0 : e.onClick,
|
|
64
|
+
children: e == null ? void 0 : e.label
|
|
65
|
+
},
|
|
66
|
+
j
|
|
67
|
+
)
|
|
68
|
+
);
|
|
17
69
|
}), r === 2 && s.length >= 4) {
|
|
18
70
|
const e = s.slice(2, s.length);
|
|
19
|
-
c.push(
|
|
71
|
+
c.push(
|
|
72
|
+
n ? /* @__PURE__ */ t.jsx(
|
|
73
|
+
g,
|
|
74
|
+
{
|
|
75
|
+
className: u,
|
|
76
|
+
skeletonCls: x,
|
|
77
|
+
children: "更多"
|
|
78
|
+
},
|
|
79
|
+
5
|
|
80
|
+
) : /* @__PURE__ */ t.jsx(N, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(p, { type: "text", className: l, children: "更多" }) }, 5)
|
|
81
|
+
);
|
|
20
82
|
}
|
|
21
83
|
return c;
|
|
22
84
|
}, [n, s]);
|
|
23
|
-
return t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [
|
|
85
|
+
return /* @__PURE__ */ t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [
|
|
86
|
+
/* @__PURE__ */ t.jsx(B, { size: h, ref: m, className: "actionGroup", children: f }),
|
|
87
|
+
/* @__PURE__ */ t.jsx("div", { className: d })
|
|
88
|
+
] });
|
|
24
89
|
}
|
|
25
|
-
function
|
|
26
|
-
const { actionGroup: s, loading:
|
|
90
|
+
function D(n) {
|
|
91
|
+
const { actionGroup: s, loading: m, ...h } = n, { gap: i } = k(), o = y(null), l = b(o), d = C(() => l != null && l.width ? l.width + i * 2 + 1 : 181, [l, i]);
|
|
27
92
|
return C(() => ({
|
|
28
|
-
width: Math.floor(
|
|
93
|
+
width: Math.floor(d),
|
|
29
94
|
mobileHide: !0,
|
|
30
95
|
isOperationCol: !0,
|
|
31
96
|
title: "操作",
|
|
@@ -35,13 +100,22 @@ function T(n) {
|
|
|
35
100
|
className: "operationCol",
|
|
36
101
|
disabled: !0,
|
|
37
102
|
render: (x, f, r) => {
|
|
38
|
-
const a = s(f, r).filter(
|
|
39
|
-
|
|
103
|
+
const a = s(f, r).filter(
|
|
104
|
+
(c) => c.type != "detail"
|
|
105
|
+
);
|
|
106
|
+
return /* @__PURE__ */ t.jsx(
|
|
107
|
+
z,
|
|
108
|
+
{
|
|
109
|
+
loading: m,
|
|
110
|
+
actionGroup: a,
|
|
111
|
+
refInstance: o
|
|
112
|
+
}
|
|
113
|
+
);
|
|
40
114
|
},
|
|
41
115
|
...h
|
|
42
|
-
}), [
|
|
116
|
+
}), [d, o, m, s]);
|
|
43
117
|
}
|
|
44
118
|
export {
|
|
45
119
|
z as BitzTableAction,
|
|
46
|
-
|
|
120
|
+
D as default
|
|
47
121
|
};
|
|
@@ -98,18 +98,21 @@ const Q = () => {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
];
|
|
101
|
-
T(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
101
|
+
T(
|
|
102
|
+
{
|
|
103
|
+
theme: h,
|
|
104
|
+
token: s,
|
|
105
|
+
hashId: r,
|
|
106
|
+
path: [e]
|
|
107
|
+
},
|
|
108
|
+
() => [
|
|
109
|
+
g(e, d),
|
|
110
|
+
u(a, s),
|
|
111
|
+
v(l, s),
|
|
112
|
+
C(c, s),
|
|
113
|
+
y(m, p)
|
|
114
|
+
]
|
|
115
|
+
);
|
|
113
116
|
const $ = n(e, a, r), f = n(e, l, r), S = n(e, c, r), x = n(e, m, r), b = n(p, r), z = n(d, r);
|
|
114
117
|
return {
|
|
115
118
|
gap: B,
|
|
@@ -7,7 +7,14 @@ const p = (o, s) => o == null ? void 0 : o.map((t) => {
|
|
|
7
7
|
return r != null && r.children && (r.children = p(r == null ? void 0 : r.children, s), r.popupClassName = s), r;
|
|
8
8
|
}), m = ({ menu: o, ...s }) => {
|
|
9
9
|
const { popupClassName: t } = c(), r = d(() => p(o == null ? void 0 : o.items, t), [o == null ? void 0 : o.items]);
|
|
10
|
-
return a.jsx(
|
|
10
|
+
return /* @__PURE__ */ a.jsx(
|
|
11
|
+
e,
|
|
12
|
+
{
|
|
13
|
+
...s,
|
|
14
|
+
menu: { ...o, items: r },
|
|
15
|
+
overlayClassName: t
|
|
16
|
+
}
|
|
17
|
+
);
|
|
11
18
|
};
|
|
12
19
|
export {
|
|
13
20
|
m as default
|
|
@@ -89,12 +89,15 @@ const P = () => {
|
|
|
89
89
|
}
|
|
90
90
|
];
|
|
91
91
|
};
|
|
92
|
-
C(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
C(
|
|
93
|
+
{
|
|
94
|
+
theme: c,
|
|
95
|
+
token: a,
|
|
96
|
+
hashId: i,
|
|
97
|
+
path: [o]
|
|
98
|
+
},
|
|
99
|
+
() => [w(o, m, a)]
|
|
100
|
+
);
|
|
98
101
|
const h = `${T}${m}`;
|
|
99
102
|
return {
|
|
100
103
|
popupClassName: y(o, h, i)
|
|
@@ -1,22 +1,40 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
1
|
+
import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import a from "../../BitzButton/index.mjs";
|
|
3
3
|
import d from "../../BitzConvert/index.mjs";
|
|
4
4
|
import { Space as x } from "antd";
|
|
5
5
|
import { useMemo as h } from "react";
|
|
6
|
-
import
|
|
6
|
+
import c from "./style.mjs";
|
|
7
7
|
import j from "../Dropdown/style.mjs";
|
|
8
8
|
import m from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
return
|
|
12
|
-
}),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
const l = (t, o) => t == null ? void 0 : t.map((e) => {
|
|
10
|
+
const r = { ...e };
|
|
11
|
+
return r != null && r.children && (r.children = l(r == null ? void 0 : r.children, o), r.popupClassName = o), r;
|
|
12
|
+
}), b = ({
|
|
13
|
+
...t
|
|
14
|
+
}) => {
|
|
15
|
+
const { btnClassName: o } = c();
|
|
16
|
+
return /* @__PURE__ */ s.jsx(a, { className: o, type: "text", ...t });
|
|
17
|
+
}, w = ({ menu: t, children: o, showTootip: e, tipText: r }) => {
|
|
18
|
+
const { btnClassName: p } = c(), { popupClassName: i } = j(), n = h(() => l(t == null ? void 0 : t.items, i), [t == null ? void 0 : t.items]);
|
|
19
|
+
return /* @__PURE__ */ s.jsx(
|
|
20
|
+
d.DropdownToButton,
|
|
21
|
+
{
|
|
22
|
+
menu: { ...t, items: n },
|
|
23
|
+
overlayClassName: i,
|
|
24
|
+
trigger: ["click"],
|
|
25
|
+
showTootip: e,
|
|
26
|
+
tipText: r,
|
|
27
|
+
children: /* @__PURE__ */ s.jsx(a, { className: p, type: "text", children: /* @__PURE__ */ s.jsxs(x, { size: 2, children: [
|
|
28
|
+
(t == null ? void 0 : t.items) && t.items.length > 1 && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
29
|
+
/* @__PURE__ */ s.jsx("span", { children: o }),
|
|
30
|
+
/* @__PURE__ */ s.jsx(m, {})
|
|
31
|
+
] }),
|
|
32
|
+
(t == null ? void 0 : t.items) && t.items.length === 1 && /* @__PURE__ */ s.jsx("span", { children: t.items[0].label })
|
|
33
|
+
] }) })
|
|
34
|
+
}
|
|
35
|
+
);
|
|
18
36
|
};
|
|
19
37
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
38
|
+
b as BitzSelectionBarButton,
|
|
39
|
+
w as BitzSelectionBarDropdownButton
|
|
22
40
|
};
|
|
@@ -1,15 +1,47 @@
|
|
|
1
1
|
import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
2
|
+
import d from "../../BitzButton/index.mjs";
|
|
3
3
|
import { Space as t, Flex as l } from "antd";
|
|
4
|
-
import
|
|
5
|
-
import { useMemo as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
|
|
4
|
+
import j from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
|
+
import { useMemo as h } from "react";
|
|
6
|
+
import C from "./style.mjs";
|
|
7
|
+
const B = ({
|
|
8
|
+
show: e,
|
|
9
|
+
num: a,
|
|
10
|
+
onClear: r,
|
|
11
|
+
children: n
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
blockClassName: i,
|
|
15
|
+
showCls: o,
|
|
16
|
+
btnClassName: c,
|
|
17
|
+
batchOperationClassName: m,
|
|
18
|
+
alertContentClassName: p
|
|
19
|
+
} = C(), x = h(() => j(i, {
|
|
9
20
|
[`${o}`]: e
|
|
10
21
|
}), [e]);
|
|
11
|
-
return
|
|
22
|
+
return /* @__PURE__ */ s.jsxs("div", { className: x, children: [
|
|
23
|
+
/* @__PURE__ */ s.jsx(t.Compact, { className: m, children: n || /* @__PURE__ */ s.jsx("div", {}) }),
|
|
24
|
+
/* @__PURE__ */ s.jsxs(l, { gap: 7, className: p, children: [
|
|
25
|
+
/* @__PURE__ */ s.jsxs(l, { gap: 20, align: "center", children: [
|
|
26
|
+
/* @__PURE__ */ s.jsxs(t, { size: 10, children: [
|
|
27
|
+
/* @__PURE__ */ s.jsx("span", { children: "已选中" }),
|
|
28
|
+
/* @__PURE__ */ s.jsx("strong", { children: a ?? 0 })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ s.jsx("span", { style: { verticalAlign: "-0.14em" }, children: "/" })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ s.jsx(
|
|
33
|
+
d,
|
|
34
|
+
{
|
|
35
|
+
type: "text",
|
|
36
|
+
className: c,
|
|
37
|
+
onClick: r,
|
|
38
|
+
style: { lineHeight: "normal" },
|
|
39
|
+
children: "取消选中"
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] })
|
|
43
|
+
] });
|
|
12
44
|
};
|
|
13
45
|
export {
|
|
14
|
-
|
|
46
|
+
B as default
|
|
15
47
|
};
|
|
@@ -98,14 +98,24 @@ const V = () => {
|
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
100
|
};
|
|
101
|
-
G(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
G(
|
|
102
|
+
{
|
|
103
|
+
theme: b,
|
|
104
|
+
token: i,
|
|
105
|
+
hashId: o,
|
|
106
|
+
path: [r]
|
|
107
|
+
},
|
|
108
|
+
() => [
|
|
109
|
+
g(
|
|
110
|
+
r,
|
|
111
|
+
l,
|
|
112
|
+
s,
|
|
113
|
+
m,
|
|
114
|
+
f,
|
|
115
|
+
i
|
|
116
|
+
)
|
|
117
|
+
]
|
|
118
|
+
);
|
|
109
119
|
const u = `${S}${r}`, d = n(r, u, o), T = n(m, o), x = n(f, o), w = n(s, o);
|
|
110
120
|
return {
|
|
111
121
|
blockClassName: d,
|