bitz-react-admin-ui 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- package/dist/assets/iconfont/index.mjs +29 -29
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +14 -13
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFluentInput/index.mjs +23 -4
- package/dist/components/BitzFluentSelect/index.mjs +24 -5
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +29 -6
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +62 -14
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +33 -5
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +90 -16
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +32 -14
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +68 -45
- package/dist/components/BitzTable/Table/index.mjs +305 -145
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +82 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +95 -21
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +246 -138
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +142 -85
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +32 -11
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +52 -9
- package/dist/components/BitzTable/ToolBar/index.d.ts +2 -2
- package/dist/components/BitzTable/index.d.ts +2 -2
- package/dist/components/BitzTable/index.mjs +2 -2
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +21 -11
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,25 +1,91 @@
|
|
|
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
|
-
|
|
1
|
+
import { j as S } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useState as i, useEffect as b } from "react";
|
|
3
|
+
import { Select as I } from "antd";
|
|
4
|
+
import J from "../SelectPopup/index.mjs";
|
|
5
|
+
function U({
|
|
6
|
+
value: l,
|
|
7
|
+
options: t,
|
|
8
|
+
columns: a,
|
|
9
|
+
tableData: n,
|
|
10
|
+
total: x,
|
|
11
|
+
loading: V,
|
|
12
|
+
loadingFailed: j,
|
|
13
|
+
loadAgain: w,
|
|
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);
|
|
14
35
|
};
|
|
15
|
-
return
|
|
16
|
-
if (
|
|
17
|
-
throw new Error(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, [
|
|
36
|
+
return b(() => {
|
|
37
|
+
if (l && !Array.isArray(l))
|
|
38
|
+
throw new Error(
|
|
39
|
+
`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${l}`
|
|
40
|
+
);
|
|
41
|
+
F(l ?? []);
|
|
42
|
+
}, [l]), b(() => {
|
|
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
|
+
);
|
|
22
88
|
}
|
|
23
89
|
export {
|
|
24
|
-
|
|
90
|
+
U as default
|
|
25
91
|
};
|
|
@@ -1,21 +1,23 @@
|
|
|
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 p from "../../BitzDescriptions/index.mjs";
|
|
3
|
+
import m 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 = i.jsx(u, { value: r.title, bold: 600 })), {
|
|
6
|
+
const l = o.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ 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, 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, c,
|
|
12
|
+
const s = r.render(t, c, g);
|
|
13
13
|
if (typeof s == "object")
|
|
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: "-" }) : i.jsx(
|
|
20
|
+
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? /* @__PURE__ */ i.jsx(u, { value: "-" }) : /* @__PURE__ */ i.jsx(m, { value: t, isLatterHalf: f });
|
|
19
21
|
}
|
|
20
22
|
}));
|
|
21
23
|
return [
|
|
@@ -36,8 +38,16 @@ const b = (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, 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 M, Spin as oe, Typography as le, Flex as se, Empty as K } from "antd";
|
|
4
4
|
import ce from "../../BitzPagination/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { getColumns as
|
|
5
|
+
import ie from "../../BitzTable/index.mjs";
|
|
6
|
+
import F from "../../BitzButton/index.mjs";
|
|
7
|
+
import { getColumns as ne, 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,52 +12,222 @@ 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
|
-
|
|
15
|
+
function Ce({
|
|
16
|
+
columns: T,
|
|
17
|
+
tableData: h,
|
|
18
|
+
total: N,
|
|
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(() => {
|
|
19
39
|
x(!1);
|
|
20
40
|
}, 0));
|
|
21
|
-
},
|
|
41
|
+
}, J = g(() => ne(T, h, w), [T]), Q = {
|
|
22
42
|
selectedRowKeys: a,
|
|
23
43
|
preserveSelectedRowKeys: !0,
|
|
24
44
|
onChange(o, r) {
|
|
25
45
|
u(o, r);
|
|
26
46
|
}
|
|
27
|
-
},
|
|
47
|
+
}, U = te(() => ae(l.items, i), [l.items]), X = (o, r) => /* @__PURE__ */ e.jsxs("span", { style: { color: t.colorText }, children: [
|
|
48
|
+
o[0],
|
|
49
|
+
" ",
|
|
50
|
+
/* @__PURE__ */ e.jsx("span", { style: { color: t.colorPrimary, fontWeight: 600 }, children: r }),
|
|
51
|
+
" ",
|
|
52
|
+
o[1]
|
|
53
|
+
] }), Y = () => {
|
|
28
54
|
const o = (r) => {
|
|
29
|
-
const
|
|
30
|
-
|
|
55
|
+
const D = n.findIndex(
|
|
56
|
+
(S) => S[l.value] === r[l.value]
|
|
57
|
+
), V = a.findIndex(
|
|
58
|
+
(S) => S === r[l.value]
|
|
59
|
+
);
|
|
60
|
+
n.splice(D, 1), a.splice(V, 1), u(a, n);
|
|
31
61
|
};
|
|
32
|
-
return e.jsxs(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
return /* @__PURE__ */ e.jsxs(
|
|
63
|
+
k,
|
|
64
|
+
{
|
|
65
|
+
direction: "vertical",
|
|
66
|
+
style: {
|
|
67
|
+
width: "calc(100% - 5px)",
|
|
68
|
+
paddingRight: 5,
|
|
69
|
+
maxHeight: n.length ? 220 : "auto",
|
|
70
|
+
overflow: "hidden auto"
|
|
71
|
+
},
|
|
72
|
+
children: [
|
|
73
|
+
n.map((r) => /* @__PURE__ */ e.jsxs(
|
|
74
|
+
se,
|
|
75
|
+
{
|
|
76
|
+
justify: "space-between",
|
|
77
|
+
style: {
|
|
78
|
+
padding: "4px 8px",
|
|
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]);
|
|
49
110
|
return re(() => {
|
|
50
|
-
|
|
51
|
-
}, [R,
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
111
|
+
L(R ?? []), O(B ?? []);
|
|
112
|
+
}, [R, B]), /* @__PURE__ */ e.jsxs(m, { gutter: s.gutter, children: [
|
|
113
|
+
/* @__PURE__ */ e.jsx(c, { span: s.left.span, children: b && P && P(I, f == null ? void 0 : f.height) }),
|
|
114
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.span, children: /* @__PURE__ */ e.jsxs(k, { direction: "vertical", size: I, style: { width: "100%" }, children: [
|
|
115
|
+
/* @__PURE__ */ e.jsx(d, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(m, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(c, { span: 24, children: /* @__PURE__ */ e.jsxs(m, { justify: "space-between", gutter: [16, 16], children: [
|
|
116
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.search, children: /* @__PURE__ */ e.jsx(d.Item, { children: G }) }),
|
|
117
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.operation, children: /* @__PURE__ */ e.jsxs(m, { justify: "end", gutter: 8, children: [
|
|
118
|
+
/* @__PURE__ */ e.jsx(c, { span: s.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(d.Item, { children: /* @__PURE__ */ e.jsx(
|
|
119
|
+
M,
|
|
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
|
+
] });
|
|
60
230
|
}
|
|
61
231
|
export {
|
|
62
|
-
|
|
232
|
+
Ce as default
|
|
63
233
|
};
|
|
@@ -10,14 +10,55 @@ 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
|
-
|
|
13
|
+
return /* @__PURE__ */ e.jsxs(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: "cellBlock",
|
|
17
|
+
style: a,
|
|
18
|
+
onFocus: () => o(!0),
|
|
19
|
+
onBlur: () => o(!1),
|
|
20
|
+
children: [
|
|
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
|
+
);
|
|
21
62
|
};
|
|
22
63
|
export {
|
|
23
64
|
g as default
|
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Input as
|
|
3
|
-
import
|
|
1
|
+
import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Input as l } from "antd";
|
|
3
|
+
import m from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
4
|
import "./index.less.mjs";
|
|
5
|
-
const { TextArea: n } =
|
|
5
|
+
const { TextArea: n } = l, u = ({
|
|
6
|
+
maxRows: t = 1,
|
|
7
|
+
minRows: o,
|
|
8
|
+
bold: e,
|
|
9
|
+
value: s,
|
|
10
|
+
className: r
|
|
11
|
+
}) => {
|
|
6
12
|
const a = {
|
|
7
13
|
"--cell-text-maxRows": t,
|
|
8
14
|
...e && {
|
|
9
15
|
fontWeight: e
|
|
10
16
|
}
|
|
11
17
|
};
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
return /* @__PURE__ */ i.jsx(
|
|
19
|
+
n,
|
|
20
|
+
{
|
|
21
|
+
className: m("textBlock", r),
|
|
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
|
+
);
|
|
16
34
|
};
|
|
17
35
|
export {
|
|
18
|
-
|
|
36
|
+
u as default
|
|
19
37
|
};
|
|
@@ -1,16 +1,64 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useMemo as j } from "react";
|
|
3
|
+
import { isMobile as F } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import M from "./Select/index.mjs";
|
|
5
|
+
import d from "./Picker/index.mjs";
|
|
6
|
+
function z({
|
|
7
|
+
columns: l,
|
|
8
|
+
tableData: m,
|
|
9
|
+
loading: u,
|
|
10
|
+
loadingFailed: p,
|
|
11
|
+
loadAgain: c,
|
|
12
|
+
total: s,
|
|
13
|
+
page: i,
|
|
14
|
+
onPageChange: b,
|
|
15
|
+
onSearch: f,
|
|
16
|
+
showToolTagSelect: r = !1,
|
|
17
|
+
placeholder: o = "请选择",
|
|
18
|
+
fieldNames: a,
|
|
19
|
+
offsetWidth: n,
|
|
20
|
+
...e
|
|
21
|
+
}) {
|
|
22
|
+
const x = j(() => e.lrLayout ? r ? 900 + (n || 0) : 830 + (n || 0) : r ? 750 + (n || 0) : 700 + (n || 0), [e.lrLayout, r, n]);
|
|
23
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: F ? /* @__PURE__ */ t.jsx(
|
|
24
|
+
d,
|
|
25
|
+
{
|
|
26
|
+
columns: [],
|
|
27
|
+
tableData: [],
|
|
28
|
+
loading: !1,
|
|
29
|
+
loadingFailed: !1,
|
|
30
|
+
loadAgain: function() {
|
|
31
|
+
throw new Error("Function not implemented.");
|
|
32
|
+
},
|
|
33
|
+
total: 0,
|
|
34
|
+
page: i,
|
|
35
|
+
onPageChange: function() {
|
|
36
|
+
throw new Error("Function not implemented.");
|
|
37
|
+
},
|
|
38
|
+
placeholder: o,
|
|
39
|
+
fieldNames: a,
|
|
40
|
+
...e
|
|
41
|
+
}
|
|
42
|
+
) : /* @__PURE__ */ t.jsx(
|
|
43
|
+
M,
|
|
44
|
+
{
|
|
45
|
+
columns: l,
|
|
46
|
+
tableData: m,
|
|
47
|
+
loading: u,
|
|
48
|
+
loadingFailed: p,
|
|
49
|
+
loadAgain: c,
|
|
50
|
+
total: s,
|
|
51
|
+
page: i,
|
|
52
|
+
onPageChange: b,
|
|
53
|
+
onSearch: f,
|
|
54
|
+
placeholder: o,
|
|
55
|
+
fieldNames: a,
|
|
56
|
+
popupMatchSelectWidth: x,
|
|
57
|
+
showToolTagSelect: r,
|
|
58
|
+
...e
|
|
59
|
+
}
|
|
60
|
+
) });
|
|
13
61
|
}
|
|
14
62
|
export {
|
|
15
|
-
|
|
63
|
+
z as default
|
|
16
64
|
};
|
|
@@ -2,7 +2,7 @@ import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { Tag as a } from "antd";
|
|
3
3
|
const p = ({ color: t = "default", closable: e = !1, ...o }) => {
|
|
4
4
|
const r = { color: t, closable: e, ...o };
|
|
5
|
-
return s.jsx(a, { ...r, children: r.children });
|
|
5
|
+
return /* @__PURE__ */ s.jsx(a, { ...r, children: r.children });
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
p as default
|