bitz-react-admin-ui 2.0.9 → 2.1.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 +4 -10
- package/dist/assets/iconfont/IconClose.mjs +1 -7
- package/dist/assets/iconfont/IconCuowu.mjs +2 -8
- 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 +29 -29
- 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/BitzFluentInput/index.mjs +4 -23
- package/dist/components/BitzFluentSelect/index.mjs +5 -24
- 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 +6 -29
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +18 -50
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +15 -31
- 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 +14 -62
- 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 +5 -33
- 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 +16 -90
- 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 +14 -32
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -40
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.mjs +45 -68
- package/dist/components/BitzTable/Table/index.mjs +145 -305
- package/dist/components/BitzTable/Table/style.mjs +1 -10
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +47 -82
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +21 -95
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +28 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +142 -250
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +3 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -8
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +89 -137
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -7
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +6 -33
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +10 -27
- package/dist/components/BitzTable/ToolBar/Wrapper/context.d.ts +4 -0
- package/dist/components/BitzTable/ToolBar/Wrapper/context.mjs +5 -0
- package/dist/components/BitzTable/ToolBar/Wrapper/index.d.ts +4 -3
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +18 -60
- package/dist/components/BitzTable/ToolBar/index.d.ts +6 -4
- 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 +11 -21
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +40 -210
- package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +9 -27
- 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/style.css +1 -1
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,36 +1,6 @@
|
|
|
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) =>
|
|
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
|
-
);
|
|
3
|
+
const o = (t) => e.jsx(n, { ...t }), r = (t) => e.jsx(n.Button, { ...t }), s = (t) => e.jsx(n.Avatar, { ...t }), a = (t) => e.jsx(n.Input, { ...t }), u = (t) => e.jsx(n.Image, { ...t }), l = (t) => e.jsx(n.Node, { ...t });
|
|
34
4
|
o.Button = r;
|
|
35
5
|
o.Avatar = s;
|
|
36
6
|
o.Input = a;
|
|
@@ -1,18 +1,13 @@
|
|
|
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 = ({
|
|
4
|
-
checkedChildren: t = "开启",
|
|
5
|
-
unCheckedChildren: r = "关闭",
|
|
6
|
-
defaultChecked: o = !0,
|
|
7
|
-
...s
|
|
8
|
-
}) => {
|
|
3
|
+
const n = ({ checkedChildren: t = "开启", unCheckedChildren: r = "关闭", defaultChecked: o = !0, ...s }) => {
|
|
9
4
|
const e = {
|
|
10
5
|
checkedChildren: t,
|
|
11
6
|
unCheckedChildren: r,
|
|
12
7
|
defaultChecked: o,
|
|
13
8
|
...s
|
|
14
9
|
};
|
|
15
|
-
return
|
|
10
|
+
return i.jsx(p, { ...e });
|
|
16
11
|
};
|
|
17
12
|
export {
|
|
18
13
|
n as default
|
|
@@ -1,37 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as u } 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 {
|
|
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 = {
|
|
6
|
+
const { value: a, zIndex: n = 1, route: i, fixed: s = !0, border: c = !0, safeAreaInsetBottom: l = !0, onChange: b, children: d } = t, m = {
|
|
16
7
|
...i ? {} : {},
|
|
17
8
|
currentName: a,
|
|
18
9
|
onClick: (e) => {
|
|
19
10
|
b(e);
|
|
20
11
|
}
|
|
21
|
-
},
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
bitzTabbarFixedBlock: s,
|
|
28
|
-
bitzTabbarBlockBorder: c,
|
|
29
|
-
bitzTabbarBlockBottomSafe: l
|
|
30
|
-
}),
|
|
31
|
-
style: { zIndex: n },
|
|
32
|
-
children: r.Children.map(d, u)
|
|
33
|
-
}
|
|
34
|
-
);
|
|
12
|
+
}, f = (e) => r.cloneElement(e, m);
|
|
13
|
+
return u.jsx("div", { ref: o, className: p("bitzTabbarBlock", {
|
|
14
|
+
bitzTabbarFixedBlock: s,
|
|
15
|
+
bitzTabbarBlockBorder: c,
|
|
16
|
+
bitzTabbarBlockBottomSafe: l
|
|
17
|
+
}), style: { zIndex: n }, children: r.Children.map(d, f) });
|
|
35
18
|
});
|
|
36
19
|
export {
|
|
37
20
|
k as default
|
|
@@ -5,10 +5,7 @@ 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
|
|
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
|
-
] });
|
|
8
|
+
return r.jsxs("div", { className: "tabbarItem", onClick: () => I(o), children: [r.jsx("div", { className: `${"activeIcon" in t ? "tabbarItemIcon" : "tabbarItemImage"}`, children: r.jsx(C, { ...m, children: r.jsx("div", { className: "activeIcon" in t ? "icon" : "image", children: "activeIcon" in t ? r.jsx(j, { name: x, color: d, size: 22 }) : r.jsx("img", { src: b }) }) }) }), r.jsx("div", { className: "tabbarItemText", style: { color: u }, children: n || l })] });
|
|
12
9
|
};
|
|
13
10
|
export {
|
|
14
11
|
y as default
|
|
@@ -6,12 +6,7 @@ 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 = ({
|
|
10
|
-
size: h,
|
|
11
|
-
add: i,
|
|
12
|
-
excel: t,
|
|
13
|
-
children: d
|
|
14
|
-
}) => {
|
|
9
|
+
const G = ({ size: h, add: i, excel: t, children: d }) => {
|
|
15
10
|
const { blockCls: j, addBtnClassName: k, btnClassName: C } = c(h), y = b(() => {
|
|
16
11
|
var s, r, n, m, a, l, p, e;
|
|
17
12
|
return [
|
|
@@ -32,33 +27,10 @@ const G = ({
|
|
|
32
27
|
...(t == null ? void 0 : t.otherMenu) ?? []
|
|
33
28
|
];
|
|
34
29
|
}, [t]);
|
|
35
|
-
return
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
] });
|
|
30
|
+
return o.jsxs(u.Compact, { className: j, style: { height: "100%" }, children: [i.show !== !1 && o.jsx(f, { type: "primary", icon: o.jsx(w, {}), onClick: i.onClick, className: k, children: i.text }), d, t.show !== !1 && o.jsx(g, { menu: { items: y, onClick: ({ key: s }) => {
|
|
31
|
+
var r;
|
|
32
|
+
return (r = t.onClick) == null ? void 0 : r.call(t, s);
|
|
33
|
+
} }, trigger: (t == null ? void 0 : t.trigger) || ["click"], children: o.jsx(f, { className: C, type: "text", children: o.jsxs(u, { size: 6, children: [o.jsx("span", { children: t.text ?? "Excel文档导入" }), o.jsx(B, {})] }) }) })] });
|
|
62
34
|
};
|
|
63
35
|
export {
|
|
64
36
|
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
|
|
6
|
+
return s.jsx(e, { className: o, type: "text", ...t });
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
i as default
|
|
@@ -72,18 +72,15 @@ const Q = (m) => {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
];
|
|
75
|
-
A(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
(
|
|
83
|
-
|
|
84
|
-
h(r, p, i)
|
|
85
|
-
]
|
|
86
|
-
);
|
|
75
|
+
A({
|
|
76
|
+
theme: g,
|
|
77
|
+
token: i,
|
|
78
|
+
hashId: n,
|
|
79
|
+
path: [r]
|
|
80
|
+
}, () => [
|
|
81
|
+
B(r, a, c, i),
|
|
82
|
+
h(r, p, i)
|
|
83
|
+
]);
|
|
87
84
|
const d = `${u}${c}`, x = f(a, d, n), y = f(a, p, d, n);
|
|
88
85
|
return { blockCls: r, addBtnClassName: x, btnClassName: y };
|
|
89
86
|
};
|
|
@@ -5,92 +5,27 @@ 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
|
-
|
|
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(() => {
|
|
8
|
+
const g = ({ skeletonCls: n, ...s }) => t.jsxs(p, { type: "text", ...s, children: [t.jsx("span", { children: s.children }), t.jsx(w, { active: !0, title: !1, className: n, paragraph: {
|
|
9
|
+
rows: 1,
|
|
10
|
+
width: "100%"
|
|
11
|
+
} })] });
|
|
12
|
+
function z({ loading: n, actionGroup: s, refInstance: d }) {
|
|
13
|
+
const { gap: h, primaryBtnClassName: i, dangerBtnClassName: o, dropdownBtnClassName: l, maskClassName: m, skeletonBtnClassName: u, skeletonClassName: x } = k(), f = C(() => {
|
|
40
14
|
const r = s.length >= 4 ? 2 : s.length, a = s.slice(0, r), c = [];
|
|
41
15
|
if (a != null && a.length && a.forEach((e, j) => {
|
|
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
|
-
);
|
|
16
|
+
c.push(n ? t.jsx(g, { className: u, skeletonCls: x, children: e == null ? void 0 : e.label }, j) : e.children ? t.jsx(N, { menu: { items: e.children }, children: t.jsx(p, { type: "text", className: e.danger ? o : i, children: e == null ? void 0 : e.label }) }, j) : t.jsx(p, { type: "text", className: e.danger ? o : i, onClick: e == null ? void 0 : e.onClick, children: e == null ? void 0 : e.label }, j));
|
|
69
17
|
}), r === 2 && s.length >= 4) {
|
|
70
18
|
const e = s.slice(2, s.length);
|
|
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
|
-
);
|
|
19
|
+
c.push(n ? t.jsx(g, { className: u, skeletonCls: x, children: "更多" }, 5) : t.jsx(N, { menu: { items: e }, children: t.jsx(p, { type: "text", className: l, children: "更多" }) }, 5));
|
|
82
20
|
}
|
|
83
21
|
return c;
|
|
84
22
|
}, [n, s]);
|
|
85
|
-
return
|
|
86
|
-
/* @__PURE__ */ t.jsx(B, { size: h, ref: m, className: "actionGroup", children: f }),
|
|
87
|
-
/* @__PURE__ */ t.jsx("div", { className: d })
|
|
88
|
-
] });
|
|
23
|
+
return t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [t.jsx(B, { size: h, ref: d, className: "actionGroup", children: f }), t.jsx("div", { className: m })] });
|
|
89
24
|
}
|
|
90
|
-
function
|
|
91
|
-
const { actionGroup: s, loading:
|
|
25
|
+
function T(n) {
|
|
26
|
+
const { actionGroup: s, loading: d, ...h } = n, { gap: i } = k(), o = y(null), l = b(o), m = C(() => l != null && l.width ? l.width + i * 2 + 1 : 181, [l, i]);
|
|
92
27
|
return C(() => ({
|
|
93
|
-
width: Math.floor(
|
|
28
|
+
width: Math.floor(m),
|
|
94
29
|
mobileHide: !0,
|
|
95
30
|
isOperationCol: !0,
|
|
96
31
|
title: "操作",
|
|
@@ -100,22 +35,13 @@ function D(n) {
|
|
|
100
35
|
className: "operationCol",
|
|
101
36
|
disabled: !0,
|
|
102
37
|
render: (x, f, r) => {
|
|
103
|
-
const a = s(f, r).filter(
|
|
104
|
-
|
|
105
|
-
);
|
|
106
|
-
return /* @__PURE__ */ t.jsx(
|
|
107
|
-
z,
|
|
108
|
-
{
|
|
109
|
-
loading: m,
|
|
110
|
-
actionGroup: a,
|
|
111
|
-
refInstance: o
|
|
112
|
-
}
|
|
113
|
-
);
|
|
38
|
+
const a = s(f, r).filter((c) => c.type != "detail");
|
|
39
|
+
return t.jsx(z, { loading: d, actionGroup: a, refInstance: o });
|
|
114
40
|
},
|
|
115
41
|
...h
|
|
116
|
-
}), [
|
|
42
|
+
}), [m, o, d, s]);
|
|
117
43
|
}
|
|
118
44
|
export {
|
|
119
45
|
z as BitzTableAction,
|
|
120
|
-
|
|
46
|
+
T as default
|
|
121
47
|
};
|
|
@@ -98,21 +98,18 @@ const Q = () => {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
];
|
|
101
|
-
T(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
()
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
y(m, p)
|
|
114
|
-
]
|
|
115
|
-
);
|
|
101
|
+
T({
|
|
102
|
+
theme: h,
|
|
103
|
+
token: s,
|
|
104
|
+
hashId: r,
|
|
105
|
+
path: [e]
|
|
106
|
+
}, () => [
|
|
107
|
+
g(e, d),
|
|
108
|
+
u(a, s),
|
|
109
|
+
v(l, s),
|
|
110
|
+
C(c, s),
|
|
111
|
+
y(m, p)
|
|
112
|
+
]);
|
|
116
113
|
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);
|
|
117
114
|
return {
|
|
118
115
|
gap: B,
|
|
@@ -7,14 +7,7 @@ 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
|
|
11
|
-
e,
|
|
12
|
-
{
|
|
13
|
-
...s,
|
|
14
|
-
menu: { ...o, items: r },
|
|
15
|
-
overlayClassName: t
|
|
16
|
-
}
|
|
17
|
-
);
|
|
10
|
+
return a.jsx(e, { ...s, menu: { ...o, items: r }, overlayClassName: t });
|
|
18
11
|
};
|
|
19
12
|
export {
|
|
20
13
|
m as default
|
|
@@ -89,15 +89,12 @@ const P = () => {
|
|
|
89
89
|
}
|
|
90
90
|
];
|
|
91
91
|
};
|
|
92
|
-
C(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
() => [w(o, m, a)]
|
|
100
|
-
);
|
|
92
|
+
C({
|
|
93
|
+
theme: c,
|
|
94
|
+
token: a,
|
|
95
|
+
hashId: i,
|
|
96
|
+
path: [o]
|
|
97
|
+
}, () => [w(o, m, a)]);
|
|
101
98
|
const h = `${T}${m}`;
|
|
102
99
|
return {
|
|
103
100
|
popupClassName: y(o, h, i)
|
|
@@ -1,40 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
1
|
+
import { j as r } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import c 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 l 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
|
-
},
|
|
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
|
-
);
|
|
9
|
+
const p = (t, s) => t == null ? void 0 : t.map((e) => {
|
|
10
|
+
const o = { ...e };
|
|
11
|
+
return o != null && o.children && (o.children = p(o == null ? void 0 : o.children, s), o.popupClassName = s), o;
|
|
12
|
+
}), w = ({ ...t }) => {
|
|
13
|
+
const { btnClassName: s } = l();
|
|
14
|
+
return r.jsx(c, { className: s, type: "text", ...t });
|
|
15
|
+
}, b = ({ menu: t, children: s, showTootip: e, tipText: o }) => {
|
|
16
|
+
const { btnClassName: a } = l(), { popupClassName: i } = j(), n = h(() => p(t == null ? void 0 : t.items, i), [t == null ? void 0 : t.items]);
|
|
17
|
+
return r.jsx(d.DropdownToButton, { menu: { ...t, items: n }, overlayClassName: i, trigger: ["click"], showTootip: e, tipText: o, children: r.jsx(c, { className: a, type: "text", children: r.jsxs(x, { size: 2, children: [(t == null ? void 0 : t.items) && t.items.length > 1 && r.jsxs(r.Fragment, { children: [r.jsx("span", { children: s }), r.jsx(m, {})] }), (t == null ? void 0 : t.items) && t.items.length === 1 && r.jsx("span", { children: t.items[0].label })] }) }) });
|
|
36
18
|
};
|
|
37
19
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
20
|
+
w as BitzSelectionBarButton,
|
|
21
|
+
b as BitzSelectionBarDropdownButton
|
|
40
22
|
};
|
|
@@ -1,47 +1,15 @@
|
|
|
1
1
|
import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
2
|
+
import u 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
|
-
|
|
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, {
|
|
4
|
+
import d from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
|
+
import { useMemo as j } from "react";
|
|
6
|
+
import h from "./style.mjs";
|
|
7
|
+
const y = ({ show: e, num: a, onClear: r, children: n }) => {
|
|
8
|
+
const { blockClassName: i, showCls: o, btnClassName: c, batchOperationClassName: m, alertContentClassName: p } = h(), x = j(() => d(i, {
|
|
20
9
|
[`${o}`]: e
|
|
21
10
|
}), [e]);
|
|
22
|
-
return
|
|
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
|
-
] });
|
|
11
|
+
return s.jsxs("div", { className: x, children: [s.jsx(t.Compact, { className: m, children: n || s.jsx("div", {}) }), s.jsxs(l, { gap: 7, className: p, children: [s.jsxs(l, { gap: 20, align: "center", children: [s.jsxs(t, { size: 10, children: [s.jsx("span", { children: "已选中" }), s.jsx("strong", { children: a ?? 0 })] }), s.jsx("span", { style: { verticalAlign: "-0.14em" }, children: "/" })] }), s.jsx(u, { type: "text", className: c, onClick: r, style: { lineHeight: "normal" }, children: "取消选中" })] })] });
|
|
44
12
|
};
|
|
45
13
|
export {
|
|
46
|
-
|
|
14
|
+
y as default
|
|
47
15
|
};
|
|
@@ -98,24 +98,14 @@ const V = () => {
|
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
100
|
};
|
|
101
|
-
G(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
g(
|
|
110
|
-
r,
|
|
111
|
-
l,
|
|
112
|
-
s,
|
|
113
|
-
m,
|
|
114
|
-
f,
|
|
115
|
-
i
|
|
116
|
-
)
|
|
117
|
-
]
|
|
118
|
-
);
|
|
101
|
+
G({
|
|
102
|
+
theme: b,
|
|
103
|
+
token: i,
|
|
104
|
+
hashId: o,
|
|
105
|
+
path: [r]
|
|
106
|
+
}, () => [
|
|
107
|
+
g(r, l, s, m, f, i)
|
|
108
|
+
]);
|
|
119
109
|
const u = `${S}${r}`, d = n(r, u, o), T = n(m, o), x = n(f, o), w = n(s, o);
|
|
120
110
|
return {
|
|
121
111
|
blockClassName: d,
|