bitz-react-admin-ui 1.7.4 → 1.7.6
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/components/BitzConfigProvider/context.d.ts +1 -1
- package/dist/components/BitzConfigProvider/index.d.ts +3 -0
- package/dist/components/BitzConfirmModal/index.d.ts +6 -5
- package/dist/components/BitzConfirmModal/index.mjs +33 -65
- package/dist/components/BitzFullScreen/index.d.ts +6 -1
- package/dist/components/BitzFullScreen/index.mjs +22 -14
- package/dist/components/BitzTable/Store/index.d.ts +20 -29
- package/dist/components/BitzTable/Store/utils/index.d.ts +2 -2
- package/dist/components/BitzTable/Table/index.mjs +255 -238
- package/dist/components/BitzTable/TableSkeleton/index.mjs +20 -19
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +3 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +21 -21
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.module.less.mjs +29 -29
- package/dist/components/BitzTable/ToolBar/DensityIcon/index.d.ts +3 -2
- package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +14 -14
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.d.ts +2 -1
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +37 -34
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.d.ts +3 -2
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +19 -13
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +67 -43
- package/dist/components/BitzTable/ToolBar/index.d.ts +1 -1
- package/dist/components/BitzTable/index.d.ts +12 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,242 +1,251 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import { Table as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as He, useState as E, useMemo as b, useEffect as oe, useRef as P, useCallback as ne } from "react";
|
|
3
|
+
import { isMobile as A } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import { Table as O, Skeleton as Se } from "antd";
|
|
5
|
+
import te from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import Ee from "../../BitzDrawer/index.mjs";
|
|
7
|
+
import Pe from "../../BitzPagination/index.mjs";
|
|
8
|
+
import Ae from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import Oe from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { columnSort as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
12
|
+
import Re from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
|
+
import Ve, { TableContext as Ke } from "../Store/index.mjs";
|
|
14
|
+
import _e from "../TableSkeleton/index.mjs";
|
|
15
|
+
import { columnSort as re, genColumnKey as le } from "../Store/utils/index.mjs";
|
|
16
|
+
import R from "../../../node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSize/index.mjs";
|
|
17
|
+
import $e from "../ActionCol/style.mjs";
|
|
18
|
+
import De from "../../BitzTheme/index.mjs";
|
|
19
19
|
import "./index.less.mjs";
|
|
20
|
-
import
|
|
21
|
-
function
|
|
22
|
-
showPagination:
|
|
23
|
-
fillEvenRow:
|
|
24
|
-
evenRowBgColor:
|
|
25
|
-
height:
|
|
20
|
+
import qe from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
21
|
+
function Fe({
|
|
22
|
+
showPagination: j = !0,
|
|
23
|
+
fillEvenRow: V = !0,
|
|
24
|
+
evenRowBgColor: Ge = "#f9f9f9",
|
|
25
|
+
height: y,
|
|
26
26
|
dataSource: i = [],
|
|
27
|
-
total:
|
|
28
|
-
columns:
|
|
29
|
-
loading:
|
|
30
|
-
skeletonNum:
|
|
31
|
-
skeletonRender:
|
|
32
|
-
skeletonRowNum:
|
|
33
|
-
skeletonRowsWidth:
|
|
34
|
-
mobileLoadEmit:
|
|
35
|
-
mobileRefreshEmit:
|
|
36
|
-
operationFilter:
|
|
37
|
-
enableControlPage:
|
|
38
|
-
pagination:
|
|
39
|
-
paginationEmit:
|
|
27
|
+
total: z = 0,
|
|
28
|
+
columns: g,
|
|
29
|
+
loading: T = !1,
|
|
30
|
+
skeletonNum: se = 2,
|
|
31
|
+
skeletonRender: K,
|
|
32
|
+
skeletonRowNum: ae = 4,
|
|
33
|
+
skeletonRowsWidth: ie = ["35%", "100%", "100%", "60%"],
|
|
34
|
+
mobileLoadEmit: ce,
|
|
35
|
+
mobileRefreshEmit: _,
|
|
36
|
+
operationFilter: L,
|
|
37
|
+
enableControlPage: de,
|
|
38
|
+
pagination: he,
|
|
39
|
+
paginationEmit: fe = () => {
|
|
40
40
|
},
|
|
41
|
-
mobilePageHeight:
|
|
42
|
-
mobileCancelText:
|
|
43
|
-
noDataTitle:
|
|
44
|
-
noDataImg:
|
|
45
|
-
color:
|
|
46
|
-
size:
|
|
47
|
-
showTableTool:
|
|
48
|
-
tableAction:
|
|
49
|
-
tableToolbar:
|
|
50
|
-
selectionBar:
|
|
41
|
+
mobilePageHeight: Ue = 500,
|
|
42
|
+
mobileCancelText: be = "取消",
|
|
43
|
+
noDataTitle: ue,
|
|
44
|
+
noDataImg: ge,
|
|
45
|
+
color: Xe,
|
|
46
|
+
size: $,
|
|
47
|
+
showTableTool: D = !0,
|
|
48
|
+
tableAction: xe,
|
|
49
|
+
tableToolbar: Ce,
|
|
50
|
+
selectionBar: me,
|
|
51
51
|
scroll: d,
|
|
52
|
-
resetPage:
|
|
52
|
+
resetPage: ye,
|
|
53
53
|
...h
|
|
54
54
|
}) {
|
|
55
|
-
var
|
|
56
|
-
const { token: c } =
|
|
57
|
-
var
|
|
58
|
-
const
|
|
59
|
-
(
|
|
55
|
+
var Z;
|
|
56
|
+
const { token: c } = De.useToken(), { gap: pe } = $e(), f = He(Ke), [x, q] = E(!1), [Be, M] = E(!1), we = b(() => !!(i != null && i.length) && (i == null ? void 0 : i.length) >= z, [i, z]), [je, Te] = E([]), ve = (o, e) => {
|
|
57
|
+
var n;
|
|
58
|
+
const r = (n = L == null ? void 0 : L(o, e)) == null ? void 0 : n.filter(
|
|
59
|
+
(l) => l.type !== "divider"
|
|
60
60
|
);
|
|
61
|
-
|
|
62
|
-
},
|
|
61
|
+
r != null && r.length && (Te(r), M(!0));
|
|
62
|
+
}, F = () => {
|
|
63
63
|
M(!1);
|
|
64
|
-
},
|
|
65
|
-
var
|
|
66
|
-
M(!1), (
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
}, Ne = (o) => {
|
|
65
|
+
var e;
|
|
66
|
+
M(!1), (e = o.onClick) == null || e.call(o);
|
|
67
|
+
};
|
|
68
|
+
oe(() => (document == null || document.addEventListener("fullscreenchange", (o) => {
|
|
69
|
+
var e, r, n;
|
|
70
|
+
(e = o.target) != null && e.classList.contains("bitzTableBlock") && (q(!!document.fullscreenElement), (n = (r = document.fullscreenElement) == null ? void 0 : r.classList) != null && n.contains("bitzTableBlock") || q(!1));
|
|
71
|
+
}), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
|
|
72
|
+
})), []);
|
|
73
|
+
const C = P(null), W = R(C), v = P(null), H = R(v), G = P(null), m = R(G), ke = () => {
|
|
74
|
+
var r;
|
|
75
|
+
const o = (r = v.current) == null ? void 0 : r.querySelectorAll(
|
|
70
76
|
".ant-table-body tr:not(.ant-table-measure-row)"
|
|
71
|
-
),
|
|
72
|
-
if (
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
((
|
|
77
|
+
), e = [];
|
|
78
|
+
if (o == null || o.forEach((n) => {
|
|
79
|
+
var l;
|
|
80
|
+
e.push(
|
|
81
|
+
((l = n.querySelector(".operationCol .actionGroup")) == null ? void 0 : l.clientWidth) || 0
|
|
76
82
|
);
|
|
77
|
-
}),
|
|
78
|
-
return Math.ceil(Math.max(...
|
|
79
|
-
},
|
|
80
|
-
var
|
|
81
|
-
const
|
|
83
|
+
}), e.length)
|
|
84
|
+
return Math.ceil(Math.max(...e)) + pe * 2;
|
|
85
|
+
}, U = () => {
|
|
86
|
+
var l;
|
|
87
|
+
const o = (l = v.current) == null ? void 0 : l.querySelector(
|
|
82
88
|
".ant-table-body"
|
|
83
|
-
),
|
|
84
|
-
return { tbodyWidth:
|
|
85
|
-
}, { y:
|
|
86
|
-
if (typeof
|
|
89
|
+
), e = o == null ? void 0 : o.clientWidth, r = ((o == null ? void 0 : o.offsetWidth) || 0) - e, n = r > 0;
|
|
90
|
+
return { tbodyWidth: e, scrollBarWidth: r, hasScrollBar: n };
|
|
91
|
+
}, { y: S, hasScrollBar: X } = b(() => {
|
|
92
|
+
if (typeof y > "u")
|
|
87
93
|
return {};
|
|
88
|
-
const { hasScrollBar:
|
|
89
|
-
let
|
|
94
|
+
const { hasScrollBar: o } = U();
|
|
95
|
+
let e = 40, r = 40, n = 10;
|
|
90
96
|
if (C.current) {
|
|
91
|
-
const
|
|
92
|
-
|
|
97
|
+
const w = window.getComputedStyle(C.current);
|
|
98
|
+
e = parseInt(w.getPropertyValue("--cell-block")), r = parseInt(w.getPropertyValue("--toolbar-height")), n = parseInt(w.getPropertyValue("--container-gap")) || 0;
|
|
93
99
|
}
|
|
94
|
-
const
|
|
95
|
-
return { y:
|
|
100
|
+
const l = (m == null ? void 0 : m.height) || 0, s = l ? n : 0;
|
|
101
|
+
return { y: (x ? window.innerHeight : y) - l - s - r - e, hasScrollBar: o };
|
|
96
102
|
}, [
|
|
97
|
-
|
|
98
|
-
y
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
x,
|
|
104
|
+
y,
|
|
105
|
+
m == null ? void 0 : m.height,
|
|
106
|
+
W == null ? void 0 : W.height,
|
|
107
|
+
H == null ? void 0 : H.height
|
|
108
|
+
]), N = b(() => d != null && d.x ? { x: d.x, y: d.y || S } : d != null && d.y ? { x: 1e3, y: d.y } : { x: 1e3, y: S }, [d, S]), I = ne(
|
|
109
|
+
(o) => {
|
|
110
|
+
const e = o.length, r = o.filter((u) => u.width), l = r.map((u) => u.width).reduce((u, We) => u + We, 0);
|
|
104
111
|
let s = 0;
|
|
105
112
|
if (C.current) {
|
|
106
|
-
const
|
|
107
|
-
s = parseInt(
|
|
113
|
+
const u = window.getComputedStyle(C.current);
|
|
114
|
+
s = parseInt(u.getPropertyValue("--toolCell-width"));
|
|
108
115
|
}
|
|
109
116
|
let a = 0;
|
|
110
117
|
h.rowSelection && (a += s), h.expandable && (a += s);
|
|
111
|
-
const { tbodyWidth:
|
|
112
|
-
return
|
|
118
|
+
const { tbodyWidth: k } = U(), B = parseInt(`${N.x}`) || 0, w = Math.max(B, k), ee = (parseInt(`${w}`) || 0) - l - a;
|
|
119
|
+
return ee >= 0 ? ee / (e - r.length) : void 0;
|
|
113
120
|
},
|
|
114
|
-
[h.expandable, h.rowSelection,
|
|
115
|
-
),
|
|
116
|
-
const
|
|
117
|
-
const
|
|
121
|
+
[h.expandable, h.rowSelection, N]
|
|
122
|
+
), p = b(() => {
|
|
123
|
+
const o = (s) => s.map((a) => {
|
|
124
|
+
const k = le(
|
|
118
125
|
(a == null ? void 0 : a.key) || (a == null ? void 0 : a.dataIndex),
|
|
119
126
|
a.index
|
|
120
|
-
),
|
|
121
|
-
return
|
|
127
|
+
), B = f.columnsMap[k];
|
|
128
|
+
return B && B.show === !1 ? !1 : a.children ? {
|
|
122
129
|
...a,
|
|
123
|
-
children:
|
|
130
|
+
children: o(a.children)
|
|
124
131
|
} : a;
|
|
125
|
-
}).filter(Boolean),
|
|
126
|
-
if (
|
|
127
|
-
return
|
|
128
|
-
const
|
|
132
|
+
}).filter(Boolean), e = o(g);
|
|
133
|
+
if (A)
|
|
134
|
+
return e.sort(re(f.columnsMap));
|
|
135
|
+
const r = e.sort(re(f.columnsMap)), n = I(r), l = r.map((s) => ({
|
|
129
136
|
...s,
|
|
130
137
|
...s.width ? {
|
|
131
|
-
width: s.useMaxWidth ?
|
|
138
|
+
width: s.useMaxWidth ? ke() ?? s.width : s.width
|
|
132
139
|
} : {
|
|
133
140
|
// 给未设置width的列设置平均数
|
|
134
|
-
width:
|
|
141
|
+
width: n
|
|
135
142
|
}
|
|
136
143
|
}));
|
|
137
|
-
return [
|
|
138
|
-
}, [
|
|
139
|
-
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
142
|
-
(
|
|
144
|
+
return [O.SELECTION_COLUMN, O.EXPAND_COLUMN, ...l];
|
|
145
|
+
}, [g, f.columnsMap, I, f.sortKeyColumns]);
|
|
146
|
+
oe(() => {
|
|
147
|
+
if (g && g.length > 0) {
|
|
148
|
+
const o = g.map(
|
|
149
|
+
(e) => (
|
|
143
150
|
// @ts-ignore
|
|
144
|
-
|
|
151
|
+
le((e == null ? void 0 : e.key) ?? (e == null ? void 0 : e.dataIndex), e == null ? void 0 : e.dataIndex)
|
|
145
152
|
)
|
|
146
153
|
);
|
|
147
|
-
|
|
154
|
+
f.setSortKeyColumns(o);
|
|
148
155
|
}
|
|
149
|
-
}, [
|
|
150
|
-
const
|
|
156
|
+
}, [g]);
|
|
157
|
+
const J = b(() => `${$ ?? (f == null ? void 0 : f.tableSize) ?? "lg"}BitzTable`, [$, f.tableSize]), ze = b(() => te(
|
|
151
158
|
"bitzTableContainer",
|
|
152
159
|
/* "hideBorder", */
|
|
153
|
-
{ hasScrollBar:
|
|
154
|
-
|
|
155
|
-
), [
|
|
156
|
-
|
|
160
|
+
{ hasScrollBar: X },
|
|
161
|
+
J
|
|
162
|
+
), [J, X, x]), Le = b(() => ({
|
|
163
|
+
"--container-bgColor": c.colorBgContainer
|
|
164
|
+
}), [c.Table]), Me = b(() => {
|
|
165
|
+
var o, e, r, n, l, s, a;
|
|
157
166
|
return {
|
|
158
|
-
height:
|
|
159
|
-
"--toolbar-bgColor": (
|
|
160
|
-
"--thead-bgColor": (
|
|
161
|
-
"--thead-hoverBgColor": (
|
|
162
|
-
"--evenRow-BgColor": (
|
|
163
|
-
"--radioCheckbox-borderColor": (
|
|
167
|
+
height: x ? "100%" : y,
|
|
168
|
+
"--toolbar-bgColor": (o = c.Table) == null ? void 0 : o.toolbarBgColor,
|
|
169
|
+
"--thead-bgColor": (e = c.Table) == null ? void 0 : e.headerBg,
|
|
170
|
+
"--thead-hoverBgColor": (r = c.Table) == null ? void 0 : r.headerSortHoverBg,
|
|
171
|
+
"--evenRow-BgColor": (n = c.Table) == null ? void 0 : n.evenRowBgColor,
|
|
172
|
+
"--radioCheckbox-borderColor": (l = c.Table) == null ? void 0 : l.radioCheckboxBorderColor,
|
|
164
173
|
"--expandIcon-borderColor": (s = c.Table) == null ? void 0 : s.expandIconBorderColor,
|
|
165
174
|
"--rowHover-bgColor": (a = c.Table) == null ? void 0 : a.rowHoverBg
|
|
166
175
|
// '--tableBody-bootomBorderColor': token.Table?.borderColor || '#f0f0f0',
|
|
167
176
|
};
|
|
168
|
-
}, [
|
|
169
|
-
(
|
|
170
|
-
[
|
|
171
|
-
),
|
|
172
|
-
|
|
177
|
+
}, [x, y, c.Table]), Q = ne(
|
|
178
|
+
(o, e) => V ? e % 2 === 0 ? "oddRow" : "evenRow" : "",
|
|
179
|
+
[V]
|
|
180
|
+
), Y = /* @__PURE__ */ t.jsx(
|
|
181
|
+
Oe,
|
|
173
182
|
{
|
|
174
|
-
finished:
|
|
175
|
-
onLoad:
|
|
183
|
+
finished: we,
|
|
184
|
+
onLoad: ce,
|
|
176
185
|
loadingText: "加载中...",
|
|
177
186
|
finishedText: "没有更多了",
|
|
178
187
|
errorText: "加载失败",
|
|
179
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
180
189
|
"div",
|
|
181
190
|
{
|
|
182
191
|
className: "mobileList",
|
|
183
|
-
style: { backgroundColor: (
|
|
192
|
+
style: { backgroundColor: (Z = c.Table) == null ? void 0 : Z.mobileListBgColor },
|
|
184
193
|
children: [
|
|
185
|
-
i == null ? void 0 : i.map((
|
|
186
|
-
var
|
|
187
|
-
return /* @__PURE__ */
|
|
194
|
+
i == null ? void 0 : i.map((o, e) => {
|
|
195
|
+
var r;
|
|
196
|
+
return /* @__PURE__ */ t.jsx(
|
|
188
197
|
"div",
|
|
189
198
|
{
|
|
190
199
|
className: "listItem",
|
|
191
|
-
style: { backgroundColor: (
|
|
192
|
-
onClick: () =>
|
|
193
|
-
children:
|
|
200
|
+
style: { backgroundColor: (r = c.Table) == null ? void 0 : r.listItemBgColor },
|
|
201
|
+
onClick: () => ve(o, e),
|
|
202
|
+
children: p == null ? void 0 : p.map((n, l) => {
|
|
194
203
|
var s;
|
|
195
|
-
return !(
|
|
204
|
+
return !(n != null && n.mobileHide) && /* @__PURE__ */ t.jsxs(
|
|
196
205
|
"div",
|
|
197
206
|
{
|
|
198
207
|
className: "row",
|
|
199
208
|
style: { color: c.colorText },
|
|
200
209
|
children: [
|
|
201
|
-
!
|
|
202
|
-
`${
|
|
210
|
+
!n.mobileHideLabel && /* @__PURE__ */ t.jsxs("div", { className: "label", children: [
|
|
211
|
+
`${n.title}`,
|
|
203
212
|
":"
|
|
204
213
|
] }),
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
)) || (
|
|
214
|
+
/* @__PURE__ */ t.jsx("div", { className: "value", children: ((s = n == null ? void 0 : n.render) == null ? void 0 : s.call(
|
|
215
|
+
n,
|
|
216
|
+
qe(o, (n == null ? void 0 : n.dataIndex) || ""),
|
|
217
|
+
o,
|
|
218
|
+
e
|
|
219
|
+
)) || (o == null ? void 0 : o[n.dataIndex]) })
|
|
211
220
|
]
|
|
212
221
|
},
|
|
213
|
-
|
|
222
|
+
l
|
|
214
223
|
);
|
|
215
224
|
})
|
|
216
225
|
},
|
|
217
|
-
|
|
226
|
+
e
|
|
218
227
|
);
|
|
219
228
|
}),
|
|
220
|
-
|
|
221
|
-
var
|
|
222
|
-
return /* @__PURE__ */
|
|
229
|
+
T && Array.from({ length: se }).map((o, e) => {
|
|
230
|
+
var r;
|
|
231
|
+
return /* @__PURE__ */ t.jsx(
|
|
223
232
|
"div",
|
|
224
233
|
{
|
|
225
234
|
className: "listItem",
|
|
226
|
-
style: { backgroundColor: (
|
|
227
|
-
children: /* @__PURE__ */
|
|
228
|
-
|
|
235
|
+
style: { backgroundColor: (r = c.Table) == null ? void 0 : r.listItemBgColor },
|
|
236
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "row", children: K ? K() : /* @__PURE__ */ t.jsx(
|
|
237
|
+
Se,
|
|
229
238
|
{
|
|
230
239
|
title: !1,
|
|
231
240
|
paragraph: {
|
|
232
|
-
rows:
|
|
233
|
-
width:
|
|
241
|
+
rows: ae,
|
|
242
|
+
width: ie
|
|
234
243
|
},
|
|
235
244
|
active: !0
|
|
236
245
|
}
|
|
237
246
|
) })
|
|
238
247
|
},
|
|
239
|
-
|
|
248
|
+
e
|
|
240
249
|
);
|
|
241
250
|
})
|
|
242
251
|
]
|
|
@@ -244,89 +253,97 @@ function $e({
|
|
|
244
253
|
)
|
|
245
254
|
}
|
|
246
255
|
);
|
|
247
|
-
return /* @__PURE__ */
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
scroll: T,
|
|
263
|
-
...h,
|
|
264
|
-
rowClassName: U
|
|
265
|
-
}
|
|
266
|
-
),
|
|
267
|
-
/* @__PURE__ */ r.jsx(
|
|
268
|
-
Re,
|
|
269
|
-
{
|
|
270
|
-
columns: m,
|
|
271
|
-
dataLength: i.length,
|
|
272
|
-
scroll: T,
|
|
273
|
-
rowSelection: h.rowSelection,
|
|
274
|
-
expandable: h.expandable,
|
|
275
|
-
rowClassName: U,
|
|
276
|
-
loading: B
|
|
277
|
-
}
|
|
278
|
-
)
|
|
279
|
-
] }),
|
|
280
|
-
w && /* @__PURE__ */ r.jsx(
|
|
281
|
-
He,
|
|
282
|
-
{
|
|
283
|
-
elRefInstance: _,
|
|
284
|
-
enableControl: le,
|
|
285
|
-
pagination: ne,
|
|
286
|
-
total: N,
|
|
287
|
-
dataSource: i,
|
|
288
|
-
resetPage: xe,
|
|
289
|
-
paginationEmit: se
|
|
290
|
-
}
|
|
291
|
-
)
|
|
292
|
-
] }),
|
|
293
|
-
S && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
294
|
-
(B || (i == null ? void 0 : i.length) > 0) && /* @__PURE__ */ r.jsx(r.Fragment, { children: R ? /* @__PURE__ */ r.jsx(Ae, { onRefresh: R, children: X }) : X }),
|
|
295
|
-
!B && /* @__PURE__ */ r.jsx(Se, { data: i, title: ie, img: ce }),
|
|
296
|
-
/* @__PURE__ */ r.jsx(
|
|
297
|
-
We,
|
|
298
|
-
{
|
|
299
|
-
className: "tableMobileDrawer",
|
|
300
|
-
open: ue,
|
|
301
|
-
placement: "bottom",
|
|
302
|
-
height: "auto",
|
|
303
|
-
closable: !1,
|
|
304
|
-
onClose: K,
|
|
305
|
-
children: /* @__PURE__ */ r.jsxs("div", { className: "drawerBox", children: [
|
|
306
|
-
/* @__PURE__ */ r.jsx("div", { className: "boxBody", children: ye.map((e, o) => /* @__PURE__ */ r.jsx(
|
|
307
|
-
"div",
|
|
256
|
+
return /* @__PURE__ */ t.jsxs(
|
|
257
|
+
"div",
|
|
258
|
+
{
|
|
259
|
+
className: te("bitzTableBlock", { fullscreen: x }),
|
|
260
|
+
style: Le,
|
|
261
|
+
children: [
|
|
262
|
+
!A && /* @__PURE__ */ t.jsxs("div", { ref: C, className: ze, style: Me, children: [
|
|
263
|
+
/* @__PURE__ */ t.jsxs("div", { className: "bitzTableContainerBody", ref: v, children: [
|
|
264
|
+
D && /* @__PURE__ */ t.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
265
|
+
xe || /* @__PURE__ */ t.jsx("div", {}),
|
|
266
|
+
Ce,
|
|
267
|
+
(h == null ? void 0 : h.rowSelection) && /* @__PURE__ */ t.jsx(t.Fragment, { children: me })
|
|
268
|
+
] }),
|
|
269
|
+
/* @__PURE__ */ t.jsx(
|
|
270
|
+
O,
|
|
308
271
|
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
)
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
272
|
+
columns: p,
|
|
273
|
+
dataSource: i,
|
|
274
|
+
loading: !1,
|
|
275
|
+
pagination: !1,
|
|
276
|
+
scroll: N,
|
|
277
|
+
...h,
|
|
278
|
+
rowClassName: Q
|
|
279
|
+
}
|
|
280
|
+
),
|
|
281
|
+
/* @__PURE__ */ t.jsx(
|
|
282
|
+
_e,
|
|
283
|
+
{
|
|
284
|
+
columns: p,
|
|
285
|
+
dataLength: i.length,
|
|
286
|
+
scroll: N,
|
|
287
|
+
rowSelection: h.rowSelection,
|
|
288
|
+
expandable: h.expandable,
|
|
289
|
+
showTableTool: D,
|
|
290
|
+
rowClassName: Q,
|
|
291
|
+
loading: T
|
|
292
|
+
}
|
|
293
|
+
)
|
|
294
|
+
] }),
|
|
295
|
+
j && /* @__PURE__ */ t.jsx(
|
|
296
|
+
Pe,
|
|
297
|
+
{
|
|
298
|
+
elRefInstance: G,
|
|
299
|
+
enableControl: de,
|
|
300
|
+
pagination: he,
|
|
301
|
+
total: z,
|
|
302
|
+
dataSource: i,
|
|
303
|
+
resetPage: ye,
|
|
304
|
+
paginationEmit: fe
|
|
305
|
+
}
|
|
306
|
+
)
|
|
307
|
+
] }),
|
|
308
|
+
A && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
309
|
+
(T || (i == null ? void 0 : i.length) > 0) && /* @__PURE__ */ t.jsx(t.Fragment, { children: _ ? /* @__PURE__ */ t.jsx(Re, { onRefresh: _, children: Y }) : Y }),
|
|
310
|
+
!T && /* @__PURE__ */ t.jsx(Ae, { data: i, title: ue, img: ge }),
|
|
311
|
+
/* @__PURE__ */ t.jsx(
|
|
312
|
+
Ee,
|
|
313
|
+
{
|
|
314
|
+
className: "tableMobileDrawer",
|
|
315
|
+
open: Be,
|
|
316
|
+
placement: "bottom",
|
|
317
|
+
height: "auto",
|
|
318
|
+
closable: !1,
|
|
319
|
+
onClose: F,
|
|
320
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: "drawerBox", children: [
|
|
321
|
+
/* @__PURE__ */ t.jsx("div", { className: "boxBody", children: je.map((o, e) => /* @__PURE__ */ t.jsx(
|
|
322
|
+
"div",
|
|
323
|
+
{
|
|
324
|
+
className: "operaList",
|
|
325
|
+
onClick: () => Ne(o),
|
|
326
|
+
...o.danger && {
|
|
327
|
+
style: { color: c.colorError }
|
|
328
|
+
},
|
|
329
|
+
children: o.label
|
|
330
|
+
},
|
|
331
|
+
e
|
|
332
|
+
)) }),
|
|
333
|
+
/* @__PURE__ */ t.jsx("div", { className: "boxLine" }),
|
|
334
|
+
/* @__PURE__ */ t.jsx("div", { className: "boxFooter", onClick: F, children: be })
|
|
335
|
+
] })
|
|
336
|
+
}
|
|
337
|
+
)
|
|
338
|
+
] })
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
);
|
|
325
342
|
}
|
|
326
|
-
const
|
|
343
|
+
const xo = (j) => (
|
|
327
344
|
// @ts-ignore
|
|
328
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ t.jsx(Ve, { initValue: j, children: /* @__PURE__ */ t.jsx(Fe, { ...j }) })
|
|
329
346
|
);
|
|
330
347
|
export {
|
|
331
|
-
|
|
348
|
+
xo as default
|
|
332
349
|
};
|