bitz-react-admin-ui 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/iconfont/IconChenggong.mjs +4 -10
- package/dist/assets/iconfont/IconClose.mjs +1 -7
- package/dist/assets/iconfont/IconCuowu.mjs +2 -8
- package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
- package/dist/assets/iconfont/IconFabu.mjs +3 -18
- package/dist/assets/iconfont/IconFanhui.mjs +5 -11
- package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
- package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
- package/dist/assets/iconfont/IconIcon21.mjs +2 -8
- package/dist/assets/iconfont/IconJincoude.mjs +3 -9
- package/dist/assets/iconfont/IconJinggao.mjs +2 -8
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
- package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
- package/dist/assets/iconfont/IconMore.mjs +4 -26
- package/dist/assets/iconfont/IconShanchu.mjs +5 -11
- package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
- package/dist/assets/iconfont/IconSousuo.mjs +4 -10
- package/dist/assets/iconfont/IconTejincou.mjs +1 -7
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
- package/dist/assets/iconfont/IconTishi1.mjs +6 -12
- package/dist/assets/iconfont/IconTuodong.mjs +6 -12
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
- package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
- package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
- package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
- package/dist/assets/iconfont/index.mjs +29 -29
- package/dist/components/BitzAddTag/index.mjs +8 -41
- package/dist/components/BitzAddressBook/index.mjs +35 -122
- package/dist/components/BitzAppPage/index.mjs +4 -18
- package/dist/components/BitzAppRefresh/index.mjs +15 -27
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +9 -23
- package/dist/components/BitzCalendar/index.mjs +19 -52
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
- package/dist/components/BitzCascader/index.mjs +2 -6
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +1 -3
- package/dist/components/BitzConfigProvider/index.mjs +8 -12
- package/dist/components/BitzConfirmModal/index.mjs +1 -24
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +1 -11
- package/dist/components/BitzDrawer/index.mjs +2 -17
- package/dist/components/BitzEmpty/index.mjs +2 -6
- package/dist/components/BitzException/index.mjs +1 -6
- package/dist/components/BitzFloatLayout/index.mjs +1 -10
- package/dist/components/BitzFluentInput/index.mjs +4 -23
- package/dist/components/BitzFluentSelect/index.mjs +5 -24
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +6 -29
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +18 -50
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +15 -31
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
- package/dist/components/BitzFuiCalendar/index.mjs +1 -7
- package/dist/components/BitzFullScreen/index.mjs +6 -9
- package/dist/components/BitzHighlight/Child.mjs +9 -23
- package/dist/components/BitzHighlight/Highlight.mjs +5 -26
- package/dist/components/BitzHighlight/chunks.mjs +17 -20
- package/dist/components/BitzHighlight/style.mjs +1 -4
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +5 -12
- package/dist/components/BitzLanguageTabs/index.mjs +3 -14
- package/dist/components/BitzLazyLoad/index.mjs +1 -7
- package/dist/components/BitzList/List.mjs +3 -17
- package/dist/components/BitzList/LoadMore.mjs +20 -29
- package/dist/components/BitzLoadMore/index.mjs +14 -34
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
- package/dist/components/BitzMeetingTime/index.mjs +6 -10
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +11 -24
- package/dist/components/BitzNoData/index.mjs +1 -4
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
- package/dist/components/BitzPageContainer/index.mjs +46 -107
- package/dist/components/BitzPageHeader/index.mjs +21 -89
- package/dist/components/BitzPagination/index.mjs +14 -62
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
- package/dist/components/BitzQRCode/index.mjs +1 -6
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
- package/dist/components/BitzQueryFilter/index.mjs +20 -69
- package/dist/components/BitzRefresh/index.mjs +1 -5
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +30 -24
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +1 -31
- package/dist/components/BitzSwitch/index.mjs +2 -7
- package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +5 -33
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.mjs +16 -90
- package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
- package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
- package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
- package/dist/components/BitzTable/SelectionBar/Button.mjs +14 -32
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -40
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.mjs +45 -68
- package/dist/components/BitzTable/Table/index.mjs +145 -305
- package/dist/components/BitzTable/Table/style.mjs +1 -10
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +47 -82
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +21 -95
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +28 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +142 -250
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +3 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -8
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +89 -137
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -7
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +6 -33
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +10 -27
- package/dist/components/BitzTable/ToolBar/Wrapper/context.d.ts +4 -0
- package/dist/components/BitzTable/ToolBar/Wrapper/context.mjs +5 -0
- package/dist/components/BitzTable/ToolBar/Wrapper/index.d.ts +4 -3
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +18 -60
- package/dist/components/BitzTable/ToolBar/index.d.ts +6 -4
- package/dist/components/BitzTableOperations/index.mjs +3 -13
- package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
- package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +11 -21
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +40 -210
- package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +9 -27
- package/dist/components/BitzTableSelect/index.mjs +13 -61
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +1 -11
- package/dist/components/BitzTimer/Form.mjs +11 -32
- package/dist/components/BitzTimer/Timer.mjs +38 -76
- package/dist/components/BitzTimer/index.mjs +43 -66
- package/dist/components/BitzToast/Toast/index.mjs +10 -28
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +1 -4
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +43 -81
- package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
- package/dist/components/BitzWebAppModal/index.mjs +3 -6
- package/dist/hooks/use-event-listener.mjs +2 -11
- package/dist/hooks/use-lock-fn.mjs +10 -13
- package/dist/hooks/use-scroll-parent.mjs +14 -16
- package/dist/hooks/useEvent.mjs +4 -7
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Space as p, Button as n } from "antd";
|
|
3
3
|
const m = ({ record: a = {}, operations: r = [], tableOperationEmit: s = () => {
|
|
4
|
-
}, ...l }) =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
className: `${(e == null ? void 0 : e.className) || ""}`,
|
|
8
|
-
type: e.type == "edit" ? "primary" : "default",
|
|
9
|
-
danger: e.type == "delete",
|
|
10
|
-
onClick: () => {
|
|
11
|
-
s(e.type, a);
|
|
12
|
-
},
|
|
13
|
-
children: e.label
|
|
14
|
-
},
|
|
15
|
-
i
|
|
16
|
-
)) }) });
|
|
4
|
+
}, ...l }) => t.jsx("div", { className: "bitzTableOperationsBlock", ...l, children: t.jsx(p, { children: r.map((e, i) => t.jsx(n, { className: `${(e == null ? void 0 : e.className) || ""}`, type: e.type == "edit" ? "primary" : "default", danger: e.type == "delete", onClick: () => {
|
|
5
|
+
s(e.type, a);
|
|
6
|
+
}, children: e.label }, i)) }) });
|
|
17
7
|
export {
|
|
18
8
|
m as default
|
|
19
9
|
};
|
|
@@ -3,54 +3,21 @@ import { useState as r, useEffect as j } from "react";
|
|
|
3
3
|
import { Select as b, Drawer as w, Input as S } from "antd";
|
|
4
4
|
import k from "../../BitzButton/index.mjs";
|
|
5
5
|
import "./index.less.mjs";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
value: "key"
|
|
12
|
-
},
|
|
13
|
-
onChange: t,
|
|
14
|
-
...y
|
|
15
|
-
}) => {
|
|
16
|
-
const [c, m] = r([]), [f, l] = r([]), [n, o] = r(!1), u = () => {
|
|
6
|
+
const T = ({ value: s, placeholder: i = "请选择", fieldNames: p = {
|
|
7
|
+
label: "name",
|
|
8
|
+
value: "key"
|
|
9
|
+
}, onChange: t, ...y }) => {
|
|
10
|
+
const [c, m] = r([]), [n, l] = r([]), [f, o] = r(!1), u = () => {
|
|
17
11
|
l([]), t == null || t([], []);
|
|
18
|
-
}, d = (x,
|
|
19
|
-
l(
|
|
12
|
+
}, d = (x, a) => {
|
|
13
|
+
l(a), t == null || t(x, a);
|
|
20
14
|
};
|
|
21
15
|
return j(() => {
|
|
22
16
|
if (s && !Array.isArray(s))
|
|
23
|
-
throw new Error(
|
|
24
|
-
`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`
|
|
25
|
-
);
|
|
17
|
+
throw new Error(`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`);
|
|
26
18
|
m(s ?? []);
|
|
27
|
-
}, [s]),
|
|
28
|
-
/* @__PURE__ */ e.jsx(
|
|
29
|
-
b,
|
|
30
|
-
{
|
|
31
|
-
style: { width: "200px" },
|
|
32
|
-
allowClear: !0,
|
|
33
|
-
mode: "tags",
|
|
34
|
-
maxTagCount: "responsive",
|
|
35
|
-
value: c,
|
|
36
|
-
options: f,
|
|
37
|
-
fieldNames: p,
|
|
38
|
-
showSearch: !1,
|
|
39
|
-
open: !1,
|
|
40
|
-
placeholder: a,
|
|
41
|
-
popupClassName: "tableSelectPopupBlock",
|
|
42
|
-
dropdownRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
43
|
-
onClick: () => o(!0),
|
|
44
|
-
onClear: u,
|
|
45
|
-
onChange: d
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
/* @__PURE__ */ e.jsxs(w, { open: n, placement: "bottom", height: "100%", children: [
|
|
49
|
-
/* @__PURE__ */ e.jsx(S, {}),
|
|
50
|
-
/* @__PURE__ */ e.jsx(k, { onClick: () => o(!1), children: "关闭" })
|
|
51
|
-
] })
|
|
52
|
-
] });
|
|
19
|
+
}, [s]), e.jsxs("div", { children: [e.jsx(b, { style: { width: "200px" }, allowClear: !0, mode: "tags", maxTagCount: "responsive", value: c, options: n, fieldNames: p, showSearch: !1, open: !1, placeholder: i, popupClassName: "tableSelectPopupBlock", dropdownRender: () => e.jsx(e.Fragment, {}), onClick: () => o(!0), onClear: u, onChange: d }), e.jsxs(w, { open: f, placement: "bottom", height: "100%", children: [e.jsx(S, {}), e.jsx(k, { onClick: () => o(!1), children: "关闭" })] })] });
|
|
53
20
|
};
|
|
54
21
|
export {
|
|
55
|
-
|
|
22
|
+
T as default
|
|
56
23
|
};
|
|
@@ -1,91 +1,25 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as i, useEffect as
|
|
3
|
-
import { Select as
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
page: T,
|
|
15
|
-
onPageChange: k,
|
|
16
|
-
searchInput: y,
|
|
17
|
-
showToolTagSelect: E,
|
|
18
|
-
toolTags: A,
|
|
19
|
-
onToolTagChange: B,
|
|
20
|
-
lrLayout: D,
|
|
21
|
-
parentRender: P,
|
|
22
|
-
placeholder: d = "请选择",
|
|
23
|
-
fieldNames: p,
|
|
24
|
-
onChange: e,
|
|
25
|
-
...v
|
|
26
|
-
}) {
|
|
27
|
-
const [m, F] = i([]), [u, o] = i([]), [c, f] = i(!1), [N, O] = i(!1), $ = () => {
|
|
28
|
-
o([]), e == null || e([], []);
|
|
29
|
-
}, q = (s, r, H) => {
|
|
30
|
-
H === "confirm" ? f(!1) : (o([...r]), e == null || e([...s], [...r]));
|
|
31
|
-
}, z = (s, r) => {
|
|
32
|
-
o(r), e == null || e(s, r);
|
|
33
|
-
}, G = (s) => {
|
|
34
|
-
!c && s && f(!0), !N && !s && c && f(!1);
|
|
1
|
+
import { j as m } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useState as i, useEffect as u } from "react";
|
|
3
|
+
import { Select as q } from "antd";
|
|
4
|
+
import z from "../SelectPopup/index.mjs";
|
|
5
|
+
function K({ value: o, options: t, columns: b, tableData: S, total: d, loading: T, loadingFailed: V, loadAgain: w, page: x, onPageChange: g, searchInput: h, showToolTagSelect: j, toolTags: y, onToolTagChange: D, lrLayout: k, parentRender: A, placeholder: E = "请选择", fieldNames: p, onChange: e, ...N }) {
|
|
6
|
+
const [n, P] = i([]), [f, r] = i([]), [a, c] = i(!1), [B, F] = i(!1), v = () => {
|
|
7
|
+
r([]), e == null || e([], []);
|
|
8
|
+
}, I = (l, s, $) => {
|
|
9
|
+
$ === "confirm" ? c(!1) : (r([...s]), e == null || e([...l], [...s]));
|
|
10
|
+
}, L = (l, s) => {
|
|
11
|
+
r(s), e == null || e(l, s);
|
|
12
|
+
}, O = (l) => {
|
|
13
|
+
!a && l && c(!0), !B && !l && a && c(!1);
|
|
35
14
|
};
|
|
36
|
-
return
|
|
37
|
-
if (
|
|
38
|
-
throw new Error(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, [
|
|
43
|
-
t != null && t.length && o(t);
|
|
44
|
-
}, [t]), /* @__PURE__ */ S.jsx(
|
|
45
|
-
I,
|
|
46
|
-
{
|
|
47
|
-
allowClear: !0,
|
|
48
|
-
className: "tableSelectBlock",
|
|
49
|
-
mode: "multiple",
|
|
50
|
-
maxTagCount: "responsive",
|
|
51
|
-
value: m,
|
|
52
|
-
options: u,
|
|
53
|
-
fieldNames: p,
|
|
54
|
-
showSearch: !1,
|
|
55
|
-
open: c,
|
|
56
|
-
placeholder: d,
|
|
57
|
-
popupClassName: "tableSelectPopupBlock",
|
|
58
|
-
dropdownRender: () => /* @__PURE__ */ S.jsx(
|
|
59
|
-
J,
|
|
60
|
-
{
|
|
61
|
-
columns: a,
|
|
62
|
-
tableData: n,
|
|
63
|
-
total: x,
|
|
64
|
-
page: T,
|
|
65
|
-
onPageChange: k,
|
|
66
|
-
searchInput: y,
|
|
67
|
-
loading: V,
|
|
68
|
-
loadingFailed: j,
|
|
69
|
-
loadAgain: w,
|
|
70
|
-
keys: m,
|
|
71
|
-
rows: u,
|
|
72
|
-
fieldNames: p,
|
|
73
|
-
onChange: q,
|
|
74
|
-
onDropdownVisibleChange: O,
|
|
75
|
-
showToolTagSelect: E,
|
|
76
|
-
toolTags: A,
|
|
77
|
-
onToolTagChange: B,
|
|
78
|
-
lrLayout: D,
|
|
79
|
-
parentRender: P
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
|
-
onClear: $,
|
|
83
|
-
onDropdownVisibleChange: G,
|
|
84
|
-
onChange: z,
|
|
85
|
-
...v
|
|
86
|
-
}
|
|
87
|
-
);
|
|
15
|
+
return u(() => {
|
|
16
|
+
if (o && !Array.isArray(o))
|
|
17
|
+
throw new Error(`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${o}`);
|
|
18
|
+
P(o ?? []);
|
|
19
|
+
}, [o]), u(() => {
|
|
20
|
+
t != null && t.length && r(t);
|
|
21
|
+
}, [t]), m.jsx(q, { allowClear: !0, className: "tableSelectBlock", mode: "multiple", maxTagCount: "responsive", value: n, options: f, fieldNames: p, showSearch: !1, open: a, placeholder: E, popupClassName: "tableSelectPopupBlock", dropdownRender: () => m.jsx(z, { columns: b, tableData: S, total: d, page: x, onPageChange: g, searchInput: h, loading: T, loadingFailed: V, loadAgain: w, keys: n, rows: f, fieldNames: p, onChange: I, onDropdownVisibleChange: F, showToolTagSelect: j, toolTags: y, onToolTagChange: D, lrLayout: k, parentRender: A }), onClear: v, onDropdownVisibleChange: O, onChange: L, ...N });
|
|
88
22
|
}
|
|
89
23
|
export {
|
|
90
|
-
|
|
24
|
+
K as default
|
|
91
25
|
};
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import m from "../../BitzDescriptions/index.mjs";
|
|
3
|
+
import a from "../TableCell/index.mjs";
|
|
4
4
|
import u from "../TextBlock/index.mjs";
|
|
5
5
|
const b = (o, n, e) => {
|
|
6
|
-
const l = o.map((r) => (typeof r.title == "string" && (r.title =
|
|
6
|
+
const l = o.map((r) => (typeof r.title == "string" && (r.title = i.jsx(u, { value: r.title, bold: 600 })), {
|
|
7
7
|
...r,
|
|
8
8
|
width: "auto",
|
|
9
|
-
render: (t, c,
|
|
10
|
-
const
|
|
9
|
+
render: (t, c, f) => {
|
|
10
|
+
const g = (n == null ? void 0 : n.length) === 1 ? !1 : f + 1 > ((n == null ? void 0 : n.length) || 0) / 2;
|
|
11
11
|
if (r != null && r.render) {
|
|
12
|
-
const s = r.render(t, c,
|
|
12
|
+
const s = r.render(t, c, f);
|
|
13
13
|
if (typeof s == "object")
|
|
14
14
|
return s;
|
|
15
|
-
if (["boolean", "number", "bigint", "string"].includes(
|
|
16
|
-
|
|
17
|
-
))
|
|
18
|
-
return /* @__PURE__ */ i.jsx(m, { value: `${s}`, isLatterHalf: f });
|
|
15
|
+
if (["boolean", "number", "bigint", "string"].includes(typeof s))
|
|
16
|
+
return i.jsx(a, { value: `${s}`, isLatterHalf: g });
|
|
19
17
|
}
|
|
20
|
-
return !t && !["boolean", "number", "bigint"].includes(typeof t) ?
|
|
18
|
+
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? i.jsx(u, { value: "-" }) : i.jsx(a, { value: t, isLatterHalf: g });
|
|
21
19
|
}
|
|
22
20
|
}));
|
|
23
21
|
return [
|
|
@@ -38,16 +36,8 @@ const b = (o, n, e) => {
|
|
|
38
36
|
},
|
|
39
37
|
expandedRowRender: (e) => {
|
|
40
38
|
var r;
|
|
41
|
-
const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label =
|
|
42
|
-
return
|
|
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
|
-
);
|
|
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(m, { size: "small", bordered: !0, items: l, column: { xs: 1, sm: 1, md: 1, lg: 2, xl: 2, xxl: 2 } });
|
|
51
41
|
}
|
|
52
42
|
}
|
|
53
43
|
} : null, w = (o, n) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useRef as ee, useState as y, useMemo as g, useCallback as te, useEffect as re } from "react";
|
|
3
|
-
import { Row as m, Col as c, Space as k, Form as d, Select as
|
|
3
|
+
import { Row as m, Col as c, Space as k, Form as d, Select as F, Spin as oe, Typography as le, Flex as se, Empty as A } from "antd";
|
|
4
4
|
import ce from "../../BitzPagination/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { getColumns as
|
|
5
|
+
import ne from "../../BitzTable/index.mjs";
|
|
6
|
+
import M from "../../BitzButton/index.mjs";
|
|
7
|
+
import { getColumns as ie, getExpandable as ae, getLayoutConfig as de } from "./getData.mjs";
|
|
8
8
|
import pe from "../TextBlock/index.mjs";
|
|
9
9
|
import ue from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
10
10
|
import xe from "../../BitzTheme/index.mjs";
|
|
@@ -12,222 +12,52 @@ import me from "../../../node_modules/.store/classnames@2.5.1/node_modules/class
|
|
|
12
12
|
import "./index.less.mjs";
|
|
13
13
|
import he from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
|
|
14
14
|
import je from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
loading: i,
|
|
20
|
-
loadingFailed: p,
|
|
21
|
-
loadAgain: _,
|
|
22
|
-
page: w,
|
|
23
|
-
onPageChange: A,
|
|
24
|
-
searchInput: G,
|
|
25
|
-
showToolTagSelect: v,
|
|
26
|
-
toolTags: H,
|
|
27
|
-
onToolTagChange: j,
|
|
28
|
-
lrLayout: b,
|
|
29
|
-
parentRender: P,
|
|
30
|
-
keys: R,
|
|
31
|
-
rows: B,
|
|
32
|
-
fieldNames: l,
|
|
33
|
-
onChange: u,
|
|
34
|
-
onDropdownVisibleChange: x
|
|
35
|
-
}) {
|
|
36
|
-
var z, C;
|
|
37
|
-
const E = ee(null), f = ue(E), { token: t } = xe.useToken(), I = ((z = t == null ? void 0 : t.BitzTableSelect) == null ? void 0 : z.tableSpaceBetweenPage) ?? 10, [a, L] = y([]), [n, O] = y([]), [W, $] = y(void 0), q = (o, r) => {
|
|
38
|
-
$(o), j == null || j(o, r), o || (x(!0), setTimeout(() => {
|
|
15
|
+
function ze({ columns: w, tableData: h, total: K, loading: n, loadingFailed: p, loadAgain: D, page: T, onPageChange: N, searchInput: _, showToolTagSelect: B, toolTags: G, onToolTagChange: j, lrLayout: b, parentRender: E, keys: R, rows: P, fieldNames: l, onChange: u, onDropdownVisibleChange: x }) {
|
|
16
|
+
var I, z;
|
|
17
|
+
const v = ee(null), f = ue(v), { token: t } = xe.useToken(), C = ((I = t == null ? void 0 : t.BitzTableSelect) == null ? void 0 : I.tableSpaceBetweenPage) ?? 10, [a, H] = y([]), [i, L] = y([]), [O, W] = y(void 0), $ = (o, r) => {
|
|
18
|
+
W(o), j == null || j(o, r), o || (x(!0), setTimeout(() => {
|
|
39
19
|
x(!1);
|
|
40
20
|
}, 0));
|
|
41
|
-
},
|
|
21
|
+
}, q = g(() => ie(w, h, T), [w]), J = {
|
|
42
22
|
selectedRowKeys: a,
|
|
43
23
|
preserveSelectedRowKeys: !0,
|
|
44
24
|
onChange(o, r) {
|
|
45
25
|
u(o, r);
|
|
46
26
|
}
|
|
47
|
-
},
|
|
48
|
-
o[0],
|
|
49
|
-
" ",
|
|
50
|
-
/* @__PURE__ */ e.jsx("span", { style: { color: t.colorPrimary, fontWeight: 600 }, children: r }),
|
|
51
|
-
" ",
|
|
52
|
-
o[1]
|
|
53
|
-
] }), Y = () => {
|
|
27
|
+
}, Q = te(() => ae(l.items, n), [l.items]), U = (o, r) => e.jsxs("span", { style: { color: t.colorText }, children: [o[0], " ", e.jsx("span", { style: { color: t.colorPrimary, fontWeight: 600 }, children: r }), " ", o[1]] }), X = () => {
|
|
54
28
|
const o = (r) => {
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
), V = a.findIndex(
|
|
58
|
-
(S) => S === r[l.value]
|
|
59
|
-
);
|
|
60
|
-
n.splice(D, 1), a.splice(V, 1), u(a, n);
|
|
29
|
+
const Z = i.findIndex((S) => S[l.value] === r[l.value]), V = a.findIndex((S) => S === r[l.value]);
|
|
30
|
+
i.splice(Z, 1), a.splice(V, 1), u(a, i);
|
|
61
31
|
};
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
border: `1px solid ${t.colorBorder}`,
|
|
80
|
-
backgroundColor: "#f5f5f5",
|
|
81
|
-
borderRadius: t.borderRadiusSM,
|
|
82
|
-
overflow: "hidden"
|
|
83
|
-
},
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(pe, { value: r[l.label] }) }),
|
|
86
|
-
/* @__PURE__ */ e.jsx(
|
|
87
|
-
je,
|
|
88
|
-
{
|
|
89
|
-
style: {
|
|
90
|
-
color: t.colorError,
|
|
91
|
-
fontSize: 13,
|
|
92
|
-
cursor: "pointer"
|
|
93
|
-
},
|
|
94
|
-
onClick: () => o(r)
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
r[l.value]
|
|
100
|
-
)),
|
|
101
|
-
!n.length && /* @__PURE__ */ e.jsx(K, { image: K.PRESENTED_IMAGE_SIMPLE })
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
}, s = g(() => de(b, v), [b, v]), Z = g(() => me(
|
|
106
|
-
{ loadingTable: i },
|
|
107
|
-
{ loadingFailedTable: p },
|
|
108
|
-
"bitzSelectTable"
|
|
109
|
-
), [p, i]);
|
|
32
|
+
return e.jsxs(k, { direction: "vertical", style: {
|
|
33
|
+
width: "calc(100% - 5px)",
|
|
34
|
+
paddingRight: 5,
|
|
35
|
+
maxHeight: i.length ? 220 : "auto",
|
|
36
|
+
overflow: "hidden auto"
|
|
37
|
+
}, children: [i.map((r) => e.jsxs(se, { justify: "space-between", style: {
|
|
38
|
+
padding: "4px 8px",
|
|
39
|
+
border: `1px solid ${t.colorBorder}`,
|
|
40
|
+
backgroundColor: "#f5f5f5",
|
|
41
|
+
borderRadius: t.borderRadiusSM,
|
|
42
|
+
overflow: "hidden"
|
|
43
|
+
}, children: [e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: e.jsx(pe, { value: r[l.label] }) }), e.jsx(je, { style: {
|
|
44
|
+
color: t.colorError,
|
|
45
|
+
fontSize: 13,
|
|
46
|
+
cursor: "pointer"
|
|
47
|
+
}, onClick: () => o(r) })] }, r[l.value])), !i.length && e.jsx(A, { image: A.PRESENTED_IMAGE_SIMPLE })] });
|
|
48
|
+
}, s = g(() => de(b, B), [b, B]), Y = g(() => me({ loadingTable: n }, { loadingFailedTable: p }, "bitzSelectTable"), [p, n]);
|
|
110
49
|
return re(() => {
|
|
111
|
-
|
|
112
|
-
}, [R,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
allowClear: !0,
|
|
122
|
-
className: "tableSelectPopupToolTagSelect",
|
|
123
|
-
style: {
|
|
124
|
-
width: "100%",
|
|
125
|
-
"--toolTagSelect-color": i ? t.colorTextDisabled : t.colorText
|
|
126
|
-
},
|
|
127
|
-
placeholder: "常用标签",
|
|
128
|
-
showSearch: !1,
|
|
129
|
-
disabled: i,
|
|
130
|
-
options: H,
|
|
131
|
-
value: W,
|
|
132
|
-
onChange: q,
|
|
133
|
-
onDropdownVisibleChange: x
|
|
134
|
-
}
|
|
135
|
-
) }) }),
|
|
136
|
-
/* @__PURE__ */ e.jsx(c, { span: s.right.totalSelect, children: /* @__PURE__ */ e.jsx(d.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
|
|
137
|
-
/* @__PURE__ */ e.jsx(
|
|
138
|
-
M,
|
|
139
|
-
{
|
|
140
|
-
style: { width: "100%" },
|
|
141
|
-
mode: "multiple",
|
|
142
|
-
placeholder: "",
|
|
143
|
-
showSearch: !1,
|
|
144
|
-
options: n,
|
|
145
|
-
value: a,
|
|
146
|
-
fieldNames: l,
|
|
147
|
-
popupClassName: "tableSelectPopupTotalPopup",
|
|
148
|
-
dropdownRender: Y,
|
|
149
|
-
tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
150
|
-
onDropdownVisibleChange: x
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: X(
|
|
154
|
-
["已选择", "条数据"],
|
|
155
|
-
a.length || 0
|
|
156
|
-
) })
|
|
157
|
-
] }) }) }),
|
|
158
|
-
/* @__PURE__ */ e.jsx(c, { span: s.right.button, children: /* @__PURE__ */ e.jsx(
|
|
159
|
-
F,
|
|
160
|
-
{
|
|
161
|
-
type: "primary",
|
|
162
|
-
danger: !0,
|
|
163
|
-
onClick: () => u([], [], "clear"),
|
|
164
|
-
children: "清空"
|
|
165
|
-
}
|
|
166
|
-
) }),
|
|
167
|
-
/* @__PURE__ */ e.jsx(c, { span: s.right.button, children: /* @__PURE__ */ e.jsx(
|
|
168
|
-
F,
|
|
169
|
-
{
|
|
170
|
-
type: "primary",
|
|
171
|
-
onClick: () => u([], [], "confirm"),
|
|
172
|
-
children: "确认"
|
|
173
|
-
}
|
|
174
|
-
) })
|
|
175
|
-
] }) })
|
|
176
|
-
] }) }) }) }),
|
|
177
|
-
/* @__PURE__ */ e.jsx(
|
|
178
|
-
"div",
|
|
179
|
-
{
|
|
180
|
-
ref: E,
|
|
181
|
-
...p && {
|
|
182
|
-
className: "pointerMouse",
|
|
183
|
-
onClick: () => _()
|
|
184
|
-
},
|
|
185
|
-
children: /* @__PURE__ */ e.jsx(
|
|
186
|
-
oe,
|
|
187
|
-
{
|
|
188
|
-
spinning: p,
|
|
189
|
-
indicator: /* @__PURE__ */ e.jsx(he, {}),
|
|
190
|
-
tip: /* @__PURE__ */ e.jsx(le.Text, { type: "danger", children: "加载失败,点击重试" }),
|
|
191
|
-
children: /* @__PURE__ */ e.jsx(
|
|
192
|
-
ie,
|
|
193
|
-
{
|
|
194
|
-
rowKey: l.value,
|
|
195
|
-
loading: i,
|
|
196
|
-
bordered: "row-column",
|
|
197
|
-
tableLayout: "fixed",
|
|
198
|
-
scroll: { x: 1, y: 400 },
|
|
199
|
-
showPagination: !1,
|
|
200
|
-
showTableTool: !1,
|
|
201
|
-
rowSelection: Q,
|
|
202
|
-
columns: J,
|
|
203
|
-
dataSource: h,
|
|
204
|
-
className: Z,
|
|
205
|
-
...U(),
|
|
206
|
-
style: {
|
|
207
|
-
"--tableBody-bootomBorderColor": ((C = t.Table) == null ? void 0 : C.borderColor) || t.colorBorderSecondary
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
)
|
|
211
|
-
}
|
|
212
|
-
)
|
|
213
|
-
}
|
|
214
|
-
),
|
|
215
|
-
/* @__PURE__ */ e.jsx(d, { children: /* @__PURE__ */ e.jsx(d.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
|
|
216
|
-
ce,
|
|
217
|
-
{
|
|
218
|
-
disabled: i,
|
|
219
|
-
className: "tableSelectPopupTablePagination",
|
|
220
|
-
size: "small",
|
|
221
|
-
enableControl: !0,
|
|
222
|
-
pagination: w,
|
|
223
|
-
total: N,
|
|
224
|
-
dataSource: h,
|
|
225
|
-
paginationEmit: A
|
|
226
|
-
}
|
|
227
|
-
) }) })
|
|
228
|
-
] }) })
|
|
229
|
-
] });
|
|
50
|
+
H(R ?? []), L(P ?? []);
|
|
51
|
+
}, [R, P]), e.jsxs(m, { gutter: s.gutter, children: [e.jsx(c, { span: s.left.span, children: b && E && E(C, f == null ? void 0 : f.height) }), e.jsx(c, { span: s.right.span, children: e.jsxs(k, { direction: "vertical", size: C, style: { width: "100%" }, children: [e.jsx(d, { className: "tableSelectPopupSearchForm", children: e.jsx(m, { gutter: [16, 16], children: e.jsx(c, { span: 24, children: e.jsxs(m, { justify: "space-between", gutter: [16, 16], children: [e.jsx(c, { span: s.right.search, children: e.jsx(d.Item, { children: _ }) }), e.jsx(c, { span: s.right.operation, children: e.jsxs(m, { justify: "end", gutter: 8, children: [e.jsx(c, { span: s.right.toolTagSelect, children: e.jsx(d.Item, { children: e.jsx(F, { allowClear: !0, className: "tableSelectPopupToolTagSelect", style: {
|
|
52
|
+
width: "100%",
|
|
53
|
+
"--toolTagSelect-color": n ? t.colorTextDisabled : t.colorText
|
|
54
|
+
}, placeholder: "常用标签", showSearch: !1, disabled: n, options: G, value: O, onChange: $, onDropdownVisibleChange: x }) }) }), e.jsx(c, { span: s.right.totalSelect, children: e.jsx(d.Item, { children: e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [e.jsx(F, { style: { width: "100%" }, mode: "multiple", placeholder: "", showSearch: !1, options: i, value: a, fieldNames: l, popupClassName: "tableSelectPopupTotalPopup", dropdownRender: X, tagRender: () => e.jsx(e.Fragment, {}), onDropdownVisibleChange: x }), e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: U(["已选择", "条数据"], a.length || 0) })] }) }) }), e.jsx(c, { span: s.right.button, children: e.jsx(M, { type: "primary", danger: !0, onClick: () => u([], [], "clear"), children: "清空" }) }), e.jsx(c, { span: s.right.button, children: e.jsx(M, { type: "primary", onClick: () => u([], [], "confirm"), children: "确认" }) })] }) })] }) }) }) }), e.jsx("div", { ref: v, ...p && {
|
|
55
|
+
className: "pointerMouse",
|
|
56
|
+
onClick: () => D()
|
|
57
|
+
}, children: e.jsx(oe, { spinning: p, indicator: e.jsx(he, {}), tip: e.jsx(le.Text, { type: "danger", children: "加载失败,点击重试" }), children: e.jsx(ne, { rowKey: l.value, loading: n, bordered: "row-column", tableLayout: "fixed", scroll: { x: 1, y: 400 }, showPagination: !1, showTableTool: !1, rowSelection: J, columns: q, dataSource: h, className: Y, ...Q(), style: {
|
|
58
|
+
"--tableBody-bootomBorderColor": ((z = t.Table) == null ? void 0 : z.borderColor) || t.colorBorderSecondary
|
|
59
|
+
} }) }) }), e.jsx(d, { children: e.jsx(d.Item, { style: { marginBottom: 0 }, children: e.jsx(ce, { disabled: n, className: "tableSelectPopupTablePagination", size: "small", enableControl: !0, pagination: T, total: K, dataSource: h, paginationEmit: N }) }) })] }) })] });
|
|
230
60
|
}
|
|
231
61
|
export {
|
|
232
|
-
|
|
62
|
+
ze as default
|
|
233
63
|
};
|
|
@@ -10,55 +10,14 @@ const { TextArea: x } = d, g = ({ value: t, isLatterHalf: l = !1 }) => {
|
|
|
10
10
|
paddingBlock: 12,
|
|
11
11
|
paddingInline: 24
|
|
12
12
|
}), [n]), [r, o] = m(!1);
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ e.jsx(p, { className: s("cellText"), value: t }),
|
|
22
|
-
/* @__PURE__ */ e.jsxs(
|
|
23
|
-
"div",
|
|
24
|
-
{
|
|
25
|
-
className: s(
|
|
26
|
-
"tipBlock",
|
|
27
|
-
l ? "toTop" : "toBottom",
|
|
28
|
-
r ? "show" : ""
|
|
29
|
-
),
|
|
30
|
-
style: {
|
|
31
|
-
paddingInlineStart: 24 - 2,
|
|
32
|
-
paddingInlineEnd: 24 - 4,
|
|
33
|
-
paddingBlock: 12
|
|
34
|
-
},
|
|
35
|
-
children: [
|
|
36
|
-
/* @__PURE__ */ e.jsx(
|
|
37
|
-
u,
|
|
38
|
-
{
|
|
39
|
-
className: s("closeIcon", l ? "top" : "bottom"),
|
|
40
|
-
onClick: () => o(!1)
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
/* @__PURE__ */ e.jsx(
|
|
44
|
-
x,
|
|
45
|
-
{
|
|
46
|
-
className: "tipText",
|
|
47
|
-
value: t,
|
|
48
|
-
autoSize: {
|
|
49
|
-
minRows: 1,
|
|
50
|
-
maxRows: 100
|
|
51
|
-
},
|
|
52
|
-
variant: "borderless",
|
|
53
|
-
readOnly: !0
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
);
|
|
13
|
+
return e.jsxs("div", { className: "cellBlock", style: a, onFocus: () => o(!0), onBlur: () => o(!1), children: [e.jsx(p, { className: s("cellText"), value: t }), e.jsxs("div", { className: s("tipBlock", l ? "toTop" : "toBottom", r ? "show" : ""), style: {
|
|
14
|
+
paddingInlineStart: 24 - 2,
|
|
15
|
+
paddingInlineEnd: 24 - 4,
|
|
16
|
+
paddingBlock: 12
|
|
17
|
+
}, children: [e.jsx(u, { className: s("closeIcon", l ? "top" : "bottom"), onClick: () => o(!1) }), e.jsx(x, { className: "tipText", value: t, autoSize: {
|
|
18
|
+
minRows: 1,
|
|
19
|
+
maxRows: 100
|
|
20
|
+
}, variant: "borderless", readOnly: !0 })] })] });
|
|
62
21
|
};
|
|
63
22
|
export {
|
|
64
23
|
g as default
|
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Input as
|
|
3
|
-
import
|
|
1
|
+
import { j as l } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Input as m } from "antd";
|
|
3
|
+
import i from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
4
|
import "./index.less.mjs";
|
|
5
|
-
const { TextArea: n } =
|
|
6
|
-
maxRows: t = 1,
|
|
7
|
-
minRows: o,
|
|
8
|
-
bold: e,
|
|
9
|
-
value: s,
|
|
10
|
-
className: r
|
|
11
|
-
}) => {
|
|
5
|
+
const { TextArea: n } = m, f = ({ maxRows: t = 1, minRows: o, bold: e, value: s, className: r }) => {
|
|
12
6
|
const a = {
|
|
13
7
|
"--cell-text-maxRows": t,
|
|
14
8
|
...e && {
|
|
15
9
|
fontWeight: e
|
|
16
10
|
}
|
|
17
11
|
};
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
title: s,
|
|
23
|
-
value: s,
|
|
24
|
-
readOnly: !0,
|
|
25
|
-
size: "small",
|
|
26
|
-
variant: "borderless",
|
|
27
|
-
autoSize: {
|
|
28
|
-
minRows: o ?? t,
|
|
29
|
-
maxRows: t
|
|
30
|
-
},
|
|
31
|
-
style: a
|
|
32
|
-
}
|
|
33
|
-
);
|
|
12
|
+
return l.jsx(n, { className: i("textBlock", r), title: s, value: s, readOnly: !0, size: "small", variant: "borderless", autoSize: {
|
|
13
|
+
minRows: o ?? t,
|
|
14
|
+
maxRows: t
|
|
15
|
+
}, style: a });
|
|
34
16
|
};
|
|
35
17
|
export {
|
|
36
|
-
|
|
18
|
+
f as default
|
|
37
19
|
};
|