bitz-react-admin-ui 2.4.1 → 2.4.3
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/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzConfigProvider/index.d.ts +2 -0
- package/dist/components/BitzTable/ActionCol/index.d.ts +2 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +127 -94
- package/dist/components/BitzTable/ActionCol/style.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/style.mjs +14 -14
- package/dist/components/BitzTable/Table/index.d.ts +3 -1
- package/dist/components/BitzTable/Table/index.mjs +341 -322
- package/dist/components/BitzTable/index.d.ts +21 -6
- package/dist/components/BitzTableSelect/Select/index.d.ts +1 -1
- package/dist/components/BitzTableSelect/Select/index.mjs +70 -69
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +145 -147
- package/dist/components/BitzTableSelect/SingleSelect/index.d.ts +1 -1
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +73 -72
- package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -7
- package/dist/components/BitzTableSelect/index.d.ts +3 -1
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,9 @@ import ActionBar from './ActionBar';
|
|
|
5
5
|
import ToolBar from './ToolBar/Wrapper';
|
|
6
6
|
import ActionCol from './ActionCol';
|
|
7
7
|
import SelectionBar from './SelectionBar';
|
|
8
|
-
import {
|
|
8
|
+
import { Key, ReactNode } from 'react';
|
|
9
9
|
import { TableColumnType } from 'antd';
|
|
10
|
+
import { ButtonProps } from 'antd/lib';
|
|
10
11
|
/** 操作按钮属性 */
|
|
11
12
|
interface Action<T> {
|
|
12
13
|
key?: string;
|
|
@@ -17,20 +18,34 @@ interface Action<T> {
|
|
|
17
18
|
onClick?: () => void;
|
|
18
19
|
children?: Action<T>[];
|
|
19
20
|
}
|
|
21
|
+
interface CustomAction extends Omit<ButtonProps, 'type' | 'children' | 'className'> {
|
|
22
|
+
label: string;
|
|
23
|
+
key?: Key;
|
|
24
|
+
type?: 'primary' | 'secondary' | 'detail';
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
render?: (button: ReactNode, index: number) => ReactNode;
|
|
27
|
+
}
|
|
28
|
+
type CustomActionsFunType<T> = (record: T, index: number) => CustomAction[];
|
|
20
29
|
/** 按钮操作列属性 */
|
|
21
|
-
interface BitzTableActionProps<T> {
|
|
30
|
+
interface BitzTableActionProps<T = any> {
|
|
22
31
|
loading?: boolean;
|
|
23
32
|
/**
|
|
24
33
|
* 操作按钮组,主要操作、次要操作、下拉列表(含危险操作)
|
|
25
34
|
* @次要操作 次要操作以下拉菜单显示,如果actionGroup的长度大于3,从第4个开始直到最后的所有按钮都为次要操作按钮
|
|
26
35
|
*/
|
|
27
36
|
actionGroup: Action<T>[];
|
|
28
|
-
|
|
37
|
+
customActions: CustomAction[];
|
|
29
38
|
}
|
|
30
|
-
type
|
|
39
|
+
type ActionGroupFunType<T> = (record: T, index: number) => Action<T>[];
|
|
40
|
+
type CustomActionsProps<T> = {
|
|
41
|
+
custom: CustomActionsFunType<T>;
|
|
42
|
+
request?: (record: T, index: number) => Promise<CustomAction[]>;
|
|
43
|
+
};
|
|
44
|
+
type ActionsFunType<T> = ActionGroupFunType<T> | CustomActionsProps<T>;
|
|
31
45
|
/** ActionCol hook参数 */
|
|
32
46
|
interface BitzTableActionColProps<T> extends Pick<BitzTableActionProps<T>, 'loading'>, Omit<BitzTableColumnType<T>, 'width' | 'render'> {
|
|
33
|
-
actionGroup
|
|
47
|
+
actionGroup?: ActionGroupFunType<T>;
|
|
48
|
+
customActions?: CustomActionsFunType<T>;
|
|
34
49
|
}
|
|
35
50
|
/** 列的排序和显隐控制 */
|
|
36
51
|
interface ColumnsConfigProps {
|
|
@@ -75,6 +90,6 @@ type CompoundedComponent = React.ForwardRefExoticComponent<BitzTableProps> & {
|
|
|
75
90
|
SORTER_COLUMN: typeof SORTER_COLUMN;
|
|
76
91
|
};
|
|
77
92
|
declare const BitzTable: CompoundedComponent;
|
|
78
|
-
export type { BitzTableProps, BitzTableSizeType, ColumnsConfigProps, StylesStateType, ColumnStateType, ExportColumnStateType, BitzTableColumnType, BitzTableColumnGroupType, BitzTableColumnsType, SelelctionAlertProps, ActionsFunType, Action, BitzTableActionProps, BitzTableActionColProps, };
|
|
93
|
+
export type { BitzTableProps, BitzTableSizeType, ColumnsConfigProps, StylesStateType, ColumnStateType, ExportColumnStateType, BitzTableColumnType, BitzTableColumnGroupType, BitzTableColumnsType, SelelctionAlertProps, ActionsFunType, CustomAction, CustomActionsFunType, ActionGroupFunType, Action, BitzTableActionProps, BitzTableActionColProps, };
|
|
79
94
|
export { BitzTableProvider, BitzTableContext };
|
|
80
95
|
export default BitzTable;
|
|
@@ -5,5 +5,5 @@ export interface SelectProps<T extends BaseOptionType> extends Omit<BitzTableSel
|
|
|
5
5
|
onChange?: (value: Key[], options: T[]) => void;
|
|
6
6
|
}
|
|
7
7
|
/** 下拉表格组件 */
|
|
8
|
-
declare function TableSelect<T extends BaseOptionType>({ value, options: dataRows, columns, tableData, total, loading, loadingFailed, loadAgain, page, onPageChange, searchInput, showToolTagSelect, toolTags, onToolTagChange, lrLayout, parentRender, mode, placeholder, fieldNames, onChange, ...rest }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TableSelect<T extends BaseOptionType>({ value, options: dataRows, columns, tableData, total, loading, loadingFailed, loadAgain, page, onPageChange, searchInput, showToolTagSelect, toolTags, onToolTagChange, lrLayout, parentRender, mode, placeholder, fieldNames, onChange, onOpenChange, ...rest }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default TableSelect;
|
|
@@ -1,93 +1,94 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Select as
|
|
4
|
-
import
|
|
5
|
-
function
|
|
1
|
+
import { j as b } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useState as o, useEffect as x } from "react";
|
|
3
|
+
import { Select as M } from "antd";
|
|
4
|
+
import Q from "../SelectPopup/index.mjs";
|
|
5
|
+
function Z({
|
|
6
6
|
value: s,
|
|
7
7
|
options: t,
|
|
8
|
-
columns:
|
|
9
|
-
tableData:
|
|
10
|
-
total:
|
|
11
|
-
loading:
|
|
12
|
-
loadingFailed:
|
|
13
|
-
loadAgain:
|
|
14
|
-
page:
|
|
15
|
-
onPageChange:
|
|
16
|
-
searchInput:
|
|
17
|
-
showToolTagSelect:
|
|
18
|
-
toolTags:
|
|
19
|
-
onToolTagChange:
|
|
20
|
-
lrLayout:
|
|
21
|
-
parentRender:
|
|
22
|
-
mode:
|
|
23
|
-
placeholder:
|
|
24
|
-
fieldNames:
|
|
8
|
+
columns: V,
|
|
9
|
+
tableData: j,
|
|
10
|
+
total: w,
|
|
11
|
+
loading: T,
|
|
12
|
+
loadingFailed: a,
|
|
13
|
+
loadAgain: k,
|
|
14
|
+
page: y,
|
|
15
|
+
onPageChange: E,
|
|
16
|
+
searchInput: A,
|
|
17
|
+
showToolTagSelect: B,
|
|
18
|
+
toolTags: D,
|
|
19
|
+
onToolTagChange: P,
|
|
20
|
+
lrLayout: d,
|
|
21
|
+
parentRender: v,
|
|
22
|
+
mode: F = "multiple",
|
|
23
|
+
placeholder: N = "请选择",
|
|
24
|
+
fieldNames: p,
|
|
25
25
|
onChange: e,
|
|
26
|
-
|
|
26
|
+
onOpenChange: c,
|
|
27
|
+
...$
|
|
27
28
|
}) {
|
|
28
|
-
const [
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
!
|
|
29
|
+
const [u, q] = o([]), [S, i] = o([]), [f, m] = o(!1), [z, G] = o(!1), H = () => {
|
|
30
|
+
i([]), e == null || e([], []);
|
|
31
|
+
}, I = (l, r, L) => {
|
|
32
|
+
L === "confirm" ? m(!1) : (i([...r]), e == null || e([...l], [...r]));
|
|
33
|
+
}, J = (l, r) => {
|
|
34
|
+
i(r), e == null || e(l, r);
|
|
35
|
+
}, K = (l) => {
|
|
36
|
+
!f && l && m(!0), !z && !l && f && m(!1), c == null || c(l);
|
|
36
37
|
};
|
|
37
|
-
return
|
|
38
|
+
return x(() => {
|
|
38
39
|
if (s && !Array.isArray(s))
|
|
39
40
|
throw new Error(
|
|
40
41
|
`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`
|
|
41
42
|
);
|
|
42
|
-
|
|
43
|
-
}, [s]),
|
|
44
|
-
t != null && t.length &&
|
|
45
|
-
}, [t]), /* @__PURE__ */
|
|
46
|
-
|
|
43
|
+
q(s ?? []);
|
|
44
|
+
}, [s]), x(() => {
|
|
45
|
+
t != null && t.length && i(t);
|
|
46
|
+
}, [t]), /* @__PURE__ */ b.jsx(
|
|
47
|
+
M,
|
|
47
48
|
{
|
|
48
49
|
allowClear: !0,
|
|
49
50
|
className: "tableSelectBlock",
|
|
50
51
|
mode: "multiple",
|
|
51
52
|
maxTagCount: "responsive",
|
|
52
|
-
value:
|
|
53
|
-
options:
|
|
54
|
-
fieldNames:
|
|
53
|
+
value: u,
|
|
54
|
+
options: S,
|
|
55
|
+
fieldNames: p,
|
|
55
56
|
showSearch: !1,
|
|
56
|
-
open:
|
|
57
|
-
placeholder:
|
|
57
|
+
open: f,
|
|
58
|
+
placeholder: N,
|
|
58
59
|
popupClassName: "tableSelectPopupBlock",
|
|
59
|
-
dropdownRender: () => /* @__PURE__ */
|
|
60
|
-
|
|
60
|
+
dropdownRender: () => /* @__PURE__ */ b.jsx(
|
|
61
|
+
Q,
|
|
61
62
|
{
|
|
62
|
-
columns:
|
|
63
|
-
tableData:
|
|
64
|
-
total:
|
|
65
|
-
page:
|
|
66
|
-
onPageChange:
|
|
67
|
-
searchInput:
|
|
68
|
-
loading:
|
|
69
|
-
loadingFailed:
|
|
70
|
-
loadAgain:
|
|
71
|
-
keys:
|
|
72
|
-
rows:
|
|
73
|
-
fieldNames:
|
|
74
|
-
onChange:
|
|
75
|
-
onDropdownVisibleChange:
|
|
76
|
-
showToolTagSelect:
|
|
77
|
-
toolTags:
|
|
78
|
-
onToolTagChange:
|
|
79
|
-
lrLayout:
|
|
80
|
-
parentRender:
|
|
81
|
-
mode:
|
|
63
|
+
columns: V,
|
|
64
|
+
tableData: j,
|
|
65
|
+
total: w,
|
|
66
|
+
page: y,
|
|
67
|
+
onPageChange: E,
|
|
68
|
+
searchInput: A,
|
|
69
|
+
loading: T,
|
|
70
|
+
loadingFailed: a,
|
|
71
|
+
loadAgain: k,
|
|
72
|
+
keys: u,
|
|
73
|
+
rows: S,
|
|
74
|
+
fieldNames: p,
|
|
75
|
+
onChange: I,
|
|
76
|
+
onDropdownVisibleChange: G,
|
|
77
|
+
showToolTagSelect: B,
|
|
78
|
+
toolTags: D,
|
|
79
|
+
onToolTagChange: P,
|
|
80
|
+
lrLayout: d,
|
|
81
|
+
parentRender: v,
|
|
82
|
+
mode: F
|
|
82
83
|
}
|
|
83
84
|
),
|
|
84
|
-
onClear:
|
|
85
|
-
onDropdownVisibleChange:
|
|
86
|
-
onChange:
|
|
87
|
-
|
|
85
|
+
onClear: H,
|
|
86
|
+
onDropdownVisibleChange: K,
|
|
87
|
+
onChange: J,
|
|
88
|
+
...$
|
|
88
89
|
}
|
|
89
90
|
);
|
|
90
91
|
}
|
|
91
92
|
export {
|
|
92
|
-
|
|
93
|
+
Z as default
|
|
93
94
|
};
|
|
@@ -1,208 +1,206 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Row as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { getColumns as me, getExpandable as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { BitzConfigContext as
|
|
2
|
+
import { useRef as re, useContext as ce, useState as B, useCallback as ne, useMemo as A, useEffect as ie } from "react";
|
|
3
|
+
import { Row as y, Col as p, Space as F, Form as j, Select as H, Spin as ae, Typography as pe, Flex as ue, Empty as O } from "antd";
|
|
4
|
+
import de from "../../BitzPagination/index.mjs";
|
|
5
|
+
import xe from "../../BitzTable/index.mjs";
|
|
6
|
+
import G 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 ge } from "../../BitzConfigProvider/context.mjs";
|
|
13
|
+
import we from "../../BitzHighlight/index.mjs";
|
|
13
14
|
import "./index.less.mjs";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
function
|
|
17
|
-
columns:
|
|
18
|
-
tableData:
|
|
19
|
-
total:
|
|
20
|
-
loading:
|
|
21
|
-
loadingFailed:
|
|
22
|
-
loadAgain:
|
|
23
|
-
page:
|
|
24
|
-
onPageChange:
|
|
25
|
-
searchInput:
|
|
15
|
+
import Te from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
|
|
16
|
+
import ve from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
17
|
+
function Ge({
|
|
18
|
+
columns: q,
|
|
19
|
+
tableData: g,
|
|
20
|
+
total: J,
|
|
21
|
+
loading: u,
|
|
22
|
+
loadingFailed: f,
|
|
23
|
+
loadAgain: L,
|
|
24
|
+
page: z,
|
|
25
|
+
onPageChange: Q,
|
|
26
|
+
searchInput: U,
|
|
26
27
|
showToolTagSelect: P,
|
|
27
|
-
toolTags:
|
|
28
|
-
onToolTagChange:
|
|
28
|
+
toolTags: W,
|
|
29
|
+
onToolTagChange: w,
|
|
29
30
|
lrLayout: T,
|
|
30
|
-
parentRender:
|
|
31
|
-
keys:
|
|
31
|
+
parentRender: E,
|
|
32
|
+
keys: R,
|
|
32
33
|
rows: I,
|
|
33
|
-
fieldNames:
|
|
34
|
-
mode:
|
|
35
|
-
onChange:
|
|
36
|
-
onDropdownVisibleChange:
|
|
34
|
+
fieldNames: t,
|
|
35
|
+
mode: k,
|
|
36
|
+
onChange: d,
|
|
37
|
+
onDropdownVisibleChange: b
|
|
37
38
|
}) {
|
|
38
|
-
var
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
var K, _, $;
|
|
40
|
+
const C = re(null), v = fe(C), { token: n } = be.useToken(), M = ((K = n == null ? void 0 : n.BitzTableSelect) == null ? void 0 : K.tableSpaceBetweenPage) ?? 10, X = ((_ = ce(ge).TableSelect) == null ? void 0 : _.defaultSize) ?? "md", [i, Y] = B([]), [c, Z] = B([]), [D, V] = B(void 0), N = (o, s) => {
|
|
41
|
+
V(o), w == null || w(o, s), o || (b(!0), setTimeout(() => {
|
|
42
|
+
b(!1);
|
|
42
43
|
}, 0));
|
|
43
|
-
},
|
|
44
|
-
type:
|
|
45
|
-
selectedRowKeys:
|
|
46
|
-
...
|
|
47
|
-
onChange(
|
|
48
|
-
|
|
44
|
+
}, ee = me(q, g, z), te = {
|
|
45
|
+
type: k === "single" ? "radio" : "checkbox",
|
|
46
|
+
selectedRowKeys: i,
|
|
47
|
+
...k === "single" ? {
|
|
48
|
+
onChange(o, s) {
|
|
49
|
+
d(o, s);
|
|
49
50
|
}
|
|
50
51
|
} : {
|
|
51
|
-
onSelect: (
|
|
52
|
-
if (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
onSelect: (o, s) => {
|
|
53
|
+
if (s) {
|
|
54
|
+
const l = i.concat([o[t.value]]), r = c.concat([o]);
|
|
55
|
+
d(l, r);
|
|
56
|
+
} else {
|
|
57
|
+
const l = c.filter(
|
|
58
|
+
(r) => r[t.value] !== o[t.value]
|
|
57
59
|
);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
d(
|
|
61
|
+
l.map((r) => r[t.value]),
|
|
62
|
+
l
|
|
61
63
|
);
|
|
62
64
|
}
|
|
63
65
|
},
|
|
64
|
-
onSelectAll: (
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
const
|
|
68
|
-
|
|
66
|
+
onSelectAll: (o, s, l) => {
|
|
67
|
+
const r = l.map((x) => x[t.value]);
|
|
68
|
+
if (o) {
|
|
69
|
+
const x = i.concat(r), m = c.concat(l);
|
|
70
|
+
d(x, m);
|
|
69
71
|
} else {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
const x = i == null ? void 0 : i.filter((h) => !r.includes(h)), m = /* @__PURE__ */ new Map();
|
|
73
|
+
l.forEach((h) => {
|
|
74
|
+
m.set(h[t.value], h);
|
|
73
75
|
});
|
|
74
|
-
const
|
|
75
|
-
(h) => !
|
|
76
|
+
const S = c == null ? void 0 : c.filter(
|
|
77
|
+
(h) => !m.has(h[t.value])
|
|
76
78
|
);
|
|
77
|
-
|
|
79
|
+
d(x, S);
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
" ",
|
|
86
|
-
t[1]
|
|
87
|
-
] }), re = () => {
|
|
88
|
-
const t = (o) => {
|
|
89
|
-
const d = r.findIndex(
|
|
90
|
-
(i) => i[l.value] === o[l.value]
|
|
91
|
-
), x = s.findIndex(
|
|
92
|
-
(i) => i === o[l.value]
|
|
83
|
+
}, oe = ne(() => he(t.items, u), [t.items, u]), se = () => {
|
|
84
|
+
const o = (s) => {
|
|
85
|
+
const l = [...i], r = [...c], x = l.findIndex((S) => S === s[t.value]), m = r.findIndex(
|
|
86
|
+
(S) => S[t.value] === s[t.value]
|
|
93
87
|
);
|
|
94
|
-
r.splice(
|
|
88
|
+
r.splice(m, 1), l.splice(x, 1), d(l, r);
|
|
95
89
|
};
|
|
96
90
|
return /* @__PURE__ */ e.jsxs(
|
|
97
|
-
|
|
91
|
+
F,
|
|
98
92
|
{
|
|
99
93
|
direction: "vertical",
|
|
100
94
|
style: {
|
|
101
95
|
width: "calc(100% - 5px)",
|
|
102
96
|
paddingRight: 5,
|
|
103
|
-
maxHeight:
|
|
97
|
+
maxHeight: c.length ? 220 : "auto",
|
|
104
98
|
overflow: "hidden auto"
|
|
105
99
|
},
|
|
106
100
|
children: [
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
c.map((s) => /* @__PURE__ */ e.jsxs(
|
|
102
|
+
ue,
|
|
109
103
|
{
|
|
110
104
|
justify: "space-between",
|
|
111
105
|
style: {
|
|
112
106
|
padding: "4px 8px",
|
|
113
|
-
border: `1px solid ${
|
|
107
|
+
border: `1px solid ${n.colorBorder}`,
|
|
114
108
|
backgroundColor: "#f5f5f5",
|
|
115
|
-
borderRadius:
|
|
109
|
+
borderRadius: n.borderRadiusSM,
|
|
116
110
|
overflow: "hidden"
|
|
117
111
|
},
|
|
118
112
|
children: [
|
|
119
|
-
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(
|
|
113
|
+
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value: s[t.label] }) }),
|
|
120
114
|
/* @__PURE__ */ e.jsx(
|
|
121
|
-
|
|
115
|
+
ve,
|
|
122
116
|
{
|
|
123
117
|
style: {
|
|
124
|
-
color:
|
|
118
|
+
color: n.colorError,
|
|
125
119
|
fontSize: 13,
|
|
126
120
|
cursor: "pointer"
|
|
127
121
|
},
|
|
128
|
-
onClick: () =>
|
|
122
|
+
onClick: () => o(s)
|
|
129
123
|
}
|
|
130
124
|
)
|
|
131
125
|
]
|
|
132
126
|
},
|
|
133
|
-
|
|
127
|
+
s[t.value]
|
|
134
128
|
)),
|
|
135
|
-
!
|
|
129
|
+
!c.length && /* @__PURE__ */ e.jsx(O, { image: O.PRESENTED_IMAGE_SIMPLE })
|
|
136
130
|
]
|
|
137
131
|
}
|
|
138
132
|
);
|
|
139
|
-
},
|
|
140
|
-
{ loadingTable:
|
|
141
|
-
{ loadingFailedTable:
|
|
133
|
+
}, a = A(() => je(T, P), [T, P]), le = A(() => ye(
|
|
134
|
+
{ loadingTable: u },
|
|
135
|
+
{ loadingFailedTable: f },
|
|
142
136
|
"bitzSelectTable"
|
|
143
|
-
), [
|
|
144
|
-
return
|
|
145
|
-
|
|
146
|
-
}, [
|
|
147
|
-
/* @__PURE__ */ e.jsx(
|
|
148
|
-
/* @__PURE__ */ e.jsx(
|
|
149
|
-
/* @__PURE__ */ e.jsx(
|
|
150
|
-
/* @__PURE__ */ e.jsx(
|
|
151
|
-
/* @__PURE__ */ e.jsx(
|
|
152
|
-
/* @__PURE__ */ e.jsx(
|
|
153
|
-
|
|
137
|
+
), [f, u]);
|
|
138
|
+
return ie(() => {
|
|
139
|
+
Y(R ?? []), Z(I ?? []);
|
|
140
|
+
}, [R, I]), /* @__PURE__ */ e.jsxs(y, { gutter: a.gutter, children: [
|
|
141
|
+
/* @__PURE__ */ e.jsx(p, { span: a.left.span, children: T && E && E(M, v == null ? void 0 : v.height) }),
|
|
142
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.span, children: /* @__PURE__ */ e.jsxs(F, { direction: "vertical", size: M, style: { width: "100%" }, children: [
|
|
143
|
+
/* @__PURE__ */ e.jsx(j, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(y, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(p, { span: 24, children: /* @__PURE__ */ e.jsxs(y, { justify: "space-between", gutter: [16, 16], children: [
|
|
144
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.search, children: /* @__PURE__ */ e.jsx(j.Item, { children: U }) }),
|
|
145
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.operation, children: /* @__PURE__ */ e.jsxs(y, { justify: "end", gutter: 8, children: [
|
|
146
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(j.Item, { children: /* @__PURE__ */ e.jsx(
|
|
147
|
+
H,
|
|
154
148
|
{
|
|
155
149
|
allowClear: !0,
|
|
156
150
|
className: "tableSelectPopupToolTagSelect",
|
|
157
151
|
style: {
|
|
158
152
|
width: "100%",
|
|
159
|
-
"--toolTagSelect-color":
|
|
153
|
+
"--toolTagSelect-color": u ? n.colorTextDisabled : n.colorText
|
|
160
154
|
},
|
|
161
155
|
placeholder: "常用标签",
|
|
162
156
|
showSearch: !1,
|
|
163
|
-
disabled:
|
|
164
|
-
options:
|
|
165
|
-
value:
|
|
166
|
-
onChange:
|
|
167
|
-
onDropdownVisibleChange:
|
|
157
|
+
disabled: u,
|
|
158
|
+
options: W,
|
|
159
|
+
value: D,
|
|
160
|
+
onChange: N,
|
|
161
|
+
onDropdownVisibleChange: b
|
|
168
162
|
}
|
|
169
163
|
) }) }),
|
|
170
|
-
/* @__PURE__ */ e.jsx(
|
|
164
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.totalSelect, children: /* @__PURE__ */ e.jsx(j.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
|
|
171
165
|
/* @__PURE__ */ e.jsx(
|
|
172
|
-
|
|
166
|
+
H,
|
|
173
167
|
{
|
|
174
168
|
style: { width: "100%" },
|
|
175
169
|
mode: "multiple",
|
|
176
170
|
placeholder: "",
|
|
177
171
|
showSearch: !1,
|
|
178
|
-
options:
|
|
179
|
-
value:
|
|
180
|
-
fieldNames:
|
|
172
|
+
options: c,
|
|
173
|
+
value: i,
|
|
174
|
+
fieldNames: t,
|
|
181
175
|
popupClassName: "tableSelectPopupTotalPopup",
|
|
182
|
-
dropdownRender:
|
|
176
|
+
dropdownRender: se,
|
|
183
177
|
tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
184
|
-
onDropdownVisibleChange:
|
|
178
|
+
onDropdownVisibleChange: b
|
|
185
179
|
}
|
|
186
180
|
),
|
|
187
|
-
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children:
|
|
188
|
-
|
|
189
|
-
|
|
181
|
+
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: /* @__PURE__ */ e.jsx(
|
|
182
|
+
we,
|
|
183
|
+
{
|
|
184
|
+
highlightTag: "strong",
|
|
185
|
+
sourceString: `已选择 ${i.length || 0} 条数据`,
|
|
186
|
+
keywords: `${i.length || 0}`
|
|
187
|
+
}
|
|
190
188
|
) })
|
|
191
189
|
] }) }) }),
|
|
192
|
-
/* @__PURE__ */ e.jsx(
|
|
193
|
-
|
|
190
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.button, children: /* @__PURE__ */ e.jsx(
|
|
191
|
+
G,
|
|
194
192
|
{
|
|
195
193
|
type: "primary",
|
|
196
194
|
danger: !0,
|
|
197
|
-
onClick: () =>
|
|
195
|
+
onClick: () => d([], [], "clear"),
|
|
198
196
|
children: "清空"
|
|
199
197
|
}
|
|
200
198
|
) }),
|
|
201
|
-
/* @__PURE__ */ e.jsx(
|
|
202
|
-
|
|
199
|
+
/* @__PURE__ */ e.jsx(p, { span: a.right.button, children: /* @__PURE__ */ e.jsx(
|
|
200
|
+
G,
|
|
203
201
|
{
|
|
204
202
|
type: "primary",
|
|
205
|
-
onClick: () =>
|
|
203
|
+
onClick: () => d([], [], "confirm"),
|
|
206
204
|
children: "确认"
|
|
207
205
|
}
|
|
208
206
|
) })
|
|
@@ -211,34 +209,34 @@ function He({
|
|
|
211
209
|
/* @__PURE__ */ e.jsx(
|
|
212
210
|
"div",
|
|
213
211
|
{
|
|
214
|
-
ref:
|
|
215
|
-
...
|
|
212
|
+
ref: C,
|
|
213
|
+
...f && {
|
|
216
214
|
className: "pointerMouse",
|
|
217
|
-
onClick: () =>
|
|
215
|
+
onClick: () => L()
|
|
218
216
|
},
|
|
219
217
|
children: /* @__PURE__ */ e.jsx(
|
|
220
|
-
|
|
218
|
+
ae,
|
|
221
219
|
{
|
|
222
|
-
spinning:
|
|
223
|
-
indicator: /* @__PURE__ */ e.jsx(
|
|
224
|
-
tip: /* @__PURE__ */ e.jsx(
|
|
220
|
+
spinning: f,
|
|
221
|
+
indicator: /* @__PURE__ */ e.jsx(Te, {}),
|
|
222
|
+
tip: /* @__PURE__ */ e.jsx(pe.Text, { type: "danger", children: "加载失败,点击重试" }),
|
|
225
223
|
children: /* @__PURE__ */ e.jsx(
|
|
226
|
-
|
|
224
|
+
xe,
|
|
227
225
|
{
|
|
228
|
-
size:
|
|
229
|
-
rowKey:
|
|
230
|
-
loading:
|
|
226
|
+
size: X,
|
|
227
|
+
rowKey: t.value,
|
|
228
|
+
loading: u,
|
|
231
229
|
bordered: "row-column",
|
|
232
230
|
scroll: { x: 1, y: 400 },
|
|
233
231
|
showPagination: !1,
|
|
234
232
|
showTableTool: !1,
|
|
235
|
-
rowSelection:
|
|
236
|
-
columns:
|
|
237
|
-
dataSource:
|
|
238
|
-
className:
|
|
239
|
-
...
|
|
233
|
+
rowSelection: te,
|
|
234
|
+
columns: ee,
|
|
235
|
+
dataSource: g,
|
|
236
|
+
className: le,
|
|
237
|
+
...oe(),
|
|
240
238
|
style: {
|
|
241
|
-
"--tableBody-bootomBorderColor": ((
|
|
239
|
+
"--tableBody-bootomBorderColor": (($ = n.Table) == null ? void 0 : $.borderColor) || n.colorBorderSecondary
|
|
242
240
|
}
|
|
243
241
|
}
|
|
244
242
|
)
|
|
@@ -246,22 +244,22 @@ function He({
|
|
|
246
244
|
)
|
|
247
245
|
}
|
|
248
246
|
),
|
|
249
|
-
/* @__PURE__ */ e.jsx(
|
|
250
|
-
|
|
247
|
+
/* @__PURE__ */ e.jsx(j, { children: /* @__PURE__ */ e.jsx(j.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
|
|
248
|
+
de,
|
|
251
249
|
{
|
|
252
|
-
disabled:
|
|
250
|
+
disabled: u,
|
|
253
251
|
className: "tableSelectPopupTablePagination",
|
|
254
252
|
size: "small",
|
|
255
253
|
enableControl: !0,
|
|
256
|
-
pagination:
|
|
257
|
-
total:
|
|
258
|
-
dataSource:
|
|
259
|
-
paginationEmit:
|
|
254
|
+
pagination: z,
|
|
255
|
+
total: J,
|
|
256
|
+
dataSource: g,
|
|
257
|
+
paginationEmit: Q
|
|
260
258
|
}
|
|
261
259
|
) }) })
|
|
262
260
|
] }) })
|
|
263
261
|
] });
|
|
264
262
|
}
|
|
265
263
|
export {
|
|
266
|
-
|
|
264
|
+
Ge as default
|
|
267
265
|
};
|