bitz-react-admin-ui 2.2.1 → 2.2.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/BitzTable/ActionCol/index.mjs +1 -7
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -16
- package/dist/components/BitzTable/Store/index.mjs +1 -3
- package/dist/components/BitzTable/Table/SortTableContext.d.ts +2 -2
- package/dist/components/BitzTable/Table/SortableRow.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.mjs +153 -137
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +17 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +11 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +21 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +6 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +19 -24
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +41 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +118 -126
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +6 -2
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +9 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +27 -1
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -4
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +0 -1
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +1 -6
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +39 -33
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as pe, useRef as P, useState as
|
|
3
|
-
import { isMobile as
|
|
1
|
+
import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as pe, useRef as P, useState as K, useEffect as Ct, useMemo as i, useCallback as ee } from "react";
|
|
3
|
+
import { isMobile as O } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
4
|
import { Table as se, Skeleton as xt, Typography as We } from "antd";
|
|
5
5
|
import te from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
6
|
import gt from "../../BitzDrawer/index.mjs";
|
|
@@ -20,14 +20,14 @@ import Lt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/ta
|
|
|
20
20
|
import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
|
|
21
21
|
import Pt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
|
|
22
22
|
import { getColumnsWithTool as Rt, loopBuildSkeleton as St } from "./utils.mjs";
|
|
23
|
-
import { getCssVar as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
23
|
+
import { getCssVar as Ht } from "./style.mjs";
|
|
24
|
+
import $t from "./SortableRow.mjs";
|
|
25
|
+
import At from "./SortTableContext.mjs";
|
|
26
26
|
import "./index.less.mjs";
|
|
27
|
-
import { ConfigContext as
|
|
28
|
-
import
|
|
27
|
+
import { ConfigContext as Dt } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
|
|
28
|
+
import Kt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
29
29
|
const Le = [se.SELECTION_COLUMN, se.EXPAND_COLUMN];
|
|
30
|
-
function
|
|
30
|
+
function Ot({
|
|
31
31
|
showPagination: p = !0,
|
|
32
32
|
showSelected: oe = !0,
|
|
33
33
|
height: W,
|
|
@@ -35,7 +35,7 @@ function Kt({
|
|
|
35
35
|
total: w = 0,
|
|
36
36
|
columns: N,
|
|
37
37
|
loading: l = !1,
|
|
38
|
-
skeletonNum:
|
|
38
|
+
skeletonNum: V = {
|
|
39
39
|
pc: 10,
|
|
40
40
|
mobile: 10
|
|
41
41
|
},
|
|
@@ -44,93 +44,93 @@ function Kt({
|
|
|
44
44
|
skeletonRowsWidth: Re = ["35%", "100%", "100%", "60%"],
|
|
45
45
|
// mobileLoadEmit,
|
|
46
46
|
mobileRefreshEmit: le,
|
|
47
|
-
operationFilter:
|
|
47
|
+
operationFilter: _,
|
|
48
48
|
enableControlPage: Se,
|
|
49
49
|
pagination: C,
|
|
50
50
|
paginationEmit: R = () => {
|
|
51
51
|
},
|
|
52
52
|
enabledRowDragSort: S,
|
|
53
|
-
onRowDragEnd:
|
|
54
|
-
mobilePageHeight:
|
|
55
|
-
mobileCancelText:
|
|
56
|
-
noDataTitle:
|
|
57
|
-
noDataImg:
|
|
58
|
-
color:
|
|
53
|
+
onRowDragEnd: q,
|
|
54
|
+
mobilePageHeight: Vt = 500,
|
|
55
|
+
mobileCancelText: He = "取消",
|
|
56
|
+
noDataTitle: $e,
|
|
57
|
+
noDataImg: Ae,
|
|
58
|
+
color: _t,
|
|
59
59
|
size: ie,
|
|
60
|
-
showTableTool:
|
|
61
|
-
tableAction:
|
|
62
|
-
tableToolbar:
|
|
63
|
-
selectionBar:
|
|
60
|
+
showTableTool: De = !0,
|
|
61
|
+
tableAction: Ke,
|
|
62
|
+
tableToolbar: Oe,
|
|
63
|
+
selectionBar: Ve,
|
|
64
64
|
scroll: d,
|
|
65
65
|
components: j,
|
|
66
66
|
expandable: x,
|
|
67
67
|
rowSelection: a,
|
|
68
|
-
resetPage:
|
|
68
|
+
resetPage: _e,
|
|
69
69
|
...h
|
|
70
70
|
}) {
|
|
71
71
|
var we, Ne, Te, ke;
|
|
72
|
-
const { token: g } = Mt.useToken(), { Table: c } = g, { tableSpaceBetweenPage: ce = 10 } = c, { gap:
|
|
72
|
+
const { token: g } = Mt.useToken(), { Table: c } = g, { tableSpaceBetweenPage: ce = 10 } = c, { gap: qe } = Wt(), { showColumnBorder: Fe, hideRowBorder: ae, rowHoverable: Ge, ...u } = pe(Tt), H = P(void 0), F = P(0), [G, Ee] = K(0), [Ue, E] = K(!1), [y, ve] = K([]);
|
|
73
73
|
Ct(() => {
|
|
74
74
|
let e = [...m];
|
|
75
|
-
(C == null ? void 0 : C.page) !== 1 && (e = [...y, ...e]),
|
|
75
|
+
(C == null ? void 0 : C.page) !== 1 && (e = [...y, ...e]), ve(e);
|
|
76
76
|
}, [m]);
|
|
77
|
-
const Ie = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= w, [y, w]), [Xe, Je] =
|
|
77
|
+
const Ie = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= w, [y, w]), [Xe, Je] = K([]), Qe = (e, t) => {
|
|
78
78
|
var n;
|
|
79
|
-
const
|
|
80
|
-
(
|
|
79
|
+
const s = (n = _ == null ? void 0 : _(e, t)) == null ? void 0 : n.filter(
|
|
80
|
+
(r) => r.type !== "divider"
|
|
81
81
|
);
|
|
82
|
-
|
|
82
|
+
s != null && s.length && (Je(s), E(!0));
|
|
83
83
|
}, de = () => {
|
|
84
|
-
|
|
84
|
+
E(!1);
|
|
85
85
|
}, Ye = (e) => {
|
|
86
86
|
var t;
|
|
87
|
-
|
|
88
|
-
}, B = P(null),
|
|
89
|
-
var
|
|
90
|
-
const e = (
|
|
87
|
+
E(!1), (t = e.onClick) == null || t.call(e);
|
|
88
|
+
}, B = P(null), U = re(B), he = P(null), v = re(he), I = P(null), k = re(I), Ze = () => {
|
|
89
|
+
var s;
|
|
90
|
+
const e = (s = B.current) == null ? void 0 : s.querySelectorAll(
|
|
91
91
|
"& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-body > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)"
|
|
92
92
|
), t = [];
|
|
93
93
|
if (e == null || e.forEach((n) => {
|
|
94
|
-
var
|
|
94
|
+
var r;
|
|
95
95
|
t.push(
|
|
96
|
-
((
|
|
96
|
+
((r = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : r.clientWidth) || 0
|
|
97
97
|
);
|
|
98
98
|
}), t.length)
|
|
99
|
-
return Math.ceil(Math.max(...t)) +
|
|
99
|
+
return Math.ceil(Math.max(...t)) + qe * 2;
|
|
100
100
|
}, ue = () => {
|
|
101
101
|
var b, f, L;
|
|
102
102
|
const e = (b = B.current) == null ? void 0 : b.querySelector(
|
|
103
103
|
".ant-table-body"
|
|
104
|
-
), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0,
|
|
104
|
+
), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, r = (L = (f = B.current) == null ? void 0 : f.querySelector(
|
|
105
105
|
".ant-table-cell-scrollbar"
|
|
106
106
|
)) == null ? void 0 : L.offsetWidth;
|
|
107
|
-
return { tbodyWidth: t, hasScrollBar: n, scrollbarSize:
|
|
108
|
-
}, { y: X, tbodyWidth: J, hasScrollBar:
|
|
109
|
-
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize:
|
|
107
|
+
return { tbodyWidth: t, hasScrollBar: n, scrollbarSize: r };
|
|
108
|
+
}, { y: X, tbodyWidth: J, hasScrollBar: $, scrollbarSize: M } = i(() => {
|
|
109
|
+
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: s } = ue();
|
|
110
110
|
if (typeof W > "u")
|
|
111
111
|
return {
|
|
112
112
|
tbodyWidth: e,
|
|
113
113
|
hasScrollBar: t,
|
|
114
|
-
scrollbarSize:
|
|
114
|
+
scrollbarSize: s
|
|
115
115
|
};
|
|
116
|
-
let n = 40,
|
|
116
|
+
let n = 40, r = 40;
|
|
117
117
|
if (B.current) {
|
|
118
|
-
const
|
|
119
|
-
n = parseInt(
|
|
118
|
+
const D = window.getComputedStyle(B.current);
|
|
119
|
+
n = parseInt(D.getPropertyValue("--cell-height")), r = parseInt(D.getPropertyValue("--toolbar-height"));
|
|
120
120
|
}
|
|
121
121
|
const b = (k == null ? void 0 : k.height) || 0, f = b ? ce : 0;
|
|
122
|
-
return { y: (u.fullscreen ? window.innerHeight : W) - b - f -
|
|
122
|
+
return { y: (u.fullscreen ? window.innerHeight : W) - b - f - r - n, tbodyWidth: e, hasScrollBar: t, scrollbarSize: s };
|
|
123
123
|
}, [
|
|
124
124
|
u.fullscreen,
|
|
125
125
|
W,
|
|
126
126
|
k == null ? void 0 : k.height,
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
U == null ? void 0 : U.height,
|
|
128
|
+
v == null ? void 0 : v.height
|
|
129
129
|
]), et = i(() => {
|
|
130
130
|
let e = (d == null ? void 0 : d.x) ?? 1e3;
|
|
131
|
-
return
|
|
132
|
-
}, [d, X, J,
|
|
133
|
-
const t = e.length,
|
|
131
|
+
return F.current && (e -= F.current), G && H.current && (e -= G * H.current), J && (e = Math.max(e, J)), d != null && d.x ? { x: e, y: d.y || X } : d != null && d.y ? { x: e, y: d.y } : { x: e, y: X };
|
|
132
|
+
}, [d, X, J, G]), tt = (e) => {
|
|
133
|
+
const t = e.length, s = e.filter((z) => z.width), r = s.map((z) => z.width).reduce((z, Z) => z + Z, 0);
|
|
134
134
|
let b = 0;
|
|
135
135
|
if (B.current) {
|
|
136
136
|
const z = window.getComputedStyle(B.current), Z = parseInt(
|
|
@@ -140,52 +140,52 @@ function Kt({
|
|
|
140
140
|
}
|
|
141
141
|
let f = 0;
|
|
142
142
|
a && (f += b), x && (f += b);
|
|
143
|
-
const { tbodyWidth: L } = ue(), Y = Math.max((d == null ? void 0 : d.x) ?? 0, L ?? 0) -
|
|
144
|
-
return Y >= 0 ? Y /
|
|
145
|
-
},
|
|
146
|
-
const t = (N ?? []).filter((f) => !Le.includes(f)), { filterColumns:
|
|
143
|
+
const { tbodyWidth: L } = ue(), Y = Math.max((d == null ? void 0 : d.x) ?? 0, L ?? 0) - r - f, D = t - s.length;
|
|
144
|
+
return Y >= 0 ? Y / D : void 0;
|
|
145
|
+
}, A = i(() => {
|
|
146
|
+
const t = (N ?? []).filter((f) => !Le.includes(f)), { filterColumns: s, width: n, autoWidthColLength: r } = kt(
|
|
147
147
|
t,
|
|
148
148
|
u.columnsMap
|
|
149
|
-
), b =
|
|
150
|
-
if (!
|
|
149
|
+
), b = s.sort(pt(u.columnsMap));
|
|
150
|
+
if (!O) {
|
|
151
151
|
const f = tt(t);
|
|
152
|
-
|
|
152
|
+
H.current = Math.ceil(f ?? 0), F.current = Math.ceil(n), Ee(r);
|
|
153
153
|
}
|
|
154
154
|
return b;
|
|
155
155
|
}, [u.columnsMap]), T = i(() => {
|
|
156
|
-
if (
|
|
157
|
-
return
|
|
158
|
-
const e =
|
|
159
|
-
|
|
160
|
-
const n =
|
|
161
|
-
...
|
|
162
|
-
...
|
|
156
|
+
if (O)
|
|
157
|
+
return A;
|
|
158
|
+
const e = A.findIndex((r) => r == null ? void 0 : r.isOperationCol), t = (N ?? []).findIndex((r) => r == null ? void 0 : r.isOperationCol), s = A.slice();
|
|
159
|
+
s.splice(e, 1, N == null ? void 0 : N[t]);
|
|
160
|
+
const n = s.map((r) => ({
|
|
161
|
+
...r,
|
|
162
|
+
...r != null && r.isDragSortCol ? {
|
|
163
163
|
onCell: (...b) => {
|
|
164
164
|
var f;
|
|
165
165
|
return {
|
|
166
|
-
...(f =
|
|
166
|
+
...(f = r == null ? void 0 : r.onCell) == null ? void 0 : f.call(r, b),
|
|
167
167
|
"data-column-name": "dragSortCell"
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
} : {},
|
|
171
|
-
...
|
|
172
|
-
width:
|
|
171
|
+
...r != null && r.width ? {
|
|
172
|
+
width: r != null && r.useMaxWidth ? Ze() ?? r.width : r.width
|
|
173
173
|
} : {
|
|
174
174
|
// 给未设置width的列设置平均数
|
|
175
|
-
width:
|
|
175
|
+
width: H
|
|
176
176
|
}
|
|
177
177
|
}));
|
|
178
178
|
return Rt(N, n, a, x);
|
|
179
|
-
}, [N,
|
|
180
|
-
const e = m == null ? void 0 : m.length, t = e > (
|
|
181
|
-
return Array.from({ length: t }).map((n,
|
|
182
|
-
key: `${Date.now()}${
|
|
179
|
+
}, [N, A]), fe = i(() => St(T, Le), [T]), rt = i(() => l ? fe : T, [l, T, fe]), me = i(() => {
|
|
180
|
+
const e = m == null ? void 0 : m.length, t = e > (V.pc ?? 10) ? e >= 20 ? 20 : e : V.pc ?? 10;
|
|
181
|
+
return Array.from({ length: t }).map((n, r) => ({
|
|
182
|
+
key: `${Date.now()}${r}`
|
|
183
183
|
}));
|
|
184
|
-
}, [m]), be = i(() => l ? me : m, [l, m, me]), { table: Q, locale: st = Pt } = pe(
|
|
184
|
+
}, [m]), be = i(() => l ? me : m, [l, m, me]), { table: Q, locale: st = Pt } = pe(Dt), ot = { ...st.Table }, nt = ((we = Q == null ? void 0 : Q.expandable) == null ? void 0 : we.expandIcon) || (x == null ? void 0 : x.expandIcon) || Lt(ot), ye = i(() => {
|
|
185
185
|
if (x)
|
|
186
186
|
return {
|
|
187
187
|
...x,
|
|
188
|
-
expandedRowRender: () => /* @__PURE__ */
|
|
188
|
+
expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
189
189
|
expandIcon: (e) => {
|
|
190
190
|
const t = nt(e);
|
|
191
191
|
return {
|
|
@@ -213,20 +213,20 @@ function Kt({
|
|
|
213
213
|
var n;
|
|
214
214
|
if (!h.onRow || l)
|
|
215
215
|
return {};
|
|
216
|
-
const
|
|
217
|
-
return
|
|
216
|
+
const s = (n = h.onRow) == null ? void 0 : n.call(h, e, t);
|
|
217
|
+
return s.onClick && (s.className = "rowPointerCursor"), s;
|
|
218
218
|
},
|
|
219
219
|
[h.onRow, l]
|
|
220
220
|
), at = i(() => te(
|
|
221
221
|
"bitzTableContainer",
|
|
222
222
|
{ hideBorder: ae },
|
|
223
|
-
{ hasScrollBar:
|
|
223
|
+
{ hasScrollBar: $ },
|
|
224
224
|
ge,
|
|
225
225
|
h.className
|
|
226
226
|
), [
|
|
227
227
|
h.className,
|
|
228
228
|
ge,
|
|
229
|
-
|
|
229
|
+
$,
|
|
230
230
|
u.fullscreen,
|
|
231
231
|
ae
|
|
232
232
|
]), dt = i(() => ({
|
|
@@ -234,7 +234,7 @@ function Kt({
|
|
|
234
234
|
}), [g.colorBgContainer]), ht = i(() => {
|
|
235
235
|
const e = u.fullscreen ? "100%" : W;
|
|
236
236
|
let t;
|
|
237
|
-
return (M ?? 0) > 0 && (t = M),
|
|
237
|
+
return (M ?? 0) > 0 && (t = M), Ht({
|
|
238
238
|
height: e,
|
|
239
239
|
fontFamily: g.fontFamily,
|
|
240
240
|
evenRowBgColor: u.zebra ? c == null ? void 0 : c.evenRowBgColor : g.colorBgContainer,
|
|
@@ -245,17 +245,24 @@ function Kt({
|
|
|
245
245
|
scrollbarWidth: t,
|
|
246
246
|
other: h.style
|
|
247
247
|
});
|
|
248
|
-
}, [
|
|
249
|
-
|
|
248
|
+
}, [
|
|
249
|
+
h.style,
|
|
250
|
+
u.fullscreen,
|
|
251
|
+
W,
|
|
252
|
+
c,
|
|
253
|
+
u == null ? void 0 : u.zebra,
|
|
254
|
+
M
|
|
255
|
+
]), ut = ee(
|
|
256
|
+
(e, t, s) => {
|
|
250
257
|
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
251
258
|
if (h.rowClassName) {
|
|
252
|
-
const
|
|
253
|
-
return te(n,
|
|
259
|
+
const r = h.rowClassName(e, t, s);
|
|
260
|
+
return te(n, r);
|
|
254
261
|
}
|
|
255
262
|
return n;
|
|
256
263
|
},
|
|
257
264
|
[h.rowClassName]
|
|
258
|
-
), Be = /* @__PURE__ */
|
|
265
|
+
), Be = /* @__PURE__ */ o.jsx(
|
|
259
266
|
zt,
|
|
260
267
|
{
|
|
261
268
|
finished: Ie,
|
|
@@ -266,36 +273,36 @@ function Kt({
|
|
|
266
273
|
loadingText: "加载中...",
|
|
267
274
|
finishedText: "没有更多了",
|
|
268
275
|
errorText: "加载失败",
|
|
269
|
-
children: /* @__PURE__ */
|
|
276
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
270
277
|
"div",
|
|
271
278
|
{
|
|
272
279
|
className: "mobileList",
|
|
273
280
|
style: { backgroundColor: c == null ? void 0 : c.mobileListBgColor },
|
|
274
281
|
children: [
|
|
275
|
-
y == null ? void 0 : y.map((e, t) => /* @__PURE__ */
|
|
282
|
+
y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
276
283
|
"div",
|
|
277
284
|
{
|
|
278
285
|
className: "listItem",
|
|
279
286
|
style: { backgroundColor: c == null ? void 0 : c.listItemBgColor },
|
|
280
287
|
onClick: () => Qe(e, t),
|
|
281
|
-
children: T == null ? void 0 : T.map((
|
|
282
|
-
var
|
|
283
|
-
return !(
|
|
288
|
+
children: T == null ? void 0 : T.map((s, n) => {
|
|
289
|
+
var r;
|
|
290
|
+
return !(s != null && s.mobileHide) && /* @__PURE__ */ o.jsxs(
|
|
284
291
|
"div",
|
|
285
292
|
{
|
|
286
293
|
className: "row",
|
|
287
294
|
style: { color: g.colorText },
|
|
288
295
|
children: [
|
|
289
|
-
!
|
|
290
|
-
`${
|
|
296
|
+
!s.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
|
|
297
|
+
`${s.title}`,
|
|
291
298
|
":"
|
|
292
299
|
] }),
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
-
|
|
295
|
-
|
|
300
|
+
/* @__PURE__ */ o.jsx("div", { className: "value", children: ((r = s == null ? void 0 : s.render) == null ? void 0 : r.call(
|
|
301
|
+
s,
|
|
302
|
+
Kt(e, (s == null ? void 0 : s.dataIndex) || ""),
|
|
296
303
|
e,
|
|
297
304
|
t
|
|
298
|
-
)) || (e == null ? void 0 : e[
|
|
305
|
+
)) || (e == null ? void 0 : e[s.dataIndex]) })
|
|
299
306
|
]
|
|
300
307
|
},
|
|
301
308
|
n
|
|
@@ -304,7 +311,7 @@ function Kt({
|
|
|
304
311
|
},
|
|
305
312
|
t
|
|
306
313
|
)),
|
|
307
|
-
Array.from({ length:
|
|
314
|
+
Array.from({ length: V.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ o.jsx(
|
|
308
315
|
"div",
|
|
309
316
|
{
|
|
310
317
|
className: "listItem",
|
|
@@ -312,7 +319,7 @@ function Kt({
|
|
|
312
319
|
display: l ? "block" : "none",
|
|
313
320
|
backgroundColor: c == null ? void 0 : c.listItemBgColor
|
|
314
321
|
},
|
|
315
|
-
children: /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ o.jsx(
|
|
316
323
|
xt,
|
|
317
324
|
{
|
|
318
325
|
title: !1,
|
|
@@ -330,8 +337,8 @@ function Kt({
|
|
|
330
337
|
}
|
|
331
338
|
)
|
|
332
339
|
}
|
|
333
|
-
), je = /* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */
|
|
340
|
+
), je = /* @__PURE__ */ o.jsxs("div", { className: "alert", children: [
|
|
341
|
+
/* @__PURE__ */ o.jsx(
|
|
335
342
|
Me,
|
|
336
343
|
{
|
|
337
344
|
highlightTag: "strong",
|
|
@@ -340,9 +347,9 @@ function Kt({
|
|
|
340
347
|
tagClass: "totalText"
|
|
341
348
|
}
|
|
342
349
|
),
|
|
343
|
-
oe && /* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
-
/* @__PURE__ */
|
|
350
|
+
oe && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
351
|
+
/* @__PURE__ */ o.jsx(We.Text, { className: "splitBorder", children: "/" }),
|
|
352
|
+
/* @__PURE__ */ o.jsx(
|
|
346
353
|
Me,
|
|
347
354
|
{
|
|
348
355
|
highlightTag: "strong",
|
|
@@ -350,20 +357,27 @@ function Kt({
|
|
|
350
357
|
sourceString: `已选中 ${((Te = a == null ? void 0 : a.selectedRowKeys) == null ? void 0 : Te.length) ?? 0} 条`
|
|
351
358
|
}
|
|
352
359
|
),
|
|
353
|
-
!!((ke = a == null ? void 0 : a.selectedRowKeys) != null && ke.length) && /* @__PURE__ */
|
|
360
|
+
!!((ke = a == null ? void 0 : a.selectedRowKeys) != null && ke.length) && /* @__PURE__ */ o.jsx(
|
|
361
|
+
We.Link,
|
|
362
|
+
{
|
|
363
|
+
className: "cleanSelected",
|
|
364
|
+
onClick: a.onClear,
|
|
365
|
+
children: "取消选中"
|
|
366
|
+
}
|
|
367
|
+
)
|
|
354
368
|
] })
|
|
355
369
|
] }), ft = (e) => {
|
|
356
|
-
var
|
|
370
|
+
var s;
|
|
357
371
|
const t = { ...e };
|
|
358
|
-
return t.className.includes("ant-table-cell-fix-right") &&
|
|
372
|
+
return t.className.includes("ant-table-cell-fix-right") && !$ && ((s = t.style) != null && s.right) && (t.style = {
|
|
359
373
|
...t.style,
|
|
360
374
|
right: t.style.right - (M || 0)
|
|
361
|
-
}), /* @__PURE__ */
|
|
375
|
+
}), /* @__PURE__ */ o.jsx("th", { ...t });
|
|
362
376
|
}, mt = (e) => {
|
|
363
377
|
var t;
|
|
364
|
-
l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (
|
|
378
|
+
l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (q == null || q(e));
|
|
365
379
|
}, ze = ee(() => S ? {
|
|
366
|
-
row: (e) =>
|
|
380
|
+
row: (e) => $t({ ...e, loading: l.toString() })
|
|
367
381
|
} : {}, [S, S ? l : !1]), bt = i(() => ({
|
|
368
382
|
...j,
|
|
369
383
|
header: {
|
|
@@ -374,32 +388,34 @@ function Kt({
|
|
|
374
388
|
...j == null ? void 0 : j.body,
|
|
375
389
|
...ze()
|
|
376
390
|
}
|
|
377
|
-
}), [j,
|
|
378
|
-
return /* @__PURE__ */
|
|
391
|
+
}), [j, $, M, ze]);
|
|
392
|
+
return /* @__PURE__ */ o.jsxs(
|
|
379
393
|
"div",
|
|
380
394
|
{
|
|
381
|
-
className: te("bitzTableBlock", {
|
|
395
|
+
className: te("bitzTableBlock", {
|
|
396
|
+
fullscreen: u.fullscreen
|
|
397
|
+
}),
|
|
382
398
|
style: dt,
|
|
383
399
|
children: [
|
|
384
|
-
!
|
|
385
|
-
/* @__PURE__ */
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
400
|
+
!O && /* @__PURE__ */ o.jsxs("div", { ref: B, className: at, style: ht, children: [
|
|
401
|
+
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [
|
|
402
|
+
De && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
403
|
+
Ke || /* @__PURE__ */ o.jsx("div", {}),
|
|
404
|
+
Oe,
|
|
405
|
+
Ve
|
|
390
406
|
] }),
|
|
391
|
-
/* @__PURE__ */
|
|
392
|
-
|
|
407
|
+
/* @__PURE__ */ o.jsx(
|
|
408
|
+
At,
|
|
393
409
|
{
|
|
394
410
|
enabledRowDragSort: S,
|
|
395
411
|
dataSource: be,
|
|
396
412
|
mergeRowKey: xe,
|
|
397
413
|
onDragEnd: mt,
|
|
398
|
-
children: /* @__PURE__ */
|
|
414
|
+
children: /* @__PURE__ */ o.jsx(
|
|
399
415
|
se,
|
|
400
416
|
{
|
|
401
417
|
...h,
|
|
402
|
-
bordered:
|
|
418
|
+
bordered: Fe,
|
|
403
419
|
columns: rt,
|
|
404
420
|
dataSource: be,
|
|
405
421
|
loading: !1,
|
|
@@ -408,7 +424,7 @@ function Kt({
|
|
|
408
424
|
expandable: lt,
|
|
409
425
|
rowSelection: it,
|
|
410
426
|
onRow: ct,
|
|
411
|
-
rowHoverable:
|
|
427
|
+
rowHoverable: Ge,
|
|
412
428
|
rowClassName: ut,
|
|
413
429
|
className: "bitzTable",
|
|
414
430
|
components: bt,
|
|
@@ -418,9 +434,9 @@ function Kt({
|
|
|
418
434
|
}
|
|
419
435
|
)
|
|
420
436
|
] }),
|
|
421
|
-
p && !!w && /* @__PURE__ */
|
|
437
|
+
p && !!w && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
|
|
422
438
|
je,
|
|
423
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ o.jsx(
|
|
424
440
|
Bt,
|
|
425
441
|
{
|
|
426
442
|
size: "small",
|
|
@@ -428,18 +444,18 @@ function Kt({
|
|
|
428
444
|
pagination: C,
|
|
429
445
|
total: w,
|
|
430
446
|
dataSource: m,
|
|
431
|
-
resetPage:
|
|
447
|
+
resetPage: _e,
|
|
432
448
|
hideTotalText: !0,
|
|
433
449
|
paginationEmit: R
|
|
434
450
|
}
|
|
435
451
|
)
|
|
436
452
|
] }),
|
|
437
|
-
!p && oe && !!w && /* @__PURE__ */
|
|
453
|
+
!p && oe && !!w && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: I, children: je })
|
|
438
454
|
] }),
|
|
439
|
-
|
|
440
|
-
(l || (m == null ? void 0 : m.length) > 0) && /* @__PURE__ */
|
|
455
|
+
O && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
456
|
+
(l || (m == null ? void 0 : m.length) > 0) && /* @__PURE__ */ o.jsx(o.Fragment, { children: le ? (
|
|
441
457
|
// @ts-ignore
|
|
442
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ o.jsx(
|
|
443
459
|
wt,
|
|
444
460
|
{
|
|
445
461
|
onRefresh: async () => !l && le(),
|
|
@@ -447,18 +463,18 @@ function Kt({
|
|
|
447
463
|
}
|
|
448
464
|
)
|
|
449
465
|
) : Be }),
|
|
450
|
-
!l && /* @__PURE__ */
|
|
451
|
-
/* @__PURE__ */
|
|
466
|
+
!l && /* @__PURE__ */ o.jsx(jt, { data: m, title: $e, img: Ae }),
|
|
467
|
+
/* @__PURE__ */ o.jsx(
|
|
452
468
|
gt,
|
|
453
469
|
{
|
|
454
470
|
className: "tableMobileDrawer",
|
|
455
|
-
open:
|
|
471
|
+
open: Ue,
|
|
456
472
|
placement: "bottom",
|
|
457
473
|
height: "auto",
|
|
458
474
|
closable: !1,
|
|
459
475
|
onClose: de,
|
|
460
|
-
children: /* @__PURE__ */
|
|
461
|
-
/* @__PURE__ */
|
|
476
|
+
children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
|
|
477
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Xe.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
462
478
|
"div",
|
|
463
479
|
{
|
|
464
480
|
className: "operaList",
|
|
@@ -470,8 +486,8 @@ function Kt({
|
|
|
470
486
|
},
|
|
471
487
|
t
|
|
472
488
|
)) }),
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
|
|
490
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: de, children: He })
|
|
475
491
|
] })
|
|
476
492
|
}
|
|
477
493
|
)
|
|
@@ -480,7 +496,7 @@ function Kt({
|
|
|
480
496
|
}
|
|
481
497
|
);
|
|
482
498
|
}
|
|
483
|
-
const Cr = (p) => /* @__PURE__ */
|
|
499
|
+
const Cr = (p) => /* @__PURE__ */ o.jsx(Nt, { initValue: p, children: /* @__PURE__ */ o.jsx(Ot, { ...p }) });
|
|
484
500
|
export {
|
|
485
501
|
Cr as default
|
|
486
502
|
};
|
|
@@ -97,8 +97,23 @@ const fe = "导出设置", he = ({
|
|
|
97
97
|
),
|
|
98
98
|
children: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
99
99
|
/* @__PURE__ */ e.jsx(oe, { ref: k, display: i === 1 }),
|
|
100
|
-
/* @__PURE__ */ e.jsx(
|
|
101
|
-
|
|
100
|
+
/* @__PURE__ */ e.jsx(
|
|
101
|
+
re,
|
|
102
|
+
{
|
|
103
|
+
parentHeight: t,
|
|
104
|
+
ref: s,
|
|
105
|
+
display: i === 2
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ e.jsx(
|
|
109
|
+
se,
|
|
110
|
+
{
|
|
111
|
+
parentHeight: t,
|
|
112
|
+
refInstance: x,
|
|
113
|
+
display: i === 3,
|
|
114
|
+
showSelectRadio: !1
|
|
115
|
+
}
|
|
116
|
+
)
|
|
102
117
|
] })
|
|
103
118
|
}
|
|
104
119
|
);
|
|
@@ -45,7 +45,14 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
|
|
|
45
45
|
getTooltipContainer: (p) => p.parentElement,
|
|
46
46
|
title: e,
|
|
47
47
|
open: r ? !1 : void 0,
|
|
48
|
-
children: /* @__PURE__ */ o.jsx(
|
|
48
|
+
children: /* @__PURE__ */ o.jsx(
|
|
49
|
+
t,
|
|
50
|
+
{
|
|
51
|
+
size: s.fontSize + 4,
|
|
52
|
+
className: n,
|
|
53
|
+
onClick: i
|
|
54
|
+
}
|
|
55
|
+
)
|
|
49
56
|
}
|
|
50
57
|
);
|
|
51
58
|
}, B = ({
|
|
@@ -107,7 +114,9 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
|
|
|
107
114
|
return /* @__PURE__ */ o.jsxs(
|
|
108
115
|
"div",
|
|
109
116
|
{
|
|
110
|
-
className: q({ sortItemDragging: m }, "sortItem", {
|
|
117
|
+
className: q({ sortItemDragging: m }, "sortItem", {
|
|
118
|
+
showSortItemOperat: a && !n
|
|
119
|
+
}),
|
|
111
120
|
style: z,
|
|
112
121
|
ref: S,
|
|
113
122
|
onMouseEnter: () => c(!0),
|