bitz-react-admin-ui 2.8.0 → 2.8.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 +25 -4
- package/dist/assets/iconfont/IconClose.mjs +24 -3
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
- package/dist/assets/iconfont/IconCuowu.mjs +23 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
- package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
- package/dist/assets/iconfont/IconFabu.mjs +35 -5
- package/dist/assets/iconfont/IconFanhui.mjs +25 -4
- package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
- package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
- package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
- package/dist/assets/iconfont/IconIcon21.mjs +25 -4
- package/dist/assets/iconfont/IconJincoude.mjs +25 -4
- package/dist/assets/iconfont/IconJinggao.mjs +25 -4
- package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
- package/dist/assets/iconfont/IconMore.mjs +41 -4
- package/dist/assets/iconfont/IconShanchu.mjs +27 -6
- package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
- package/dist/assets/iconfont/IconSousuo.mjs +27 -6
- package/dist/assets/iconfont/IconTejincou.mjs +25 -4
- package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
- package/dist/assets/iconfont/IconTishi1.mjs +27 -6
- package/dist/assets/iconfont/IconTuodong.mjs +28 -7
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
- package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
- package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
- package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +47 -15
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +182 -44
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -4
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +103 -62
- package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
- package/dist/components/BitzTable/SubTable/index.mjs +122 -73
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +43 -21
- package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/TdCell.mjs +5 -5
- package/dist/components/BitzTable/Table/index.mjs +494 -246
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +105 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +346 -159
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +135 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +18 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +121 -49
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +62 -18
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +59 -16
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +20 -5
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +46 -14
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
- package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
- package/dist/components/BitzTableSelect/index.mjs +65 -14
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +41 -14
- package/dist/components/BitzText/utils.mjs +3 -3
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTooltip/index.mjs +59 -20
- package/dist/components/BitzTooltip/style.mjs +9 -6
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +9 -3
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { j as i } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import p from "../../BitzDescriptions/index.mjs";
|
|
3
|
+
import m from "../TableCell/index.mjs";
|
|
4
4
|
import u from "../TextBlock/index.mjs";
|
|
5
|
-
import { defaultValue as
|
|
5
|
+
import { defaultValue as a } from "../utils.mjs";
|
|
6
6
|
const R = (o, n, e) => {
|
|
7
|
-
const l = o.map((r) => (typeof r.title == "string" && (r.title = i.jsx(u, { value: r.title, bold: 600 })), {
|
|
7
|
+
const l = o.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
|
|
8
8
|
...r,
|
|
9
|
-
render: (t,
|
|
10
|
-
const
|
|
9
|
+
render: (t, c, g) => {
|
|
10
|
+
const f = (n == null ? void 0 : n.length) === 1 ? !1 : g + 1 > ((n == null ? void 0 : n.length) || 0) / 2;
|
|
11
11
|
if (r != null && r.render) {
|
|
12
|
-
const s = r.render(t,
|
|
12
|
+
const s = r.render(t, c, g);
|
|
13
13
|
if (typeof s == "object" && s !== null)
|
|
14
14
|
return s;
|
|
15
|
-
if (["boolean", "number", "bigint", "string"].includes(
|
|
16
|
-
|
|
15
|
+
if (["boolean", "number", "bigint", "string"].includes(
|
|
16
|
+
typeof s
|
|
17
|
+
))
|
|
18
|
+
return /* @__PURE__ */ i.jsx(m, { value: `${s}`, isLatterHalf: f });
|
|
17
19
|
}
|
|
18
|
-
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? i.jsx(u, { value:
|
|
20
|
+
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? /* @__PURE__ */ i.jsx(u, { value: a }) : /* @__PURE__ */ i.jsx(m, { value: t, isLatterHalf: f });
|
|
19
21
|
}
|
|
20
22
|
}));
|
|
21
23
|
return [
|
|
@@ -24,7 +26,7 @@ const R = (o, n, e) => {
|
|
|
24
26
|
// rowScope: 'row',
|
|
25
27
|
className: "numRow",
|
|
26
28
|
width: 60,
|
|
27
|
-
render: (r, t,
|
|
29
|
+
render: (r, t, c) => c + 1 + (e.page - 1) * e.size
|
|
28
30
|
},
|
|
29
31
|
...l
|
|
30
32
|
];
|
|
@@ -36,8 +38,16 @@ const R = (o, n, e) => {
|
|
|
36
38
|
},
|
|
37
39
|
expandedRowRender: (e) => {
|
|
38
40
|
var r;
|
|
39
|
-
const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
|
|
40
|
-
return i.jsx(
|
|
41
|
+
const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
|
|
42
|
+
return /* @__PURE__ */ i.jsx(
|
|
43
|
+
p,
|
|
44
|
+
{
|
|
45
|
+
size: "small",
|
|
46
|
+
bordered: !0,
|
|
47
|
+
items: l,
|
|
48
|
+
column: { xs: 1, sm: 1, md: 1, lg: 2, xl: 2, xxl: 2 }
|
|
49
|
+
}
|
|
50
|
+
);
|
|
41
51
|
}
|
|
42
52
|
}
|
|
43
53
|
} : null, y = (o, n) => {
|
|
@@ -1,26 +1,47 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as re, useContext as ne, useState as
|
|
3
|
-
import { Row as
|
|
2
|
+
import { useRef as re, useContext as ne, useState as C, useCallback as ce, useMemo as F, useEffect as ie } from "react";
|
|
3
|
+
import { Row as y, Col as p, Space as H, Form as S, Select as O, Spin as ae, Typography as pe, Flex as ue, Empty as G } from "antd";
|
|
4
4
|
import de from "../../BitzPagination/index.mjs";
|
|
5
5
|
import he from "../../BitzTable/index.mjs";
|
|
6
|
-
import
|
|
6
|
+
import q from "../../BitzButton/index.mjs";
|
|
7
7
|
import { getColumns as xe, getExpandable as me, getLayoutConfig as je } from "./getData.mjs";
|
|
8
8
|
import Se from "../TextBlock/index.mjs";
|
|
9
9
|
import fe from "../../../node_modules/ahooks/es/useSize/index.mjs";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { BitzConfigContext as
|
|
13
|
-
import
|
|
10
|
+
import be from "../../BitzTheme/index.mjs";
|
|
11
|
+
import ge from "../../../node_modules/classnames/index.mjs";
|
|
12
|
+
import { BitzConfigContext as ye } from "../../BitzConfigProvider/context.mjs";
|
|
13
|
+
import we from "../../BitzHighlight/index.mjs";
|
|
14
14
|
import "./index.less.mjs";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
import Te from "../../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
|
|
16
|
+
import ve from "../../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
17
|
+
function Ge({
|
|
18
|
+
columns: J,
|
|
19
|
+
tableData: w,
|
|
20
|
+
total: L,
|
|
21
|
+
loading: u,
|
|
22
|
+
loadingFailed: b,
|
|
23
|
+
loadAgain: Q,
|
|
24
|
+
page: z,
|
|
25
|
+
onPageChange: U,
|
|
26
|
+
searchInput: W,
|
|
27
|
+
showToolTagSelect: P,
|
|
28
|
+
toolTags: X,
|
|
29
|
+
onToolTagChange: T,
|
|
30
|
+
lrLayout: v,
|
|
31
|
+
parentRender: E,
|
|
32
|
+
keys: R,
|
|
33
|
+
rows: I,
|
|
34
|
+
fieldNames: t,
|
|
35
|
+
mode: k,
|
|
36
|
+
onChange: Y,
|
|
37
|
+
onDropdownVisibleChange: g
|
|
38
|
+
}) {
|
|
39
|
+
var _, $, A;
|
|
40
|
+
const M = re(null), B = fe(M), { token: i } = be.useToken(), K = ((_ = i == null ? void 0 : i.BitzTableSelect) == null ? void 0 : _.tableSpaceBetweenPage) ?? 10, Z = (($ = ne(ye).TableSelect) == null ? void 0 : $.defaultSize) ?? "md", [c, d] = C([]), [l, h] = C([]), [D, V] = C(void 0), N = (o, s) => {
|
|
41
|
+
V(o), T == null || T(o, s), o || (g(!0), setTimeout(() => {
|
|
42
|
+
g(!1);
|
|
22
43
|
}, 0));
|
|
23
|
-
}, ee = xe(
|
|
44
|
+
}, ee = xe(J, w, z), te = {
|
|
24
45
|
type: k === "single" ? "radio" : "checkbox",
|
|
25
46
|
selectedRowKeys: c,
|
|
26
47
|
...k === "single" ? {
|
|
@@ -33,7 +54,9 @@ function Oe({ columns: q, tableData: y, total: J, loading: p, loadingFailed: g,
|
|
|
33
54
|
const r = c.concat([o[t.value]]), n = l.concat([o]);
|
|
34
55
|
d(r), h(n);
|
|
35
56
|
} else {
|
|
36
|
-
const r = l.filter(
|
|
57
|
+
const r = l.filter(
|
|
58
|
+
(n) => n[t.value] !== o[t.value]
|
|
59
|
+
);
|
|
37
60
|
d(r.map((n) => n[t.value])), h(r);
|
|
38
61
|
}
|
|
39
62
|
},
|
|
@@ -47,68 +70,195 @@ function Oe({ columns: q, tableData: y, total: J, loading: p, loadingFailed: g,
|
|
|
47
70
|
r.forEach((j) => {
|
|
48
71
|
m.set(j[t.value], j);
|
|
49
72
|
});
|
|
50
|
-
const f = l == null ? void 0 : l.filter(
|
|
73
|
+
const f = l == null ? void 0 : l.filter(
|
|
74
|
+
(j) => !m.has(j[t.value])
|
|
75
|
+
);
|
|
51
76
|
d(x), h(f);
|
|
52
77
|
}
|
|
53
78
|
}
|
|
54
79
|
}
|
|
55
|
-
}, oe = ce(() => me(t.items,
|
|
80
|
+
}, oe = ce(() => me(t.items, u), [t.items, u]), se = () => {
|
|
56
81
|
const o = (s) => {
|
|
57
|
-
const r = [...c], n = [...l], x = r.findIndex((f) => f === s[t.value]), m = n.findIndex(
|
|
82
|
+
const r = [...c], n = [...l], x = r.findIndex((f) => f === s[t.value]), m = n.findIndex(
|
|
83
|
+
(f) => f[t.value] === s[t.value]
|
|
84
|
+
);
|
|
58
85
|
n.splice(m, 1), r.splice(x, 1), d(r), h(n);
|
|
59
86
|
};
|
|
60
|
-
return e.jsxs(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
87
|
+
return /* @__PURE__ */ e.jsxs(
|
|
88
|
+
H,
|
|
89
|
+
{
|
|
90
|
+
direction: "vertical",
|
|
91
|
+
style: {
|
|
92
|
+
width: "calc(100% - 5px)",
|
|
93
|
+
paddingRight: 5,
|
|
94
|
+
maxHeight: l.length ? 220 : "auto",
|
|
95
|
+
overflow: "hidden auto"
|
|
96
|
+
},
|
|
97
|
+
children: [
|
|
98
|
+
l.map((s) => /* @__PURE__ */ e.jsxs(
|
|
99
|
+
ue,
|
|
100
|
+
{
|
|
101
|
+
justify: "space-between",
|
|
102
|
+
style: {
|
|
103
|
+
padding: "4px 8px",
|
|
104
|
+
border: `1px solid ${i.colorBorder}`,
|
|
105
|
+
backgroundColor: "#f5f5f5",
|
|
106
|
+
borderRadius: i.borderRadiusSM,
|
|
107
|
+
overflow: "hidden"
|
|
108
|
+
},
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value: s[t.label] }) }),
|
|
111
|
+
/* @__PURE__ */ e.jsx(
|
|
112
|
+
ve,
|
|
113
|
+
{
|
|
114
|
+
style: {
|
|
115
|
+
color: i.colorError,
|
|
116
|
+
fontSize: 13,
|
|
117
|
+
cursor: "pointer"
|
|
118
|
+
},
|
|
119
|
+
onClick: () => o(s)
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
s[t.value]
|
|
125
|
+
)),
|
|
126
|
+
!l.length && /* @__PURE__ */ e.jsx(G, { image: G.PRESENTED_IMAGE_SIMPLE })
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
}, a = F(() => je(v, P), [v, P]), le = F(() => ge(
|
|
131
|
+
{ loadingTable: u },
|
|
132
|
+
{ loadingFailedTable: b },
|
|
133
|
+
"bitzSelectTable"
|
|
134
|
+
), [b, u]);
|
|
77
135
|
return ie(() => {
|
|
78
136
|
d(R ?? []), h(I ?? []);
|
|
79
|
-
}, [R, I]),
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
137
|
+
}, [R, I]), /* @__PURE__ */ e.jsxs(y, { gutter: a.gutter, children: [
|
|
138
|
+
/* @__PURE__ */ e.jsx(p, { span: a.left.span, children: v && E && E(K, B == null ? void 0 : B.height) }),
|
|
139
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.span, children: /* @__PURE__ */ e.jsxs(H, { direction: "vertical", size: K, style: { width: "100%" }, children: [
|
|
140
|
+
/* @__PURE__ */ e.jsx(S, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(y, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(p, { span: 24, children: /* @__PURE__ */ e.jsxs(y, { justify: "space-between", gutter: [16, 16], children: [
|
|
141
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.search, children: /* @__PURE__ */ e.jsx(S.Item, { children: W }) }),
|
|
142
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.operation, children: /* @__PURE__ */ e.jsxs(y, { justify: "end", gutter: 8, children: [
|
|
143
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(S.Item, { children: /* @__PURE__ */ e.jsx(
|
|
144
|
+
O,
|
|
145
|
+
{
|
|
146
|
+
allowClear: !0,
|
|
147
|
+
className: "tableSelectPopupToolTagSelect",
|
|
148
|
+
style: {
|
|
149
|
+
width: "100%",
|
|
150
|
+
"--toolTagSelect-color": u ? i.colorTextDisabled : i.colorText
|
|
151
|
+
},
|
|
152
|
+
placeholder: "常用标签",
|
|
153
|
+
showSearch: !1,
|
|
154
|
+
disabled: u,
|
|
155
|
+
options: X,
|
|
156
|
+
value: D,
|
|
157
|
+
onChange: N,
|
|
158
|
+
onDropdownVisibleChange: g
|
|
159
|
+
}
|
|
160
|
+
) }) }),
|
|
161
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.totalSelect, children: /* @__PURE__ */ e.jsx(S.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
|
|
162
|
+
/* @__PURE__ */ e.jsx(
|
|
163
|
+
O,
|
|
164
|
+
{
|
|
165
|
+
style: { width: "100%" },
|
|
166
|
+
mode: "multiple",
|
|
167
|
+
placeholder: "",
|
|
168
|
+
showSearch: !1,
|
|
169
|
+
options: l,
|
|
170
|
+
value: c,
|
|
171
|
+
fieldNames: t,
|
|
172
|
+
popupClassName: "tableSelectPopupTotalPopup",
|
|
173
|
+
dropdownRender: se,
|
|
174
|
+
tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
175
|
+
onDropdownVisibleChange: g
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: /* @__PURE__ */ e.jsx(
|
|
179
|
+
we,
|
|
180
|
+
{
|
|
181
|
+
highlightTag: "strong",
|
|
182
|
+
sourceString: `已选择 ${c.length || 0} 条数据`,
|
|
183
|
+
keywords: `${c.length || 0}`
|
|
184
|
+
}
|
|
185
|
+
) })
|
|
186
|
+
] }) }) }),
|
|
187
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.button, children: /* @__PURE__ */ e.jsx(
|
|
188
|
+
q,
|
|
189
|
+
{
|
|
190
|
+
type: "primary",
|
|
191
|
+
danger: !0,
|
|
192
|
+
onClick: () => {
|
|
193
|
+
d([]), h([]);
|
|
194
|
+
},
|
|
195
|
+
children: "清空"
|
|
196
|
+
}
|
|
197
|
+
) }),
|
|
198
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.button, children: /* @__PURE__ */ e.jsx(
|
|
199
|
+
q,
|
|
200
|
+
{
|
|
201
|
+
type: "primary",
|
|
202
|
+
onClick: () => Y(c, l, "confirm"),
|
|
203
|
+
children: "确认"
|
|
204
|
+
}
|
|
205
|
+
) })
|
|
206
|
+
] }) })
|
|
207
|
+
] }) }) }) }),
|
|
208
|
+
/* @__PURE__ */ e.jsx(
|
|
209
|
+
"div",
|
|
210
|
+
{
|
|
211
|
+
ref: M,
|
|
212
|
+
...b && {
|
|
213
|
+
className: "pointerMouse",
|
|
214
|
+
onClick: () => Q()
|
|
215
|
+
},
|
|
216
|
+
children: /* @__PURE__ */ e.jsx(
|
|
217
|
+
ae,
|
|
218
|
+
{
|
|
219
|
+
spinning: b,
|
|
220
|
+
indicator: /* @__PURE__ */ e.jsx(Te, {}),
|
|
221
|
+
tip: /* @__PURE__ */ e.jsx(pe.Text, { type: "danger", children: "加载失败,点击重试" }),
|
|
222
|
+
children: /* @__PURE__ */ e.jsx(
|
|
223
|
+
he,
|
|
224
|
+
{
|
|
225
|
+
size: Z,
|
|
226
|
+
rowKey: t.value,
|
|
227
|
+
loading: u,
|
|
228
|
+
bordered: "row-column",
|
|
229
|
+
scroll: { x: 1, y: 400 },
|
|
230
|
+
showPagination: !1,
|
|
231
|
+
showTableTool: !1,
|
|
232
|
+
rowSelection: te,
|
|
233
|
+
columns: ee,
|
|
234
|
+
dataSource: w,
|
|
235
|
+
className: le,
|
|
236
|
+
...oe(),
|
|
237
|
+
style: {
|
|
238
|
+
"--tableBody-bootomBorderColor": ((A = i.Table) == null ? void 0 : A.borderColor) || i.colorBorderSecondary
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
}
|
|
245
|
+
),
|
|
246
|
+
/* @__PURE__ */ e.jsx(S, { children: /* @__PURE__ */ e.jsx(S.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
|
|
247
|
+
de,
|
|
248
|
+
{
|
|
249
|
+
disabled: u,
|
|
250
|
+
className: "tableSelectPopupTablePagination",
|
|
251
|
+
size: "small",
|
|
252
|
+
enableControl: !0,
|
|
253
|
+
pagination: z,
|
|
254
|
+
total: L,
|
|
255
|
+
dataSource: w,
|
|
256
|
+
paginationEmit: U
|
|
257
|
+
}
|
|
258
|
+
) }) })
|
|
259
|
+
] }) })
|
|
260
|
+
] });
|
|
111
261
|
}
|
|
112
262
|
export {
|
|
113
|
-
|
|
263
|
+
Ge as default
|
|
114
264
|
};
|
|
@@ -1,26 +1,91 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Select as
|
|
4
|
-
import
|
|
5
|
-
import { isNotFalsy as
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { j as x } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useState as o, useEffect as b, useMemo as W } from "react";
|
|
3
|
+
import { Select as X } from "antd";
|
|
4
|
+
import Y from "../SelectPopup/index.mjs";
|
|
5
|
+
import { isNotFalsy as Z } from "../utils.mjs";
|
|
6
|
+
function R({
|
|
7
|
+
value: S,
|
|
8
|
+
options: s,
|
|
9
|
+
columns: j,
|
|
10
|
+
tableData: k,
|
|
11
|
+
total: v,
|
|
12
|
+
loading: w,
|
|
13
|
+
loadingFailed: y,
|
|
14
|
+
loadAgain: B,
|
|
15
|
+
page: D,
|
|
16
|
+
onPageChange: E,
|
|
17
|
+
searchInput: N,
|
|
18
|
+
showToolTagSelect: T,
|
|
19
|
+
toolTags: F,
|
|
20
|
+
onToolTagChange: M,
|
|
21
|
+
lrLayout: O,
|
|
22
|
+
parentRender: V,
|
|
23
|
+
mode: a = "single",
|
|
24
|
+
placeholder: q = "请选择",
|
|
25
|
+
fieldNames: p,
|
|
26
|
+
onChange: t,
|
|
27
|
+
onPopupVisibleChange: f,
|
|
28
|
+
...z
|
|
29
|
+
}) {
|
|
30
|
+
const [r, A] = o(), [u, c] = o(), [i, m] = o(!1), [G, H] = o(!1), I = () => {
|
|
31
|
+
c([]), t == null || t([], []);
|
|
32
|
+
}, J = (e, l, U) => {
|
|
33
|
+
U === "confirm" && (c(l), t == null || t(e, l), m(!1));
|
|
34
|
+
}, K = (e, l) => {
|
|
35
|
+
c(l), t == null || t(e, l);
|
|
36
|
+
}, L = (e) => {
|
|
37
|
+
!i && e && m(!0), !G && !e && i && m(!1), f == null || f(e);
|
|
15
38
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, [
|
|
19
|
-
|
|
20
|
-
}, [
|
|
21
|
-
const
|
|
22
|
-
return
|
|
39
|
+
b(() => {
|
|
40
|
+
A(S);
|
|
41
|
+
}, [S]), b(() => {
|
|
42
|
+
s != null && s.length && c(s);
|
|
43
|
+
}, [s]);
|
|
44
|
+
const Q = W(() => Z(r) ? [r] : [], [r]);
|
|
45
|
+
return /* @__PURE__ */ x.jsx(
|
|
46
|
+
X,
|
|
47
|
+
{
|
|
48
|
+
allowClear: !0,
|
|
49
|
+
className: "tableSelectBlock",
|
|
50
|
+
value: r,
|
|
51
|
+
options: u,
|
|
52
|
+
fieldNames: p,
|
|
53
|
+
showSearch: !1,
|
|
54
|
+
open: i,
|
|
55
|
+
placeholder: q,
|
|
56
|
+
popupClassName: "tableSelectPopupBlock",
|
|
57
|
+
dropdownRender: () => /* @__PURE__ */ x.jsx(
|
|
58
|
+
Y,
|
|
59
|
+
{
|
|
60
|
+
columns: j,
|
|
61
|
+
tableData: k,
|
|
62
|
+
total: v,
|
|
63
|
+
page: D,
|
|
64
|
+
onPageChange: E,
|
|
65
|
+
searchInput: N,
|
|
66
|
+
loading: w,
|
|
67
|
+
loadingFailed: y,
|
|
68
|
+
loadAgain: B,
|
|
69
|
+
keys: Q,
|
|
70
|
+
rows: u,
|
|
71
|
+
fieldNames: p,
|
|
72
|
+
onChange: J,
|
|
73
|
+
onDropdownVisibleChange: H,
|
|
74
|
+
showToolTagSelect: T,
|
|
75
|
+
toolTags: F,
|
|
76
|
+
onToolTagChange: M,
|
|
77
|
+
lrLayout: O,
|
|
78
|
+
parentRender: V,
|
|
79
|
+
mode: a
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
onClear: I,
|
|
83
|
+
onDropdownVisibleChange: L,
|
|
84
|
+
onChange: K,
|
|
85
|
+
...z
|
|
86
|
+
}
|
|
87
|
+
);
|
|
23
88
|
}
|
|
24
89
|
export {
|
|
25
|
-
|
|
90
|
+
R as default
|
|
26
91
|
};
|
|
@@ -7,22 +7,63 @@ import g from "../../BitzTheme/index.mjs";
|
|
|
7
7
|
import "./index.less.mjs";
|
|
8
8
|
import { tablePaddingInline as B } from "../../BitzConfigProvider/context.mjs";
|
|
9
9
|
import T from "../../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
10
|
-
const { TextArea: I } = x,
|
|
10
|
+
const { TextArea: I } = x, z = ({ value: n, isLatterHalf: a = !1 }) => {
|
|
11
11
|
var r, c;
|
|
12
12
|
const { token: e } = g.useToken(), l = ((r = e.Table) == null ? void 0 : r.cellPaddingInline) ?? B, i = ((c = e == null ? void 0 : e.BitzTableSelect) == null ? void 0 : c.paddingBlock) ?? 10, m = p(() => ({
|
|
13
13
|
paddingBlock: i,
|
|
14
14
|
paddingInline: l
|
|
15
15
|
}), [e]), [d, t] = u(!1);
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
return /* @__PURE__ */ o.jsxs(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
className: "cellBlock",
|
|
20
|
+
style: m,
|
|
21
|
+
onFocus: () => t(!0),
|
|
22
|
+
onBlur: () => t(!1),
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o.jsx(f, { className: s("cellText"), value: n }),
|
|
25
|
+
/* @__PURE__ */ o.jsxs(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: s(
|
|
29
|
+
"tipBlock",
|
|
30
|
+
a ? "toTop" : "toBottom",
|
|
31
|
+
d ? "show" : ""
|
|
32
|
+
),
|
|
33
|
+
style: {
|
|
34
|
+
paddingInlineStart: l - 2,
|
|
35
|
+
paddingInlineEnd: l - 4,
|
|
36
|
+
paddingBlock: i,
|
|
37
|
+
background: e.colorBgContainer
|
|
38
|
+
},
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ o.jsx(
|
|
41
|
+
T,
|
|
42
|
+
{
|
|
43
|
+
className: s("closeIcon", a ? "top" : "bottom"),
|
|
44
|
+
onClick: () => t(!1)
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ o.jsx(
|
|
48
|
+
I,
|
|
49
|
+
{
|
|
50
|
+
className: "tipText",
|
|
51
|
+
value: n,
|
|
52
|
+
autoSize: {
|
|
53
|
+
minRows: 1,
|
|
54
|
+
maxRows: 100
|
|
55
|
+
},
|
|
56
|
+
variant: "borderless",
|
|
57
|
+
readOnly: !0
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
25
66
|
};
|
|
26
67
|
export {
|
|
27
|
-
|
|
68
|
+
z as default
|
|
28
69
|
};
|
|
@@ -1,25 +1,43 @@
|
|
|
1
1
|
import { j as m } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { theme as c, Input as p } from "antd";
|
|
3
3
|
import d from "../../../node_modules/classnames/index.mjs";
|
|
4
|
-
import { tablePaddingInline as
|
|
5
|
-
import { defaultValue as
|
|
4
|
+
import { tablePaddingInline as f } from "../../BitzConfigProvider/context.mjs";
|
|
5
|
+
import { defaultValue as x } from "../utils.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
|
-
const { TextArea: u } = p,
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const { TextArea: u } = p, h = ({
|
|
8
|
+
maxRows: t = 1,
|
|
9
|
+
minRows: s,
|
|
10
|
+
bold: o,
|
|
11
|
+
value: e,
|
|
12
|
+
className: r
|
|
13
|
+
}) => {
|
|
14
|
+
var n;
|
|
15
|
+
const { token: a } = c.useToken(), i = ((n = a.Table) == null ? void 0 : n.cellPaddingInline) ?? f, l = {
|
|
10
16
|
"--cell-text-maxRows": t,
|
|
11
17
|
...o && {
|
|
12
18
|
fontWeight: o
|
|
13
19
|
},
|
|
14
|
-
...e ===
|
|
15
|
-
paddingInline:
|
|
20
|
+
...e === x && {
|
|
21
|
+
paddingInline: i
|
|
16
22
|
}
|
|
17
23
|
};
|
|
18
|
-
return m.jsx(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
return /* @__PURE__ */ m.jsx(
|
|
25
|
+
u,
|
|
26
|
+
{
|
|
27
|
+
className: d("textBlock", r),
|
|
28
|
+
title: e,
|
|
29
|
+
value: e,
|
|
30
|
+
readOnly: !0,
|
|
31
|
+
size: "small",
|
|
32
|
+
variant: "borderless",
|
|
33
|
+
autoSize: {
|
|
34
|
+
minRows: s ?? t,
|
|
35
|
+
maxRows: t
|
|
36
|
+
},
|
|
37
|
+
style: l
|
|
38
|
+
}
|
|
39
|
+
);
|
|
22
40
|
};
|
|
23
41
|
export {
|
|
24
|
-
|
|
42
|
+
h as default
|
|
25
43
|
};
|