bitz-react-admin-ui 2.2.8 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +53 -20
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +27 -21
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +22 -4
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +28 -5
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +6 -3
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +13 -4
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +52 -20
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +25 -12
- package/dist/components/BitzMeetingTime/index.mjs +11 -7
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.d.ts +2 -2
- package/dist/components/BitzTable/Store/index.mjs +248 -212
- package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
- package/dist/components/BitzTable/SubTable/index.mjs +121 -73
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +417 -207
- package/dist/components/BitzTable/Table/style.mjs +11 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -12
- package/dist/utils/create.mjs +7 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,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
|
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Skeleton as n } from "antd";
|
|
3
|
-
const o = (t) =>
|
|
3
|
+
const o = (t) => /* @__PURE__ */ e.jsx(
|
|
4
|
+
n,
|
|
5
|
+
{
|
|
6
|
+
...t
|
|
7
|
+
}
|
|
8
|
+
), r = (t) => /* @__PURE__ */ e.jsx(
|
|
9
|
+
n.Button,
|
|
10
|
+
{
|
|
11
|
+
...t
|
|
12
|
+
}
|
|
13
|
+
), s = (t) => /* @__PURE__ */ e.jsx(
|
|
14
|
+
n.Avatar,
|
|
15
|
+
{
|
|
16
|
+
...t
|
|
17
|
+
}
|
|
18
|
+
), a = (t) => /* @__PURE__ */ e.jsx(
|
|
19
|
+
n.Input,
|
|
20
|
+
{
|
|
21
|
+
...t
|
|
22
|
+
}
|
|
23
|
+
), u = (t) => /* @__PURE__ */ e.jsx(
|
|
24
|
+
n.Image,
|
|
25
|
+
{
|
|
26
|
+
...t
|
|
27
|
+
}
|
|
28
|
+
), l = (t) => /* @__PURE__ */ e.jsx(
|
|
29
|
+
n.Node,
|
|
30
|
+
{
|
|
31
|
+
...t
|
|
32
|
+
}
|
|
33
|
+
);
|
|
4
34
|
o.Button = r;
|
|
5
35
|
o.Avatar = s;
|
|
6
36
|
o.Input = a;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Switch as p } from "antd";
|
|
3
|
-
const n = ({
|
|
3
|
+
const n = ({
|
|
4
|
+
checkedChildren: t = "开启",
|
|
5
|
+
unCheckedChildren: r = "关闭",
|
|
6
|
+
defaultChecked: o = !0,
|
|
7
|
+
...s
|
|
8
|
+
}) => {
|
|
4
9
|
const e = {
|
|
5
10
|
checkedChildren: t,
|
|
6
11
|
unCheckedChildren: r,
|
|
7
12
|
defaultChecked: o,
|
|
8
13
|
...s
|
|
9
14
|
};
|
|
10
|
-
return i.jsx(p, { ...e });
|
|
15
|
+
return /* @__PURE__ */ i.jsx(p, { ...e });
|
|
11
16
|
};
|
|
12
17
|
export {
|
|
13
18
|
n as default
|
|
@@ -1,20 +1,37 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as f } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import r from "react";
|
|
3
3
|
import "./index.less.mjs";
|
|
4
4
|
import p from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
5
|
const k = r.forwardRef((t, o) => {
|
|
6
|
-
const {
|
|
6
|
+
const {
|
|
7
|
+
value: a,
|
|
8
|
+
zIndex: n = 1,
|
|
9
|
+
route: i,
|
|
10
|
+
fixed: s = !0,
|
|
11
|
+
border: c = !0,
|
|
12
|
+
safeAreaInsetBottom: l = !0,
|
|
13
|
+
onChange: b,
|
|
14
|
+
children: d
|
|
15
|
+
} = t, m = {
|
|
7
16
|
...i ? {} : {},
|
|
8
17
|
currentName: a,
|
|
9
18
|
onClick: (e) => {
|
|
10
19
|
b(e);
|
|
11
20
|
}
|
|
12
|
-
},
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
}, u = (e) => r.cloneElement(e, m);
|
|
22
|
+
return /* @__PURE__ */ f.jsx(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
ref: o,
|
|
26
|
+
className: p("bitzTabbarBlock", {
|
|
27
|
+
bitzTabbarFixedBlock: s,
|
|
28
|
+
bitzTabbarBlockBorder: c,
|
|
29
|
+
bitzTabbarBlockBottomSafe: l
|
|
30
|
+
}),
|
|
31
|
+
style: { zIndex: n },
|
|
32
|
+
children: r.Children.map(d, u)
|
|
33
|
+
}
|
|
34
|
+
);
|
|
18
35
|
});
|
|
19
36
|
export {
|
|
20
37
|
k as default
|
|
@@ -5,7 +5,10 @@ import j from "../../assets/iconfont/index.mjs";
|
|
|
5
5
|
import "./index.less.mjs";
|
|
6
6
|
const y = ({ name: o, config: t, title: n, children: l, badgeProps: m, ...v }) => {
|
|
7
7
|
const { onClick: I, currentName: e } = v, a = s.useToken().token.colorPrimary, i = s.useToken().token.colorText, x = c(() => t[o === e ? "activeIcon" : "inactiveIcon"], [t, e, o]), d = c(() => o === e ? t.activeColor : t.inactiveColor, [t.activeColor, t.inactiveColor, e, o]), u = c(() => o === e ? a : i, [a, e, o, i]), b = c(() => t[o === e ? "activeImage" : "inactiveImage"], [t, e, o]);
|
|
8
|
-
return r.jsxs("div", { className: "tabbarItem", onClick: () => I(o), children: [
|
|
8
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "tabbarItem", onClick: () => I(o), children: [
|
|
9
|
+
/* @__PURE__ */ r.jsx("div", { className: `${"activeIcon" in t ? "tabbarItemIcon" : "tabbarItemImage"}`, children: /* @__PURE__ */ r.jsx(C, { ...m, children: /* @__PURE__ */ r.jsx("div", { className: "activeIcon" in t ? "icon" : "image", children: "activeIcon" in t ? /* @__PURE__ */ r.jsx(j, { name: x, color: d, size: 22 }) : /* @__PURE__ */ r.jsx("img", { src: b }) }) }) }),
|
|
10
|
+
/* @__PURE__ */ r.jsx("div", { className: "tabbarItemText", style: { color: u }, children: n || l })
|
|
11
|
+
] });
|
|
9
12
|
};
|
|
10
13
|
export {
|
|
11
14
|
y as default
|
|
@@ -7,7 +7,13 @@ import f from "../Dropdown/index.mjs";
|
|
|
7
7
|
import N from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
|
|
8
8
|
import o from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
9
9
|
import c from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
|
|
10
|
-
const G = ({
|
|
10
|
+
const G = ({
|
|
11
|
+
size: C,
|
|
12
|
+
add: e,
|
|
13
|
+
excel: t,
|
|
14
|
+
actions: i,
|
|
15
|
+
children: E
|
|
16
|
+
}) => {
|
|
11
17
|
const { blockCls: g, addBtnClassName: h, btnClassName: a } = k(C), w = y(() => [
|
|
12
18
|
{
|
|
13
19
|
key: "download",
|
|
@@ -24,17 +30,72 @@ const G = ({ size: C, add: e, excel: t, actions: i, children: E }) => {
|
|
|
24
30
|
// ),
|
|
25
31
|
},
|
|
26
32
|
...(t == null ? void 0 : t.otherMenu) ?? []
|
|
27
|
-
], [t]), d = y(() => i == null ? void 0 : i.map((r, n) => r.type === "primary" ?
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
], [t]), d = y(() => i == null ? void 0 : i.map((r, n) => r.type === "primary" ? /* @__PURE__ */ s.jsx(
|
|
34
|
+
m,
|
|
35
|
+
{
|
|
36
|
+
type: "primary",
|
|
37
|
+
icon: /* @__PURE__ */ s.jsx(N, {}),
|
|
38
|
+
className: h,
|
|
39
|
+
...o(r, "type", "className", "children"),
|
|
40
|
+
children: r == null ? void 0 : r.text
|
|
41
|
+
},
|
|
42
|
+
n
|
|
43
|
+
) : r.type === "secondary" ? /* @__PURE__ */ s.jsx(
|
|
44
|
+
m,
|
|
45
|
+
{
|
|
46
|
+
type: "text",
|
|
47
|
+
className: a,
|
|
48
|
+
...o(r, "type", "className", "children"),
|
|
49
|
+
children: r == null ? void 0 : r.text
|
|
50
|
+
},
|
|
51
|
+
n
|
|
52
|
+
) : /* @__PURE__ */ s.jsx(
|
|
53
|
+
f,
|
|
54
|
+
{
|
|
55
|
+
getPopupContainer: (p) => {
|
|
56
|
+
var j, u;
|
|
57
|
+
return (u = (j = p.parentElement) == null ? void 0 : j.parentElement) == null ? void 0 : u.parentElement;
|
|
58
|
+
},
|
|
59
|
+
...o(r, "children"),
|
|
60
|
+
children: /* @__PURE__ */ s.jsx(m, { className: a, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
|
|
61
|
+
/* @__PURE__ */ s.jsx("span", { children: r.text }),
|
|
62
|
+
/* @__PURE__ */ s.jsx(c, {})
|
|
63
|
+
] }) })
|
|
64
|
+
},
|
|
65
|
+
n
|
|
66
|
+
)), [i]);
|
|
67
|
+
return /* @__PURE__ */ s.jsxs(l.Compact, { className: g, style: { height: "100%" }, children: [
|
|
68
|
+
(e == null ? void 0 : e.show) !== !1 && /* @__PURE__ */ s.jsx(
|
|
69
|
+
m,
|
|
70
|
+
{
|
|
71
|
+
type: "primary",
|
|
72
|
+
icon: /* @__PURE__ */ s.jsx(N, {}),
|
|
73
|
+
className: h,
|
|
74
|
+
...o(e, "show", "type", "className", "children"),
|
|
75
|
+
children: e == null ? void 0 : e.text
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
i ? d : E,
|
|
79
|
+
(t == null ? void 0 : t.show) !== !1 && /* @__PURE__ */ s.jsx(
|
|
80
|
+
f,
|
|
81
|
+
{
|
|
82
|
+
menu: { items: w, onClick: ({ key: r }) => {
|
|
83
|
+
var n;
|
|
84
|
+
return (n = t == null ? void 0 : t.onClick) == null ? void 0 : n.call(t, r);
|
|
85
|
+
} },
|
|
86
|
+
trigger: (t == null ? void 0 : t.trigger) || ["click"],
|
|
87
|
+
getPopupContainer: (r) => {
|
|
88
|
+
var n, p;
|
|
89
|
+
return (p = (n = r.parentElement) == null ? void 0 : n.parentElement) == null ? void 0 : p.parentElement;
|
|
90
|
+
},
|
|
91
|
+
...o(t, "show", "menu", "trigger", "children"),
|
|
92
|
+
children: /* @__PURE__ */ s.jsx(m, { className: a, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
|
|
93
|
+
/* @__PURE__ */ s.jsx("span", { children: (t == null ? void 0 : t.text) ?? "Excel文档导入" }),
|
|
94
|
+
/* @__PURE__ */ s.jsx(c, {})
|
|
95
|
+
] }) })
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] });
|
|
38
99
|
};
|
|
39
100
|
export {
|
|
40
101
|
G as default
|
|
@@ -3,7 +3,7 @@ import e from "../../BitzButton/index.mjs";
|
|
|
3
3
|
import r from "./style.mjs";
|
|
4
4
|
const i = ({ ...t }) => {
|
|
5
5
|
const { btnClassName: o } = r();
|
|
6
|
-
return s.jsx(e, { className: o, type: "text", ...t });
|
|
6
|
+
return /* @__PURE__ */ s.jsx(e, { className: o, type: "text", ...t });
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
i as default
|
|
@@ -72,15 +72,18 @@ const Q = (m) => {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
];
|
|
75
|
-
A(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
A(
|
|
76
|
+
{
|
|
77
|
+
theme: g,
|
|
78
|
+
token: i,
|
|
79
|
+
hashId: n,
|
|
80
|
+
path: [r]
|
|
81
|
+
},
|
|
82
|
+
() => [
|
|
83
|
+
B(r, a, c, i),
|
|
84
|
+
h(r, p, i)
|
|
85
|
+
]
|
|
86
|
+
);
|
|
84
87
|
const d = `${u}${c}`, x = f(a, d, n), y = f(a, p, d, n);
|
|
85
88
|
return { blockCls: r, addBtnClassName: x, btnClassName: y };
|
|
86
89
|
};
|
|
@@ -1,32 +1,97 @@
|
|
|
1
1
|
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import y from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
3
3
|
import { Space as z, Skeleton as S } from "antd";
|
|
4
|
-
import { useRef as
|
|
5
|
-
import
|
|
4
|
+
import { useRef as I, useMemo as u, useContext as R } from "react";
|
|
5
|
+
import h from "../../BitzButton/index.mjs";
|
|
6
6
|
import w from "./style.mjs";
|
|
7
7
|
import "../index.mjs";
|
|
8
8
|
import b from "../Dropdown/index.mjs";
|
|
9
|
-
import { BitzTableContext as
|
|
10
|
-
const B = ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
import { BitzTableContext as T } from "../Store/index.mjs";
|
|
10
|
+
const B = ({
|
|
11
|
+
skeletonCls: l,
|
|
12
|
+
...n
|
|
13
|
+
}) => /* @__PURE__ */ t.jsxs(h, { type: "text", ...n, children: [
|
|
14
|
+
/* @__PURE__ */ t.jsx("span", { children: n.children }),
|
|
15
|
+
/* @__PURE__ */ t.jsx(
|
|
16
|
+
S,
|
|
17
|
+
{
|
|
18
|
+
active: !0,
|
|
19
|
+
title: !1,
|
|
20
|
+
className: l,
|
|
21
|
+
paragraph: {
|
|
22
|
+
rows: 1,
|
|
23
|
+
width: "100%"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] });
|
|
28
|
+
function A({
|
|
29
|
+
loading: l,
|
|
30
|
+
actionGroup: n,
|
|
31
|
+
refInstance: a
|
|
32
|
+
}) {
|
|
33
|
+
const { loading: i, fullscreen: x } = R(T), s = u(() => l ?? i, [l, i]), {
|
|
34
|
+
gap: o,
|
|
35
|
+
primaryBtnClassName: r,
|
|
36
|
+
dangerBtnClassName: f,
|
|
37
|
+
dropdownBtnClassName: k,
|
|
38
|
+
maskClassName: g,
|
|
39
|
+
skeletonBtnClassName: c,
|
|
40
|
+
skeletonClassName: m
|
|
41
|
+
} = w(), C = u(() => {
|
|
42
|
+
const d = n.length >= 4 ? 2 : n.length, p = n.slice(0, d), j = [];
|
|
17
43
|
if (p != null && p.length && p.forEach((e, N) => {
|
|
18
|
-
j.push(
|
|
19
|
-
|
|
44
|
+
j.push(
|
|
45
|
+
s ? /* @__PURE__ */ t.jsx(
|
|
46
|
+
B,
|
|
47
|
+
{
|
|
48
|
+
className: c,
|
|
49
|
+
skeletonCls: m,
|
|
50
|
+
children: e == null ? void 0 : e.label
|
|
51
|
+
},
|
|
52
|
+
N
|
|
53
|
+
) : e.children ? /* @__PURE__ */ t.jsx(b, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
|
|
54
|
+
h,
|
|
55
|
+
{
|
|
56
|
+
type: "text",
|
|
57
|
+
className: e.danger ? f : r,
|
|
58
|
+
children: e == null ? void 0 : e.label
|
|
59
|
+
}
|
|
60
|
+
) }, N) : /* @__PURE__ */ t.jsx(
|
|
61
|
+
h,
|
|
62
|
+
{
|
|
63
|
+
type: "text",
|
|
64
|
+
className: e.danger ? f : r,
|
|
65
|
+
onClick: e == null ? void 0 : e.onClick,
|
|
66
|
+
children: e == null ? void 0 : e.label
|
|
67
|
+
},
|
|
68
|
+
N
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
}), d === 2 && n.length >= 4) {
|
|
20
72
|
const e = n.slice(2, n.length);
|
|
21
|
-
j.push(
|
|
73
|
+
j.push(
|
|
74
|
+
s ? /* @__PURE__ */ t.jsx(
|
|
75
|
+
B,
|
|
76
|
+
{
|
|
77
|
+
className: c,
|
|
78
|
+
skeletonCls: m,
|
|
79
|
+
children: "更多"
|
|
80
|
+
},
|
|
81
|
+
5
|
|
82
|
+
) : /* @__PURE__ */ t.jsx(b, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(h, { type: "text", className: k, children: "更多" }) }, 5)
|
|
83
|
+
);
|
|
22
84
|
}
|
|
23
85
|
return j;
|
|
24
86
|
}, [s, n]);
|
|
25
|
-
return t.jsxs("div", { onClick: (
|
|
87
|
+
return /* @__PURE__ */ t.jsxs("div", { onClick: (d) => d.stopPropagation(), children: [
|
|
88
|
+
/* @__PURE__ */ t.jsx(z, { size: o, ref: a, className: "actionGroup", children: C }),
|
|
89
|
+
/* @__PURE__ */ t.jsx("div", { className: g })
|
|
90
|
+
] });
|
|
26
91
|
}
|
|
27
|
-
function
|
|
28
|
-
const { actionGroup: n, loading: a, ...i } = l, { gap: x } = w(), s =
|
|
29
|
-
return
|
|
92
|
+
function F(l) {
|
|
93
|
+
const { actionGroup: n, loading: a, ...i } = l, { gap: x } = w(), s = I(null), o = y(s), r = u(() => o != null && o.width ? o.width + x * 2 + 1 : 181, [o, x]);
|
|
94
|
+
return u(() => ({
|
|
30
95
|
width: Math.floor(r),
|
|
31
96
|
mobileHide: !0,
|
|
32
97
|
isOperationCol: !0,
|
|
@@ -37,13 +102,22 @@ function q(l) {
|
|
|
37
102
|
className: "operationCol",
|
|
38
103
|
disabled: !0,
|
|
39
104
|
render: (k, g, c) => {
|
|
40
|
-
const
|
|
41
|
-
|
|
105
|
+
const m = n(g, c).filter(
|
|
106
|
+
(C) => C.type != "detail"
|
|
107
|
+
);
|
|
108
|
+
return /* @__PURE__ */ t.jsx(
|
|
109
|
+
A,
|
|
110
|
+
{
|
|
111
|
+
actionGroup: m,
|
|
112
|
+
loading: a,
|
|
113
|
+
refInstance: s
|
|
114
|
+
}
|
|
115
|
+
);
|
|
42
116
|
},
|
|
43
117
|
...i
|
|
44
118
|
}), [r, s, a, n]);
|
|
45
119
|
}
|
|
46
120
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
121
|
+
A as BitzTableAction,
|
|
122
|
+
F as default
|
|
49
123
|
};
|