bitz-react-admin-ui 2.3.0 → 2.3.1
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 +2 -5
- 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/Table/index.mjs +171 -170
- 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
- package/dist/_virtual/dayjs.min2.mjs +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as Se, useRef as q, useState as S, useEffect as Me, useMemo as
|
|
1
|
+
import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as Se, useRef as q, useState as S, useEffect as Me, useMemo as a, useCallback as oe } from "react";
|
|
3
3
|
import { isMobile as D } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
4
|
import { Skeleton as wt, Typography as Le, Table as zt } from "antd";
|
|
5
5
|
import F from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
@@ -30,10 +30,10 @@ import _t from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/loda
|
|
|
30
30
|
function Gt({
|
|
31
31
|
showPagination: R = !0,
|
|
32
32
|
height: v,
|
|
33
|
-
dataSource:
|
|
33
|
+
dataSource: b,
|
|
34
34
|
total: j = 0,
|
|
35
35
|
columns: P,
|
|
36
|
-
loading:
|
|
36
|
+
loading: l,
|
|
37
37
|
skeletonNum: _ = {
|
|
38
38
|
pc: 10,
|
|
39
39
|
mobile: 10
|
|
@@ -54,7 +54,7 @@ function Gt({
|
|
|
54
54
|
mobileCancelText: $e = "取消",
|
|
55
55
|
noDataTitle: Oe,
|
|
56
56
|
noDataImg: Ve,
|
|
57
|
-
color:
|
|
57
|
+
color: It,
|
|
58
58
|
size: le,
|
|
59
59
|
showTableTool: Ke = !0,
|
|
60
60
|
tableAction: qe,
|
|
@@ -62,50 +62,50 @@ function Gt({
|
|
|
62
62
|
selectionBar: Fe,
|
|
63
63
|
scroll: c,
|
|
64
64
|
components: W,
|
|
65
|
-
expandable:
|
|
65
|
+
expandable: g,
|
|
66
66
|
rowSelection: p,
|
|
67
|
-
selectionAlert:
|
|
67
|
+
selectionAlert: f,
|
|
68
68
|
resetPage: _e,
|
|
69
|
-
...
|
|
69
|
+
...m
|
|
70
70
|
}) {
|
|
71
71
|
var Ne;
|
|
72
|
-
const { token:
|
|
72
|
+
const { token: w } = Rt.useToken(), { Table: h } = w, { tableSpaceBetweenPage: ae = 10 } = h, { gap: Ge } = Ht(), { showColumnBorder: Ee, hideRowBorder: ce, rowHoverable: Ie, ...d } = Se(kt), C = q(void 0), [I, Je] = S(0), [J, Qe] = S(0), [Q, Ue] = S(0), [Xe, U] = S(!1), [x, Ye] = S([]);
|
|
73
73
|
Me(() => {
|
|
74
|
-
let e = [...
|
|
75
|
-
(y == null ? void 0 : y.page) !== 1 && (e = [...
|
|
76
|
-
}, [
|
|
77
|
-
const
|
|
78
|
-
var
|
|
79
|
-
const r = (
|
|
74
|
+
let e = [...b ?? []];
|
|
75
|
+
(y == null ? void 0 : y.page) !== 1 && (e = [...x, ...e]), Ye(e);
|
|
76
|
+
}, [b]);
|
|
77
|
+
const Ze = a(() => !!(x != null && x.length) && (x == null ? void 0 : x.length) >= j, [x, j]), [Ae, et] = S([]), tt = (e, t) => {
|
|
78
|
+
var s;
|
|
79
|
+
const r = (s = G == null ? void 0 : G(e, t)) == null ? void 0 : s.filter(
|
|
80
80
|
(n) => n.type !== "divider"
|
|
81
81
|
);
|
|
82
|
-
r != null && r.length && (et(r),
|
|
82
|
+
r != null && r.length && (et(r), U(!0));
|
|
83
83
|
}, he = () => {
|
|
84
|
-
|
|
84
|
+
U(!1);
|
|
85
85
|
}, rt = (e) => {
|
|
86
86
|
var t;
|
|
87
|
-
|
|
88
|
-
}, z = q(null),
|
|
87
|
+
U(!1), (t = e.onClick) == null || t.call(e);
|
|
88
|
+
}, z = q(null), X = se(z), de = q(null), Y = se(de), Z = q(null), L = se(Z), ot = () => {
|
|
89
89
|
var r;
|
|
90
90
|
const e = (r = z.current) == null ? void 0 : r.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
|
-
if (e == null || e.forEach((
|
|
93
|
+
if (e == null || e.forEach((s) => {
|
|
94
94
|
var n;
|
|
95
95
|
t.push(
|
|
96
|
-
((n =
|
|
96
|
+
((n = s.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : n.clientWidth) || 0
|
|
97
97
|
);
|
|
98
98
|
}), t.length)
|
|
99
99
|
return Math.ceil(Math.max(...t)) + Ge * 2;
|
|
100
100
|
}, ue = () => {
|
|
101
|
-
var
|
|
102
|
-
const e = (
|
|
101
|
+
var i, u, K;
|
|
102
|
+
const e = (i = z.current) == null ? void 0 : i.querySelector(
|
|
103
103
|
".ant-table-body"
|
|
104
|
-
), t = e == null ? void 0 : e.clientWidth,
|
|
104
|
+
), t = e == null ? void 0 : e.clientWidth, s = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, n = (K = (u = z.current) == null ? void 0 : u.querySelector(
|
|
105
105
|
".ant-table-cell-scrollbar"
|
|
106
106
|
)) == null ? void 0 : K.offsetWidth;
|
|
107
|
-
return { tbodyWidth: t, hasScrollBar:
|
|
108
|
-
}, { y: A, tbodyWidth: H, hasScrollBar: V, scrollbarSize: $ } =
|
|
107
|
+
return { tbodyWidth: t, hasScrollBar: s, scrollbarSize: n };
|
|
108
|
+
}, { y: A, tbodyWidth: H, hasScrollBar: V, scrollbarSize: $ } = a(() => {
|
|
109
109
|
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
|
|
110
110
|
if (typeof v > "u")
|
|
111
111
|
return {
|
|
@@ -113,81 +113,82 @@ function Gt({
|
|
|
113
113
|
hasScrollBar: t,
|
|
114
114
|
scrollbarSize: r
|
|
115
115
|
};
|
|
116
|
-
let
|
|
116
|
+
let s = 40, n = 40;
|
|
117
117
|
if (z.current) {
|
|
118
118
|
const T = window.getComputedStyle(z.current);
|
|
119
|
-
|
|
119
|
+
s = parseInt(T.getPropertyValue("--cell-height")), n = parseInt(T.getPropertyValue("--toolbar-height"));
|
|
120
120
|
}
|
|
121
|
-
const
|
|
122
|
-
return { y: (
|
|
121
|
+
const i = (L == null ? void 0 : L.height) || 0, u = i ? ae : 0;
|
|
122
|
+
return { y: (d.fullscreen ? window.innerHeight : v) - i - u - n - s, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
|
|
123
123
|
}, [
|
|
124
|
-
|
|
124
|
+
d.fullscreen,
|
|
125
125
|
v,
|
|
126
126
|
L == null ? void 0 : L.height,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
]), ee =
|
|
127
|
+
X == null ? void 0 : X.height,
|
|
128
|
+
Y == null ? void 0 : Y.height
|
|
129
|
+
]), ee = a(() => {
|
|
130
130
|
let e = (c == null ? void 0 : c.x) ?? 1e3;
|
|
131
|
-
return
|
|
132
|
-
}, [c, A, H,
|
|
131
|
+
return I && (e -= I), J && C.current && (e -= J * C.current), H && (c != null && c.x && e < H && (c == null ? void 0 : c.x) > H && Ue(H - e), e = Math.max(e, H)), c != null && c.x ? { x: e, y: c.y || A } : c != null && c.y ? { x: e, y: c.y } : { x: e, y: A };
|
|
132
|
+
}, [c, A, H, I, J]), fe = () => {
|
|
133
133
|
let e = 0;
|
|
134
134
|
if (z.current) {
|
|
135
|
-
const r = window.getComputedStyle(z.current),
|
|
135
|
+
const r = window.getComputedStyle(z.current), s = parseInt(
|
|
136
136
|
r.getPropertyValue("--toolCell-paddingInline")
|
|
137
137
|
);
|
|
138
|
-
e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 *
|
|
138
|
+
e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * s;
|
|
139
139
|
}
|
|
140
140
|
let t = 0;
|
|
141
|
-
return p && (t += e),
|
|
141
|
+
return p && (t += e), g && (t += e), M && (t += e), t;
|
|
142
142
|
}, st = (e, t) => {
|
|
143
|
-
const r = e.length,
|
|
143
|
+
const r = e.length, s = e.filter((T) => T.width), i = s.map((T) => T.width).reduce((T, gt) => T + gt, 0), { tbodyWidth: u } = ue(), re = Math.max((c == null ? void 0 : c.x) ?? 0, u ?? 0) - i - t, ke = r - s.length;
|
|
144
144
|
return re >= 0 ? Math.floor(re / ke) : 0;
|
|
145
|
-
}, me =
|
|
145
|
+
}, me = a(() => {
|
|
146
146
|
var e;
|
|
147
147
|
return ((e = (P ?? []).find((t) => t.isOperationCol)) == null ? void 0 : e.width) ?? 0;
|
|
148
|
-
}, [P]), B =
|
|
149
|
-
const t = (P ?? []).filter((
|
|
148
|
+
}, [P]), B = a(() => {
|
|
149
|
+
const t = (P ?? []).filter((u) => !St.includes(u)), { filterColumns: r, hiddenTotalWidth: s, autoWidthColLength: n } = Mt(
|
|
150
150
|
t,
|
|
151
|
-
|
|
152
|
-
),
|
|
151
|
+
d.columnsMap
|
|
152
|
+
), i = r.sort(Lt(d.columnsMap));
|
|
153
153
|
if (!D) {
|
|
154
|
-
const
|
|
155
|
-
|
|
154
|
+
const u = fe();
|
|
155
|
+
C.current = st(t, u), Je(s), Qe(n);
|
|
156
156
|
}
|
|
157
|
-
return
|
|
158
|
-
}, [
|
|
157
|
+
return i;
|
|
158
|
+
}, [d.columnsMap, me]), be = a(() => fe(), [d.columnsMap, me]), [N, Ce] = S([]);
|
|
159
159
|
Me(() => {
|
|
160
|
-
if (
|
|
160
|
+
if (C.current) {
|
|
161
161
|
let e = 0;
|
|
162
|
-
if (
|
|
163
|
-
const
|
|
164
|
-
(
|
|
162
|
+
if (Q) {
|
|
163
|
+
const n = B == null ? void 0 : B.filter(
|
|
164
|
+
(i) => !i.width && !(i != null && i.isOperationCol)
|
|
165
165
|
).length;
|
|
166
|
-
e = Math.floor(
|
|
166
|
+
e = Math.floor(Q / n);
|
|
167
167
|
}
|
|
168
|
-
let t = 0;
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
return
|
|
168
|
+
let t = 0, r = -1;
|
|
169
|
+
const s = B.map((n, i) => {
|
|
170
|
+
let u = n.width;
|
|
171
|
+
return n != null && n.isOperationCol && (r = i, n != null && n.useMaxWidth && (u = ot() ?? n.width)), !u && (C != null && C.current) && (u = C.current + e), t += u ?? 0, u;
|
|
172
172
|
});
|
|
173
173
|
if (t < ee.x - be) {
|
|
174
|
-
const
|
|
175
|
-
|
|
174
|
+
const n = ee.x - be - t;
|
|
175
|
+
let i = 0;
|
|
176
|
+
r === 0 && s.length > 1 && i++, s[i] = (s[i] ?? 0) + n;
|
|
176
177
|
}
|
|
177
|
-
Ce(
|
|
178
|
+
Ce(s);
|
|
178
179
|
}
|
|
179
|
-
}, [B,
|
|
180
|
-
const k =
|
|
180
|
+
}, [B, Q]);
|
|
181
|
+
const k = a(() => {
|
|
181
182
|
if (D)
|
|
182
183
|
return B;
|
|
183
184
|
const e = B.map((t, r) => {
|
|
184
|
-
var
|
|
185
|
+
var s;
|
|
185
186
|
return {
|
|
186
187
|
...t,
|
|
187
|
-
...((
|
|
188
|
+
...((s = B[r + 1]) == null ? void 0 : s.isOperationCol) && {
|
|
188
189
|
className: F(t.className, "disabledResize")
|
|
189
190
|
},
|
|
190
|
-
width: N.length ? N[r] :
|
|
191
|
+
width: N.length ? N[r] : C == null ? void 0 : C.current,
|
|
191
192
|
onHeaderCell: (n) => ({
|
|
192
193
|
width: n.width,
|
|
193
194
|
onResize: nt(r)
|
|
@@ -199,23 +200,23 @@ function Gt({
|
|
|
199
200
|
e,
|
|
200
201
|
M,
|
|
201
202
|
!!p,
|
|
202
|
-
!!
|
|
203
|
+
!!g
|
|
203
204
|
);
|
|
204
205
|
}, [P, B, N]), nt = (e) => (t, { size: r }) => {
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
const e = (
|
|
209
|
-
return Array.from({ length: t }).map((
|
|
206
|
+
const s = [...N], n = e + 1, i = r.width - N[e];
|
|
207
|
+
s[e] = N[e] + i, s[n] = N[n] - i, s[e] > 48 && s[n] > 48 && Ce(s);
|
|
208
|
+
}, xe = a(() => Ot(k), [k]), it = a(() => l ? xe : k, [l, k, xe]), ye = a(() => {
|
|
209
|
+
const e = (b ?? []).length, t = e > (_.pc ?? 10) ? e >= 20 ? 20 : e : _.pc ?? 10;
|
|
210
|
+
return Array.from({ length: t }).map((s, n) => ({
|
|
210
211
|
key: `${Date.now()}${n}`
|
|
211
212
|
}));
|
|
212
|
-
}, [
|
|
213
|
-
if (
|
|
213
|
+
}, [b]), ge = a(() => l ? ye : b ?? [], [l, b, ye]), { table: te, locale: lt = Pt } = Se(Ft), at = { ...lt.Table }, ct = ((Ne = te == null ? void 0 : te.expandable) == null ? void 0 : Ne.expandIcon) || (g == null ? void 0 : g.expandIcon) || vt(at), we = a(() => {
|
|
214
|
+
if (g)
|
|
214
215
|
return {
|
|
215
|
-
...
|
|
216
|
-
expandedRowRender: () => /* @__PURE__ */
|
|
216
|
+
...g,
|
|
217
|
+
expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
217
218
|
expandIcon: (e) => {
|
|
218
|
-
const t =
|
|
219
|
+
const t = ct(e);
|
|
219
220
|
return {
|
|
220
221
|
...t,
|
|
221
222
|
props: {
|
|
@@ -223,109 +224,109 @@ function Gt({
|
|
|
223
224
|
disabled: !0,
|
|
224
225
|
style: {
|
|
225
226
|
...t.props.style,
|
|
226
|
-
backgroundColor:
|
|
227
|
+
backgroundColor: w.colorBgContainerDisabled
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
230
|
};
|
|
230
231
|
}
|
|
231
232
|
};
|
|
232
|
-
}, [
|
|
233
|
+
}, [g]), ht = a(() => l ? we : g, [l, g, we]), ze = a(() => {
|
|
233
234
|
if (p)
|
|
234
235
|
return {
|
|
235
236
|
...p,
|
|
236
237
|
selectedRowKeys: [],
|
|
237
238
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
238
239
|
};
|
|
239
|
-
}, [p]), dt =
|
|
240
|
+
}, [p]), dt = a(() => l ? ze : p, [l, p, ze]), Be = a(() => l ? "key" : m.rowKey, [l, m.rowKey]), je = a(() => `${le ?? d.stylesConfig.size}BitzTable`, [le, d.stylesConfig.size]), ut = oe(
|
|
240
241
|
(e, t) => {
|
|
241
|
-
var
|
|
242
|
-
if (!
|
|
242
|
+
var s;
|
|
243
|
+
if (!m.onRow || l)
|
|
243
244
|
return {};
|
|
244
|
-
const r = (
|
|
245
|
+
const r = (s = m.onRow) == null ? void 0 : s.call(m, e, t);
|
|
245
246
|
return r.onClick && (r.className = "rowPointerCursor"), r;
|
|
246
247
|
},
|
|
247
|
-
[
|
|
248
|
-
), ft =
|
|
248
|
+
[m.onRow, l]
|
|
249
|
+
), ft = a(() => F(
|
|
249
250
|
"bitzTableContainer",
|
|
250
|
-
{ hideBorder:
|
|
251
|
+
{ hideBorder: ce },
|
|
251
252
|
{ hasScrollBar: V },
|
|
252
253
|
je,
|
|
253
|
-
|
|
254
|
+
m.className
|
|
254
255
|
), [
|
|
255
|
-
|
|
256
|
+
m.className,
|
|
256
257
|
je,
|
|
257
258
|
V,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
]), mt =
|
|
261
|
-
"--container-bgColor":
|
|
262
|
-
}), [
|
|
263
|
-
const e =
|
|
259
|
+
d.fullscreen,
|
|
260
|
+
ce
|
|
261
|
+
]), mt = a(() => ({
|
|
262
|
+
"--container-bgColor": w.colorBgContainer
|
|
263
|
+
}), [w.colorBgContainer]), bt = a(() => {
|
|
264
|
+
const e = d.fullscreen ? "100%" : v;
|
|
264
265
|
let t;
|
|
265
266
|
return ($ ?? 0) > 0 && (t = $), Vt({
|
|
266
267
|
height: e,
|
|
267
|
-
fontFamily:
|
|
268
|
-
evenRowBgColor:
|
|
269
|
-
colorBgContainer:
|
|
270
|
-
table:
|
|
271
|
-
gap:
|
|
272
|
-
borderColor: (
|
|
268
|
+
fontFamily: w.fontFamily,
|
|
269
|
+
evenRowBgColor: d.zebra ? h == null ? void 0 : h.evenRowBgColor : w.colorBgContainer,
|
|
270
|
+
colorBgContainer: w.colorBgContainer,
|
|
271
|
+
table: h,
|
|
272
|
+
gap: ae,
|
|
273
|
+
borderColor: (h == null ? void 0 : h.borderColor) || w.colorBorderSecondary,
|
|
273
274
|
scrollbarWidth: t,
|
|
274
|
-
other:
|
|
275
|
+
other: m.style
|
|
275
276
|
});
|
|
276
277
|
}, [
|
|
277
|
-
|
|
278
|
-
|
|
278
|
+
m.style,
|
|
279
|
+
d.fullscreen,
|
|
279
280
|
v,
|
|
280
|
-
|
|
281
|
-
|
|
281
|
+
h,
|
|
282
|
+
d == null ? void 0 : d.zebra,
|
|
282
283
|
$
|
|
283
284
|
]), Ct = oe(
|
|
284
285
|
(e, t, r) => {
|
|
285
|
-
const
|
|
286
|
-
if (
|
|
287
|
-
const n =
|
|
288
|
-
return F(
|
|
286
|
+
const s = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
287
|
+
if (m.rowClassName) {
|
|
288
|
+
const n = m.rowClassName(e, t, r);
|
|
289
|
+
return F(s, n);
|
|
289
290
|
}
|
|
290
|
-
return
|
|
291
|
+
return s;
|
|
291
292
|
},
|
|
292
|
-
[
|
|
293
|
-
), We = /* @__PURE__ */
|
|
293
|
+
[m.rowClassName]
|
|
294
|
+
), We = /* @__PURE__ */ o.jsx(
|
|
294
295
|
Tt,
|
|
295
296
|
{
|
|
296
|
-
finished:
|
|
297
|
+
finished: Ze,
|
|
297
298
|
onLoad: async () => (
|
|
298
299
|
// @ts-ignore
|
|
299
|
-
!
|
|
300
|
+
!l && (O == null ? void 0 : O((y == null ? void 0 : y.page) + 1, y == null ? void 0 : y.size))
|
|
300
301
|
),
|
|
301
302
|
loadingText: "加载中...",
|
|
302
303
|
finishedText: "没有更多了",
|
|
303
304
|
errorText: "加载失败",
|
|
304
|
-
children: /* @__PURE__ */
|
|
305
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
305
306
|
"div",
|
|
306
307
|
{
|
|
307
308
|
className: "mobileList",
|
|
308
|
-
style: { backgroundColor:
|
|
309
|
+
style: { backgroundColor: h == null ? void 0 : h.mobileListBgColor },
|
|
309
310
|
children: [
|
|
310
|
-
|
|
311
|
+
x == null ? void 0 : x.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
311
312
|
"div",
|
|
312
313
|
{
|
|
313
314
|
className: "listItem",
|
|
314
|
-
style: { backgroundColor:
|
|
315
|
+
style: { backgroundColor: h == null ? void 0 : h.listItemBgColor },
|
|
315
316
|
onClick: () => tt(e, t),
|
|
316
|
-
children: k == null ? void 0 : k.map((r,
|
|
317
|
+
children: k == null ? void 0 : k.map((r, s) => {
|
|
317
318
|
var n;
|
|
318
|
-
return !(r != null && r.mobileHide) && /* @__PURE__ */
|
|
319
|
+
return !(r != null && r.mobileHide) && /* @__PURE__ */ o.jsxs(
|
|
319
320
|
"div",
|
|
320
321
|
{
|
|
321
322
|
className: "row",
|
|
322
|
-
style: { color:
|
|
323
|
+
style: { color: w.colorText },
|
|
323
324
|
children: [
|
|
324
|
-
!r.mobileHideLabel && /* @__PURE__ */
|
|
325
|
+
!r.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
|
|
325
326
|
`${r.title}`,
|
|
326
327
|
":"
|
|
327
328
|
] }),
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ o.jsx("div", { className: "value", children: ((n = r == null ? void 0 : r.render) == null ? void 0 : n.call(
|
|
329
330
|
r,
|
|
330
331
|
_t(e, (r == null ? void 0 : r.dataIndex) || ""),
|
|
331
332
|
e,
|
|
@@ -333,21 +334,21 @@ function Gt({
|
|
|
333
334
|
)) || (e == null ? void 0 : e[r.dataIndex]) })
|
|
334
335
|
]
|
|
335
336
|
},
|
|
336
|
-
|
|
337
|
+
s
|
|
337
338
|
);
|
|
338
339
|
})
|
|
339
340
|
},
|
|
340
341
|
t
|
|
341
342
|
)),
|
|
342
|
-
Array.from({ length: _.mobile ?? 2 }).map((e, t) => /* @__PURE__ */
|
|
343
|
+
Array.from({ length: _.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ o.jsx(
|
|
343
344
|
"div",
|
|
344
345
|
{
|
|
345
346
|
className: "listItem",
|
|
346
347
|
style: {
|
|
347
|
-
display:
|
|
348
|
-
backgroundColor:
|
|
348
|
+
display: l ? "block" : "none",
|
|
349
|
+
backgroundColor: h == null ? void 0 : h.listItemBgColor
|
|
349
350
|
},
|
|
350
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ o.jsx(
|
|
351
352
|
wt,
|
|
352
353
|
{
|
|
353
354
|
title: !1,
|
|
@@ -365,8 +366,8 @@ function Gt({
|
|
|
365
366
|
}
|
|
366
367
|
)
|
|
367
368
|
}
|
|
368
|
-
), Te =
|
|
369
|
-
/* @__PURE__ */
|
|
369
|
+
), Te = a(() => /* @__PURE__ */ o.jsxs("div", { className: "alert", children: [
|
|
370
|
+
/* @__PURE__ */ o.jsx(
|
|
370
371
|
He,
|
|
371
372
|
{
|
|
372
373
|
highlightTag: "strong",
|
|
@@ -375,31 +376,31 @@ function Gt({
|
|
|
375
376
|
tagClass: "totalText"
|
|
376
377
|
}
|
|
377
378
|
),
|
|
378
|
-
!!
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
/* @__PURE__ */
|
|
379
|
+
!!f && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
380
|
+
/* @__PURE__ */ o.jsx(Le.Text, { className: "splitBorder", children: "/" }),
|
|
381
|
+
/* @__PURE__ */ o.jsx(
|
|
381
382
|
He,
|
|
382
383
|
{
|
|
383
384
|
highlightTag: "strong",
|
|
384
|
-
keywords: `${(
|
|
385
|
-
sourceString: `已选中 ${(
|
|
385
|
+
keywords: `${(f == null ? void 0 : f.num) ?? 0}`,
|
|
386
|
+
sourceString: `已选中 ${(f == null ? void 0 : f.num) ?? 0} 条`
|
|
386
387
|
}
|
|
387
388
|
),
|
|
388
|
-
!!(
|
|
389
|
+
!!(f != null && f.num) && /* @__PURE__ */ o.jsx(
|
|
389
390
|
Le.Link,
|
|
390
391
|
{
|
|
391
392
|
className: "cleanSelected",
|
|
392
|
-
onClick:
|
|
393
|
+
onClick: f == null ? void 0 : f.onClear,
|
|
393
394
|
children: "取消选中"
|
|
394
395
|
}
|
|
395
396
|
)
|
|
396
397
|
] })
|
|
397
|
-
] }), [j,
|
|
398
|
+
] }), [j, f]), xt = (e) => {
|
|
398
399
|
var t;
|
|
399
|
-
|
|
400
|
+
l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (E == null || E(e));
|
|
400
401
|
}, pe = oe(() => M ? {
|
|
401
|
-
row: (e) => Kt({ ...e, loading:
|
|
402
|
-
} : {}, [M, M ?
|
|
402
|
+
row: (e) => Kt({ ...e, loading: l == null ? void 0 : l.toString() })
|
|
403
|
+
} : {}, [M, M ? l : !1]), yt = a(() => ({
|
|
403
404
|
...W,
|
|
404
405
|
header: {
|
|
405
406
|
...W == null ? void 0 : W.header,
|
|
@@ -410,32 +411,32 @@ function Gt({
|
|
|
410
411
|
...pe()
|
|
411
412
|
}
|
|
412
413
|
}), [W, V, $, pe]);
|
|
413
|
-
return /* @__PURE__ */
|
|
414
|
+
return /* @__PURE__ */ o.jsxs(
|
|
414
415
|
"div",
|
|
415
416
|
{
|
|
416
417
|
className: F("bitzTableBlock", {
|
|
417
|
-
fullscreen:
|
|
418
|
+
fullscreen: d.fullscreen
|
|
418
419
|
}),
|
|
419
420
|
style: mt,
|
|
420
421
|
children: [
|
|
421
|
-
!D && /* @__PURE__ */
|
|
422
|
-
/* @__PURE__ */
|
|
423
|
-
Ke && /* @__PURE__ */
|
|
424
|
-
qe || /* @__PURE__ */
|
|
422
|
+
!D && /* @__PURE__ */ o.jsxs("div", { ref: z, className: ft, style: bt, children: [
|
|
423
|
+
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: de, children: [
|
|
424
|
+
Ke && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
425
|
+
qe || /* @__PURE__ */ o.jsx("div", {}),
|
|
425
426
|
De,
|
|
426
427
|
Fe
|
|
427
428
|
] }),
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ o.jsx(
|
|
429
430
|
qt,
|
|
430
431
|
{
|
|
431
432
|
enabledRowDragSort: M,
|
|
432
433
|
dataSource: ge,
|
|
433
434
|
mergeRowKey: Be,
|
|
434
|
-
onDragEnd:
|
|
435
|
-
children: /* @__PURE__ */
|
|
435
|
+
onDragEnd: xt,
|
|
436
|
+
children: /* @__PURE__ */ o.jsx(
|
|
436
437
|
zt,
|
|
437
438
|
{
|
|
438
|
-
...
|
|
439
|
+
...m,
|
|
439
440
|
bordered: Ee,
|
|
440
441
|
columns: it,
|
|
441
442
|
dataSource: ge,
|
|
@@ -445,70 +446,70 @@ function Gt({
|
|
|
445
446
|
expandable: ht,
|
|
446
447
|
rowSelection: dt,
|
|
447
448
|
onRow: ut,
|
|
448
|
-
rowHoverable:
|
|
449
|
+
rowHoverable: Ie,
|
|
449
450
|
rowClassName: Ct,
|
|
450
451
|
className: "bitzTable",
|
|
451
|
-
components:
|
|
452
|
+
components: yt,
|
|
452
453
|
rowKey: Be
|
|
453
454
|
}
|
|
454
455
|
)
|
|
455
456
|
}
|
|
456
457
|
)
|
|
457
458
|
] }),
|
|
458
|
-
R && !!j && /* @__PURE__ */
|
|
459
|
+
R && !!j && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: Z, children: [
|
|
459
460
|
Te,
|
|
460
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ o.jsx(
|
|
461
462
|
jt,
|
|
462
463
|
{
|
|
463
464
|
size: "small",
|
|
464
465
|
enableControl: Pe,
|
|
465
466
|
pagination: y,
|
|
466
467
|
total: j,
|
|
467
|
-
dataSource:
|
|
468
|
+
dataSource: b,
|
|
468
469
|
resetPage: _e,
|
|
469
470
|
hideTotalText: !0,
|
|
470
471
|
paginationEmit: O
|
|
471
472
|
}
|
|
472
473
|
)
|
|
473
474
|
] }),
|
|
474
|
-
!R && !!
|
|
475
|
+
!R && !!f && !!j && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: Z, children: Te })
|
|
475
476
|
] }),
|
|
476
|
-
D && /* @__PURE__ */
|
|
477
|
-
(
|
|
477
|
+
D && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
478
|
+
(l || !!(b != null && b.length)) && /* @__PURE__ */ o.jsx(o.Fragment, { children: ie ? (
|
|
478
479
|
// @ts-ignore
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ o.jsx(
|
|
480
481
|
pt,
|
|
481
482
|
{
|
|
482
|
-
onRefresh: async () => !
|
|
483
|
+
onRefresh: async () => !l && ie(),
|
|
483
484
|
children: We
|
|
484
485
|
}
|
|
485
486
|
)
|
|
486
487
|
) : We }),
|
|
487
|
-
!
|
|
488
|
-
/* @__PURE__ */
|
|
488
|
+
!l && /* @__PURE__ */ o.jsx(Wt, { data: b, title: Oe, img: Ve }),
|
|
489
|
+
/* @__PURE__ */ o.jsx(
|
|
489
490
|
Bt,
|
|
490
491
|
{
|
|
491
492
|
className: "tableMobileDrawer",
|
|
492
|
-
open:
|
|
493
|
+
open: Xe,
|
|
493
494
|
placement: "bottom",
|
|
494
495
|
height: "auto",
|
|
495
496
|
closable: !1,
|
|
496
497
|
onClose: he,
|
|
497
|
-
children: /* @__PURE__ */
|
|
498
|
-
/* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
|
|
499
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Ae.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
499
500
|
"div",
|
|
500
501
|
{
|
|
501
502
|
className: "operaList",
|
|
502
503
|
onClick: () => rt(e),
|
|
503
504
|
...e.danger && {
|
|
504
|
-
style: { color:
|
|
505
|
+
style: { color: w.colorError }
|
|
505
506
|
},
|
|
506
507
|
children: e.label
|
|
507
508
|
},
|
|
508
509
|
t
|
|
509
510
|
)) }),
|
|
510
|
-
/* @__PURE__ */
|
|
511
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
|
|
512
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: he, children: $e })
|
|
512
513
|
] })
|
|
513
514
|
}
|
|
514
515
|
)
|
|
@@ -517,7 +518,7 @@ function Gt({
|
|
|
517
518
|
}
|
|
518
519
|
);
|
|
519
520
|
}
|
|
520
|
-
const Br = (R) => /* @__PURE__ */
|
|
521
|
+
const Br = (R) => /* @__PURE__ */ o.jsx(Nt, { initValue: R, children: /* @__PURE__ */ o.jsx(Gt, { ...R }) });
|
|
521
522
|
export {
|
|
522
523
|
Br as default
|
|
523
524
|
};
|