bitz-react-admin-ui 2.2.8 → 2.3.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/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
- 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 +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 +53 -20
- 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/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDayJs/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/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +27 -21
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +22 -4
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +28 -5
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +6 -3
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +13 -4
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +52 -20
- 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 +25 -12
- package/dist/components/BitzMeetingTime/index.mjs +11 -7
- 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 +73 -12
- 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 +95 -21
- 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 +8 -2
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.d.ts +2 -2
- package/dist/components/BitzTable/Store/index.mjs +248 -212
- package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
- package/dist/components/BitzTable/SubTable/index.mjs +121 -73
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +417 -207
- package/dist/components/BitzTable/Table/style.mjs +11 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -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 +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
- 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/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -12
- package/dist/utils/create.mjs +7 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
3
|
import { Modal as m } from "antd";
|
|
4
4
|
import "./index.less.mjs";
|
|
5
|
-
import
|
|
6
|
-
const j = ({ modalOpen:
|
|
7
|
-
}, modalText:
|
|
8
|
-
const [i, s] = d(!1),
|
|
5
|
+
import p from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
6
|
+
const j = ({ modalOpen: c = !1, modalEmit: o = () => {
|
|
7
|
+
}, modalText: l, deleteId: n, deleteUrl: r }) => {
|
|
8
|
+
const [i, s] = d(!1), a = (e) => {
|
|
9
9
|
switch (e) {
|
|
10
10
|
case "ok":
|
|
11
11
|
f();
|
|
@@ -17,17 +17,30 @@ const j = ({ modalOpen: t = !1, modalEmit: o = () => {
|
|
|
17
17
|
}, f = async () => {
|
|
18
18
|
try {
|
|
19
19
|
s(!0);
|
|
20
|
-
const e = await r(
|
|
20
|
+
const e = await r(n);
|
|
21
21
|
s(!1), console.log("res", e), o("success");
|
|
22
22
|
} catch (e) {
|
|
23
23
|
s(!1), o("fail"), console.log("e", e);
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
return /* @__PURE__ */ t.jsx(
|
|
27
|
+
m,
|
|
28
|
+
{
|
|
29
|
+
className: "bitzModalBlock",
|
|
30
|
+
title: "提示",
|
|
31
|
+
width: 400,
|
|
32
|
+
open: c,
|
|
33
|
+
closeIcon: /* @__PURE__ */ t.jsx(p, {}),
|
|
34
|
+
onOk: () => {
|
|
35
|
+
a("ok");
|
|
36
|
+
},
|
|
37
|
+
confirmLoading: i,
|
|
38
|
+
onCancel: () => {
|
|
39
|
+
a("cancel");
|
|
40
|
+
},
|
|
41
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "textBox", children: l || "您确定要删除吗?" })
|
|
42
|
+
}
|
|
43
|
+
);
|
|
31
44
|
};
|
|
32
45
|
export {
|
|
33
46
|
j as default
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import m from "../../assets/images/nodata.png.mjs";
|
|
3
3
|
import "./index.less.mjs";
|
|
4
|
-
const x = ({ data: a = [], title: s = "暂无数据", img:
|
|
4
|
+
const x = ({ data: a = [], title: s = "暂无数据", img: r, width: o = 200, height: e = 200, ...i }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: a.length == 0 && /* @__PURE__ */ t.jsxs("div", { ...i, className: "bitzNoDataBlock", children: [
|
|
5
|
+
/* @__PURE__ */ t.jsx("img", { src: r || m, width: o, height: e }),
|
|
6
|
+
/* @__PURE__ */ t.jsx("div", { className: "noDataText", children: s })
|
|
7
|
+
] }) });
|
|
5
8
|
export {
|
|
6
9
|
x as default
|
|
7
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import "./index.less.mjs";
|
|
3
|
-
const i = ({ showNoMore: e = !1, title: t }) => r.jsx(r.Fragment, { children: e && r.jsx("div", { className: "bitzNoMoreBlick", children: t || "暂无更多数据" }) });
|
|
3
|
+
const i = ({ showNoMore: e = !1, title: t }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsx("div", { className: "bitzNoMoreBlick", children: t || "暂无更多数据" }) });
|
|
4
4
|
export {
|
|
5
5
|
i as default
|
|
6
6
|
};
|
|
@@ -1,30 +1,59 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { theme as
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { useImmer as
|
|
2
|
+
import { theme as y, Input as C, Tree as b, Space as N, Button as S, Tag as w } from "antd";
|
|
3
|
+
import { useEffect as z } from "react";
|
|
4
|
+
import { useImmer as T } from "../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
|
|
5
5
|
import "./components/select.module.less.mjs";
|
|
6
6
|
import "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
7
7
|
import "../BitzDrawer/index.less.mjs";
|
|
8
8
|
import s from "./index.module.less.mjs";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const { CheckableTag:
|
|
12
|
-
const { headerRender: o, tags: t, onTagChange: a, onSearch: c, treeTitle:
|
|
9
|
+
import v from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CaretDownFilled.mjs";
|
|
10
|
+
import E from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SettingFilled.mjs";
|
|
11
|
+
const { CheckableTag: I } = w, G = (p) => {
|
|
12
|
+
const { headerRender: o, tags: t, onTagChange: a, onSearch: c, treeTitle: h, defaultCheckedKeys: u, defaultExpandedKeys: d, treeData: f, onCheck: x } = p, { token: g } = y.useToken(), [l, i] = T({
|
|
13
13
|
tags: []
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
z(() => {
|
|
16
16
|
t && i((r) => {
|
|
17
17
|
r.tags = t;
|
|
18
18
|
});
|
|
19
19
|
}, [t == null ? void 0 : t.length]);
|
|
20
20
|
function j() {
|
|
21
|
-
return l.tags.length ? e.jsxs("div", { className: s.header, children: [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
return l.tags.length ? /* @__PURE__ */ e.jsxs("div", { className: s.header, children: [
|
|
22
|
+
/* @__PURE__ */ e.jsx(N, { size: [0, 8], wrap: !0, children: l.tags.map((r, m) => /* @__PURE__ */ e.jsx(
|
|
23
|
+
I,
|
|
24
|
+
{
|
|
25
|
+
checked: !!r.checked,
|
|
26
|
+
onChange: async (n) => {
|
|
27
|
+
i((k) => {
|
|
28
|
+
k.tags[m].checked = n;
|
|
29
|
+
}), a == null || a({ ...r, checked: n }, n);
|
|
30
|
+
},
|
|
31
|
+
children: r.label
|
|
32
|
+
},
|
|
33
|
+
m
|
|
34
|
+
)) }),
|
|
35
|
+
/* @__PURE__ */ e.jsx(S, { icon: /* @__PURE__ */ e.jsx(E, { style: { color: g.colorPrimary } }), type: "text", className: s["setting-btn"] })
|
|
36
|
+
] }) : o == null ? void 0 : o();
|
|
26
37
|
}
|
|
27
|
-
return e.jsxs("div", { className: s.container, children: [
|
|
38
|
+
return /* @__PURE__ */ e.jsxs("div", { className: s.container, children: [
|
|
39
|
+
j(),
|
|
40
|
+
c && /* @__PURE__ */ e.jsx(C, { className: s.search, placeholder: "组织名称查询", onChange: c }),
|
|
41
|
+
h,
|
|
42
|
+
/* @__PURE__ */ e.jsx(
|
|
43
|
+
b,
|
|
44
|
+
{
|
|
45
|
+
checkable: !0,
|
|
46
|
+
showLine: !0,
|
|
47
|
+
blockNode: !0,
|
|
48
|
+
selectable: !1,
|
|
49
|
+
switcherIcon: /* @__PURE__ */ e.jsx(v, { style: { verticalAlign: "top", fontSize: 24, color: "#86909C" } }),
|
|
50
|
+
defaultCheckedKeys: u,
|
|
51
|
+
defaultExpandedKeys: d,
|
|
52
|
+
treeData: f,
|
|
53
|
+
onCheck: x
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] });
|
|
28
57
|
};
|
|
29
58
|
export {
|
|
30
59
|
G as default
|
|
@@ -1,54 +1,90 @@
|
|
|
1
1
|
import { j as r } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import P, { useMemo as
|
|
2
|
+
import P, { useMemo as b } from "react";
|
|
3
3
|
import "./index.less.mjs";
|
|
4
|
-
import { Spin as w, Watermark as
|
|
5
|
-
import
|
|
4
|
+
import { Spin as w, Watermark as H, Affix as B, Tabs as N } from "antd";
|
|
5
|
+
import C from "../BitzPageHeader/index.mjs";
|
|
6
6
|
import R from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
7
7
|
function S(e) {
|
|
8
8
|
return typeof e == "object" ? e : { spinning: e };
|
|
9
9
|
}
|
|
10
|
-
const z = ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
10
|
+
const z = ({
|
|
11
|
+
tabList: e,
|
|
12
|
+
tabActiveKey: t,
|
|
13
|
+
onTabChange: a,
|
|
14
|
+
hashId: n,
|
|
16
15
|
tabBarExtraContent: d,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
tabProps: f,
|
|
17
|
+
prefixedClassName: x
|
|
18
|
+
}) => Array.isArray(e) || d ? /* @__PURE__ */ r.jsx(
|
|
19
|
+
N,
|
|
20
|
+
{
|
|
21
|
+
className: `${x}-tabs ${n}`.trim(),
|
|
22
|
+
activeKey: t,
|
|
23
|
+
onChange: (s) => {
|
|
24
|
+
a && a(s);
|
|
25
|
+
},
|
|
26
|
+
tabBarExtraContent: d,
|
|
27
|
+
items: e == null ? void 0 : e.map((s, m) => {
|
|
28
|
+
var u;
|
|
29
|
+
return {
|
|
30
|
+
label: s.tab,
|
|
31
|
+
...s,
|
|
32
|
+
key: ((u = s.key) == null ? void 0 : u.toString()) || (m == null ? void 0 : m.toString())
|
|
33
|
+
};
|
|
34
|
+
}),
|
|
35
|
+
...f,
|
|
36
|
+
children: e == null ? void 0 : e.map((s, m) => /* @__PURE__ */ r.jsx(N.TabPane, { tab: s.tab, ...s }, s.key || m))
|
|
37
|
+
}
|
|
38
|
+
) : null, M = (e, t, a, n) => !e && !t ? null : /* @__PURE__ */ r.jsx("div", { className: `${a}-detail ${n}`.trim(), children: /* @__PURE__ */ r.jsx("div", { className: `${a}-main ${n}`.trim(), children: /* @__PURE__ */ r.jsxs("div", { className: `${a}-row ${n}`.trim(), children: [
|
|
39
|
+
e && /* @__PURE__ */ r.jsx("div", { className: `${a}-content ${n}`.trim(), children: e }),
|
|
40
|
+
t && /* @__PURE__ */ r.jsx(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: `${a}-extraContent ${n}`.trim(),
|
|
44
|
+
children: t
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] }) }) }), A = (e) => {
|
|
29
48
|
var p;
|
|
30
|
-
const {
|
|
49
|
+
const {
|
|
50
|
+
title: t,
|
|
51
|
+
content: a,
|
|
52
|
+
pageHeaderRender: n,
|
|
53
|
+
header: d,
|
|
54
|
+
prefixedClassName: f,
|
|
55
|
+
extraContent: x,
|
|
56
|
+
childrenContentStyle: s,
|
|
57
|
+
style: m,
|
|
58
|
+
prefixCls: u,
|
|
59
|
+
hashId: h,
|
|
60
|
+
value: l,
|
|
61
|
+
breadcrumbRender: i,
|
|
62
|
+
...v
|
|
63
|
+
} = e, $ = () => {
|
|
31
64
|
if (i)
|
|
32
65
|
return i;
|
|
33
66
|
};
|
|
34
67
|
if (n === !1)
|
|
35
68
|
return null;
|
|
36
69
|
if (n)
|
|
37
|
-
return r.jsxs(r.Fragment, { children: [
|
|
70
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
71
|
+
" ",
|
|
72
|
+
n({ ...e, ...l })
|
|
73
|
+
] });
|
|
38
74
|
let j = t;
|
|
39
75
|
!t && t !== !1 && (j = l.title);
|
|
40
76
|
const g = {
|
|
41
77
|
...l,
|
|
42
78
|
title: j,
|
|
43
|
-
...
|
|
79
|
+
...v,
|
|
44
80
|
footer: z({
|
|
45
|
-
...
|
|
81
|
+
...v,
|
|
46
82
|
hashId: h,
|
|
47
83
|
breadcrumbRender: i,
|
|
48
84
|
prefixedClassName: f
|
|
49
85
|
}),
|
|
50
86
|
...d
|
|
51
|
-
}, { breadcrumb: o } = g,
|
|
87
|
+
}, { breadcrumb: o } = g, y = (!o || !(o != null && o.itemRender) && !((p = o == null ? void 0 : o.items) != null && p.length)) && !i;
|
|
52
88
|
return [
|
|
53
89
|
"title",
|
|
54
90
|
"subTitle",
|
|
@@ -57,7 +93,17 @@ const z = ({ tabList: e, tabActiveKey: t, onTabChange: a, hashId: n, tabBarExtra
|
|
|
57
93
|
"footer",
|
|
58
94
|
"avatar",
|
|
59
95
|
"backIcon"
|
|
60
|
-
].every((c) => !g[c]) &&
|
|
96
|
+
].every((c) => !g[c]) && y && !a && !x ? null : /* @__PURE__ */ r.jsx(
|
|
97
|
+
C,
|
|
98
|
+
{
|
|
99
|
+
...g,
|
|
100
|
+
className: `${f}-warp-page-header ${h}`.trim(),
|
|
101
|
+
breadcrumb: i === !1 ? void 0 : { ...g.breadcrumb, ...l.breadcrumbProps },
|
|
102
|
+
breadcrumbRender: $(),
|
|
103
|
+
prefixCls: u,
|
|
104
|
+
children: (d == null ? void 0 : d.children) || M(a, x, f, h)
|
|
105
|
+
}
|
|
106
|
+
);
|
|
61
107
|
}, V = (e) => {
|
|
62
108
|
var p;
|
|
63
109
|
const t = "id_asd123", {
|
|
@@ -73,51 +119,66 @@ const z = ({ tabList: e, tabActiveKey: t, onTabChange: a, hashId: n, tabBarExtra
|
|
|
73
119
|
// footerToolBarProps,
|
|
74
120
|
childrenContentStyle: h,
|
|
75
121
|
...l
|
|
76
|
-
} = e, i = "bitz-page-container",
|
|
122
|
+
} = e, i = "bitz-page-container", v = b(() => {
|
|
77
123
|
var c;
|
|
78
124
|
return u == !1 ? !1 : u || ((c = l == null ? void 0 : l.header) == null ? void 0 : c.breadcrumbRender);
|
|
79
125
|
}, [u, (p = l == null ? void 0 : l.header) == null ? void 0 : p.breadcrumbRender]), $ = A({
|
|
80
126
|
...l,
|
|
81
|
-
breadcrumbRender:
|
|
127
|
+
breadcrumbRender: v,
|
|
82
128
|
ghost: !0,
|
|
83
129
|
hashId: t,
|
|
84
130
|
prefixCls: void 0,
|
|
85
131
|
prefixedClassName: i,
|
|
86
132
|
value: {}
|
|
87
|
-
}), j =
|
|
133
|
+
}), j = b(() => {
|
|
88
134
|
if (P.isValidElement(n))
|
|
89
135
|
return n;
|
|
90
136
|
if (typeof n == "boolean" && !n)
|
|
91
137
|
return null;
|
|
92
138
|
const c = S(n);
|
|
93
|
-
return c.spinning ? r.jsx("div", { style: { paddingBlockStart: 100, textAlign: "center" }, children: r.jsx(w, { size: "large", ...c }) }) : null;
|
|
94
|
-
}, [n]), g =
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
139
|
+
return c.spinning ? /* @__PURE__ */ r.jsx("div", { style: { paddingBlockStart: 100, textAlign: "center" }, children: /* @__PURE__ */ r.jsx(w, { size: "large", ...c }) }) : null;
|
|
140
|
+
}, [n]), g = b(() => a ? /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
className: R(
|
|
144
|
+
`${i}-children-container ${t}`.trim()
|
|
145
|
+
),
|
|
146
|
+
style: {
|
|
147
|
+
// paddingBlockStart: props?.header ? 0 : token?.layout?.pageContainer?.paddingBlockPageContainerContent,
|
|
148
|
+
...h
|
|
149
|
+
},
|
|
150
|
+
children: a
|
|
151
|
+
}
|
|
152
|
+
) }) : null, [a, i, h, t]), o = b(() => {
|
|
103
153
|
const c = j || g;
|
|
104
154
|
if (e.waterMarkProps) {
|
|
105
155
|
const k = {
|
|
106
156
|
// ...value.waterMarkProps,
|
|
107
157
|
...e.waterMarkProps
|
|
108
158
|
};
|
|
109
|
-
return r.jsx(
|
|
159
|
+
return /* @__PURE__ */ r.jsx(H, { ...k, children: c });
|
|
110
160
|
}
|
|
111
161
|
return c;
|
|
112
|
-
}, [e.waterMarkProps, j, g]),
|
|
162
|
+
}, [e.waterMarkProps, j, g]), y = R(i, t, d, {
|
|
113
163
|
[`${i}-with-footer`]: x,
|
|
114
164
|
[`${i}-with-affix`]: m && $
|
|
115
165
|
// [`${basePageContainer}-stylish`]: !!restProps.stylish,
|
|
116
166
|
});
|
|
117
|
-
return r.jsx("div", { className: "BitzPageContainerBlock", children: r.jsxs("div", { style: f, className:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
167
|
+
return /* @__PURE__ */ r.jsx("div", { className: "BitzPageContainerBlock", children: /* @__PURE__ */ r.jsxs("div", { style: f, className: y, children: [
|
|
168
|
+
m && $ ? (
|
|
169
|
+
// 在 hasHeader 且 fixedHeader 的情况下,才需要设置高度
|
|
170
|
+
/* @__PURE__ */ r.jsx(
|
|
171
|
+
B,
|
|
172
|
+
{
|
|
173
|
+
offsetTop: 1,
|
|
174
|
+
...s,
|
|
175
|
+
className: `${i}-affix ${t}`.trim(),
|
|
176
|
+
children: /* @__PURE__ */ r.jsx("div", { className: `${i}-warp ${t}`.trim(), children: $ })
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
) : $,
|
|
180
|
+
o && o
|
|
181
|
+
] }) });
|
|
121
182
|
};
|
|
122
183
|
export {
|
|
123
184
|
V as default
|
|
@@ -1,33 +1,101 @@
|
|
|
1
1
|
import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import { createNamespace as
|
|
5
|
-
import { Avatar as
|
|
2
|
+
import { useState as B } from "react";
|
|
3
|
+
import p from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
|
+
import { createNamespace as C } from "../../utils/create.mjs";
|
|
5
|
+
import { Avatar as R, Space as w, Breadcrumb as y } from "antd";
|
|
6
6
|
import A from "../../node_modules/.store/rc-resize-observer@1.4.0/node_modules/rc-resize-observer/es/index.mjs";
|
|
7
7
|
import "./index.less.mjs";
|
|
8
8
|
import F from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs";
|
|
9
9
|
import O from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs";
|
|
10
|
-
const P = (
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const P = (e, t, i, n) => !i || !n ? null : /* @__PURE__ */ s.jsx("div", { className: `${e}-back ${t}`.trim(), children: /* @__PURE__ */ s.jsx(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
role: "button",
|
|
14
|
+
onClick: (o) => {
|
|
15
|
+
n == null || n(o);
|
|
16
|
+
},
|
|
17
|
+
className: `${e}-back-button ${t}`.trim(),
|
|
18
|
+
"aria-label": "back",
|
|
19
|
+
children: i
|
|
20
|
+
}
|
|
21
|
+
) }), T = (e, t) => {
|
|
13
22
|
var i;
|
|
14
|
-
return (i =
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
return (i = e.items) != null && i.length ? /* @__PURE__ */ s.jsx(
|
|
24
|
+
y,
|
|
25
|
+
{
|
|
26
|
+
...e,
|
|
27
|
+
className: p(`${t}-breadcrumb`, e.className)
|
|
28
|
+
}
|
|
29
|
+
) : null;
|
|
30
|
+
}, H = (e, t = "ltr") => e.backIcon !== void 0 ? e.backIcon : t === "rtl" ? /* @__PURE__ */ s.jsx(F, {}) : /* @__PURE__ */ s.jsx(O, {}), S = (e, t, i = "ltr", n) => {
|
|
31
|
+
const {
|
|
32
|
+
title: o,
|
|
33
|
+
avatar: l,
|
|
34
|
+
subTitle: a,
|
|
35
|
+
tags: m,
|
|
36
|
+
extra: d,
|
|
37
|
+
onBack: f
|
|
38
|
+
} = t, c = `${e}-heading`, r = o || a || m || d;
|
|
17
39
|
if (!r)
|
|
18
40
|
return null;
|
|
19
|
-
const u = H(
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
41
|
+
const u = H(t, i), $ = P(e, n, u, f), x = $ || l || r;
|
|
42
|
+
return /* @__PURE__ */ s.jsxs("div", { className: c + " " + n, children: [
|
|
43
|
+
x && /* @__PURE__ */ s.jsxs("div", { className: `${c}-left ${n}`.trim(), children: [
|
|
44
|
+
$,
|
|
45
|
+
l && /* @__PURE__ */ s.jsx(
|
|
46
|
+
R,
|
|
47
|
+
{
|
|
48
|
+
className: p(
|
|
49
|
+
`${c}-avatar`,
|
|
50
|
+
n,
|
|
51
|
+
l.className
|
|
52
|
+
),
|
|
53
|
+
...l
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
o && /* @__PURE__ */ s.jsx(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
className: `${c}-title ${n}`.trim(),
|
|
60
|
+
title: typeof o == "string" ? o : void 0,
|
|
61
|
+
children: o
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
a && /* @__PURE__ */ s.jsx(
|
|
65
|
+
"span",
|
|
66
|
+
{
|
|
67
|
+
className: `${c}-sub-title ${n}`.trim(),
|
|
68
|
+
title: typeof a == "string" ? a : void 0,
|
|
69
|
+
children: a
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
m && /* @__PURE__ */ s.jsx("span", { className: `${c}-tags ${n}`.trim(), children: m })
|
|
73
|
+
] }),
|
|
74
|
+
d && /* @__PURE__ */ s.jsx("span", { className: `${c}-extra ${n}`.trim(), children: /* @__PURE__ */ s.jsx(w, { children: d }) })
|
|
75
|
+
] });
|
|
76
|
+
}, E = (e, t, i) => /* @__PURE__ */ s.jsx("div", { className: `${e}-content ${i}`.trim(), children: t }), L = (e, t, i) => t ? /* @__PURE__ */ s.jsx("div", { className: `${e}-footer ${i}`.trim(), children: t }) : null, X = (e) => {
|
|
77
|
+
const [t, i] = C("bitz-page-header"), n = "ltr", o = "id_123123", [l, a] = B(!1), m = ({ width: z }) => a(z < 768), {
|
|
78
|
+
style: d,
|
|
79
|
+
footer: f,
|
|
80
|
+
children: c,
|
|
81
|
+
breadcrumb: r,
|
|
82
|
+
breadcrumbRender: u,
|
|
83
|
+
className: $,
|
|
84
|
+
contentWidth: x
|
|
85
|
+
} = e, N = (() => (r && !(r != null && r.items) && (r != null && r.routes) && (r.items = r.routes), r != null && r.items ? T(r, t) : null))(), h = r && "props" in r, D = (u == null ? void 0 : u({ ...e, prefixCls: t }, N)) ?? N, j = h ? r : D, k = p(t, o, $, {
|
|
86
|
+
[`${t}-has-breadcrumb`]: !!j,
|
|
87
|
+
[`${t}-has-footer`]: !!f,
|
|
25
88
|
// [`${prefixCls}-rtl`]: direction === 'rtl',
|
|
26
|
-
[`${
|
|
27
|
-
[`${
|
|
28
|
-
[`${
|
|
29
|
-
}), g = S(
|
|
30
|
-
return !
|
|
89
|
+
[`${t}-compact`]: l,
|
|
90
|
+
[`${t}-wide`]: x === "Fixed",
|
|
91
|
+
[`${t}-ghost`]: !0
|
|
92
|
+
}), g = S(t, e, n, o), v = c && E(t, c, o), b = L(t, f, o);
|
|
93
|
+
return !j && !g && !b && !v ? null : /* @__PURE__ */ s.jsx(A, { onResize: m, children: /* @__PURE__ */ s.jsxs("div", { className: k, style: d, children: [
|
|
94
|
+
j,
|
|
95
|
+
g,
|
|
96
|
+
v,
|
|
97
|
+
b
|
|
98
|
+
] }) });
|
|
31
99
|
};
|
|
32
100
|
export {
|
|
33
101
|
X as default
|
|
@@ -1,32 +1,81 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as l, useMemo as
|
|
3
|
-
import { Pagination as
|
|
4
|
-
import { isMobile as
|
|
1
|
+
import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useState as l, useMemo as c, useEffect as y, useImperativeHandle as B } from "react";
|
|
3
|
+
import { Pagination as M } from "antd";
|
|
4
|
+
import { isMobile as b } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
5
5
|
import H from "../BitzHighlight/index.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
7
|
let g = !0;
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
const Q = ({
|
|
9
|
+
enableControl: u = !1,
|
|
10
|
+
pagination: a = {
|
|
11
|
+
page: 1,
|
|
12
|
+
size: 10
|
|
13
|
+
},
|
|
14
|
+
pageSizeOptions: z = [10, 20, 50, 100],
|
|
15
|
+
total: j = 0,
|
|
16
|
+
dataSource: r = [],
|
|
17
|
+
resetPage: m = 0,
|
|
18
|
+
paginationEmit: f = () => {
|
|
19
|
+
},
|
|
20
|
+
direction: x = "end",
|
|
21
|
+
totalText: w = "共",
|
|
22
|
+
totalItemText: d = "条",
|
|
23
|
+
hideTotalText: C,
|
|
24
|
+
elRefInstance: P,
|
|
25
|
+
refInstance: S,
|
|
26
|
+
...T
|
|
27
|
+
}) => {
|
|
28
|
+
const [h, o] = l(1), [p, $] = l(10), t = c(() => u ? a : { page: h, size: p }, [u, a, h, p]), n = c(() => m, [m]);
|
|
29
|
+
y(() => {
|
|
30
|
+
n != 0 && o(n);
|
|
31
|
+
}, [n]);
|
|
32
|
+
const k = (e, i) => {
|
|
33
|
+
o(e), g && f(e, i);
|
|
34
|
+
}, v = (e, i) => {
|
|
35
|
+
g = !1, $(i), setTimeout(() => {
|
|
36
|
+
o(1), f(1, i), setTimeout(() => {
|
|
22
37
|
g = !0;
|
|
23
38
|
}, 10);
|
|
24
39
|
}, 10);
|
|
25
40
|
};
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
41
|
+
return B(
|
|
42
|
+
S,
|
|
43
|
+
() => ({
|
|
44
|
+
getSize: () => t.size
|
|
45
|
+
}),
|
|
46
|
+
[t]
|
|
47
|
+
), /* @__PURE__ */ s.jsx(s.Fragment, { children: (r == null ? void 0 : r.length) != 0 && !b && /* @__PURE__ */ s.jsx(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref: P,
|
|
51
|
+
className: "bitzPaginationBlock",
|
|
52
|
+
style: { justifyContent: x },
|
|
53
|
+
children: /* @__PURE__ */ s.jsx(
|
|
54
|
+
M,
|
|
55
|
+
{
|
|
56
|
+
total: j,
|
|
57
|
+
defaultCurrent: t.page,
|
|
58
|
+
current: t.page,
|
|
59
|
+
pageSize: t.size,
|
|
60
|
+
showSizeChanger: !0,
|
|
61
|
+
showQuickJumper: !0,
|
|
62
|
+
pageSizeOptions: z,
|
|
63
|
+
showTotal: C ? void 0 : (e) => /* @__PURE__ */ s.jsx(
|
|
64
|
+
H,
|
|
65
|
+
{
|
|
66
|
+
highlightTag: "strong",
|
|
67
|
+
keywords: `${e}`,
|
|
68
|
+
sourceString: `${w} ${e} ${d}`
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
onChange: k,
|
|
72
|
+
onShowSizeChange: v,
|
|
73
|
+
...T
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
) });
|
|
29
78
|
};
|
|
30
79
|
export {
|
|
31
|
-
|
|
80
|
+
Q as default
|
|
32
81
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as o } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useState as c, useEffect as m } from "react";
|
|
3
3
|
import { Typography as f } from "antd";
|
|
4
|
-
import
|
|
5
|
-
const { Paragraph: u } = f, E = (
|
|
6
|
-
const { children: a, ellipsis: e = !1, ...n } =
|
|
4
|
+
import t from "./BitzPopover.module.less.mjs";
|
|
5
|
+
const { Paragraph: u } = f, E = (r) => {
|
|
6
|
+
const { children: a, ellipsis: e = !1, ...n } = r, [p, s] = c(), l = () => {
|
|
7
7
|
s(!1);
|
|
8
8
|
}, i = () => {
|
|
9
9
|
s(e);
|
|
10
10
|
};
|
|
11
11
|
return m(() => {
|
|
12
12
|
s(e);
|
|
13
|
-
}, [e]), o.jsx("div", { ...n, className:
|
|
13
|
+
}, [e]), /* @__PURE__ */ o.jsx("div", { ...n, className: t.bitzPopoverBlock, onMouseEnter: l, onMouseLeave: i, children: /* @__PURE__ */ o.jsx(u, { ellipsis: p, className: t.Paragraph, children: a }) });
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
16
|
E as default
|