bitz-react-admin-ui 2.2.9 → 2.3.0
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/Store/index.d.ts +2 -2
- package/dist/components/BitzTable/Store/index.mjs +201 -197
- package/dist/components/BitzTable/SubTable/index.mjs +54 -54
- package/dist/components/BitzTable/Table/index.mjs +116 -114
- 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
|
@@ -13,10 +13,10 @@ import pt from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
|
13
13
|
import Nt, { BitzTableContext as kt, toolCols as St } from "../Store/index.mjs";
|
|
14
14
|
import { loopFilter as Mt, columnSort as Lt } from "../Store/utils/index.mjs";
|
|
15
15
|
import se from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
16
|
+
import Ht from "../ActionCol/style.mjs";
|
|
17
|
+
import Rt from "../../BitzTheme/index.mjs";
|
|
18
|
+
import He from "../../BitzHighlight/index.mjs";
|
|
19
|
+
import vt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
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 $t, loopBuildSkeleton as Ot } from "./utils.mjs";
|
|
@@ -28,8 +28,8 @@ import "./index.less.mjs";
|
|
|
28
28
|
import { ConfigContext as Ft } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
|
|
29
29
|
import _t from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
30
30
|
function Gt({
|
|
31
|
-
showPagination:
|
|
32
|
-
height:
|
|
31
|
+
showPagination: R = !0,
|
|
32
|
+
height: v,
|
|
33
33
|
dataSource: m,
|
|
34
34
|
total: j = 0,
|
|
35
35
|
columns: P,
|
|
@@ -39,13 +39,13 @@ function Gt({
|
|
|
39
39
|
mobile: 10
|
|
40
40
|
},
|
|
41
41
|
skeletonRender: ne,
|
|
42
|
-
skeletonRowNum:
|
|
43
|
-
skeletonRowsWidth:
|
|
42
|
+
skeletonRowNum: Re = 4,
|
|
43
|
+
skeletonRowsWidth: ve = ["35%", "100%", "100%", "60%"],
|
|
44
44
|
// mobileLoadEmit,
|
|
45
45
|
mobileRefreshEmit: ie,
|
|
46
46
|
operationFilter: G,
|
|
47
47
|
enableControlPage: Pe,
|
|
48
|
-
pagination:
|
|
48
|
+
pagination: y,
|
|
49
49
|
paginationEmit: O = () => {
|
|
50
50
|
},
|
|
51
51
|
enabledRowDragSort: M,
|
|
@@ -60,21 +60,21 @@ function Gt({
|
|
|
60
60
|
tableAction: qe,
|
|
61
61
|
tableToolbar: De,
|
|
62
62
|
selectionBar: Fe,
|
|
63
|
-
scroll:
|
|
63
|
+
scroll: c,
|
|
64
64
|
components: W,
|
|
65
|
-
expandable:
|
|
65
|
+
expandable: x,
|
|
66
66
|
rowSelection: p,
|
|
67
|
-
selectionAlert:
|
|
67
|
+
selectionAlert: d,
|
|
68
68
|
resetPage: _e,
|
|
69
|
-
...
|
|
69
|
+
...u
|
|
70
70
|
}) {
|
|
71
71
|
var Ne;
|
|
72
|
-
const { token:
|
|
72
|
+
const { token: g } = Rt.useToken(), { Table: a } = g, { tableSpaceBetweenPage: ce = 10 } = a, { gap: Ge } = Ht(), { showColumnBorder: Ee, hideRowBorder: ae, rowHoverable: Je, ...h } = Se(kt), b = q(void 0), [J, Qe] = S(0), [Q, Ue] = S(0), [U, Xe] = S(0), [Ye, X] = S(!1), [C, Ze] = S([]);
|
|
73
73
|
Me(() => {
|
|
74
74
|
let e = [...m ?? []];
|
|
75
|
-
(
|
|
75
|
+
(y == null ? void 0 : y.page) !== 1 && (e = [...C, ...e]), Ze(e);
|
|
76
76
|
}, [m]);
|
|
77
|
-
const Ie = l(() => !!(
|
|
77
|
+
const Ie = l(() => !!(C != null && C.length) && (C == null ? void 0 : C.length) >= j, [C, j]), [Ae, et] = S([]), tt = (e, t) => {
|
|
78
78
|
var o;
|
|
79
79
|
const r = (o = G == null ? void 0 : G(e, t)) == null ? void 0 : o.filter(
|
|
80
80
|
(n) => n.type !== "divider"
|
|
@@ -98,16 +98,16 @@ function Gt({
|
|
|
98
98
|
}), t.length)
|
|
99
99
|
return Math.ceil(Math.max(...t)) + Ge * 2;
|
|
100
100
|
}, ue = () => {
|
|
101
|
-
var
|
|
102
|
-
const e = (
|
|
101
|
+
var f, w, K;
|
|
102
|
+
const e = (f = z.current) == null ? void 0 : f.querySelector(
|
|
103
103
|
".ant-table-body"
|
|
104
|
-
), t = e == null ? void 0 : e.clientWidth, o = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, n = (K = (
|
|
104
|
+
), t = e == null ? void 0 : e.clientWidth, o = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, n = (K = (w = z.current) == null ? void 0 : w.querySelector(
|
|
105
105
|
".ant-table-cell-scrollbar"
|
|
106
106
|
)) == null ? void 0 : K.offsetWidth;
|
|
107
107
|
return { tbodyWidth: t, hasScrollBar: o, scrollbarSize: n };
|
|
108
|
-
}, { y: A, tbodyWidth:
|
|
108
|
+
}, { y: A, tbodyWidth: H, hasScrollBar: V, scrollbarSize: $ } = l(() => {
|
|
109
109
|
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
|
|
110
|
-
if (typeof
|
|
110
|
+
if (typeof v > "u")
|
|
111
111
|
return {
|
|
112
112
|
tbodyWidth: e,
|
|
113
113
|
hasScrollBar: t,
|
|
@@ -118,18 +118,18 @@ function Gt({
|
|
|
118
118
|
const T = window.getComputedStyle(z.current);
|
|
119
119
|
o = parseInt(T.getPropertyValue("--cell-height")), n = parseInt(T.getPropertyValue("--toolbar-height"));
|
|
120
120
|
}
|
|
121
|
-
const
|
|
122
|
-
return { y: (
|
|
121
|
+
const f = (L == null ? void 0 : L.height) || 0, w = f ? ce : 0;
|
|
122
|
+
return { y: (h.fullscreen ? window.innerHeight : v) - f - w - n - o, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
|
|
123
123
|
}, [
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
h.fullscreen,
|
|
125
|
+
v,
|
|
126
126
|
L == null ? void 0 : L.height,
|
|
127
127
|
Y == null ? void 0 : Y.height,
|
|
128
128
|
Z == null ? void 0 : Z.height
|
|
129
129
|
]), ee = l(() => {
|
|
130
|
-
let e = (
|
|
131
|
-
return J && (e -= J), Q &&
|
|
132
|
-
}, [
|
|
130
|
+
let e = (c == null ? void 0 : c.x) ?? 1e3;
|
|
131
|
+
return J && (e -= J), Q && b.current && (e -= Q * b.current), H && (c != null && c.x && e < H && (c == null ? void 0 : c.x) > H && Xe(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, J, Q]), fe = () => {
|
|
133
133
|
let e = 0;
|
|
134
134
|
if (z.current) {
|
|
135
135
|
const r = window.getComputedStyle(z.current), o = parseInt(
|
|
@@ -138,42 +138,44 @@ function Gt({
|
|
|
138
138
|
e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * o;
|
|
139
139
|
}
|
|
140
140
|
let t = 0;
|
|
141
|
-
return p && (t += e),
|
|
141
|
+
return p && (t += e), x && (t += e), M && (t += e), t;
|
|
142
142
|
}, st = (e, t) => {
|
|
143
|
-
const r = e.length, o = e.filter((T) => T.width),
|
|
144
|
-
return re >= 0 ? Math.floor(re / ke) :
|
|
143
|
+
const r = e.length, o = e.filter((T) => T.width), f = o.map((T) => T.width).reduce((T, gt) => T + gt, 0), { tbodyWidth: w } = ue(), re = Math.max((c == null ? void 0 : c.x) ?? 0, w ?? 0) - f - t, ke = r - o.length;
|
|
144
|
+
return re >= 0 ? Math.floor(re / ke) : 0;
|
|
145
145
|
}, me = l(() => {
|
|
146
146
|
var e;
|
|
147
147
|
return ((e = (P ?? []).find((t) => t.isOperationCol)) == null ? void 0 : e.width) ?? 0;
|
|
148
148
|
}, [P]), B = l(() => {
|
|
149
|
-
const t = (P ?? []).filter((
|
|
149
|
+
const t = (P ?? []).filter((w) => !St.includes(w)), { filterColumns: r, hiddenTotalWidth: o, autoWidthColLength: n } = Mt(
|
|
150
150
|
t,
|
|
151
|
-
|
|
152
|
-
),
|
|
151
|
+
h.columnsMap
|
|
152
|
+
), f = r.sort(Lt(h.columnsMap));
|
|
153
153
|
if (!D) {
|
|
154
|
-
const
|
|
155
|
-
|
|
154
|
+
const w = fe();
|
|
155
|
+
b.current = st(t, w), Qe(o), Ue(n);
|
|
156
156
|
}
|
|
157
|
-
return
|
|
158
|
-
}, [
|
|
157
|
+
return f;
|
|
158
|
+
}, [h.columnsMap, me]), be = l(() => fe(), [h.columnsMap, me]), [N, Ce] = S([]);
|
|
159
159
|
Me(() => {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
160
|
+
if (b.current) {
|
|
161
|
+
let e = 0;
|
|
162
|
+
if (U) {
|
|
163
|
+
const o = B == null ? void 0 : B.filter(
|
|
164
|
+
(n) => !n.width && !(n != null && n.isOperationCol)
|
|
165
|
+
).length;
|
|
166
|
+
e = Math.floor(U / o);
|
|
167
|
+
}
|
|
168
|
+
let t = 0;
|
|
169
|
+
const r = B.map((o) => {
|
|
170
|
+
let n = o.width;
|
|
171
|
+
return o != null && o.useMaxWidth && (o != null && o.isOperationCol) && (n = ot() ?? o.width), !n && (b != null && b.current) && (n = b.current + e), t += n ?? 0, n;
|
|
172
|
+
});
|
|
173
|
+
if (t < ee.x - be) {
|
|
174
|
+
const o = ee.x - be - t;
|
|
175
|
+
r[0] = (r[0] ?? 0) + o;
|
|
176
|
+
}
|
|
177
|
+
Ce(r);
|
|
175
178
|
}
|
|
176
|
-
Ce(r);
|
|
177
179
|
}, [B, U]);
|
|
178
180
|
const k = l(() => {
|
|
179
181
|
if (D)
|
|
@@ -185,7 +187,7 @@ function Gt({
|
|
|
185
187
|
...((o = B[r + 1]) == null ? void 0 : o.isOperationCol) && {
|
|
186
188
|
className: F(t.className, "disabledResize")
|
|
187
189
|
},
|
|
188
|
-
width: N.length ? N[r] :
|
|
190
|
+
width: N.length ? N[r] : b == null ? void 0 : b.current,
|
|
189
191
|
onHeaderCell: (n) => ({
|
|
190
192
|
width: n.width,
|
|
191
193
|
onResize: nt(r)
|
|
@@ -197,23 +199,23 @@ function Gt({
|
|
|
197
199
|
e,
|
|
198
200
|
M,
|
|
199
201
|
!!p,
|
|
200
|
-
!!
|
|
202
|
+
!!x
|
|
201
203
|
);
|
|
202
204
|
}, [P, B, N]), nt = (e) => (t, { size: r }) => {
|
|
203
|
-
const o = [...N], n = e + 1,
|
|
204
|
-
o[e] = N[e] +
|
|
205
|
+
const o = [...N], n = e + 1, f = r.width - N[e];
|
|
206
|
+
o[e] = N[e] + f, o[n] = N[n] - f, o[e] > 48 && o[n] > 48 && Ce(o);
|
|
205
207
|
}, ye = l(() => Ot(k), [k]), it = l(() => i ? ye : k, [i, k, ye]), xe = l(() => {
|
|
206
208
|
const e = (m ?? []).length, t = e > (_.pc ?? 10) ? e >= 20 ? 20 : e : _.pc ?? 10;
|
|
207
209
|
return Array.from({ length: t }).map((o, n) => ({
|
|
208
210
|
key: `${Date.now()}${n}`
|
|
209
211
|
}));
|
|
210
|
-
}, [m]), ge = l(() => i ? xe : m ?? [], [i, m, xe]), { table: te, locale: lt = Pt } = Se(Ft),
|
|
211
|
-
if (
|
|
212
|
+
}, [m]), ge = l(() => i ? xe : m ?? [], [i, m, xe]), { table: te, locale: lt = Pt } = Se(Ft), ct = { ...lt.Table }, at = ((Ne = te == null ? void 0 : te.expandable) == null ? void 0 : Ne.expandIcon) || (x == null ? void 0 : x.expandIcon) || vt(ct), we = l(() => {
|
|
213
|
+
if (x)
|
|
212
214
|
return {
|
|
213
|
-
...
|
|
215
|
+
...x,
|
|
214
216
|
expandedRowRender: () => /* @__PURE__ */ s.jsx(s.Fragment, {}),
|
|
215
217
|
expandIcon: (e) => {
|
|
216
|
-
const t =
|
|
218
|
+
const t = at(e);
|
|
217
219
|
return {
|
|
218
220
|
...t,
|
|
219
221
|
props: {
|
|
@@ -221,80 +223,80 @@ function Gt({
|
|
|
221
223
|
disabled: !0,
|
|
222
224
|
style: {
|
|
223
225
|
...t.props.style,
|
|
224
|
-
backgroundColor:
|
|
226
|
+
backgroundColor: g.colorBgContainerDisabled
|
|
225
227
|
}
|
|
226
228
|
}
|
|
227
229
|
};
|
|
228
230
|
}
|
|
229
231
|
};
|
|
230
|
-
}, [
|
|
232
|
+
}, [x]), ht = l(() => i ? we : x, [i, x, we]), ze = l(() => {
|
|
231
233
|
if (p)
|
|
232
234
|
return {
|
|
233
235
|
...p,
|
|
234
236
|
selectedRowKeys: [],
|
|
235
237
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
236
238
|
};
|
|
237
|
-
}, [p]), dt = l(() => i ? ze : p, [i, p, ze]), Be = l(() => i ? "key" :
|
|
239
|
+
}, [p]), dt = l(() => i ? ze : p, [i, p, ze]), Be = l(() => i ? "key" : u.rowKey, [i, u.rowKey]), je = l(() => `${le ?? h.stylesConfig.size}BitzTable`, [le, h.stylesConfig.size]), ut = oe(
|
|
238
240
|
(e, t) => {
|
|
239
241
|
var o;
|
|
240
|
-
if (!
|
|
242
|
+
if (!u.onRow || i)
|
|
241
243
|
return {};
|
|
242
|
-
const r = (o =
|
|
244
|
+
const r = (o = u.onRow) == null ? void 0 : o.call(u, e, t);
|
|
243
245
|
return r.onClick && (r.className = "rowPointerCursor"), r;
|
|
244
246
|
},
|
|
245
|
-
[
|
|
247
|
+
[u.onRow, i]
|
|
246
248
|
), ft = l(() => F(
|
|
247
249
|
"bitzTableContainer",
|
|
248
|
-
{ hideBorder:
|
|
250
|
+
{ hideBorder: ae },
|
|
249
251
|
{ hasScrollBar: V },
|
|
250
252
|
je,
|
|
251
|
-
|
|
253
|
+
u.className
|
|
252
254
|
), [
|
|
253
|
-
|
|
255
|
+
u.className,
|
|
254
256
|
je,
|
|
255
257
|
V,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
+
h.fullscreen,
|
|
259
|
+
ae
|
|
258
260
|
]), mt = l(() => ({
|
|
259
|
-
"--container-bgColor":
|
|
260
|
-
}), [
|
|
261
|
-
const e =
|
|
261
|
+
"--container-bgColor": g.colorBgContainer
|
|
262
|
+
}), [g.colorBgContainer]), bt = l(() => {
|
|
263
|
+
const e = h.fullscreen ? "100%" : v;
|
|
262
264
|
let t;
|
|
263
265
|
return ($ ?? 0) > 0 && (t = $), Vt({
|
|
264
266
|
height: e,
|
|
265
|
-
fontFamily:
|
|
266
|
-
evenRowBgColor:
|
|
267
|
-
colorBgContainer:
|
|
268
|
-
table:
|
|
269
|
-
gap:
|
|
270
|
-
borderColor: (
|
|
267
|
+
fontFamily: g.fontFamily,
|
|
268
|
+
evenRowBgColor: h.zebra ? a == null ? void 0 : a.evenRowBgColor : g.colorBgContainer,
|
|
269
|
+
colorBgContainer: g.colorBgContainer,
|
|
270
|
+
table: a,
|
|
271
|
+
gap: ce,
|
|
272
|
+
borderColor: (a == null ? void 0 : a.borderColor) || g.colorBorderSecondary,
|
|
271
273
|
scrollbarWidth: t,
|
|
272
|
-
other:
|
|
274
|
+
other: u.style
|
|
273
275
|
});
|
|
274
276
|
}, [
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
u.style,
|
|
278
|
+
h.fullscreen,
|
|
279
|
+
v,
|
|
280
|
+
a,
|
|
281
|
+
h == null ? void 0 : h.zebra,
|
|
280
282
|
$
|
|
281
283
|
]), Ct = oe(
|
|
282
284
|
(e, t, r) => {
|
|
283
285
|
const o = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
284
|
-
if (
|
|
285
|
-
const n =
|
|
286
|
+
if (u.rowClassName) {
|
|
287
|
+
const n = u.rowClassName(e, t, r);
|
|
286
288
|
return F(o, n);
|
|
287
289
|
}
|
|
288
290
|
return o;
|
|
289
291
|
},
|
|
290
|
-
[
|
|
292
|
+
[u.rowClassName]
|
|
291
293
|
), We = /* @__PURE__ */ s.jsx(
|
|
292
294
|
Tt,
|
|
293
295
|
{
|
|
294
296
|
finished: Ie,
|
|
295
297
|
onLoad: async () => (
|
|
296
298
|
// @ts-ignore
|
|
297
|
-
!i && (O == null ? void 0 : O((
|
|
299
|
+
!i && (O == null ? void 0 : O((y == null ? void 0 : y.page) + 1, y == null ? void 0 : y.size))
|
|
298
300
|
),
|
|
299
301
|
loadingText: "加载中...",
|
|
300
302
|
finishedText: "没有更多了",
|
|
@@ -303,13 +305,13 @@ function Gt({
|
|
|
303
305
|
"div",
|
|
304
306
|
{
|
|
305
307
|
className: "mobileList",
|
|
306
|
-
style: { backgroundColor:
|
|
308
|
+
style: { backgroundColor: a == null ? void 0 : a.mobileListBgColor },
|
|
307
309
|
children: [
|
|
308
|
-
|
|
310
|
+
C == null ? void 0 : C.map((e, t) => /* @__PURE__ */ s.jsx(
|
|
309
311
|
"div",
|
|
310
312
|
{
|
|
311
313
|
className: "listItem",
|
|
312
|
-
style: { backgroundColor:
|
|
314
|
+
style: { backgroundColor: a == null ? void 0 : a.listItemBgColor },
|
|
313
315
|
onClick: () => tt(e, t),
|
|
314
316
|
children: k == null ? void 0 : k.map((r, o) => {
|
|
315
317
|
var n;
|
|
@@ -317,7 +319,7 @@ function Gt({
|
|
|
317
319
|
"div",
|
|
318
320
|
{
|
|
319
321
|
className: "row",
|
|
320
|
-
style: { color:
|
|
322
|
+
style: { color: g.colorText },
|
|
321
323
|
children: [
|
|
322
324
|
!r.mobileHideLabel && /* @__PURE__ */ s.jsxs("div", { className: "label", children: [
|
|
323
325
|
`${r.title}`,
|
|
@@ -343,15 +345,15 @@ function Gt({
|
|
|
343
345
|
className: "listItem",
|
|
344
346
|
style: {
|
|
345
347
|
display: i ? "block" : "none",
|
|
346
|
-
backgroundColor:
|
|
348
|
+
backgroundColor: a == null ? void 0 : a.listItemBgColor
|
|
347
349
|
},
|
|
348
350
|
children: /* @__PURE__ */ s.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ s.jsx(
|
|
349
351
|
wt,
|
|
350
352
|
{
|
|
351
353
|
title: !1,
|
|
352
354
|
paragraph: {
|
|
353
|
-
rows:
|
|
354
|
-
width:
|
|
355
|
+
rows: Re,
|
|
356
|
+
width: ve
|
|
355
357
|
},
|
|
356
358
|
active: !0
|
|
357
359
|
}
|
|
@@ -365,7 +367,7 @@ function Gt({
|
|
|
365
367
|
}
|
|
366
368
|
), Te = l(() => /* @__PURE__ */ s.jsxs("div", { className: "alert", children: [
|
|
367
369
|
/* @__PURE__ */ s.jsx(
|
|
368
|
-
|
|
370
|
+
He,
|
|
369
371
|
{
|
|
370
372
|
highlightTag: "strong",
|
|
371
373
|
keywords: `${j}`,
|
|
@@ -373,26 +375,26 @@ function Gt({
|
|
|
373
375
|
tagClass: "totalText"
|
|
374
376
|
}
|
|
375
377
|
),
|
|
376
|
-
!!
|
|
378
|
+
!!d && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
377
379
|
/* @__PURE__ */ s.jsx(Le.Text, { className: "splitBorder", children: "/" }),
|
|
378
380
|
/* @__PURE__ */ s.jsx(
|
|
379
|
-
|
|
381
|
+
He,
|
|
380
382
|
{
|
|
381
383
|
highlightTag: "strong",
|
|
382
|
-
keywords: `${(
|
|
383
|
-
sourceString: `已选中 ${(
|
|
384
|
+
keywords: `${(d == null ? void 0 : d.num) ?? 0}`,
|
|
385
|
+
sourceString: `已选中 ${(d == null ? void 0 : d.num) ?? 0} 条`
|
|
384
386
|
}
|
|
385
387
|
),
|
|
386
|
-
!!(
|
|
388
|
+
!!(d != null && d.num) && /* @__PURE__ */ s.jsx(
|
|
387
389
|
Le.Link,
|
|
388
390
|
{
|
|
389
391
|
className: "cleanSelected",
|
|
390
|
-
onClick:
|
|
392
|
+
onClick: d == null ? void 0 : d.onClear,
|
|
391
393
|
children: "取消选中"
|
|
392
394
|
}
|
|
393
395
|
)
|
|
394
396
|
] })
|
|
395
|
-
] }), [j,
|
|
397
|
+
] }), [j, d]), yt = (e) => {
|
|
396
398
|
var t;
|
|
397
399
|
i || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (E == null || E(e));
|
|
398
400
|
}, pe = oe(() => M ? {
|
|
@@ -412,7 +414,7 @@ function Gt({
|
|
|
412
414
|
"div",
|
|
413
415
|
{
|
|
414
416
|
className: F("bitzTableBlock", {
|
|
415
|
-
fullscreen:
|
|
417
|
+
fullscreen: h.fullscreen
|
|
416
418
|
}),
|
|
417
419
|
style: mt,
|
|
418
420
|
children: [
|
|
@@ -433,7 +435,7 @@ function Gt({
|
|
|
433
435
|
children: /* @__PURE__ */ s.jsx(
|
|
434
436
|
zt,
|
|
435
437
|
{
|
|
436
|
-
...
|
|
438
|
+
...u,
|
|
437
439
|
bordered: Ee,
|
|
438
440
|
columns: it,
|
|
439
441
|
dataSource: ge,
|
|
@@ -453,14 +455,14 @@ function Gt({
|
|
|
453
455
|
}
|
|
454
456
|
)
|
|
455
457
|
] }),
|
|
456
|
-
|
|
458
|
+
R && !!j && /* @__PURE__ */ s.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
|
|
457
459
|
Te,
|
|
458
460
|
/* @__PURE__ */ s.jsx(
|
|
459
461
|
jt,
|
|
460
462
|
{
|
|
461
463
|
size: "small",
|
|
462
464
|
enableControl: Pe,
|
|
463
|
-
pagination:
|
|
465
|
+
pagination: y,
|
|
464
466
|
total: j,
|
|
465
467
|
dataSource: m,
|
|
466
468
|
resetPage: _e,
|
|
@@ -469,7 +471,7 @@ function Gt({
|
|
|
469
471
|
}
|
|
470
472
|
)
|
|
471
473
|
] }),
|
|
472
|
-
!
|
|
474
|
+
!R && !!d && !!j && /* @__PURE__ */ s.jsx("div", { className: "bitzTablePagination", ref: I, children: Te })
|
|
473
475
|
] }),
|
|
474
476
|
D && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
475
477
|
(i || !!(m != null && m.length)) && /* @__PURE__ */ s.jsx(s.Fragment, { children: ie ? (
|
|
@@ -499,7 +501,7 @@ function Gt({
|
|
|
499
501
|
className: "operaList",
|
|
500
502
|
onClick: () => rt(e),
|
|
501
503
|
...e.danger && {
|
|
502
|
-
style: { color:
|
|
504
|
+
style: { color: g.colorError }
|
|
503
505
|
},
|
|
504
506
|
children: e.label
|
|
505
507
|
},
|
|
@@ -515,7 +517,7 @@ function Gt({
|
|
|
515
517
|
}
|
|
516
518
|
);
|
|
517
519
|
}
|
|
518
|
-
const Br = (
|
|
520
|
+
const Br = (R) => /* @__PURE__ */ s.jsx(Nt, { initValue: R, children: /* @__PURE__ */ s.jsx(Gt, { ...R }) });
|
|
519
521
|
export {
|
|
520
522
|
Br as default
|
|
521
523
|
};
|