bitz-react-admin-ui 2.3.3 → 2.3.4
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/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/CalendarBody.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHead.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/ActionCol/index.mjs +1 -1
- package/dist/components/BitzTable/ActionCol/style.mjs +8 -7
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +16 -24
- package/dist/components/BitzTable/Table/index.mjs +137 -133
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +43 -45
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +49 -49
- 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,15 +1,15 @@
|
|
|
1
1
|
import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useContext as
|
|
2
|
+
import { useContext as ke, useRef as q, useState as k, useEffect as oe, useMemo as c, useCallback as K } from "react";
|
|
3
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 { Skeleton as gt, Typography as Se, Table as wt } from "antd";
|
|
5
|
-
import
|
|
5
|
+
import se from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
6
|
import Bt from "../../BitzDrawer/index.mjs";
|
|
7
7
|
import jt from "../../BitzPagination/index.mjs";
|
|
8
8
|
import zt from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import Wt from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
12
|
+
import pt from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
13
|
import Tt, { BitzTableContext as Nt, toolCols as kt } from "../Store/index.mjs";
|
|
14
14
|
import { loopFilter as St, columnSort as Mt } from "../Store/utils/index.mjs";
|
|
15
15
|
import ne from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
@@ -37,11 +37,11 @@ function Dt({
|
|
|
37
37
|
pc: 10,
|
|
38
38
|
mobile: 10
|
|
39
39
|
},
|
|
40
|
-
skeletonRender:
|
|
40
|
+
skeletonRender: le,
|
|
41
41
|
skeletonRowNum: Le = 4,
|
|
42
42
|
skeletonRowsWidth: Pe = ["35%", "100%", "100%", "60%"],
|
|
43
43
|
// mobileLoadEmit,
|
|
44
|
-
mobileRefreshEmit:
|
|
44
|
+
mobileRefreshEmit: ie,
|
|
45
45
|
operationFilter: G,
|
|
46
46
|
enableControlPage: ve,
|
|
47
47
|
pagination: x,
|
|
@@ -54,7 +54,7 @@ function Dt({
|
|
|
54
54
|
noDataTitle: He,
|
|
55
55
|
noDataImg: $e,
|
|
56
56
|
color: Gt,
|
|
57
|
-
size:
|
|
57
|
+
size: ae,
|
|
58
58
|
showTableTool: Fe = !0,
|
|
59
59
|
tableAction: Ve,
|
|
60
60
|
tableToolbar: qe,
|
|
@@ -63,71 +63,71 @@ function Dt({
|
|
|
63
63
|
components: z,
|
|
64
64
|
expandable: g,
|
|
65
65
|
rowSelection: T,
|
|
66
|
-
selectionAlert:
|
|
66
|
+
selectionAlert: h,
|
|
67
67
|
resetPage: Oe,
|
|
68
|
-
...
|
|
68
|
+
...m
|
|
69
69
|
}) {
|
|
70
|
-
var
|
|
71
|
-
const { token: w } = Lt.useToken(), { Table:
|
|
72
|
-
tableSpaceBetweenPage:
|
|
70
|
+
var Te;
|
|
71
|
+
const { token: w } = Lt.useToken(), { Table: d } = w, {
|
|
72
|
+
tableSpaceBetweenPage: ce = 10,
|
|
73
73
|
cellPaddingInline: De = Pt
|
|
74
|
-
} =
|
|
75
|
-
|
|
74
|
+
} = d, { showColumnBorder: _e, hideRowBorder: he, rowHoverable: Ge, ...u } = ke(Nt), C = q(void 0), [J, Ie] = k(0), [Q, Je] = k(0), [U, Qe] = k(0), [Ue, X] = k(!1), [y, Xe] = k([]);
|
|
75
|
+
oe(() => {
|
|
76
76
|
let e = [...b ?? []];
|
|
77
77
|
(x == null ? void 0 : x.page) !== 1 && (e = [...y, ...e]), Xe(e);
|
|
78
78
|
}, [b]);
|
|
79
79
|
const Ye = c(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= j, [y, j]), [Ze, Ee] = k([]), Ae = (e, t) => {
|
|
80
|
-
var
|
|
81
|
-
const r = (
|
|
82
|
-
(
|
|
80
|
+
var n;
|
|
81
|
+
const r = (n = G == null ? void 0 : G(e, t)) == null ? void 0 : n.filter(
|
|
82
|
+
(s) => s.type !== "divider"
|
|
83
83
|
);
|
|
84
84
|
r != null && r.length && (Ee(r), X(!0));
|
|
85
|
-
},
|
|
85
|
+
}, de = () => {
|
|
86
86
|
X(!1);
|
|
87
87
|
}, et = (e) => {
|
|
88
88
|
var t;
|
|
89
89
|
X(!1), (t = e.onClick) == null || t.call(e);
|
|
90
|
-
}, B = q(null), Y = ne(B),
|
|
90
|
+
}, B = q(null), Y = ne(B), ue = q(null), Z = ne(ue), E = q(null), M = ne(E), tt = () => {
|
|
91
91
|
var r;
|
|
92
92
|
const e = (r = B.current) == null ? void 0 : r.querySelectorAll(
|
|
93
93
|
"& > .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)"
|
|
94
94
|
), t = [];
|
|
95
|
-
if (e == null || e.forEach((
|
|
96
|
-
var
|
|
95
|
+
if (e == null || e.forEach((n) => {
|
|
96
|
+
var s;
|
|
97
97
|
t.push(
|
|
98
|
-
((
|
|
98
|
+
((s = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : s.clientWidth) || 0
|
|
99
99
|
);
|
|
100
100
|
}), t.length)
|
|
101
101
|
return Math.ceil(Math.max(...t)) + De * 2;
|
|
102
|
-
},
|
|
103
|
-
var a,
|
|
102
|
+
}, fe = () => {
|
|
103
|
+
var a, f, P, v;
|
|
104
104
|
let e = (a = B.current) == null ? void 0 : a.querySelector(
|
|
105
105
|
".ant-table-content"
|
|
106
106
|
);
|
|
107
|
-
e || (e = (
|
|
107
|
+
e || (e = (f = B.current) == null ? void 0 : f.querySelector(
|
|
108
108
|
".ant-table-body"
|
|
109
109
|
));
|
|
110
|
-
const t = e == null ? void 0 : e.clientWidth,
|
|
110
|
+
const t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, s = (v = (P = B.current) == null ? void 0 : P.querySelector(
|
|
111
111
|
".ant-table-cell-scrollbar"
|
|
112
112
|
)) == null ? void 0 : v.offsetWidth;
|
|
113
|
-
return { tbodyWidth: t, hasScrollBar:
|
|
113
|
+
return { tbodyWidth: t, hasScrollBar: n, scrollbarSize: s };
|
|
114
114
|
}, { y: A, tbodyWidth: L, hasScrollBar: V, scrollbarSize: $ } = c(() => {
|
|
115
|
-
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } =
|
|
115
|
+
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = fe();
|
|
116
116
|
if (typeof H > "u")
|
|
117
117
|
return {
|
|
118
118
|
tbodyWidth: e,
|
|
119
119
|
hasScrollBar: t,
|
|
120
120
|
scrollbarSize: r
|
|
121
121
|
};
|
|
122
|
-
let
|
|
122
|
+
let n = 40, s = 40;
|
|
123
123
|
if (B.current) {
|
|
124
|
-
const
|
|
125
|
-
|
|
124
|
+
const p = window.getComputedStyle(B.current);
|
|
125
|
+
n = parseInt(p.getPropertyValue("--cell-height")), s = parseInt(p.getPropertyValue("--toolbar-height"));
|
|
126
126
|
}
|
|
127
|
-
const a = (M == null ? void 0 : M.height) || 0,
|
|
128
|
-
return { y: (
|
|
127
|
+
const a = (M == null ? void 0 : M.height) || 0, f = a ? ce : 0;
|
|
128
|
+
return { y: (u.fullscreen ? window.innerHeight : H) - a - f - s - n, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
|
|
129
129
|
}, [
|
|
130
|
-
|
|
130
|
+
u.fullscreen,
|
|
131
131
|
H,
|
|
132
132
|
M == null ? void 0 : M.height,
|
|
133
133
|
Y == null ? void 0 : Y.height,
|
|
@@ -138,50 +138,50 @@ function Dt({
|
|
|
138
138
|
}, [i, A, L, J, Q]), rt = () => {
|
|
139
139
|
let e = 0;
|
|
140
140
|
if (B.current) {
|
|
141
|
-
const r = window.getComputedStyle(B.current),
|
|
141
|
+
const r = window.getComputedStyle(B.current), n = parseInt(
|
|
142
142
|
r.getPropertyValue("--toolCell-paddingInline")
|
|
143
143
|
);
|
|
144
|
-
e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 *
|
|
144
|
+
e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * n;
|
|
145
145
|
}
|
|
146
146
|
let t = 0;
|
|
147
147
|
return T && (t += e), g && (t += e), S && (t += e), t;
|
|
148
148
|
}, ot = (e, t) => {
|
|
149
|
-
const r = e.length,
|
|
150
|
-
return v >= 0 ? Math.floor(v /
|
|
151
|
-
}, { sortColumns:
|
|
152
|
-
const t = (D ?? []).filter((P) => !kt.includes(P)), { filterColumns: r, hiddenTotalWidth:
|
|
149
|
+
const r = e.length, n = e.filter((p) => p.width), a = n.map((p) => p.width).reduce((p, xt) => p + xt, 0), { tbodyWidth: f } = fe(), v = Math.max((i == null ? void 0 : i.x) ?? 0, f ?? 0) - a - t, Ne = r - n.length;
|
|
150
|
+
return v >= 0 ? Math.floor(v / Ne) : 0;
|
|
151
|
+
}, { sortColumns: W, toolColWidth: me } = c(() => {
|
|
152
|
+
const t = (D ?? []).filter((P) => !kt.includes(P)), { filterColumns: r, hiddenTotalWidth: n, autoWidthColLength: s } = St(
|
|
153
153
|
t,
|
|
154
|
-
|
|
155
|
-
), a = r.sort(Mt(
|
|
156
|
-
let
|
|
157
|
-
return O || (
|
|
158
|
-
}, [
|
|
159
|
-
|
|
154
|
+
u.columnsMap
|
|
155
|
+
), a = r.sort(Mt(u.columnsMap));
|
|
156
|
+
let f = 0;
|
|
157
|
+
return O || (f = rt(), C.current = ot(t, f), Ie(n), Je(s)), { sortColumns: a, toolColWidth: f };
|
|
158
|
+
}, [u.columnsMap, D]), [te, st] = k([]);
|
|
159
|
+
oe(() => {
|
|
160
160
|
if (C.current) {
|
|
161
161
|
let e = 0;
|
|
162
162
|
if (U) {
|
|
163
|
-
const
|
|
163
|
+
const s = W == null ? void 0 : W.filter(
|
|
164
164
|
(a) => !a.width && !(a != null && a.isOperationCol)
|
|
165
165
|
).length;
|
|
166
|
-
e = Math.floor(U /
|
|
166
|
+
e = Math.floor(U / s);
|
|
167
167
|
}
|
|
168
168
|
let t = 0, r = -1;
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
return
|
|
169
|
+
const n = W.map((s, a) => {
|
|
170
|
+
let f = s.width;
|
|
171
|
+
return s != null && s.isOperationCol && (r = a, s != null && s.useMaxWidth && (f = tt() ?? s.width)), !f && (C != null && C.current) && (f = C.current + e), t += f ?? 0, f;
|
|
172
172
|
});
|
|
173
|
-
if (t < ee.x -
|
|
174
|
-
const
|
|
173
|
+
if (t < ee.x - me) {
|
|
174
|
+
const s = ee.x - me - t;
|
|
175
175
|
let a = 0;
|
|
176
|
-
r === 0 &&
|
|
176
|
+
r === 0 && n.length > 1 && a++, n[a] = (n[a] ?? 0) + s;
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
st(n);
|
|
179
179
|
}
|
|
180
|
-
}, [
|
|
180
|
+
}, [W, U]);
|
|
181
181
|
const N = c(() => {
|
|
182
182
|
if (O)
|
|
183
|
-
return
|
|
184
|
-
const e =
|
|
183
|
+
return W;
|
|
184
|
+
const e = W.map((t, r) => ({
|
|
185
185
|
...t,
|
|
186
186
|
// ...(sortColumns[i + 1]?.isOperationCol && {
|
|
187
187
|
// className: classNames(v.className, 'disabledResize'),
|
|
@@ -199,12 +199,12 @@ function Dt({
|
|
|
199
199
|
!!T,
|
|
200
200
|
!!g
|
|
201
201
|
);
|
|
202
|
-
}, [
|
|
202
|
+
}, [W, te]), be = c(() => $t(N), [N]), nt = c(() => l ? be : N, [l, N, be]), Ce = c(() => {
|
|
203
203
|
const e = (b ?? []).length, t = e > (_.pc ?? 10) ? e >= 20 ? 20 : e : _.pc ?? 10;
|
|
204
|
-
return Array.from({ length: t }).map((
|
|
205
|
-
key: `${Date.now()}${
|
|
204
|
+
return Array.from({ length: t }).map((n, s) => ({
|
|
205
|
+
key: `${Date.now()}${s}`
|
|
206
206
|
}));
|
|
207
|
-
}, [b]),
|
|
207
|
+
}, [b]), ye = c(() => l ? Ce : b ?? [], [l, b, Ce]), { table: re, locale: lt = Rt } = ke(Kt), it = { ...lt.Table }, at = ((Te = re == null ? void 0 : re.expandable) == null ? void 0 : Te.expandIcon) || (g == null ? void 0 : g.expandIcon) || vt(it), xe = c(() => {
|
|
208
208
|
if (g)
|
|
209
209
|
return {
|
|
210
210
|
...g,
|
|
@@ -224,69 +224,69 @@ function Dt({
|
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
|
-
}, [g]), ct = c(() => l ?
|
|
227
|
+
}, [g]), ct = c(() => l ? xe : g, [l, g, xe]), ge = c(() => {
|
|
228
228
|
if (T)
|
|
229
229
|
return {
|
|
230
230
|
...T,
|
|
231
231
|
selectedRowKeys: [],
|
|
232
232
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
233
233
|
};
|
|
234
|
-
}, [T]), ht = c(() => l ?
|
|
234
|
+
}, [T]), ht = c(() => l ? ge : T, [l, T, ge]), we = c(() => l ? "key" : m.rowKey, [l, m.rowKey]), Be = c(() => `${ae ?? u.stylesConfig.size}BitzTable`, [ae, u.stylesConfig.size]), dt = K(
|
|
235
235
|
(e, t) => {
|
|
236
|
-
var
|
|
237
|
-
if (!
|
|
236
|
+
var n;
|
|
237
|
+
if (!m.onRow || l)
|
|
238
238
|
return {};
|
|
239
|
-
const r = (
|
|
239
|
+
const r = (n = m.onRow) == null ? void 0 : n.call(m, e, t);
|
|
240
240
|
return r.onClick && (r.className = "rowPointerCursor"), r;
|
|
241
241
|
},
|
|
242
|
-
[
|
|
243
|
-
), ut = c(() =>
|
|
242
|
+
[m.onRow, l]
|
|
243
|
+
), ut = c(() => se(
|
|
244
244
|
"bitzTableContainer",
|
|
245
|
-
{ hideBorder:
|
|
245
|
+
{ hideBorder: he },
|
|
246
246
|
{ hasScrollBar: V },
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
Be,
|
|
248
|
+
m.className
|
|
249
249
|
), [
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
m.className,
|
|
251
|
+
Be,
|
|
252
252
|
V,
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
u.fullscreen,
|
|
254
|
+
he
|
|
255
255
|
]), ft = c(() => ({
|
|
256
256
|
"--container-bgColor": w.colorBgContainer
|
|
257
257
|
}), [w.colorBgContainer]), mt = c(() => {
|
|
258
|
-
const e =
|
|
258
|
+
const e = u.fullscreen ? "100%" : H;
|
|
259
259
|
let t;
|
|
260
260
|
return ($ ?? 0) > 0 && (t = $), Ft({
|
|
261
261
|
height: e,
|
|
262
262
|
fontFamily: w.fontFamily,
|
|
263
|
-
evenRowBgColor:
|
|
263
|
+
evenRowBgColor: u.zebra ? d == null ? void 0 : d.evenRowBgColor : w.colorBgContainer,
|
|
264
264
|
colorBgContainer: w.colorBgContainer,
|
|
265
|
-
table:
|
|
266
|
-
gap:
|
|
267
|
-
borderColor: (
|
|
265
|
+
table: d,
|
|
266
|
+
gap: ce,
|
|
267
|
+
borderColor: (d == null ? void 0 : d.borderColor) || w.colorBorderSecondary,
|
|
268
268
|
scrollbarWidth: t,
|
|
269
|
-
other:
|
|
269
|
+
other: m.style
|
|
270
270
|
});
|
|
271
271
|
}, [
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
m.style,
|
|
273
|
+
u.fullscreen,
|
|
274
274
|
H,
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
d,
|
|
276
|
+
u == null ? void 0 : u.zebra,
|
|
277
277
|
$
|
|
278
278
|
]), bt = K(
|
|
279
279
|
(e, t, r) => {
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
282
|
-
const
|
|
283
|
-
return
|
|
280
|
+
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
281
|
+
if (m.rowClassName) {
|
|
282
|
+
const s = m.rowClassName(e, t, r);
|
|
283
|
+
return se(n, s);
|
|
284
284
|
}
|
|
285
|
-
return
|
|
285
|
+
return n;
|
|
286
286
|
},
|
|
287
|
-
[
|
|
288
|
-
),
|
|
289
|
-
|
|
287
|
+
[m.rowClassName]
|
|
288
|
+
), je = /* @__PURE__ */ o.jsx(
|
|
289
|
+
Wt,
|
|
290
290
|
{
|
|
291
291
|
finished: Ye,
|
|
292
292
|
onLoad: async () => (
|
|
@@ -300,16 +300,16 @@ function Dt({
|
|
|
300
300
|
"div",
|
|
301
301
|
{
|
|
302
302
|
className: "mobileList",
|
|
303
|
-
style: { backgroundColor:
|
|
303
|
+
style: { backgroundColor: d == null ? void 0 : d.mobileListBgColor },
|
|
304
304
|
children: [
|
|
305
305
|
y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
306
306
|
"div",
|
|
307
307
|
{
|
|
308
308
|
className: "listItem",
|
|
309
|
-
style: { backgroundColor:
|
|
309
|
+
style: { backgroundColor: d == null ? void 0 : d.listItemBgColor },
|
|
310
310
|
onClick: () => Ae(e, t),
|
|
311
|
-
children: N == null ? void 0 : N.map((r,
|
|
312
|
-
var
|
|
311
|
+
children: N == null ? void 0 : N.map((r, n) => {
|
|
312
|
+
var s;
|
|
313
313
|
return !(r != null && r.mobileHide) && /* @__PURE__ */ o.jsxs(
|
|
314
314
|
"div",
|
|
315
315
|
{
|
|
@@ -320,7 +320,7 @@ function Dt({
|
|
|
320
320
|
`${r.title}`,
|
|
321
321
|
":"
|
|
322
322
|
] }),
|
|
323
|
-
/* @__PURE__ */ o.jsx("div", { className: "value", children: ((
|
|
323
|
+
/* @__PURE__ */ o.jsx("div", { className: "value", children: ((s = r == null ? void 0 : r.render) == null ? void 0 : s.call(
|
|
324
324
|
r,
|
|
325
325
|
Ot(e, (r == null ? void 0 : r.dataIndex) || ""),
|
|
326
326
|
e,
|
|
@@ -328,7 +328,7 @@ function Dt({
|
|
|
328
328
|
)) || (e == null ? void 0 : e[r.dataIndex]) })
|
|
329
329
|
]
|
|
330
330
|
},
|
|
331
|
-
|
|
331
|
+
n
|
|
332
332
|
);
|
|
333
333
|
})
|
|
334
334
|
},
|
|
@@ -340,9 +340,9 @@ function Dt({
|
|
|
340
340
|
className: "listItem",
|
|
341
341
|
style: {
|
|
342
342
|
display: l ? "block" : "none",
|
|
343
|
-
backgroundColor:
|
|
343
|
+
backgroundColor: d == null ? void 0 : d.listItemBgColor
|
|
344
344
|
},
|
|
345
|
-
children: /* @__PURE__ */ o.jsx("div", { className: "row", children:
|
|
345
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "row", children: le ? le() : /* @__PURE__ */ o.jsx(
|
|
346
346
|
gt,
|
|
347
347
|
{
|
|
348
348
|
title: !1,
|
|
@@ -360,7 +360,11 @@ function Dt({
|
|
|
360
360
|
}
|
|
361
361
|
)
|
|
362
362
|
}
|
|
363
|
-
)
|
|
363
|
+
);
|
|
364
|
+
oe(() => {
|
|
365
|
+
u.setSelected(!!(h != null && h.num));
|
|
366
|
+
}, [h]);
|
|
367
|
+
const ze = c(() => /* @__PURE__ */ o.jsxs("div", { className: "alert", children: [
|
|
364
368
|
/* @__PURE__ */ o.jsx(
|
|
365
369
|
Me,
|
|
366
370
|
{
|
|
@@ -370,36 +374,36 @@ function Dt({
|
|
|
370
374
|
tagClass: "totalText"
|
|
371
375
|
}
|
|
372
376
|
),
|
|
373
|
-
!!
|
|
377
|
+
!!h && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
374
378
|
/* @__PURE__ */ o.jsx(Se.Text, { className: "splitBorder", children: "/" }),
|
|
375
379
|
/* @__PURE__ */ o.jsx(
|
|
376
380
|
Me,
|
|
377
381
|
{
|
|
378
382
|
highlightTag: "strong",
|
|
379
|
-
keywords: `${(
|
|
380
|
-
sourceString: `已选中 ${(
|
|
383
|
+
keywords: `${(h == null ? void 0 : h.num) ?? 0}`,
|
|
384
|
+
sourceString: `已选中 ${(h == null ? void 0 : h.num) ?? 0} 条`
|
|
381
385
|
}
|
|
382
386
|
),
|
|
383
|
-
!!(
|
|
387
|
+
!!(h != null && h.num) && /* @__PURE__ */ o.jsx(
|
|
384
388
|
Se.Link,
|
|
385
389
|
{
|
|
386
390
|
className: "cleanSelected",
|
|
387
|
-
onClick:
|
|
391
|
+
onClick: h == null ? void 0 : h.onClear,
|
|
388
392
|
children: "取消选中"
|
|
389
393
|
}
|
|
390
394
|
)
|
|
391
395
|
] })
|
|
392
|
-
] }), [j,
|
|
396
|
+
] }), [j, h]), Ct = (e) => {
|
|
393
397
|
l || I == null || I(e);
|
|
394
|
-
},
|
|
398
|
+
}, We = K(() => S ? {
|
|
395
399
|
row: (e) => Vt({ ...e, loading: l == null ? void 0 : l.toString() })
|
|
396
400
|
} : {}, [S, S ? l : !1]), pe = K(
|
|
397
401
|
(e) => {
|
|
398
|
-
var
|
|
402
|
+
var n, s;
|
|
399
403
|
const t = { ...e };
|
|
400
|
-
return ((
|
|
404
|
+
return ((n = t.className) == null ? void 0 : n.includes(
|
|
401
405
|
"ant-table-cell-fix-right"
|
|
402
|
-
)) && !V && ((
|
|
406
|
+
)) && !V && ((s = t.style) != null && s.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - ($ || 0)), /* @__PURE__ */ o.jsx("th", { ...t });
|
|
403
407
|
},
|
|
404
408
|
[V, $]
|
|
405
409
|
), yt = c(() => ({
|
|
@@ -410,19 +414,19 @@ function Dt({
|
|
|
410
414
|
},
|
|
411
415
|
body: {
|
|
412
416
|
...z == null ? void 0 : z.body,
|
|
413
|
-
...
|
|
417
|
+
...We()
|
|
414
418
|
}
|
|
415
|
-
}), [z, pe,
|
|
419
|
+
}), [z, pe, We]);
|
|
416
420
|
return /* @__PURE__ */ o.jsxs(
|
|
417
421
|
"div",
|
|
418
422
|
{
|
|
419
|
-
className:
|
|
420
|
-
fullscreen:
|
|
423
|
+
className: se("bitzTableBlock", {
|
|
424
|
+
fullscreen: u.fullscreen
|
|
421
425
|
}),
|
|
422
426
|
style: ft,
|
|
423
427
|
children: [
|
|
424
428
|
!O && /* @__PURE__ */ o.jsxs("div", { ref: B, className: ut, style: mt, children: [
|
|
425
|
-
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref:
|
|
429
|
+
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: ue, children: [
|
|
426
430
|
Fe && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
427
431
|
Ve || /* @__PURE__ */ o.jsx("div", {}),
|
|
428
432
|
qe,
|
|
@@ -432,16 +436,16 @@ function Dt({
|
|
|
432
436
|
qt,
|
|
433
437
|
{
|
|
434
438
|
enabledRowDragSort: S,
|
|
435
|
-
dataSource:
|
|
436
|
-
mergeRowKey:
|
|
439
|
+
dataSource: ye,
|
|
440
|
+
mergeRowKey: we,
|
|
437
441
|
onDragEnd: Ct,
|
|
438
442
|
children: /* @__PURE__ */ o.jsx(
|
|
439
443
|
wt,
|
|
440
444
|
{
|
|
441
|
-
...
|
|
445
|
+
...m,
|
|
442
446
|
bordered: _e,
|
|
443
|
-
columns:
|
|
444
|
-
dataSource:
|
|
447
|
+
columns: nt,
|
|
448
|
+
dataSource: ye,
|
|
445
449
|
loading: !1,
|
|
446
450
|
pagination: !1,
|
|
447
451
|
scroll: ee,
|
|
@@ -452,14 +456,14 @@ function Dt({
|
|
|
452
456
|
rowClassName: bt,
|
|
453
457
|
className: "bitzTable",
|
|
454
458
|
components: yt,
|
|
455
|
-
rowKey:
|
|
459
|
+
rowKey: we
|
|
456
460
|
}
|
|
457
461
|
)
|
|
458
462
|
}
|
|
459
463
|
)
|
|
460
464
|
] }),
|
|
461
465
|
R && !!j && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: E, children: [
|
|
462
|
-
|
|
466
|
+
ze,
|
|
463
467
|
/* @__PURE__ */ o.jsx(
|
|
464
468
|
jt,
|
|
465
469
|
{
|
|
@@ -474,19 +478,19 @@ function Dt({
|
|
|
474
478
|
}
|
|
475
479
|
)
|
|
476
480
|
] }),
|
|
477
|
-
!R && !!
|
|
481
|
+
!R && !!h && !!j && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: E, children: ze })
|
|
478
482
|
] }),
|
|
479
483
|
O && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
480
|
-
(l || !!(b != null && b.length)) && /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
484
|
+
(l || !!(b != null && b.length)) && /* @__PURE__ */ o.jsx(o.Fragment, { children: ie ? (
|
|
481
485
|
// @ts-ignore
|
|
482
486
|
/* @__PURE__ */ o.jsx(
|
|
483
|
-
|
|
487
|
+
pt,
|
|
484
488
|
{
|
|
485
|
-
onRefresh: async () => !l &&
|
|
486
|
-
children:
|
|
489
|
+
onRefresh: async () => !l && ie(),
|
|
490
|
+
children: je
|
|
487
491
|
}
|
|
488
492
|
)
|
|
489
|
-
) :
|
|
493
|
+
) : je }),
|
|
490
494
|
!l && /* @__PURE__ */ o.jsx(zt, { data: b, title: He, img: $e }),
|
|
491
495
|
/* @__PURE__ */ o.jsx(
|
|
492
496
|
Bt,
|
|
@@ -496,7 +500,7 @@ function Dt({
|
|
|
496
500
|
placement: "bottom",
|
|
497
501
|
height: "auto",
|
|
498
502
|
closable: !1,
|
|
499
|
-
onClose:
|
|
503
|
+
onClose: de,
|
|
500
504
|
children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
|
|
501
505
|
/* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Ze.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
502
506
|
"div",
|
|
@@ -511,7 +515,7 @@ function Dt({
|
|
|
511
515
|
t
|
|
512
516
|
)) }),
|
|
513
517
|
/* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
|
|
514
|
-
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick:
|
|
518
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: de, children: Re })
|
|
515
519
|
] })
|
|
516
520
|
}
|
|
517
521
|
)
|
|
@@ -1,61 +1,59 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { columnsSortStyles as
|
|
3
|
-
const
|
|
1
|
+
import { css as r } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
2
|
+
import { columnsSortStyles as l, appearanceConfigStyles as n, exportConfigStyles as d } from "../ColConfigIcon/style.mjs";
|
|
3
|
+
const f = (o) => {
|
|
4
4
|
var t, a, e;
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
return r`
|
|
6
|
+
&.tableConfigModal {
|
|
7
|
+
.ant-modal-content {
|
|
8
|
+
max-height: calc(100vh - 200px);
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
background-color: ${(t = o.Modal) == null ? void 0 : t.contentBg};
|
|
12
|
+
|
|
13
|
+
.ant-modal-header {
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
background-color: ${(a = o.Modal) == null ? void 0 : a.headerBg};
|
|
17
|
+
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
19
|
+
.ant-modal-body {
|
|
20
|
+
flex: 1;
|
|
21
|
+
overflow: hidden auto;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
text-align: left;
|
|
27
|
-
margin: 0;
|
|
28
|
-
padding: 20px;
|
|
29
|
-
background-color: ${(e = o.Modal) == null ? void 0 : e.footerBg};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
}, f = (o) => l`
|
|
34
|
-
&.tableConfigModal {
|
|
35
|
-
${i(o)}
|
|
23
|
+
.pointerCursor {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
36
26
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
.container {
|
|
28
|
+
.ant-card-body {
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
40
31
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
32
|
+
.containerBody {
|
|
33
|
+
width: 100%;
|
|
34
|
+
position: relative;
|
|
45
35
|
|
|
46
|
-
|
|
47
|
-
width: 100%;
|
|
48
|
-
position: relative;
|
|
36
|
+
${l(o)}
|
|
49
37
|
|
|
50
|
-
|
|
38
|
+
${n(o)}
|
|
51
39
|
|
|
52
|
-
|
|
40
|
+
${d(o)}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
53
44
|
|
|
54
|
-
|
|
45
|
+
.ant-modal-footer {
|
|
46
|
+
width: 100%;
|
|
47
|
+
align-self: flex-end;
|
|
48
|
+
text-align: left;
|
|
49
|
+
margin: 0;
|
|
50
|
+
padding: 20px;
|
|
51
|
+
background-color: ${(e = o.Modal) == null ? void 0 : e.footerBg};
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
55
|
`;
|
|
56
|
+
};
|
|
59
57
|
export {
|
|
60
58
|
f as styles
|
|
61
59
|
};
|