bitz-react-admin-ui 2.5.9 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/iconfont/IconChenggong.mjs +25 -4
- package/dist/assets/iconfont/IconClose.mjs +24 -3
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
- package/dist/assets/iconfont/IconCuowu.mjs +23 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
- package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
- package/dist/assets/iconfont/IconFabu.mjs +35 -5
- package/dist/assets/iconfont/IconFanhui.mjs +25 -4
- package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
- package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
- package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
- package/dist/assets/iconfont/IconIcon21.mjs +25 -4
- package/dist/assets/iconfont/IconJincoude.mjs +25 -4
- package/dist/assets/iconfont/IconJinggao.mjs +25 -4
- package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
- package/dist/assets/iconfont/IconMore.mjs +41 -4
- package/dist/assets/iconfont/IconShanchu.mjs +27 -6
- package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
- package/dist/assets/iconfont/IconSousuo.mjs +27 -6
- package/dist/assets/iconfont/IconTejincou.mjs +25 -4
- package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
- package/dist/assets/iconfont/IconTishi1.mjs +27 -6
- package/dist/assets/iconfont/IconTuodong.mjs +28 -7
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
- package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
- package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
- package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +47 -15
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +129 -33
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -4
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +170 -133
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
- package/dist/components/BitzTable/Store/utils/index.mjs +48 -38
- package/dist/components/BitzTable/SubTable/index.mjs +91 -43
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +57 -40
- package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +476 -213
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +83 -27
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +278 -150
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +129 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +97 -43
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +28 -6
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +38 -9
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +37 -8
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
- package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
- package/dist/components/BitzTableSelect/index.mjs +65 -14
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +41 -14
- package/dist/components/BitzText/utils.mjs +3 -3
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTooltip/index.mjs +47 -17
- package/dist/components/BitzTooltip/style.mjs +9 -6
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useDebounceFn/index.mjs +29 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/lodash-polyfill.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +37 -34
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -5
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -7,7 +7,18 @@ import D from "../../hooks/useMergedState.mjs";
|
|
|
7
7
|
import G from "../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs";
|
|
8
8
|
import H from "./style.mjs";
|
|
9
9
|
import I from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
10
|
-
const ee = ({
|
|
10
|
+
const ee = ({
|
|
11
|
+
wrapper: n,
|
|
12
|
+
defaultOpen: R,
|
|
13
|
+
open: b,
|
|
14
|
+
tip: l,
|
|
15
|
+
children: t,
|
|
16
|
+
placement: P = "top",
|
|
17
|
+
trigger: c = "hover",
|
|
18
|
+
overlayClassName: y,
|
|
19
|
+
overlayStyle: C,
|
|
20
|
+
getContainer: a
|
|
21
|
+
}) => {
|
|
11
22
|
const { token: d } = $.useToken(), { blockClassName: N, blockContentCls: T } = H(), i = m(null), r = m(null), f = m(document.createElement("div")), [j, B] = E(0), [L, M] = E(0), [o, u] = D(R ?? !1, {
|
|
12
23
|
value: b
|
|
13
24
|
});
|
|
@@ -17,7 +28,9 @@ const ee = ({ wrapper: n, defaultOpen: R, open: b, tip: l, children: t, placemen
|
|
|
17
28
|
const e = n ?? i.current;
|
|
18
29
|
if (e && r.current) {
|
|
19
30
|
const { top: _, left: F, width: O } = e.getBoundingClientRect(), z = window.pageXOffset || document.documentElement.scrollLeft, V = window.pageYOffset || document.documentElement.scrollTop;
|
|
20
|
-
B(
|
|
31
|
+
B(
|
|
32
|
+
F - (r.current.offsetWidth - O) / 2 + z
|
|
33
|
+
), M(_ - r.current.clientHeight - 10 + V);
|
|
21
34
|
}
|
|
22
35
|
}, 0);
|
|
23
36
|
}, [o, l]), G(() => {
|
|
@@ -42,24 +55,41 @@ const ee = ({ wrapper: n, defaultOpen: R, open: b, tip: l, children: t, placemen
|
|
|
42
55
|
show: "onFocus",
|
|
43
56
|
hide: "onBlur"
|
|
44
57
|
}), e;
|
|
45
|
-
}, [c]), S = x(() => typeof t == "string" ? s.jsx("span", { children: t }) : t, [t]);
|
|
58
|
+
}, [c]), S = x(() => typeof t == "string" ? /* @__PURE__ */ s.jsx("span", { children: t }) : t, [t]);
|
|
46
59
|
let v = t;
|
|
47
|
-
return n || (v = g.Children.map(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
return n || (v = g.Children.map(
|
|
61
|
+
S,
|
|
62
|
+
(e) => g.cloneElement(e, {
|
|
63
|
+
[`${h.show}`]: () => p(!0),
|
|
64
|
+
[`${h.hide}`]: () => p(!1),
|
|
65
|
+
ref: i
|
|
66
|
+
})
|
|
67
|
+
)), w(() => () => {
|
|
52
68
|
var e;
|
|
53
69
|
(e = f.current) == null || e.remove();
|
|
54
|
-
}, []), s.jsxs(s.Fragment, { children: [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
}, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
71
|
+
v,
|
|
72
|
+
A.createPortal(
|
|
73
|
+
/* @__PURE__ */ s.jsx(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
className: I(N, y),
|
|
77
|
+
ref: r,
|
|
78
|
+
style: {
|
|
79
|
+
left: j,
|
|
80
|
+
top: L,
|
|
81
|
+
zIndex: 1070,
|
|
82
|
+
background: d.colorBgSpotlight,
|
|
83
|
+
color: d.colorTextLightSolid,
|
|
84
|
+
opacity: o ? 1 : 0,
|
|
85
|
+
...C
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ s.jsx("div", { className: T, children: l })
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
a && n ? a(n) : f.current
|
|
91
|
+
)
|
|
92
|
+
] });
|
|
63
93
|
};
|
|
64
94
|
export {
|
|
65
95
|
ee as default
|
|
@@ -35,12 +35,15 @@ const T = () => {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
];
|
|
38
|
-
return l(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
return l(
|
|
39
|
+
{
|
|
40
|
+
theme: n,
|
|
41
|
+
token: i,
|
|
42
|
+
hashId: e,
|
|
43
|
+
path: [o]
|
|
44
|
+
},
|
|
45
|
+
() => [s(o, r, i)]
|
|
46
|
+
), { blockClassName: b(o, e), blockContentCls: r };
|
|
44
47
|
};
|
|
45
48
|
export {
|
|
46
49
|
T as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as i } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useRef as c, useEffect as n } from "react";
|
|
3
|
-
import
|
|
4
|
-
const p = ({ id: e, value: s, height:
|
|
3
|
+
import u from "./config.mjs";
|
|
4
|
+
const p = ({ id: e, value: s, height: f = 500, onBlur: r }) => {
|
|
5
5
|
const o = c(null);
|
|
6
6
|
return n(() => {
|
|
7
7
|
if (!e)
|
|
8
8
|
return;
|
|
9
|
-
const t = UE == null ? void 0 : UE.getEditor(e,
|
|
9
|
+
const t = UE == null ? void 0 : UE.getEditor(e, u);
|
|
10
10
|
return o.current = t, t.ready(() => {
|
|
11
11
|
t.addListener("blur", () => {
|
|
12
12
|
r == null || r(t.getContent());
|
|
@@ -19,7 +19,7 @@ const p = ({ id: e, value: s, height: i = 500, onBlur: r }) => {
|
|
|
19
19
|
t.ready(() => {
|
|
20
20
|
t.setContent(s || "");
|
|
21
21
|
});
|
|
22
|
-
}, [s, o.current]),
|
|
22
|
+
}, [s, o.current]), /* @__PURE__ */ i.jsx("div", { id: e, style: { width: "100%", height: f } });
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
25
|
p as default
|
|
@@ -7,18 +7,18 @@ import v from "../BitzImage/previewImage.mjs";
|
|
|
7
7
|
import L from "../BitzDrawer/index.mjs";
|
|
8
8
|
import { useImmer as T } from "../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
|
|
9
9
|
import B from "../BitzLocalStorage/index.mjs";
|
|
10
|
-
import C from "../../node_modules/.store
|
|
11
|
-
import
|
|
10
|
+
import { useTranslation as C } from "../../node_modules/.store/react-i18next@13.5.0/node_modules/react-i18next/dist/es/useTranslation.mjs";
|
|
11
|
+
import z from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs";
|
|
12
12
|
import F from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/PlusOutlined.mjs";
|
|
13
|
-
const h = "http://bitz.elinklaw.com", P = B.getItem("bitzToken") || null, { Dragger: D } = m, I = (t) => new Promise((
|
|
13
|
+
const h = "http://bitz.elinklaw.com", P = B.getItem("bitzToken") || null, { Dragger: D } = m, I = (t) => new Promise((r, n) => {
|
|
14
14
|
const e = new FileReader();
|
|
15
|
-
e.readAsDataURL(t), e.onload = () =>
|
|
15
|
+
e.readAsDataURL(t), e.onload = () => r(e.result), e.onerror = (o) => n(o);
|
|
16
16
|
}), k = (t) => {
|
|
17
17
|
t.file.status !== "uploading" && console.log(t.file, t.fileList), t.file.status === "done" ? u.success(`${t.file.name} 上传成功`) : t.file.status === "error" && u.error(`${t.file.name} 上传失败`);
|
|
18
18
|
}, j = (t) => {
|
|
19
|
-
const
|
|
19
|
+
const r = t.showAddBtn || !0, n = t.limitImageType || ["png", "jpeg", "jpg"], e = t.limitFileType || ["txt", "doc", "docx", "pdf", "ppt", "pptx", "xlsx", "xls"], o = t.limitFileSize || 20, p = {
|
|
20
20
|
title: "点击上传",
|
|
21
|
-
icon: i.jsx(
|
|
21
|
+
icon: /* @__PURE__ */ i.jsx(z, {}),
|
|
22
22
|
name: "file",
|
|
23
23
|
action: "/lzhApi/api/services/web/financialExpenditure/uploadExpenditureFile",
|
|
24
24
|
accept: "image/png, image/jpeg",
|
|
@@ -32,62 +32,100 @@ const h = "http://bitz.elinklaw.com", P = B.getItem("bitzToken") || null, { Drag
|
|
|
32
32
|
onChange: k
|
|
33
33
|
};
|
|
34
34
|
return {
|
|
35
|
-
showAddBtn:
|
|
35
|
+
showAddBtn: r,
|
|
36
36
|
limitImageType: n,
|
|
37
37
|
limitFileType: e,
|
|
38
38
|
limitFileSize: o,
|
|
39
39
|
...p
|
|
40
40
|
};
|
|
41
41
|
}, U = ({ ...t }) => {
|
|
42
|
-
const { t:
|
|
43
|
-
!
|
|
44
|
-
items: [
|
|
42
|
+
const { t: r } = C(), n = async (s) => {
|
|
43
|
+
!s.url && !s.preview && (s.preview = await I(s.originFileObj)), v({
|
|
44
|
+
items: [s.url || s.preview]
|
|
45
45
|
});
|
|
46
|
-
}, e = { ...j(t), ...t }, o = e.listType === "picture-card", p = e.listType === "picture-circle", c = () => o || p ? i.jsx(F, {}) : i.jsx(w, { icon: e.icon, children: e.title }), [f, d] = T({
|
|
46
|
+
}, e = { ...j(t), ...t }, o = e.listType === "picture-card", p = e.listType === "picture-circle", c = () => o || p ? /* @__PURE__ */ i.jsx(F, {}) : /* @__PURE__ */ i.jsx(w, { icon: e.icon, children: e.title }), [f, d] = T({
|
|
47
47
|
open: !1,
|
|
48
48
|
fileList: e.defaultFileList || []
|
|
49
49
|
});
|
|
50
|
-
return b ? i.jsxs(i.Fragment, { children: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
return b ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
51
|
+
/* @__PURE__ */ i.jsx(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
onClick: () => d((s) => {
|
|
55
|
+
s.open = !0;
|
|
56
|
+
}),
|
|
57
|
+
children: e.showAddBtn && c()
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ i.jsx(
|
|
61
|
+
m,
|
|
62
|
+
{
|
|
63
|
+
...e,
|
|
64
|
+
listType: e.listType,
|
|
65
|
+
fileList: f.fileList,
|
|
66
|
+
onRemove: (s) => {
|
|
67
|
+
var l;
|
|
68
|
+
const x = f.fileList.findIndex((a) => a.uid === s.uid);
|
|
69
|
+
d((a) => {
|
|
70
|
+
a.fileList.splice(x, 1);
|
|
71
|
+
}), (l = e.onRemove) == null || l.call(e, s);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ i.jsx(L, { height: "auto", className: "tableMobileDrawer", placement: "bottom", open: f.open, destroyOnClose: !0, closable: !1, children: /* @__PURE__ */ i.jsxs("div", { className: "drawerBox", children: [
|
|
76
|
+
/* @__PURE__ */ i.jsx("div", { className: "boxBody", children: [{ label: "本地相册" }, { label: "文件" }].map((s, x) => /* @__PURE__ */ i.jsx("div", { className: "operaList", children: /* @__PURE__ */ i.jsx(g, { imgCrop: e.imgCrop, children: /* @__PURE__ */ i.jsx(
|
|
77
|
+
m,
|
|
61
78
|
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
79
|
+
...e,
|
|
80
|
+
listType: e.listType,
|
|
81
|
+
showUploadList: !1,
|
|
82
|
+
onChange: (l) => {
|
|
83
|
+
l.file.status === "done" && (e.onChange(l), d((a) => {
|
|
84
|
+
e.maxCount === 1 ? a.fileList = [
|
|
85
|
+
{
|
|
86
|
+
url: h + l.file.response.data,
|
|
87
|
+
uid: Date.now() + "",
|
|
88
|
+
name: ""
|
|
89
|
+
}
|
|
90
|
+
] : a.fileList.push({
|
|
91
|
+
url: h + l.file.response.data,
|
|
92
|
+
uid: Date.now() + "",
|
|
93
|
+
name: ""
|
|
94
|
+
}), a.open = !1;
|
|
95
|
+
}));
|
|
96
|
+
},
|
|
97
|
+
children: s.label
|
|
65
98
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
99
|
+
) }) }, x)) }),
|
|
100
|
+
/* @__PURE__ */ i.jsx("div", { className: "boxLine" }),
|
|
101
|
+
/* @__PURE__ */ i.jsx(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: "boxFooter",
|
|
105
|
+
onClick: () => {
|
|
106
|
+
d((s) => {
|
|
107
|
+
s.open = !1;
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
children: r("System_Cancel", "取消")
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] }) })
|
|
114
|
+
] }) : /* @__PURE__ */ i.jsx(g, { imgCrop: e.imgCrop, children: /* @__PURE__ */ i.jsx(m, { onPreview: n, ...e, children: e.showAddBtn && c() }) });
|
|
77
115
|
}, K = A(U, {
|
|
78
116
|
Dragger: ({ ...t }) => {
|
|
79
|
-
const
|
|
80
|
-
return i.jsx(D, { ...
|
|
117
|
+
const r = { ...j(t), ...t };
|
|
118
|
+
return /* @__PURE__ */ i.jsx(D, { ...r, children: t.children });
|
|
81
119
|
}
|
|
82
120
|
});
|
|
83
|
-
function A(t,
|
|
121
|
+
function A(t, r) {
|
|
84
122
|
const n = t;
|
|
85
|
-
for (const e in
|
|
86
|
-
|
|
123
|
+
for (const e in r)
|
|
124
|
+
r.hasOwnProperty(e) && (n[e] = r[e]);
|
|
87
125
|
return n;
|
|
88
126
|
}
|
|
89
|
-
function g({ imgCrop: t, children:
|
|
90
|
-
return t ? i.jsx(y, { rotationSlider: !0, aspect: t == null ? void 0 : t.aspect, children:
|
|
127
|
+
function g({ imgCrop: t, children: r }) {
|
|
128
|
+
return t ? /* @__PURE__ */ i.jsx(y, { rotationSlider: !0, aspect: t == null ? void 0 : t.aspect, children: r }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: r });
|
|
91
129
|
}
|
|
92
130
|
export {
|
|
93
131
|
g as ImgCropUplad,
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { isMobile as r } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
3
|
-
import { Drawer as
|
|
4
|
-
const g = ({
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { Drawer as b, Button as o } from "antd";
|
|
4
|
+
const g = ({
|
|
5
|
+
title: i = "",
|
|
6
|
+
open: s = !1,
|
|
7
|
+
onClose: t = () => {
|
|
8
|
+
},
|
|
9
|
+
onSubmit: l = () => {
|
|
10
|
+
},
|
|
11
|
+
children: a,
|
|
12
|
+
pcWidth: m = 800,
|
|
13
|
+
mobileHeight: p = 600,
|
|
14
|
+
showFooter: c = !0,
|
|
15
|
+
showSubmitBtn: n = !0,
|
|
16
|
+
showCancelBtn: f = !0,
|
|
17
|
+
submitBtnText: h = "保存",
|
|
18
|
+
cancelBtnText: u = "取消",
|
|
19
|
+
...x
|
|
20
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
21
|
+
b,
|
|
22
|
+
{
|
|
23
|
+
...x,
|
|
24
|
+
title: i,
|
|
25
|
+
placement: r ? "bottom" : "right",
|
|
26
|
+
height: r ? p : "",
|
|
27
|
+
width: r ? "" : m,
|
|
28
|
+
closable: !1,
|
|
29
|
+
onClose: t,
|
|
30
|
+
open: s,
|
|
31
|
+
footer: c ? /* @__PURE__ */ e.jsxs("div", { className: r ? "mobileFooter" : "pcFooter", children: [
|
|
32
|
+
n && /* @__PURE__ */ e.jsx(o, { type: "primary", onClick: l, children: h }),
|
|
33
|
+
f && /* @__PURE__ */ e.jsx(o, { onClick: t, children: u })
|
|
34
|
+
] }) : "",
|
|
35
|
+
children: a
|
|
36
|
+
}
|
|
37
|
+
);
|
|
7
38
|
export {
|
|
8
39
|
g as default
|
|
9
40
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { j as o } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { isMobile as
|
|
3
|
-
import { Modal as
|
|
2
|
+
import { isMobile as t } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
3
|
+
import { Modal as a } from "antd";
|
|
4
4
|
import "./index.less.mjs";
|
|
5
|
-
const M = ({ title: i = "提示", content:
|
|
5
|
+
const M = ({ title: i = "提示", content: r = "您确定要删除?", children: l, ...s }) => /* @__PURE__ */ o.jsxs(a, { title: i, wrapClassName: t ? "bitzMobileModalBlock" : "bitzPcModalBlock", ...s, children: [
|
|
6
|
+
/* @__PURE__ */ o.jsx("div", { children: r }),
|
|
7
|
+
l
|
|
8
|
+
] });
|
|
6
9
|
export {
|
|
7
10
|
M as default
|
|
8
11
|
};
|
|
@@ -14,11 +14,20 @@ if (i)
|
|
|
14
14
|
function w(e, o, c = {}) {
|
|
15
15
|
if (!i)
|
|
16
16
|
return;
|
|
17
|
-
const {
|
|
17
|
+
const {
|
|
18
|
+
target: n = window,
|
|
19
|
+
passive: d = !1,
|
|
20
|
+
capture: r = !1,
|
|
21
|
+
depends: l = []
|
|
22
|
+
} = c;
|
|
18
23
|
let s;
|
|
19
24
|
const p = () => {
|
|
20
25
|
const t = a(n);
|
|
21
|
-
t && !s && (t.addEventListener(
|
|
26
|
+
t && !s && (t.addEventListener(
|
|
27
|
+
e,
|
|
28
|
+
o,
|
|
29
|
+
f ? { capture: r, passive: d } : r
|
|
30
|
+
), s = !0);
|
|
22
31
|
}, u = () => {
|
|
23
32
|
const t = a(n);
|
|
24
33
|
t && s && (t.removeEventListener(e, o, r), s = !1);
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { useRef as u, useCallback as n } from "react";
|
|
2
2
|
function s(t) {
|
|
3
3
|
const r = u(!1);
|
|
4
|
-
return n(
|
|
5
|
-
|
|
6
|
-
r.current
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
return n(
|
|
5
|
+
async (...c) => {
|
|
6
|
+
if (!r.current) {
|
|
7
|
+
r.current = !0;
|
|
8
|
+
try {
|
|
9
|
+
const e = await t(...c);
|
|
10
|
+
return r.current = !1, e;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw r.current = !1, e;
|
|
13
|
+
}
|
|
12
14
|
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
+
},
|
|
16
|
+
[t]
|
|
17
|
+
);
|
|
15
18
|
}
|
|
16
19
|
export {
|
|
17
20
|
s as default
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
function
|
|
3
|
-
if (!
|
|
4
|
-
return
|
|
2
|
+
function c(t, n) {
|
|
3
|
+
if (!t)
|
|
4
|
+
return n;
|
|
5
5
|
let e;
|
|
6
|
-
return typeof
|
|
6
|
+
return typeof t == "function" ? e = t() : "current" in t ? e = t.current : e = t, e;
|
|
7
7
|
}
|
|
8
8
|
const l = typeof window < "u", o = /scroll|auto/i, f = l ? window : void 0;
|
|
9
|
-
function u(
|
|
10
|
-
return
|
|
9
|
+
function u(t) {
|
|
10
|
+
return t.tagName !== "HTML" && t.tagName !== "BODY" && t.nodeType === 1;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
let e =
|
|
15
|
-
for (; e && e !==
|
|
12
|
+
function d(t, n = f) {
|
|
13
|
+
n === void 0 && (n = window);
|
|
14
|
+
let e = t;
|
|
15
|
+
for (; e && e !== n && u(e); ) {
|
|
16
16
|
const { overflowY: i } = window.getComputedStyle(e);
|
|
17
17
|
if (o.test(i)) {
|
|
18
18
|
if (e.tagName !== "BODY")
|
|
19
19
|
return e;
|
|
20
|
-
const r = window.getComputedStyle(
|
|
20
|
+
const r = window.getComputedStyle(
|
|
21
|
+
e.parentNode
|
|
22
|
+
).overflowY;
|
|
21
23
|
if (o.test(r))
|
|
22
24
|
return e;
|
|
23
25
|
}
|
|
24
26
|
e = e.parentNode;
|
|
25
27
|
}
|
|
26
|
-
return
|
|
28
|
+
return n;
|
|
27
29
|
}
|
|
28
30
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
d as getScrollParent,
|
|
32
|
+
c as getTargetElement,
|
|
31
33
|
l as inBrowser
|
|
32
34
|
};
|
package/dist/hooks/useEvent.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
2
|
function c(r) {
|
|
3
3
|
const e = n.useRef();
|
|
4
|
-
return e.current = r, n.useCallback(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
return e.current = r, n.useCallback(
|
|
5
|
+
(...o) => {
|
|
6
|
+
var t;
|
|
7
|
+
return (t = e.current) == null ? void 0 : t.call(e, ...o);
|
|
8
|
+
},
|
|
9
|
+
[]
|
|
10
|
+
);
|
|
8
11
|
}
|
|
9
12
|
export {
|
|
10
13
|
c as default
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import p from "../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useUpdateLayoutEffect/index.mjs";
|
|
2
2
|
import l from "./useEvent.mjs";
|
|
3
|
-
import
|
|
4
|
-
function s(
|
|
5
|
-
return
|
|
3
|
+
import g from "./useState.mjs";
|
|
4
|
+
function s(t) {
|
|
5
|
+
return t !== void 0;
|
|
6
6
|
}
|
|
7
|
-
function S(
|
|
8
|
-
const { defaultValue:
|
|
7
|
+
function S(t, m) {
|
|
8
|
+
const { defaultValue: n, value: e, onChange: v, postState: a } = m || {}, [u, f] = g(() => s(e) ? e : s(n) ? typeof n == "function" ? n() : n : typeof t == "function" ? t() : t), o = e !== void 0 ? e : u, d = a ? a(o) : o, V = l(v), [i, h] = g([o]);
|
|
9
9
|
p(() => {
|
|
10
|
-
const
|
|
11
|
-
u !==
|
|
10
|
+
const r = i[0];
|
|
11
|
+
u !== r && V(u, r);
|
|
12
12
|
}, [i]), p(() => {
|
|
13
|
-
s(e) ||
|
|
13
|
+
s(e) || f(e);
|
|
14
14
|
}, [e]);
|
|
15
|
-
const C = l((
|
|
16
|
-
|
|
15
|
+
const C = l((r, c) => {
|
|
16
|
+
f(r, c), h([o], c);
|
|
17
17
|
});
|
|
18
|
-
return [
|
|
18
|
+
return [d, C];
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
21
|
S as default
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __spreadArray as f, __read as m } from "../../../../../tslib@2.6.2/node_modules/tslib/tslib.es6.mjs";
|
|
2
|
+
import "../utils/lodash-polyfill.mjs";
|
|
3
|
+
import { useMemo as i } from "react";
|
|
4
|
+
import s from "../useLatest/index.mjs";
|
|
5
|
+
import l from "../useUnmount/index.mjs";
|
|
6
|
+
import { isFunction as p } from "../utils/index.mjs";
|
|
7
|
+
import d from "../utils/isDev.mjs";
|
|
8
|
+
import v from "../../../../../lodash@4.17.21/node_modules/lodash/debounce.mjs";
|
|
9
|
+
function _(n, r) {
|
|
10
|
+
var t;
|
|
11
|
+
d && (p(n) || console.error("useDebounceFn expected parameter is a function, got ".concat(typeof n)));
|
|
12
|
+
var u = s(n), c = (t = r == null ? void 0 : r.wait) !== null && t !== void 0 ? t : 1e3, e = i(function() {
|
|
13
|
+
return v(function() {
|
|
14
|
+
for (var a = [], o = 0; o < arguments.length; o++)
|
|
15
|
+
a[o] = arguments[o];
|
|
16
|
+
return u.current.apply(u, f([], m(a), !1));
|
|
17
|
+
}, c, r);
|
|
18
|
+
}, []);
|
|
19
|
+
return l(function() {
|
|
20
|
+
e.cancel();
|
|
21
|
+
}), {
|
|
22
|
+
run: e,
|
|
23
|
+
cancel: e.cancel,
|
|
24
|
+
flush: e.flush
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
_ as default
|
|
29
|
+
};
|
package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/lodash-polyfill.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../../../../lodash@4.17.21/node_modules/lodash/_root.mjs";
|
|
2
|
+
import "../../../../../lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs";
|
|
3
|
+
function o() {
|
|
4
|
+
var e = (typeof global > "u" ? "undefined" : typeof global) == "object" && global && global.Object === Object && global, l = typeof self == "object" && self && self.Object === Object && self;
|
|
5
|
+
return e || l;
|
|
6
|
+
}
|
|
7
|
+
o() || (global.Date = Date);
|