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