bitz-react-admin-ui 2.1.6 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzConfigProvider/context.d.ts +6 -0
- package/dist/components/BitzConfigProvider/index.d.ts +2 -0
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/Store/index.d.ts +2 -2
- package/dist/components/BitzTable/Store/index.mjs +35 -35
- package/dist/components/BitzTable/Store/utils/index.mjs +24 -24
- package/dist/components/BitzTable/Table/index.d.ts +3 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +4 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +116 -109
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +5 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +24 -25
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -10
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +57 -76
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +41 -55
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +3 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +47 -0
- package/dist/components/BitzTable/ToolBar/index.d.ts +3 -3
- package/dist/components/BitzTable/index.d.ts +2 -2
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -14
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +82 -80
- package/dist/components/BitzTableSelect/TableCell/index.mjs +25 -23
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +17 -16
- package/dist/components/BitzTableSelect/index.d.ts +1 -0
- package/dist/components/BitzTableSelect/index.mjs +33 -31
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,76 +1,62 @@
|
|
|
1
1
|
import { j as o } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { memo as x, useState as y, useContext as d } from "react";
|
|
3
|
+
import c from "../style.mjs";
|
|
4
|
+
import b from "../../../BitzButton/index.mjs";
|
|
5
|
+
import g from "../../Dropdown/index.mjs";
|
|
6
|
+
import j from "./AnyDataTotalLabel.mjs";
|
|
7
|
+
import { BitzTableContext as E } from "../../Store/index.mjs";
|
|
8
|
+
import { overlayStyles as N } from "./styles.mjs";
|
|
9
|
+
import O from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
|
|
10
|
+
const h = ({
|
|
11
|
+
show: n = !0,
|
|
12
|
+
order: s,
|
|
12
13
|
loading: m,
|
|
13
14
|
onClick: e,
|
|
14
|
-
icon: l = /* @__PURE__ */ o.jsx(
|
|
15
|
+
icon: l = /* @__PURE__ */ o.jsx(O, {})
|
|
15
16
|
}) => {
|
|
16
|
-
const { toolbarItemClassName:
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const { toolbarItemClassName: p } = c(), [i, r] = y(!1), a = d(E).exportConfig, u = [
|
|
18
|
+
{ key: "current", label: "仅导出当前页" },
|
|
19
|
+
{ key: "all", label: "导出全部数据" },
|
|
20
|
+
{ type: "divider" },
|
|
19
21
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{ type: "divider" },
|
|
27
|
-
{
|
|
28
|
-
key: "any",
|
|
29
|
-
label: /* @__PURE__ */ o.jsx(
|
|
30
|
-
c,
|
|
31
|
-
{
|
|
32
|
-
onClick: (t, i) => e == null ? void 0 : e(t, i),
|
|
33
|
-
onClose: () => r(!1)
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
className: "anyTotal"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
onClick: ({ key: t }) => e == null ? void 0 : e(t)
|
|
40
|
-
},
|
|
41
|
-
overlayClassName: b`
|
|
42
|
-
.ant-dropdown-menu.ant-dropdown-menu-root {
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
|
|
46
|
-
.anyTotal {
|
|
47
|
-
cursor: default !important;
|
|
48
|
-
margin: 5px 12px;
|
|
49
|
-
padding: 0;
|
|
50
|
-
|
|
51
|
-
&:hover {
|
|
52
|
-
background-color: inherit !important;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
22
|
+
key: "any",
|
|
23
|
+
label: /* @__PURE__ */ o.jsx(
|
|
24
|
+
j,
|
|
25
|
+
{
|
|
26
|
+
onClick: (t, f) => e == null ? void 0 : e(t, a, f),
|
|
27
|
+
onClose: () => r(!1)
|
|
55
28
|
}
|
|
56
|
-
|
|
29
|
+
),
|
|
30
|
+
className: "anyTotal"
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
return n ? /* @__PURE__ */ o.jsx(
|
|
34
|
+
g,
|
|
35
|
+
{
|
|
36
|
+
open: i,
|
|
37
|
+
onOpenChange: r,
|
|
38
|
+
overlayClassName: N,
|
|
57
39
|
trigger: ["click"],
|
|
58
40
|
disabled: m,
|
|
59
41
|
destroyPopupOnHide: !0,
|
|
60
42
|
getPopupContainer: (t) => t.parentElement.parentElement.parentElement,
|
|
43
|
+
menu: {
|
|
44
|
+
items: u,
|
|
45
|
+
onClick: ({ key: t }) => e == null ? void 0 : e(t, a)
|
|
46
|
+
},
|
|
61
47
|
children: /* @__PURE__ */ o.jsx(
|
|
62
|
-
|
|
48
|
+
b,
|
|
63
49
|
{
|
|
64
50
|
type: "text",
|
|
65
|
-
className:
|
|
51
|
+
className: p,
|
|
66
52
|
icon: l,
|
|
67
|
-
style: { order:
|
|
53
|
+
style: { order: s },
|
|
68
54
|
children: "下载"
|
|
69
55
|
}
|
|
70
56
|
)
|
|
71
57
|
}
|
|
72
58
|
) : null;
|
|
73
|
-
},
|
|
59
|
+
}, P = x(h);
|
|
74
60
|
export {
|
|
75
|
-
|
|
61
|
+
P as default
|
|
76
62
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { css as t } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
2
|
+
const a = t`
|
|
3
|
+
.anyTotal {
|
|
4
|
+
cursor: default !important;
|
|
5
|
+
padding: 0 !important;
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
background-color: inherit !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`, e = t`
|
|
12
|
+
width: auto;
|
|
13
|
+
height: calc(var(--fontSize) + 12px);
|
|
14
|
+
|
|
15
|
+
.ant-select-selection-item {
|
|
16
|
+
padding-right: 0 !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ant-select-selector {
|
|
20
|
+
width: auto !important;
|
|
21
|
+
padding-inline: 8px !important;
|
|
22
|
+
}
|
|
23
|
+
`, i = t`
|
|
24
|
+
.ant-input-number-group-wrapper {
|
|
25
|
+
height: calc(var(--fontSize) + 12px);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ant-input-number-wrapper,
|
|
29
|
+
.ant-input-number,
|
|
30
|
+
.ant-input-number-input-wrap,
|
|
31
|
+
.ant-input-number-input {
|
|
32
|
+
height: 100% !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ant-input-number {
|
|
36
|
+
box-shadow: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ant-input-number-group-addon {
|
|
40
|
+
width: auto;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
export {
|
|
44
|
+
i as inputNumberStyles,
|
|
45
|
+
a as overlayStyles,
|
|
46
|
+
e as selectStyles
|
|
47
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DensitySize } from '../Store';
|
|
1
|
+
import { DensitySize, ExportConfigProps, StylesConfigOnChangeValue } from '../Store';
|
|
2
2
|
import { MouseEventHandler } from 'react';
|
|
3
3
|
import { ToolEnum } from '../../../components/BitzConfigProvider/context';
|
|
4
4
|
import { ColumnsConfigProps } from '..';
|
|
5
5
|
export type MenuKeysType = 'current' | 'all' | 'any';
|
|
6
|
-
export type ExportEvent = (key: MenuKeysType, info?: {
|
|
6
|
+
export type ExportEvent = (key: MenuKeysType, exportConfig: ExportConfigProps[], info?: {
|
|
7
7
|
value: number;
|
|
8
8
|
type: 'page' | 'pieces';
|
|
9
9
|
}) => void;
|
|
@@ -50,5 +50,5 @@ export interface BitzTableToolBarProps {
|
|
|
50
50
|
/** 表格刷新 */
|
|
51
51
|
onRefresh?: MouseEventHandler;
|
|
52
52
|
/** 列配置更改 */
|
|
53
|
-
onColumnChange?: (columns: Record<string, ColumnsConfigProps
|
|
53
|
+
onColumnChange?: (styles: StylesConfigOnChangeValue, columns: Record<string, ColumnsConfigProps>, exportColumns: ExportConfigProps[]) => Promise<void>;
|
|
54
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BitzTableProps } from './Table';
|
|
2
|
-
import BitzTableProvider, { BitzTableContext, DensitySize as BitzTableSizeType, StylesStateType, ColumnStateType } from './Store';
|
|
2
|
+
import BitzTableProvider, { BitzTableContext, DensitySize as BitzTableSizeType, StylesStateType, ColumnStateType, ExportColumnStateType } from './Store';
|
|
3
3
|
import ActionBar from './ActionBar';
|
|
4
4
|
import ToolBar from './ToolBar/Wrapper';
|
|
5
5
|
import ActionCol from './ActionCol';
|
|
@@ -66,6 +66,6 @@ type CompoundedComponent = React.ForwardRefExoticComponent<BitzTableProps> & {
|
|
|
66
66
|
ActionCol: typeof ActionCol;
|
|
67
67
|
};
|
|
68
68
|
declare const BitzTable: CompoundedComponent;
|
|
69
|
-
export type { BitzTableProps, BitzTableSizeType, ColumnsConfigProps, StylesStateType, ColumnStateType, BitzTableColumnType, BitzTableColumnGroupType, BitzTableColumnsType, ActionsFunType, Action, BitzTableActionProps, BitzTableActionColProps, };
|
|
69
|
+
export type { BitzTableProps, BitzTableSizeType, ColumnsConfigProps, StylesStateType, ColumnStateType, ExportColumnStateType, BitzTableColumnType, BitzTableColumnGroupType, BitzTableColumnsType, ActionsFunType, Action, BitzTableActionProps, BitzTableActionColProps, };
|
|
70
70
|
export { BitzTableProvider, BitzTableContext };
|
|
71
71
|
export default BitzTable;
|
|
@@ -2,12 +2,13 @@ import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/r
|
|
|
2
2
|
import p from "../../BitzDescriptions/index.mjs";
|
|
3
3
|
import m from "../TableCell/index.mjs";
|
|
4
4
|
import u from "../TextBlock/index.mjs";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { defaultValue as a } from "../index.mjs";
|
|
6
|
+
const w = (n, o, e) => {
|
|
7
|
+
const l = n.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
|
|
7
8
|
...r,
|
|
8
9
|
width: "auto",
|
|
9
10
|
render: (t, c, g) => {
|
|
10
|
-
const f = (
|
|
11
|
+
const f = (o == null ? void 0 : o.length) === 1 ? !1 : g + 1 > ((o == null ? void 0 : o.length) || 0) / 2;
|
|
11
12
|
if (r != null && r.render) {
|
|
12
13
|
const s = r.render(t, c, g);
|
|
13
14
|
if (typeof s == "object")
|
|
@@ -17,7 +18,7 @@ const b = (o, n, e) => {
|
|
|
17
18
|
))
|
|
18
19
|
return /* @__PURE__ */ i.jsx(m, { value: `${s}`, isLatterHalf: f });
|
|
19
20
|
}
|
|
20
|
-
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? /* @__PURE__ */ i.jsx(u, { value:
|
|
21
|
+
return !t && !["boolean", "number", "bigint"].includes(typeof t) ? /* @__PURE__ */ i.jsx(u, { value: a }) : /* @__PURE__ */ i.jsx(m, { value: t, isLatterHalf: f });
|
|
21
22
|
}
|
|
22
23
|
}));
|
|
23
24
|
return [
|
|
@@ -30,15 +31,15 @@ const b = (o, n, e) => {
|
|
|
30
31
|
},
|
|
31
32
|
...l
|
|
32
33
|
];
|
|
33
|
-
},
|
|
34
|
+
}, R = (n, o) => n ? {
|
|
34
35
|
expandable: {
|
|
35
36
|
rowExpandable: (e) => {
|
|
36
37
|
var l;
|
|
37
|
-
return
|
|
38
|
+
return o ? !0 : (l = e[n]) == null ? void 0 : l.length;
|
|
38
39
|
},
|
|
39
40
|
expandedRowRender: (e) => {
|
|
40
41
|
var r;
|
|
41
|
-
const l = (r = e[
|
|
42
|
+
const l = (r = e[n]) == 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
43
|
return /* @__PURE__ */ i.jsx(
|
|
43
44
|
p,
|
|
44
45
|
{
|
|
@@ -50,8 +51,8 @@ const b = (o, n, e) => {
|
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
} : null,
|
|
54
|
-
if (
|
|
54
|
+
} : null, S = (n, o) => {
|
|
55
|
+
if (n) {
|
|
55
56
|
const e = {
|
|
56
57
|
gutter: 20,
|
|
57
58
|
left: {
|
|
@@ -66,7 +67,7 @@ const b = (o, n, e) => {
|
|
|
66
67
|
button: 4
|
|
67
68
|
}
|
|
68
69
|
};
|
|
69
|
-
return
|
|
70
|
+
return o || (e.right.search = 11, e.right.operation = 13, e.right.toolTagSelect = 0, e.right.totalSelect = 11, e.right.button = void 0), e;
|
|
70
71
|
} else {
|
|
71
72
|
const e = {
|
|
72
73
|
gutter: 0,
|
|
@@ -82,11 +83,11 @@ const b = (o, n, e) => {
|
|
|
82
83
|
button: void 0
|
|
83
84
|
}
|
|
84
85
|
};
|
|
85
|
-
return
|
|
86
|
+
return o || (e.right.search = 11, e.right.operation = 13, e.right.toolTagSelect = 0, e.right.totalSelect = 11), e;
|
|
86
87
|
}
|
|
87
88
|
};
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
w as getColumns,
|
|
91
|
+
R as getExpandable,
|
|
92
|
+
S as getLayoutConfig
|
|
92
93
|
};
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Row as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { getColumns as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
2
|
+
import { useRef as se, useContext as ce, useState as v, useMemo as B, useCallback as ne, useEffect as ie } from "react";
|
|
3
|
+
import { Row as b, Col as a, Space as F, Form as h, Select as G, Spin as ae, Typography as pe, Flex as ue, Empty as H } from "antd";
|
|
4
|
+
import de from "../../BitzPagination/index.mjs";
|
|
5
|
+
import xe from "../../BitzTable/index.mjs";
|
|
6
|
+
import L from "../../BitzButton/index.mjs";
|
|
7
|
+
import { getColumns as me, getExpandable as he, getLayoutConfig as je } from "./getData.mjs";
|
|
8
|
+
import Se from "../TextBlock/index.mjs";
|
|
9
|
+
import fe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
10
|
+
import be from "../../BitzTheme/index.mjs";
|
|
11
|
+
import ye from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
12
|
+
import { BitzConfigContext as we } from "../../BitzConfigProvider/context.mjs";
|
|
12
13
|
import "./index.less.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
function
|
|
16
|
-
columns:
|
|
14
|
+
import Te from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
|
|
15
|
+
import ge from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
16
|
+
function He({
|
|
17
|
+
columns: P,
|
|
17
18
|
tableData: y,
|
|
18
|
-
total:
|
|
19
|
+
total: O,
|
|
19
20
|
loading: p,
|
|
20
21
|
loadingFailed: j,
|
|
21
|
-
loadAgain:
|
|
22
|
-
page:
|
|
23
|
-
onPageChange:
|
|
24
|
-
searchInput:
|
|
25
|
-
showToolTagSelect:
|
|
26
|
-
toolTags:
|
|
22
|
+
loadAgain: W,
|
|
23
|
+
page: z,
|
|
24
|
+
onPageChange: $,
|
|
25
|
+
searchInput: q,
|
|
26
|
+
showToolTagSelect: E,
|
|
27
|
+
toolTags: J,
|
|
27
28
|
onToolTagChange: w,
|
|
28
29
|
lrLayout: T,
|
|
29
|
-
parentRender:
|
|
30
|
-
keys:
|
|
31
|
-
rows:
|
|
30
|
+
parentRender: I,
|
|
31
|
+
keys: R,
|
|
32
|
+
rows: C,
|
|
32
33
|
fieldNames: t,
|
|
33
34
|
onChange: x,
|
|
34
35
|
onDropdownVisibleChange: S
|
|
35
36
|
}) {
|
|
36
|
-
var K, _;
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
var K, _, A;
|
|
38
|
+
const k = se(null), g = fe(k), { token: s } = be.useToken(), M = ((K = s == null ? void 0 : s.BitzTableSelect) == null ? void 0 : K.tableSpaceBetweenPage) ?? 10, Q = ((_ = ce(we).TableSelect) == null ? void 0 : _.defaultSize) ?? "md", [c, U] = v([]), [r, X] = v([]), [Y, Z] = v(void 0), D = (l, o) => {
|
|
39
|
+
Z(l), w == null || w(l, o), l || (S(!0), setTimeout(() => {
|
|
39
40
|
S(!1);
|
|
40
41
|
}, 0));
|
|
41
|
-
},
|
|
42
|
+
}, V = B(() => me(P, y, z), [P]), N = {
|
|
42
43
|
selectedRowKeys: c,
|
|
43
44
|
onSelect: (l, o) => {
|
|
44
45
|
if (o)
|
|
@@ -56,26 +57,26 @@ function Ke({
|
|
|
56
57
|
onSelectAll: (l, o, u) => {
|
|
57
58
|
const d = u.map((i) => i[t.value]);
|
|
58
59
|
if (l) {
|
|
59
|
-
const i = c.concat(d),
|
|
60
|
-
x(i,
|
|
60
|
+
const i = c.concat(d), f = r.concat(u);
|
|
61
|
+
x(i, f);
|
|
61
62
|
} else {
|
|
62
|
-
const i = c == null ? void 0 : c.filter((
|
|
63
|
-
u.forEach((
|
|
64
|
-
|
|
63
|
+
const i = c == null ? void 0 : c.filter((m) => !d.includes(m)), f = /* @__PURE__ */ new Map();
|
|
64
|
+
u.forEach((m) => {
|
|
65
|
+
f.set(m[t.value], m);
|
|
65
66
|
});
|
|
66
|
-
const
|
|
67
|
-
(
|
|
67
|
+
const oe = r == null ? void 0 : r.filter(
|
|
68
|
+
(m) => !f.has(m[t.value])
|
|
68
69
|
);
|
|
69
|
-
x(i,
|
|
70
|
+
x(i, oe);
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
},
|
|
73
|
+
}, ee = ne(() => he(t.items, p), [t.items, p]), te = (l, o) => /* @__PURE__ */ e.jsxs("span", { style: { color: s.colorText }, children: [
|
|
73
74
|
l[0],
|
|
74
75
|
" ",
|
|
75
76
|
/* @__PURE__ */ e.jsx("span", { style: { color: s.colorPrimary, fontWeight: 600 }, children: o }),
|
|
76
77
|
" ",
|
|
77
78
|
l[1]
|
|
78
|
-
] }),
|
|
79
|
+
] }), re = () => {
|
|
79
80
|
const l = (o) => {
|
|
80
81
|
const u = r.findIndex(
|
|
81
82
|
(i) => i[t.value] === o[t.value]
|
|
@@ -85,7 +86,7 @@ function Ke({
|
|
|
85
86
|
r.splice(u, 1), c.splice(d, 1), x(c, r);
|
|
86
87
|
};
|
|
87
88
|
return /* @__PURE__ */ e.jsxs(
|
|
88
|
-
|
|
89
|
+
F,
|
|
89
90
|
{
|
|
90
91
|
direction: "vertical",
|
|
91
92
|
style: {
|
|
@@ -96,7 +97,7 @@ function Ke({
|
|
|
96
97
|
},
|
|
97
98
|
children: [
|
|
98
99
|
r.map((o) => /* @__PURE__ */ e.jsxs(
|
|
99
|
-
|
|
100
|
+
ue,
|
|
100
101
|
{
|
|
101
102
|
justify: "space-between",
|
|
102
103
|
style: {
|
|
@@ -107,9 +108,9 @@ function Ke({
|
|
|
107
108
|
overflow: "hidden"
|
|
108
109
|
},
|
|
109
110
|
children: [
|
|
110
|
-
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(
|
|
111
|
+
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value: o[t.label] }) }),
|
|
111
112
|
/* @__PURE__ */ e.jsx(
|
|
112
|
-
|
|
113
|
+
ge,
|
|
113
114
|
{
|
|
114
115
|
style: {
|
|
115
116
|
color: s.colorError,
|
|
@@ -123,25 +124,25 @@ function Ke({
|
|
|
123
124
|
},
|
|
124
125
|
o[t.value]
|
|
125
126
|
)),
|
|
126
|
-
!r.length && /* @__PURE__ */ e.jsx(
|
|
127
|
+
!r.length && /* @__PURE__ */ e.jsx(H, { image: H.PRESENTED_IMAGE_SIMPLE })
|
|
127
128
|
]
|
|
128
129
|
}
|
|
129
130
|
);
|
|
130
|
-
}, n =
|
|
131
|
+
}, n = B(() => je(T, E), [T, E]), le = B(() => ye(
|
|
131
132
|
{ loadingTable: p },
|
|
132
133
|
{ loadingFailedTable: j },
|
|
133
134
|
"bitzSelectTable"
|
|
134
135
|
), [j, p]);
|
|
135
|
-
return
|
|
136
|
-
|
|
137
|
-
}, [
|
|
138
|
-
/* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T &&
|
|
139
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(
|
|
140
|
-
/* @__PURE__ */ e.jsx(
|
|
141
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(
|
|
142
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(
|
|
143
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(
|
|
144
|
-
|
|
136
|
+
return ie(() => {
|
|
137
|
+
U(R ?? []), X(C ?? []);
|
|
138
|
+
}, [R, C]), /* @__PURE__ */ e.jsxs(b, { gutter: n.gutter, children: [
|
|
139
|
+
/* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T && I && I(M, g == null ? void 0 : g.height) }),
|
|
140
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(F, { direction: "vertical", size: M, style: { width: "100%" }, children: [
|
|
141
|
+
/* @__PURE__ */ e.jsx(h, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(b, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(a, { span: 24, children: /* @__PURE__ */ e.jsxs(b, { justify: "space-between", gutter: [16, 16], children: [
|
|
142
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(h.Item, { children: q }) }),
|
|
143
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(b, { justify: "end", gutter: 8, children: [
|
|
144
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsx(
|
|
145
|
+
G,
|
|
145
146
|
{
|
|
146
147
|
allowClear: !0,
|
|
147
148
|
className: "tableSelectPopupToolTagSelect",
|
|
@@ -152,15 +153,15 @@ function Ke({
|
|
|
152
153
|
placeholder: "常用标签",
|
|
153
154
|
showSearch: !1,
|
|
154
155
|
disabled: p,
|
|
155
|
-
options:
|
|
156
|
-
value:
|
|
157
|
-
onChange:
|
|
156
|
+
options: J,
|
|
157
|
+
value: Y,
|
|
158
|
+
onChange: D,
|
|
158
159
|
onDropdownVisibleChange: S
|
|
159
160
|
}
|
|
160
161
|
) }) }),
|
|
161
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.totalSelect, children: /* @__PURE__ */ e.jsx(
|
|
162
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.totalSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
|
|
162
163
|
/* @__PURE__ */ e.jsx(
|
|
163
|
-
|
|
164
|
+
G,
|
|
164
165
|
{
|
|
165
166
|
style: { width: "100%" },
|
|
166
167
|
mode: "multiple",
|
|
@@ -170,18 +171,18 @@ function Ke({
|
|
|
170
171
|
value: c,
|
|
171
172
|
fieldNames: t,
|
|
172
173
|
popupClassName: "tableSelectPopupTotalPopup",
|
|
173
|
-
dropdownRender:
|
|
174
|
+
dropdownRender: re,
|
|
174
175
|
tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
175
176
|
onDropdownVisibleChange: S
|
|
176
177
|
}
|
|
177
178
|
),
|
|
178
|
-
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children:
|
|
179
|
+
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: te(
|
|
179
180
|
["已选择", "条数据"],
|
|
180
181
|
c.length || 0
|
|
181
182
|
) })
|
|
182
183
|
] }) }) }),
|
|
183
184
|
/* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
|
|
184
|
-
|
|
185
|
+
L,
|
|
185
186
|
{
|
|
186
187
|
type: "primary",
|
|
187
188
|
danger: !0,
|
|
@@ -190,7 +191,7 @@ function Ke({
|
|
|
190
191
|
}
|
|
191
192
|
) }),
|
|
192
193
|
/* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
|
|
193
|
-
|
|
194
|
+
L,
|
|
194
195
|
{
|
|
195
196
|
type: "primary",
|
|
196
197
|
onClick: () => x([], [], "confirm"),
|
|
@@ -202,20 +203,21 @@ function Ke({
|
|
|
202
203
|
/* @__PURE__ */ e.jsx(
|
|
203
204
|
"div",
|
|
204
205
|
{
|
|
205
|
-
ref:
|
|
206
|
+
ref: k,
|
|
206
207
|
...j && {
|
|
207
208
|
className: "pointerMouse",
|
|
208
|
-
onClick: () =>
|
|
209
|
+
onClick: () => W()
|
|
209
210
|
},
|
|
210
211
|
children: /* @__PURE__ */ e.jsx(
|
|
211
|
-
|
|
212
|
+
ae,
|
|
212
213
|
{
|
|
213
214
|
spinning: j,
|
|
214
|
-
indicator: /* @__PURE__ */ e.jsx(
|
|
215
|
-
tip: /* @__PURE__ */ e.jsx(
|
|
215
|
+
indicator: /* @__PURE__ */ e.jsx(Te, {}),
|
|
216
|
+
tip: /* @__PURE__ */ e.jsx(pe.Text, { type: "danger", children: "加载失败,点击重试" }),
|
|
216
217
|
children: /* @__PURE__ */ e.jsx(
|
|
217
|
-
|
|
218
|
+
xe,
|
|
218
219
|
{
|
|
220
|
+
size: Q,
|
|
219
221
|
rowKey: t.value,
|
|
220
222
|
loading: p,
|
|
221
223
|
bordered: "row-column",
|
|
@@ -223,13 +225,13 @@ function Ke({
|
|
|
223
225
|
scroll: { x: 1, y: 400 },
|
|
224
226
|
showPagination: !1,
|
|
225
227
|
showTableTool: !1,
|
|
226
|
-
rowSelection:
|
|
227
|
-
columns:
|
|
228
|
+
rowSelection: N,
|
|
229
|
+
columns: V,
|
|
228
230
|
dataSource: y,
|
|
229
|
-
className:
|
|
230
|
-
...
|
|
231
|
+
className: le,
|
|
232
|
+
...ee(),
|
|
231
233
|
style: {
|
|
232
|
-
"--tableBody-bootomBorderColor": ((
|
|
234
|
+
"--tableBody-bootomBorderColor": ((A = s.Table) == null ? void 0 : A.borderColor) || s.colorBorderSecondary
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
237
|
)
|
|
@@ -237,22 +239,22 @@ function Ke({
|
|
|
237
239
|
)
|
|
238
240
|
}
|
|
239
241
|
),
|
|
240
|
-
/* @__PURE__ */ e.jsx(
|
|
241
|
-
|
|
242
|
+
/* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(h.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
|
|
243
|
+
de,
|
|
242
244
|
{
|
|
243
245
|
disabled: p,
|
|
244
246
|
className: "tableSelectPopupTablePagination",
|
|
245
247
|
size: "small",
|
|
246
248
|
enableControl: !0,
|
|
247
|
-
pagination:
|
|
248
|
-
total:
|
|
249
|
+
pagination: z,
|
|
250
|
+
total: O,
|
|
249
251
|
dataSource: y,
|
|
250
|
-
paginationEmit:
|
|
252
|
+
paginationEmit: $
|
|
251
253
|
}
|
|
252
254
|
) }) })
|
|
253
255
|
] }) })
|
|
254
256
|
] });
|
|
255
257
|
}
|
|
256
258
|
export {
|
|
257
|
-
|
|
259
|
+
He as default
|
|
258
260
|
};
|