bitz-react-admin-ui 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- package/dist/assets/iconfont/index.mjs +29 -29
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +9 -18
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFluentInput/index.mjs +23 -4
- package/dist/components/BitzFluentSelect/index.mjs +24 -5
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +29 -6
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +62 -14
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +33 -5
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +90 -16
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +32 -14
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +68 -45
- package/dist/components/BitzTable/Table/index.mjs +305 -145
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +82 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +95 -21
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +246 -138
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +142 -85
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +29 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +52 -9
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +21 -11
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as o } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import c, { memo as B, useMemo as
|
|
2
|
+
import c, { memo as B, useMemo as D } from "react";
|
|
3
3
|
import { Col as w, Row as H, Form as U, Space as q, Button as x } from "antd";
|
|
4
4
|
import J from "../../hooks/useMergedState.mjs";
|
|
5
5
|
import L from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
@@ -31,54 +31,72 @@ const O = (s, i, f) => s == null ? void 0 : s.flatMap((n) => {
|
|
|
31
31
|
onChange: s.onCollapse
|
|
32
32
|
}
|
|
33
33
|
), { split: n, items: S, spanSize: p, showLength: d, searchGutter: N, showHiddenNum: j, form: u, baseClassName: E, onReset: g, onFinish: P } = s;
|
|
34
|
-
let h = 0, F = 0, $ = !1, y = 0,
|
|
34
|
+
let h = 0, F = 0, $ = !1, y = 0, a = 0;
|
|
35
35
|
const V = O(S, s.ignoreRules, u).map((e, r) => {
|
|
36
|
-
var m, C,
|
|
37
|
-
const l = c.isValidElement(e) ? ((m = e == null ? void 0 : e.props) == null ? void 0 : m.colSize) ?? 1 : 1,
|
|
38
|
-
h +=
|
|
39
|
-
const z = ((
|
|
36
|
+
var m, C, M, I;
|
|
37
|
+
const l = c.isValidElement(e) ? ((m = e == null ? void 0 : e.props) == null ? void 0 : m.colSize) ?? 1 : 1, t = Math.min(p.span * (l || 1), 24);
|
|
38
|
+
h += t, y += l, r === 0 && ($ = t === 24 && !((C = e == null ? void 0 : e.props) != null && C.hidden));
|
|
39
|
+
const z = ((M = e == null ? void 0 : e.props) == null ? void 0 : M.hidden) || // 如果收起了
|
|
40
40
|
i && ($ || // 如果 超过显示长度 且 总长度超过了 24
|
|
41
41
|
y > d - 1) && !!r && h >= 24;
|
|
42
42
|
F += 1;
|
|
43
|
-
const b = c.isValidElement(e) && (e.key || `${(
|
|
43
|
+
const b = c.isValidElement(e) && (e.key || `${(I = e.props) == null ? void 0 : I.name}`) || r;
|
|
44
44
|
return c.isValidElement(e) && z ? s.preserve ? {
|
|
45
45
|
itemDom: c.cloneElement(e, {
|
|
46
46
|
hidden: !0,
|
|
47
47
|
key: b || r
|
|
48
48
|
}),
|
|
49
49
|
hidden: !0,
|
|
50
|
-
colSpan:
|
|
50
|
+
colSpan: t
|
|
51
51
|
} : {
|
|
52
52
|
itemDom: null,
|
|
53
53
|
colSpan: 0,
|
|
54
54
|
hidden: !0
|
|
55
55
|
} : {
|
|
56
56
|
itemDom: e,
|
|
57
|
-
colSpan:
|
|
57
|
+
colSpan: t,
|
|
58
58
|
hidden: !1
|
|
59
59
|
};
|
|
60
60
|
}), G = V.map((e, r) => {
|
|
61
61
|
var m, C;
|
|
62
|
-
const { itemDom: l, colSpan:
|
|
62
|
+
const { itemDom: l, colSpan: t } = e;
|
|
63
63
|
if ((m = l == null ? void 0 : l.props) == null ? void 0 : m.hidden)
|
|
64
64
|
return l;
|
|
65
65
|
const b = c.isValidElement(l) && (l.key || `${(C = l.props) == null ? void 0 : C.name}`) || r;
|
|
66
|
-
return 24 -
|
|
66
|
+
return 24 - a % 24 < t && (h += 24 - a % 24, a += 24 - a % 24), a += t, n && a % 24 === 0 && r < F - 1 ? /* @__PURE__ */ o.jsx(w, { span: t, className: `${s.baseClassName}-row-split-line ${s.baseClassName}-row-split`.trim(), children: l }, b) : /* @__PURE__ */ o.jsx(w, { className: `${s.baseClassName}-row-split`.trim(), span: t, children: l }, b);
|
|
67
67
|
});
|
|
68
68
|
j && V.filter((e) => e.hidden).length;
|
|
69
|
-
const K =
|
|
69
|
+
const K = D(() => !(h < 24 || y <= d), [y, d, h]), Q = D(() => {
|
|
70
70
|
var r, l;
|
|
71
|
-
const e =
|
|
71
|
+
const e = a % 24 + (((r = s.submitterColSpanProps) == null ? void 0 : r.span) ?? p.span);
|
|
72
72
|
return e > 24 ? 24 - (((l = s.submitterColSpanProps) == null ? void 0 : l.span) ?? p.span) : 24 - e;
|
|
73
|
-
}, [
|
|
73
|
+
}, [a, a % 24 + (((k = s.submitterColSpanProps) == null ? void 0 : k.span) ?? p.span), (R = s.submitterColSpanProps) == null ? void 0 : R.span]), _ = () => {
|
|
74
74
|
u.resetFields(), g == null || g();
|
|
75
75
|
}, A = () => {
|
|
76
76
|
const e = u.getFieldsValue();
|
|
77
77
|
P == null || P(e);
|
|
78
78
|
};
|
|
79
|
-
return o.jsxs(H, { gutter: N, justify: "start", className: L(`${E}-row`), children: [
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
return /* @__PURE__ */ o.jsxs(H, { gutter: N, justify: "start", className: L(`${E}-row`), children: [
|
|
80
|
+
G,
|
|
81
|
+
/* @__PURE__ */ o.jsx(
|
|
82
|
+
w,
|
|
83
|
+
{
|
|
84
|
+
span: p.span,
|
|
85
|
+
offset: Q,
|
|
86
|
+
className: L((v = s.submitterColSpanProps) == null ? void 0 : v.className),
|
|
87
|
+
...s.submitterColSpanProps,
|
|
88
|
+
style: {
|
|
89
|
+
textAlign: "end"
|
|
90
|
+
},
|
|
91
|
+
children: /* @__PURE__ */ o.jsx(U.Item, { label: " ", colon: !1, shouldUpdate: !1, className: `${E}-actions`.trim(), children: /* @__PURE__ */ o.jsxs(q, { children: [
|
|
92
|
+
/* @__PURE__ */ o.jsx(x, { onClick: A, type: "primary", children: "搜索" }),
|
|
93
|
+
/* @__PURE__ */ o.jsx(x, { onClick: _, children: "重置" }),
|
|
94
|
+
K ? /* @__PURE__ */ o.jsx(x, { type: "text", onClick: () => f(!i), children: i ? "展开" : "收起" }) : null
|
|
95
|
+
] }) })
|
|
96
|
+
},
|
|
97
|
+
"submitter"
|
|
98
|
+
)
|
|
99
|
+
] }, "resize-observer-row");
|
|
82
100
|
}, se = B(T);
|
|
83
101
|
export {
|
|
84
102
|
se as default
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { j as r } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { create as h, useModal as y, antdDrawerV5 as
|
|
3
|
-
import {
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import
|
|
2
|
+
import { create as h, useModal as y, antdDrawerV5 as x } from "@ebay/nice-modal-react";
|
|
3
|
+
import { Form as F, Button as a, Divider as f } from "antd";
|
|
4
|
+
import { useMemo as j } from "react";
|
|
5
|
+
import w from "../BitzFloatLayout/index.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
|
-
const
|
|
8
|
-
const { preserve:
|
|
9
|
-
o.resetFields(), t == null || t(),
|
|
10
|
-
},
|
|
7
|
+
const D = (n) => {
|
|
8
|
+
const { preserve: c, form: o, items: e, onReset: t, onFinish: l } = n, s = y(), m = () => {
|
|
9
|
+
o.resetFields(), t == null || t(), s.hide();
|
|
10
|
+
}, d = () => {
|
|
11
11
|
const i = o.getFieldsValue();
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
l == null || l(i), s.hide();
|
|
13
|
+
}, u = /* @__PURE__ */ r.jsxs("div", { className: "QueryFilterDrawerFooter", children: [
|
|
14
|
+
/* @__PURE__ */ r.jsx(a, { onClick: m, block: !0, size: "large", children: "重置" }),
|
|
15
|
+
/* @__PURE__ */ r.jsx(f, { type: "vertical" }),
|
|
16
|
+
/* @__PURE__ */ r.jsx(a, { onClick: d, block: !0, size: "large", type: "primary", children: "搜索" })
|
|
17
|
+
] }), p = j(() => (e == null ? void 0 : e.length) > 2 ? e.slice(1) : null, [e]);
|
|
18
|
+
return /* @__PURE__ */ r.jsx(w, { ...x(s), title: "高级筛选", children: /* @__PURE__ */ r.jsxs("div", { className: "QueryFilterDrawerBody", children: [
|
|
19
|
+
/* @__PURE__ */ r.jsx(F, { className: "QueryFilterDrawerForm", onReset: t, preserve: c, form: o, layout: "horizontal", children: p }),
|
|
20
|
+
u
|
|
21
|
+
] }) });
|
|
22
|
+
}, B = h(D);
|
|
16
23
|
export {
|
|
17
|
-
|
|
24
|
+
B as default
|
|
18
25
|
};
|
|
@@ -20,7 +20,10 @@ const b = (r) => {
|
|
|
20
20
|
...r
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
return e.jsxs("div", { className: "QueryFilterMobile", children: [
|
|
23
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "QueryFilterMobile", children: [
|
|
24
|
+
/* @__PURE__ */ e.jsx("div", { className: "search", children: m }),
|
|
25
|
+
/* @__PURE__ */ e.jsx("div", { className: "more", children: /* @__PURE__ */ e.jsx(c, { onClick: n, icon: /* @__PURE__ */ e.jsx(a, { name: "more" }) }) })
|
|
26
|
+
] });
|
|
24
27
|
};
|
|
25
28
|
export {
|
|
26
29
|
b as default
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useMemo as
|
|
1
|
+
import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useMemo as d } from "react";
|
|
3
3
|
import A from "../../node_modules/.store/rc-resize-observer@1.4.0/node_modules/rc-resize-observer/es/index.mjs";
|
|
4
|
-
import { Form as x, Row as M, Col as
|
|
4
|
+
import { Form as x, Row as M, Col as j } from "antd";
|
|
5
5
|
import O from "./QueryFilterContent.mjs";
|
|
6
6
|
import P from "../../hooks/useMergedState.mjs";
|
|
7
7
|
import B from "./QueryFilterMobile.mjs";
|
|
8
8
|
import E from "../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs";
|
|
9
|
-
const
|
|
9
|
+
const Q = {
|
|
10
10
|
xs: 513,
|
|
11
11
|
sm: 513,
|
|
12
12
|
md: 785,
|
|
13
13
|
lg: 992,
|
|
14
14
|
xl: 1057,
|
|
15
15
|
xxl: 1 / 0
|
|
16
|
-
},
|
|
16
|
+
}, z = {
|
|
17
17
|
vertical: [
|
|
18
18
|
// [breakpoint, cols, layout]
|
|
19
19
|
[513, 1, "vertical"],
|
|
@@ -28,39 +28,88 @@ const G = {
|
|
|
28
28
|
[1352, 3, "horizontal"],
|
|
29
29
|
[1 / 0, 4, "horizontal"]
|
|
30
30
|
]
|
|
31
|
-
},
|
|
31
|
+
}, G = (n, m, r) => {
|
|
32
32
|
if (r && typeof r == "number")
|
|
33
33
|
return {
|
|
34
34
|
span: r,
|
|
35
|
-
layout:
|
|
35
|
+
layout: n
|
|
36
36
|
};
|
|
37
|
-
const
|
|
37
|
+
const s = ((r ? ["xs", "sm", "md", "lg", "xl", "xxl"].map((t) => [Q[t], 24 / r[t], "horizontal"]) : z[n || "default"]) || z.default).find(
|
|
38
|
+
(t) => m < t[0] + 16
|
|
39
|
+
// 16 = 2 * (ant-row -8px margin)
|
|
40
|
+
);
|
|
38
41
|
return {
|
|
39
|
-
span: 24 /
|
|
40
|
-
layout:
|
|
42
|
+
span: 24 / s[1],
|
|
43
|
+
layout: s[2]
|
|
41
44
|
};
|
|
42
45
|
};
|
|
43
|
-
var
|
|
44
|
-
const
|
|
45
|
-
const {
|
|
46
|
-
|
|
46
|
+
var g;
|
|
47
|
+
const K = (g = document == null ? void 0 : document.body) == null ? void 0 : g.clientWidth, J = (n) => {
|
|
48
|
+
const {
|
|
49
|
+
collapsed: m,
|
|
50
|
+
onCollapse: r,
|
|
51
|
+
defaultCollapsed: y = !0,
|
|
52
|
+
searchGutter: s = 24,
|
|
53
|
+
children: t,
|
|
54
|
+
style: o,
|
|
55
|
+
layout: v,
|
|
56
|
+
span: C,
|
|
57
|
+
defaultColsNumber: u,
|
|
58
|
+
labelWidth: l = "80",
|
|
59
|
+
showHiddenNum: R = !1,
|
|
60
|
+
ignoreRules: F,
|
|
61
|
+
split: I,
|
|
62
|
+
preserve: c = !0,
|
|
63
|
+
onReset: f,
|
|
64
|
+
onFinish: b
|
|
65
|
+
} = n, [a] = x.useForm(), [p, N] = P(() => typeof (o == null ? void 0 : o.width) == "number" ? o == null ? void 0 : o.width : K), i = d(() => G(v, p + 16, C), [v, p, C]), S = d(() => u !== void 0 ? u - 1 : Math.max(1, 24 / i.span - 1), [u, i.span]), W = d(() => {
|
|
66
|
+
if (l && i.layout !== "vertical" && l !== "auto")
|
|
47
67
|
return {
|
|
48
68
|
labelCol: {
|
|
49
|
-
flex: `0 0 ${
|
|
69
|
+
flex: `0 0 ${l}px`
|
|
50
70
|
},
|
|
51
71
|
wrapperCol: {
|
|
52
72
|
style: {
|
|
53
|
-
maxWidth: `calc(100% - ${
|
|
73
|
+
maxWidth: `calc(100% - ${l}px)`
|
|
54
74
|
}
|
|
55
75
|
},
|
|
56
76
|
style: {
|
|
57
77
|
flexWrap: "nowrap"
|
|
58
78
|
}
|
|
59
79
|
};
|
|
60
|
-
}, [i.layout,
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
|
|
80
|
+
}, [i.layout, l]), w = d(() => E(t) ? t : [t], [t]);
|
|
81
|
+
return /* @__PURE__ */ e.jsx(
|
|
82
|
+
A,
|
|
83
|
+
{
|
|
84
|
+
onResize: (h) => {
|
|
85
|
+
p !== h.width && h.width > 17 && N(h.width);
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ e.jsxs(M, { children: [
|
|
88
|
+
/* @__PURE__ */ e.jsx(j, { md: 24, sm: 0, xs: 0, children: /* @__PURE__ */ e.jsx(x, { preserve: c, form: a, layout: i.layout, ...W, children: /* @__PURE__ */ e.jsx(
|
|
89
|
+
O,
|
|
90
|
+
{
|
|
91
|
+
onFinish: b,
|
|
92
|
+
defaultCollapsed: y,
|
|
93
|
+
collapsed: m,
|
|
94
|
+
onCollapse: r,
|
|
95
|
+
searchGutter: s,
|
|
96
|
+
spanSize: i,
|
|
97
|
+
items: w,
|
|
98
|
+
split: I,
|
|
99
|
+
ignoreRules: F,
|
|
100
|
+
showLength: S,
|
|
101
|
+
showHiddenNum: R,
|
|
102
|
+
form: a,
|
|
103
|
+
baseClassName: "bitz",
|
|
104
|
+
preserve: c,
|
|
105
|
+
onReset: f
|
|
106
|
+
}
|
|
107
|
+
) }) }),
|
|
108
|
+
/* @__PURE__ */ e.jsx(j, { md: 0, sm: 24, xs: 24, children: /* @__PURE__ */ e.jsx(x, { onReset: f, preserve: c, form: a, layout: "vertical", children: /* @__PURE__ */ e.jsx(B, { onFinish: b, form: a, items: w, onReset: f }) }) })
|
|
109
|
+
] })
|
|
110
|
+
},
|
|
111
|
+
"resize-observer"
|
|
112
|
+
);
|
|
64
113
|
};
|
|
65
114
|
export {
|
|
66
115
|
J as default
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import "./index.less.mjs";
|
|
3
|
-
const t = ({ showRefresh: a = !1, color: e = "#444791" }) => s.jsx(s.Fragment, { children: a && s.jsx("div", { className: "bitzRefreshBlock", children: s.jsxs("div", { className: "loadingBox", children: [
|
|
3
|
+
const t = ({ showRefresh: a = !1, color: e = "#444791" }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: a && /* @__PURE__ */ s.jsx("div", { className: "bitzRefreshBlock", children: /* @__PURE__ */ s.jsxs("div", { className: "loadingBox", children: [
|
|
4
|
+
/* @__PURE__ */ s.jsx("span", { style: { background: e } }),
|
|
5
|
+
/* @__PURE__ */ s.jsx("span", { style: { background: e } }),
|
|
6
|
+
/* @__PURE__ */ s.jsx("span", { style: { background: e } })
|
|
7
|
+
] }) }) });
|
|
4
8
|
export {
|
|
5
9
|
t as default
|
|
6
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Input as
|
|
3
|
-
import
|
|
4
|
-
const { TextArea: m } =
|
|
2
|
+
import { Input as s } from "antd";
|
|
3
|
+
import e from "./index.module.less.mjs";
|
|
4
|
+
const { TextArea: m } = s, p = ({ maxLength: r = 50, ...o }) => /* @__PURE__ */ t.jsx("div", { className: e.bitzRemakBlock, children: /* @__PURE__ */ t.jsx(m, { showCount: !0, maxLength: r, ...o }) });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -6,36 +6,30 @@ import l from "../../node_modules/.store/@fullcalendar_list@6.1.11/node_modules/
|
|
|
6
6
|
import a from "../../node_modules/.store/@fullcalendar_timegrid@6.1.11/node_modules/@fullcalendar/timegrid/index.mjs";
|
|
7
7
|
import m from "../../node_modules/.store/@fullcalendar_core@6.1.11/node_modules/@fullcalendar/core/locales/zh-cn.mjs";
|
|
8
8
|
import "./index.less.mjs";
|
|
9
|
-
const x = (t) => e.jsx("div", { className: "bitzScheduleCenterBlock", children: e.jsx(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// eventChange={handleEventChange} // 在以某种方式修改事件后调用。-. -估计用不到
|
|
34
|
-
// dateClick={handleDateClick}
|
|
35
|
-
// events={events}
|
|
36
|
-
plugins: [r, o, a, l],
|
|
37
|
-
...t
|
|
38
|
-
}) });
|
|
9
|
+
const x = (t) => /* @__PURE__ */ e.jsx("div", { className: "bitzScheduleCenterBlock", children: /* @__PURE__ */ e.jsx(
|
|
10
|
+
i,
|
|
11
|
+
{
|
|
12
|
+
weekends: !0,
|
|
13
|
+
navLinks: !0,
|
|
14
|
+
headerToolbar: {
|
|
15
|
+
left: "prev,next today",
|
|
16
|
+
center: "title",
|
|
17
|
+
right: "dayGridMonth,timeGridWeek,timeGridDay,listWeek"
|
|
18
|
+
},
|
|
19
|
+
initialView: "dayGridMonth",
|
|
20
|
+
slotLabelFormat: {
|
|
21
|
+
hour: "2-digit",
|
|
22
|
+
minute: "2-digit",
|
|
23
|
+
meridiem: !1,
|
|
24
|
+
hour12: !1
|
|
25
|
+
},
|
|
26
|
+
slotEventOverlap: !1,
|
|
27
|
+
locales: [m],
|
|
28
|
+
locale: "zh-cn",
|
|
29
|
+
plugins: [r, o, a, l],
|
|
30
|
+
...t
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
39
33
|
export {
|
|
40
34
|
x as default
|
|
41
35
|
};
|
|
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { Input as a } from "antd";
|
|
3
3
|
const { Search: n } = a, i = ({ enterButton: t = "搜索", onSearch: r, ...o }) => {
|
|
4
4
|
const s = { ...o, onSearch: r, enterButton: t };
|
|
5
|
-
return e.jsx(n, { ...s, allowClear: !0 });
|
|
5
|
+
return /* @__PURE__ */ e.jsx(n, { ...s, allowClear: !0 });
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
i as default
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { j as a } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useState as w, useRef as P, useEffect as D } from "react";
|
|
3
3
|
import { BitzPickDrawer as U } from "../../BitzDrawer/index.mjs";
|
|
4
|
-
import { Tag as z, Input as
|
|
5
|
-
import
|
|
4
|
+
import { Tag as z, Input as W, Space as q } from "antd";
|
|
5
|
+
import $ from "../../../node_modules/.store/@better-scroll_core@2.5.1/node_modules/@better-scroll/core/dist/core.esm.mjs";
|
|
6
6
|
import A from "../../../node_modules/.store/@better-scroll_wheel@2.5.1/node_modules/@better-scroll/wheel/dist/wheel.esm.mjs";
|
|
7
7
|
import n from "./index.module.less.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 y from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs";
|
|
10
|
-
|
|
11
|
-
const { Search: G } =
|
|
12
|
-
var C,
|
|
10
|
+
$.use(A);
|
|
11
|
+
const { Search: G } = W, te = ({ ...e }) => {
|
|
12
|
+
var C, g, k;
|
|
13
13
|
const u = e.mode === "multiple" || e.mode === "tags";
|
|
14
14
|
let b = [];
|
|
15
15
|
if (e != null && e.options && ((C = e == null ? void 0 : e.options) != null && C.length) && (e != null && e.fieldNames)) {
|
|
16
|
-
const l = (
|
|
16
|
+
const l = (g = e == null ? void 0 : e.fieldNames) == null ? void 0 : g.label, t = (k = e == null ? void 0 : e.fieldNames) == null ? void 0 : k.value;
|
|
17
17
|
(e == null ? void 0 : e.options).map((s) => {
|
|
18
18
|
const c = {};
|
|
19
19
|
c.label = s[l], c.value = s[t], b.push(c);
|
|
20
20
|
});
|
|
21
21
|
} else
|
|
22
22
|
b = (e == null ? void 0 : e.options) || [];
|
|
23
|
-
const i = b,
|
|
23
|
+
const i = b, B = (l, t) => ((t == null ? void 0 : t.label) ?? "").toLowerCase().includes(l.toLowerCase()), m = e.value ?? e.defaultValue, S = e.filterOption || B, [N, E] = w(() => {
|
|
24
24
|
const l = i == null ? void 0 : i.findIndex((t) => t.value === m);
|
|
25
25
|
return l === -1 ? 0 : l;
|
|
26
|
-
}), [
|
|
26
|
+
}), [d, h] = T(() => {
|
|
27
27
|
var l;
|
|
28
28
|
return u ? m : ((l = i == null ? void 0 : i.find((t) => t.value === m)) == null ? void 0 : l.value) || "";
|
|
29
|
-
}), I = P(null), [j, x] = w(!1), [
|
|
29
|
+
}), I = P(null), [j, x] = w(!1), [L, O] = w(""), [f, v] = T([]), V = () => {
|
|
30
30
|
x(!1);
|
|
31
|
-
},
|
|
31
|
+
}, M = () => {
|
|
32
32
|
const l = e.onChange;
|
|
33
33
|
if (u)
|
|
34
34
|
h(f.map((t) => t.value)), l == null || l(f.map((t) => t.value));
|
|
@@ -41,7 +41,7 @@ const { Search: G } = E, te = ({ ...e }) => {
|
|
|
41
41
|
D(() => {
|
|
42
42
|
if (I.current)
|
|
43
43
|
if (j) {
|
|
44
|
-
let l = new
|
|
44
|
+
let l = new $("." + n.wheel, {
|
|
45
45
|
click: !0,
|
|
46
46
|
probeType: 3,
|
|
47
47
|
preventDefaultException: {
|
|
@@ -56,9 +56,9 @@ const { Search: G } = E, te = ({ ...e }) => {
|
|
|
56
56
|
useTransition: !1
|
|
57
57
|
});
|
|
58
58
|
if (l.on("scrollEnd", () => {
|
|
59
|
-
|
|
59
|
+
E(l.getSelectedIndex());
|
|
60
60
|
}), u) {
|
|
61
|
-
const t = i.filter((
|
|
61
|
+
const t = i.filter((r) => d == null ? void 0 : d.find((s) => s === r.value));
|
|
62
62
|
v(t);
|
|
63
63
|
}
|
|
64
64
|
} else
|
|
@@ -68,48 +68,123 @@ const { Search: G } = E, te = ({ ...e }) => {
|
|
|
68
68
|
}, [j]), D(() => {
|
|
69
69
|
h(m);
|
|
70
70
|
}, [m]);
|
|
71
|
-
function M() {
|
|
72
|
-
return u ? a.jsxs("div", { className: n.textarea, onClick: () => x(!0), children: [a.jsx("div", { children: r == null ? void 0 : r.map((l, t) => {
|
|
73
|
-
var d;
|
|
74
|
-
return a.jsx(z, { bordered: !1, closable: !0, onClose: (s) => {
|
|
75
|
-
s.preventDefault();
|
|
76
|
-
const c = r.findIndex((o) => o === l);
|
|
77
|
-
h((o) => {
|
|
78
|
-
o.splice(c, 1);
|
|
79
|
-
});
|
|
80
|
-
}, children: (d = i.find((s) => l === s.value)) == null ? void 0 : d.label }, t);
|
|
81
|
-
}) }), a.jsx(y, { style: { color: "#d9d9d9" } })] }) : a.jsx(E, { placeholder: e.placeholder, onClick: () => x(!0), value: r, suffix: a.jsx(y, { style: { color: "#d9d9d9" } }) });
|
|
82
|
-
}
|
|
83
71
|
function R() {
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return
|
|
72
|
+
return u ? /* @__PURE__ */ a.jsxs("div", { className: n.textarea, onClick: () => x(!0), children: [
|
|
73
|
+
/* @__PURE__ */ a.jsx("div", { children: d == null ? void 0 : d.map((l, t) => {
|
|
74
|
+
var r;
|
|
75
|
+
return /* @__PURE__ */ a.jsx(
|
|
76
|
+
z,
|
|
77
|
+
{
|
|
78
|
+
bordered: !1,
|
|
79
|
+
closable: !0,
|
|
80
|
+
onClose: (s) => {
|
|
81
|
+
s.preventDefault();
|
|
82
|
+
const c = d.findIndex((o) => o === l);
|
|
83
|
+
h((o) => {
|
|
84
|
+
o.splice(c, 1);
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
children: (r = i.find((s) => l === s.value)) == null ? void 0 : r.label
|
|
88
|
+
},
|
|
89
|
+
t
|
|
90
|
+
);
|
|
91
|
+
}) }),
|
|
92
|
+
/* @__PURE__ */ a.jsx(y, { style: { color: "#d9d9d9" } })
|
|
93
|
+
] }) : /* @__PURE__ */ a.jsx(
|
|
94
|
+
W,
|
|
95
|
+
{
|
|
96
|
+
placeholder: e.placeholder,
|
|
97
|
+
onClick: () => x(!0),
|
|
98
|
+
value: d,
|
|
99
|
+
suffix: /* @__PURE__ */ a.jsx(y, { style: { color: "#d9d9d9" } })
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function F() {
|
|
104
|
+
return e.showSearch ? /* @__PURE__ */ a.jsx("div", { className: n["search-input"], children: /* @__PURE__ */ a.jsx(
|
|
105
|
+
G,
|
|
106
|
+
{
|
|
107
|
+
onKeyUp: (l) => {
|
|
108
|
+
if (e.onSearch) {
|
|
109
|
+
e.onSearch(l.currentTarget.value);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
O(l.currentTarget.value);
|
|
113
|
+
}
|
|
88
114
|
}
|
|
89
|
-
|
|
90
|
-
} }) }) : null;
|
|
115
|
+
) }) : null;
|
|
91
116
|
}
|
|
92
117
|
function H() {
|
|
93
|
-
return u ? a.jsxs(a.Fragment, { children: [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
118
|
+
return u ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
119
|
+
/* @__PURE__ */ a.jsx("div", { className: n["select-label"], children: "已选择:" }),
|
|
120
|
+
/* @__PURE__ */ a.jsx(q, { size: [0, "small"], wrap: !0, className: n["tag-list"], children: f.map((l, t) => /* @__PURE__ */ a.jsx(
|
|
121
|
+
z,
|
|
122
|
+
{
|
|
123
|
+
bordered: !1,
|
|
124
|
+
closable: !0,
|
|
125
|
+
onClose: (r) => {
|
|
126
|
+
r.preventDefault();
|
|
127
|
+
const s = f.findIndex((c) => l.value === c.value);
|
|
128
|
+
v((c) => {
|
|
129
|
+
c.splice(s, 1);
|
|
130
|
+
});
|
|
131
|
+
},
|
|
132
|
+
children: l.label
|
|
133
|
+
},
|
|
134
|
+
t
|
|
135
|
+
)) })
|
|
136
|
+
] }) : null;
|
|
100
137
|
}
|
|
101
138
|
function K() {
|
|
102
|
-
return (S ? i.filter((t) => S(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
139
|
+
return (S ? i.filter((t) => S(L, t)) : i).map((t, r) => /* @__PURE__ */ a.jsx(
|
|
140
|
+
"li",
|
|
141
|
+
{
|
|
142
|
+
className: n["wheel-item"],
|
|
143
|
+
onClick: () => {
|
|
144
|
+
u && v((s) => {
|
|
145
|
+
if (f.find((c) => c.value === t.value)) {
|
|
146
|
+
const c = f.findIndex((o) => t.value === o.value);
|
|
147
|
+
s.splice(c, 1);
|
|
148
|
+
} else
|
|
149
|
+
s.push(t);
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
children: t.label
|
|
153
|
+
},
|
|
154
|
+
r
|
|
155
|
+
));
|
|
111
156
|
}
|
|
112
|
-
return a.jsxs("div", { className: `bitzSelectMobileBlock ${e.className}`, children: [
|
|
157
|
+
return /* @__PURE__ */ a.jsxs("div", { className: `bitzSelectMobileBlock ${e.className}`, children: [
|
|
158
|
+
R(),
|
|
159
|
+
/* @__PURE__ */ a.jsx(
|
|
160
|
+
U,
|
|
161
|
+
{
|
|
162
|
+
open: j,
|
|
163
|
+
handleCancel: V,
|
|
164
|
+
handleOk: M,
|
|
165
|
+
height: e.drawerHeight || 273,
|
|
166
|
+
children: /* @__PURE__ */ a.jsxs("div", { ref: I, className: n.bitzSelectWrapper, children: [
|
|
167
|
+
F(),
|
|
168
|
+
H(),
|
|
169
|
+
/* @__PURE__ */ a.jsxs("div", { className: n["picker-content"], children: [
|
|
170
|
+
/* @__PURE__ */ a.jsx(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
className: `${n["mask-top"]} ${n["border-bottom-1px"]}`
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ a.jsx(
|
|
177
|
+
"div",
|
|
178
|
+
{
|
|
179
|
+
className: `${n["mask-bottom"]} ${n["border-top-1px"]}`
|
|
180
|
+
}
|
|
181
|
+
),
|
|
182
|
+
/* @__PURE__ */ a.jsx("div", { className: n["wheel-wrapper"], children: /* @__PURE__ */ a.jsx("div", { className: n.wheel, children: /* @__PURE__ */ a.jsx("ul", { className: n["wheel-scroll"], children: K() }) }) })
|
|
183
|
+
] })
|
|
184
|
+
] })
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
] });
|
|
113
188
|
};
|
|
114
189
|
export {
|
|
115
190
|
te as default
|
|
@@ -4,7 +4,7 @@ import { isMobile as m } from "../../node_modules/.store/react-device-detect@2.2
|
|
|
4
4
|
import p from "./component/BitzSelectMobile.mjs";
|
|
5
5
|
const x = ({ placeholder: r = "请选择", options: e = [], ...i }) => {
|
|
6
6
|
const t = { placeholder: r, options: e, ...i };
|
|
7
|
-
return m ? o.jsx(p, { ...t }) : o.jsx(s, { ...t });
|
|
7
|
+
return m ? /* @__PURE__ */ o.jsx(p, { ...t }) : /* @__PURE__ */ o.jsx(s, { ...t });
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
x as default
|