bitz-react-admin-ui 2.3.4 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/dayjs.min.mjs +2 -5
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- 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 +158 -152
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- 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/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- 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,18 +1,18 @@
|
|
|
1
1
|
import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useContext as ke, useRef as
|
|
3
|
-
import { isMobile as
|
|
2
|
+
import { useContext as ke, useRef as K, useState as M, useEffect as se, useMemo as c, useCallback as O } from "react";
|
|
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 gt, Typography as Se, Table as wt } from "antd";
|
|
5
|
-
import
|
|
5
|
+
import ne 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
|
-
import
|
|
8
|
+
import Wt from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import pt from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
12
|
+
import zt 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
|
-
import
|
|
15
|
+
import le from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
16
16
|
import Lt from "../../BitzTheme/index.mjs";
|
|
17
17
|
import { tablePaddingInline as Pt } from "../../BitzConfigProvider/context.mjs";
|
|
18
18
|
import Me from "../../BitzHighlight/index.mjs";
|
|
@@ -30,64 +30,64 @@ function Dt({
|
|
|
30
30
|
showPagination: R = !0,
|
|
31
31
|
height: H,
|
|
32
32
|
dataSource: b,
|
|
33
|
-
total:
|
|
34
|
-
columns:
|
|
33
|
+
total: T = 0,
|
|
34
|
+
columns: _,
|
|
35
35
|
loading: l,
|
|
36
|
-
skeletonNum:
|
|
36
|
+
skeletonNum: G = {
|
|
37
37
|
pc: 10,
|
|
38
38
|
mobile: 10
|
|
39
39
|
},
|
|
40
|
-
skeletonRender:
|
|
40
|
+
skeletonRender: ie,
|
|
41
41
|
skeletonRowNum: Le = 4,
|
|
42
42
|
skeletonRowsWidth: Pe = ["35%", "100%", "100%", "60%"],
|
|
43
43
|
// mobileLoadEmit,
|
|
44
|
-
mobileRefreshEmit:
|
|
45
|
-
operationFilter:
|
|
44
|
+
mobileRefreshEmit: ae,
|
|
45
|
+
operationFilter: I,
|
|
46
46
|
enableControlPage: ve,
|
|
47
47
|
pagination: x,
|
|
48
48
|
paginationEmit: F = () => {
|
|
49
49
|
},
|
|
50
|
-
enabledRowDragSort:
|
|
51
|
-
onRowDragEnd:
|
|
50
|
+
enabledRowDragSort: L,
|
|
51
|
+
onRowDragEnd: J,
|
|
52
52
|
mobilePageHeight: _t = 500,
|
|
53
53
|
mobileCancelText: Re = "取消",
|
|
54
54
|
noDataTitle: He,
|
|
55
55
|
noDataImg: $e,
|
|
56
56
|
color: Gt,
|
|
57
|
-
size:
|
|
57
|
+
size: ce,
|
|
58
58
|
showTableTool: Fe = !0,
|
|
59
59
|
tableAction: Ve,
|
|
60
60
|
tableToolbar: qe,
|
|
61
61
|
selectionBar: Ke,
|
|
62
62
|
scroll: i,
|
|
63
|
-
components:
|
|
63
|
+
components: N,
|
|
64
64
|
expandable: g,
|
|
65
|
-
rowSelection:
|
|
65
|
+
rowSelection: k,
|
|
66
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 Ne;
|
|
71
|
+
const { token: w } = Lt.useToken(), { Table: u } = w, {
|
|
72
|
+
tableSpaceBetweenPage: he = 10,
|
|
73
73
|
cellPaddingInline: De = Pt
|
|
74
|
-
} =
|
|
75
|
-
|
|
74
|
+
} = u, { showColumnBorder: _e, hideRowBorder: de, rowHoverable: Ge, ...f } = ke(Nt), C = K(void 0), [Q, Ie] = M(0), [U, Je] = M(0), [X, Qe] = M(0), [Ue, Y] = M(!1), [y, Xe] = M([]);
|
|
75
|
+
se(() => {
|
|
76
76
|
let e = [...b ?? []];
|
|
77
77
|
(x == null ? void 0 : x.page) !== 1 && (e = [...y, ...e]), Xe(e);
|
|
78
78
|
}, [b]);
|
|
79
|
-
const Ye = c(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >=
|
|
79
|
+
const Ye = c(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= T, [y, T]), [Ze, Ee] = M([]), Ae = (e, t) => {
|
|
80
80
|
var n;
|
|
81
|
-
const r = (n =
|
|
81
|
+
const r = (n = I == null ? void 0 : I(e, t)) == null ? void 0 : n.filter(
|
|
82
82
|
(s) => s.type !== "divider"
|
|
83
83
|
);
|
|
84
|
-
r != null && r.length && (Ee(r),
|
|
85
|
-
},
|
|
86
|
-
|
|
84
|
+
r != null && r.length && (Ee(r), Y(!0));
|
|
85
|
+
}, ue = () => {
|
|
86
|
+
Y(!1);
|
|
87
87
|
}, et = (e) => {
|
|
88
88
|
var t;
|
|
89
|
-
|
|
90
|
-
}, B =
|
|
89
|
+
Y(!1), (t = e.onClick) == null || t.call(e);
|
|
90
|
+
}, B = K(null), Z = le(B), fe = K(null), E = le(fe), A = K(null), P = le(A), 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)"
|
|
@@ -99,20 +99,20 @@ function Dt({
|
|
|
99
99
|
);
|
|
100
100
|
}), t.length)
|
|
101
101
|
return Math.ceil(Math.max(...t)) + De * 2;
|
|
102
|
-
},
|
|
103
|
-
var
|
|
104
|
-
let e = (
|
|
102
|
+
}, me = () => {
|
|
103
|
+
var d, a, j, z;
|
|
104
|
+
let e = (d = B.current) == null ? void 0 : d.querySelector(
|
|
105
105
|
".ant-table-content"
|
|
106
106
|
);
|
|
107
|
-
e || (e = (
|
|
107
|
+
e || (e = (a = B.current) == null ? void 0 : a.querySelector(
|
|
108
108
|
".ant-table-body"
|
|
109
109
|
));
|
|
110
|
-
const t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, s = (
|
|
110
|
+
const t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, s = (z = (j = B.current) == null ? void 0 : j.querySelector(
|
|
111
111
|
".ant-table-cell-scrollbar"
|
|
112
|
-
)) == null ? void 0 :
|
|
112
|
+
)) == null ? void 0 : z.offsetWidth;
|
|
113
113
|
return { tbodyWidth: t, hasScrollBar: n, scrollbarSize: s };
|
|
114
|
-
}, { y:
|
|
115
|
-
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } =
|
|
114
|
+
}, { y: ee, tbodyWidth: v, hasScrollBar: V, scrollbarSize: $ } = c(() => {
|
|
115
|
+
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = me();
|
|
116
116
|
if (typeof H > "u")
|
|
117
117
|
return {
|
|
118
118
|
tbodyWidth: e,
|
|
@@ -121,21 +121,21 @@ function Dt({
|
|
|
121
121
|
};
|
|
122
122
|
let n = 40, s = 40;
|
|
123
123
|
if (B.current) {
|
|
124
|
-
const
|
|
125
|
-
n = parseInt(
|
|
124
|
+
const W = window.getComputedStyle(B.current);
|
|
125
|
+
n = parseInt(W.getPropertyValue("--cell-height")), s = parseInt(W.getPropertyValue("--toolbar-height"));
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
return { y: (
|
|
127
|
+
const d = (P == null ? void 0 : P.height) || 0, a = d ? he : 0;
|
|
128
|
+
return { y: (f.fullscreen ? window.innerHeight : H) - d - a - s - n, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
|
|
129
129
|
}, [
|
|
130
|
-
|
|
130
|
+
f.fullscreen,
|
|
131
131
|
H,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
]),
|
|
132
|
+
P == null ? void 0 : P.height,
|
|
133
|
+
Z == null ? void 0 : Z.height,
|
|
134
|
+
E == null ? void 0 : E.height
|
|
135
|
+
]), te = c(() => {
|
|
136
136
|
let e = (i == null ? void 0 : i.x) ?? 1e3;
|
|
137
|
-
return
|
|
138
|
-
}, [i,
|
|
137
|
+
return Q && (e -= Q), U && C.current && (e -= U * C.current), v && (i != null && i.x && e < v && (i == null ? void 0 : i.x) > v && Qe(v - e), e = Math.max(e, v)), i != null && i.x ? { x: e, y: i.y || ee } : i != null && i.y ? { x: e, y: i.y } : { x: e, y: ee };
|
|
138
|
+
}, [i, ee, v, Q, U]), rt = () => {
|
|
139
139
|
let e = 0;
|
|
140
140
|
if (B.current) {
|
|
141
141
|
const r = window.getComputedStyle(B.current), n = parseInt(
|
|
@@ -144,67 +144,73 @@ function Dt({
|
|
|
144
144
|
e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * n;
|
|
145
145
|
}
|
|
146
146
|
let t = 0;
|
|
147
|
-
return
|
|
147
|
+
return k && (t += e), g && (t += e), L && (t += e), t;
|
|
148
148
|
}, ot = (e, t) => {
|
|
149
|
-
const r = e.length, n = e.filter((
|
|
150
|
-
return
|
|
151
|
-
}, { sortColumns:
|
|
152
|
-
const t = (
|
|
149
|
+
const r = e.length, n = e.filter((W) => W.width), d = n.map((W) => W.width).reduce((W, xt) => W + xt, 0), { tbodyWidth: a } = me(), z = Math.max((i == null ? void 0 : i.x) ?? 1e3, a ?? 0) - d - t, q = r - n.length;
|
|
150
|
+
return z >= 0 ? Math.floor(z / q) : 0;
|
|
151
|
+
}, { sortColumns: p, toolColWidth: be } = c(() => {
|
|
152
|
+
const t = (_ ?? []).filter((j) => !kt.includes(j)), { filterColumns: r, hiddenTotalWidth: n, autoWidthColLength: s } = St(
|
|
153
153
|
t,
|
|
154
|
-
|
|
155
|
-
),
|
|
156
|
-
let
|
|
157
|
-
return
|
|
158
|
-
}, [
|
|
159
|
-
|
|
154
|
+
f.columnsMap
|
|
155
|
+
), d = r.sort(Mt(f.columnsMap));
|
|
156
|
+
let a = 0;
|
|
157
|
+
return D || (a = rt(), C.current = ot(t, a), Ie(n), Je(s)), { sortColumns: d, toolColWidth: a };
|
|
158
|
+
}, [f.columnsMap, _]), [re, st] = M([]);
|
|
159
|
+
se(() => {
|
|
160
160
|
if (C.current) {
|
|
161
161
|
let e = 0;
|
|
162
|
-
if (
|
|
163
|
-
const s =
|
|
164
|
-
(
|
|
162
|
+
if (X) {
|
|
163
|
+
const s = p == null ? void 0 : p.filter(
|
|
164
|
+
(d) => !d.width && !(d != null && d.isOperationCol)
|
|
165
165
|
).length;
|
|
166
|
-
e = Math.floor(
|
|
166
|
+
e = Math.floor(X / s);
|
|
167
167
|
}
|
|
168
|
-
let t = 0, r = -1
|
|
169
|
-
|
|
170
|
-
|
|
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;
|
|
168
|
+
let t = 0, r = -1, n = p.map((s, d) => {
|
|
169
|
+
let a = s.width;
|
|
170
|
+
return s != null && s.isOperationCol && (r = d, s != null && s.useMaxWidth && (a = tt() ?? s.width)), !a && (C != null && C.current) && (a = C.current + e), t += a ?? 0, a;
|
|
172
171
|
});
|
|
173
|
-
if (t <
|
|
174
|
-
const s =
|
|
175
|
-
let a =
|
|
176
|
-
r
|
|
172
|
+
if (t < te.x - be) {
|
|
173
|
+
const s = te.x - be - t;
|
|
174
|
+
let d = s, a = p.length;
|
|
175
|
+
if (r >= 0 && a--, s >= a) {
|
|
176
|
+
let z = Math.floor(s / a);
|
|
177
|
+
n = n.map(
|
|
178
|
+
(q, W) => q + (r === W ? 0 : z)
|
|
179
|
+
), d = s - z * a;
|
|
180
|
+
}
|
|
181
|
+
let j = 0;
|
|
182
|
+
r === 0 && n.length > 1 && j++, n[j] = (n[j] ?? 0) + d;
|
|
177
183
|
}
|
|
178
184
|
st(n);
|
|
179
185
|
}
|
|
180
|
-
}, [
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
184
|
-
const e =
|
|
186
|
+
}, [p, X]);
|
|
187
|
+
const S = c(() => {
|
|
188
|
+
if (D)
|
|
189
|
+
return p;
|
|
190
|
+
const e = p.map((t, r) => ({
|
|
185
191
|
...t,
|
|
186
|
-
// ...(sortColumns[i + 1]?.isOperationCol && {
|
|
192
|
+
// ...(last === i || sortColumns[i + 1]?.isOperationCol) && {
|
|
187
193
|
// className: classNames(v.className, 'disabledResize'),
|
|
188
|
-
// }
|
|
189
|
-
width:
|
|
194
|
+
// },
|
|
195
|
+
width: re.length ? re[r] : C == null ? void 0 : C.current
|
|
190
196
|
// onHeaderCell: (column: BitzTableColumnsType<T>[number]) => ({
|
|
191
197
|
// width: column.width,
|
|
192
198
|
// onResize: handleResize(i) as React.ReactEventHandler<any>,
|
|
193
199
|
// }),
|
|
194
200
|
}));
|
|
195
201
|
return Ht(
|
|
196
|
-
|
|
202
|
+
_,
|
|
197
203
|
e,
|
|
198
|
-
|
|
199
|
-
!!
|
|
204
|
+
L,
|
|
205
|
+
!!k,
|
|
200
206
|
!!g
|
|
201
207
|
);
|
|
202
|
-
}, [
|
|
203
|
-
const e = (b ?? []).length, t = e > (
|
|
208
|
+
}, [p, re]), Ce = c(() => $t(S), [S]), nt = c(() => l ? Ce : S, [l, S, Ce]), ye = c(() => {
|
|
209
|
+
const e = (b ?? []).length, t = e > (G.pc ?? 10) ? e >= 20 ? 20 : e : G.pc ?? 10;
|
|
204
210
|
return Array.from({ length: t }).map((n, s) => ({
|
|
205
211
|
key: `${Date.now()}${s}`
|
|
206
212
|
}));
|
|
207
|
-
}, [b]),
|
|
213
|
+
}, [b]), xe = c(() => l ? ye : b ?? [], [l, b, ye]), { table: oe, locale: lt = Rt } = ke(Kt), it = { ...lt.Table }, at = ((Ne = oe == null ? void 0 : oe.expandable) == null ? void 0 : Ne.expandIcon) || (g == null ? void 0 : g.expandIcon) || vt(it), ge = c(() => {
|
|
208
214
|
if (g)
|
|
209
215
|
return {
|
|
210
216
|
...g,
|
|
@@ -224,14 +230,14 @@ function Dt({
|
|
|
224
230
|
};
|
|
225
231
|
}
|
|
226
232
|
};
|
|
227
|
-
}, [g]), ct = c(() => l ?
|
|
228
|
-
if (
|
|
233
|
+
}, [g]), ct = c(() => l ? ge : g, [l, g, ge]), we = c(() => {
|
|
234
|
+
if (k)
|
|
229
235
|
return {
|
|
230
|
-
...
|
|
236
|
+
...k,
|
|
231
237
|
selectedRowKeys: [],
|
|
232
238
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
233
239
|
};
|
|
234
|
-
}, [
|
|
240
|
+
}, [k]), ht = c(() => l ? we : k, [l, k, we]), Be = c(() => l ? "key" : m.rowKey, [l, m.rowKey]), je = c(() => `${ce ?? f.stylesConfig.size}BitzTable`, [ce, f.stylesConfig.size]), dt = O(
|
|
235
241
|
(e, t) => {
|
|
236
242
|
var n;
|
|
237
243
|
if (!m.onRow || l)
|
|
@@ -240,53 +246,53 @@ function Dt({
|
|
|
240
246
|
return r.onClick && (r.className = "rowPointerCursor"), r;
|
|
241
247
|
},
|
|
242
248
|
[m.onRow, l]
|
|
243
|
-
), ut = c(() =>
|
|
249
|
+
), ut = c(() => ne(
|
|
244
250
|
"bitzTableContainer",
|
|
245
|
-
{ hideBorder:
|
|
251
|
+
{ hideBorder: de },
|
|
246
252
|
{ hasScrollBar: V },
|
|
247
|
-
|
|
253
|
+
je,
|
|
248
254
|
m.className
|
|
249
255
|
), [
|
|
250
256
|
m.className,
|
|
251
|
-
|
|
257
|
+
je,
|
|
252
258
|
V,
|
|
253
|
-
|
|
254
|
-
|
|
259
|
+
f.fullscreen,
|
|
260
|
+
de
|
|
255
261
|
]), ft = c(() => ({
|
|
256
262
|
"--container-bgColor": w.colorBgContainer
|
|
257
263
|
}), [w.colorBgContainer]), mt = c(() => {
|
|
258
|
-
const e =
|
|
264
|
+
const e = f.fullscreen ? "100%" : H;
|
|
259
265
|
let t;
|
|
260
266
|
return ($ ?? 0) > 0 && (t = $), Ft({
|
|
261
267
|
height: e,
|
|
262
268
|
fontFamily: w.fontFamily,
|
|
263
|
-
evenRowBgColor:
|
|
269
|
+
evenRowBgColor: f.zebra ? u == null ? void 0 : u.evenRowBgColor : w.colorBgContainer,
|
|
264
270
|
colorBgContainer: w.colorBgContainer,
|
|
265
|
-
table:
|
|
266
|
-
gap:
|
|
267
|
-
borderColor: (
|
|
271
|
+
table: u,
|
|
272
|
+
gap: he,
|
|
273
|
+
borderColor: (u == null ? void 0 : u.borderColor) || w.colorBorderSecondary,
|
|
268
274
|
scrollbarWidth: t,
|
|
269
275
|
other: m.style
|
|
270
276
|
});
|
|
271
277
|
}, [
|
|
272
278
|
m.style,
|
|
273
|
-
|
|
279
|
+
f.fullscreen,
|
|
274
280
|
H,
|
|
275
|
-
|
|
276
|
-
|
|
281
|
+
u,
|
|
282
|
+
f == null ? void 0 : f.zebra,
|
|
277
283
|
$
|
|
278
|
-
]), bt =
|
|
284
|
+
]), bt = O(
|
|
279
285
|
(e, t, r) => {
|
|
280
286
|
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
281
287
|
if (m.rowClassName) {
|
|
282
288
|
const s = m.rowClassName(e, t, r);
|
|
283
|
-
return
|
|
289
|
+
return ne(n, s);
|
|
284
290
|
}
|
|
285
291
|
return n;
|
|
286
292
|
},
|
|
287
293
|
[m.rowClassName]
|
|
288
|
-
),
|
|
289
|
-
|
|
294
|
+
), We = /* @__PURE__ */ o.jsx(
|
|
295
|
+
pt,
|
|
290
296
|
{
|
|
291
297
|
finished: Ye,
|
|
292
298
|
onLoad: async () => (
|
|
@@ -300,15 +306,15 @@ function Dt({
|
|
|
300
306
|
"div",
|
|
301
307
|
{
|
|
302
308
|
className: "mobileList",
|
|
303
|
-
style: { backgroundColor:
|
|
309
|
+
style: { backgroundColor: u == null ? void 0 : u.mobileListBgColor },
|
|
304
310
|
children: [
|
|
305
311
|
y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
306
312
|
"div",
|
|
307
313
|
{
|
|
308
314
|
className: "listItem",
|
|
309
|
-
style: { backgroundColor:
|
|
315
|
+
style: { backgroundColor: u == null ? void 0 : u.listItemBgColor },
|
|
310
316
|
onClick: () => Ae(e, t),
|
|
311
|
-
children:
|
|
317
|
+
children: S == null ? void 0 : S.map((r, n) => {
|
|
312
318
|
var s;
|
|
313
319
|
return !(r != null && r.mobileHide) && /* @__PURE__ */ o.jsxs(
|
|
314
320
|
"div",
|
|
@@ -334,15 +340,15 @@ function Dt({
|
|
|
334
340
|
},
|
|
335
341
|
t
|
|
336
342
|
)),
|
|
337
|
-
Array.from({ length:
|
|
343
|
+
Array.from({ length: G.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ o.jsx(
|
|
338
344
|
"div",
|
|
339
345
|
{
|
|
340
346
|
className: "listItem",
|
|
341
347
|
style: {
|
|
342
348
|
display: l ? "block" : "none",
|
|
343
|
-
backgroundColor:
|
|
349
|
+
backgroundColor: u == null ? void 0 : u.listItemBgColor
|
|
344
350
|
},
|
|
345
|
-
children: /* @__PURE__ */ o.jsx("div", { className: "row", children:
|
|
351
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "row", children: ie ? ie() : /* @__PURE__ */ o.jsx(
|
|
346
352
|
gt,
|
|
347
353
|
{
|
|
348
354
|
title: !1,
|
|
@@ -361,16 +367,16 @@ function Dt({
|
|
|
361
367
|
)
|
|
362
368
|
}
|
|
363
369
|
);
|
|
364
|
-
|
|
365
|
-
|
|
370
|
+
se(() => {
|
|
371
|
+
f.setSelected(!!(h != null && h.num));
|
|
366
372
|
}, [h]);
|
|
367
|
-
const
|
|
373
|
+
const pe = c(() => /* @__PURE__ */ o.jsxs("div", { className: "alert", children: [
|
|
368
374
|
/* @__PURE__ */ o.jsx(
|
|
369
375
|
Me,
|
|
370
376
|
{
|
|
371
377
|
highlightTag: "strong",
|
|
372
|
-
keywords: `${
|
|
373
|
-
sourceString: `共 ${
|
|
378
|
+
keywords: `${T}`,
|
|
379
|
+
sourceString: `共 ${T} 条`,
|
|
374
380
|
tagClass: "totalText"
|
|
375
381
|
}
|
|
376
382
|
),
|
|
@@ -393,11 +399,11 @@ function Dt({
|
|
|
393
399
|
}
|
|
394
400
|
)
|
|
395
401
|
] })
|
|
396
|
-
] }), [
|
|
397
|
-
l ||
|
|
398
|
-
},
|
|
402
|
+
] }), [T, h]), Ct = (e) => {
|
|
403
|
+
l || J == null || J(e);
|
|
404
|
+
}, ze = O(() => L ? {
|
|
399
405
|
row: (e) => Vt({ ...e, loading: l == null ? void 0 : l.toString() })
|
|
400
|
-
} : {}, [
|
|
406
|
+
} : {}, [L, L ? l : !1]), Te = O(
|
|
401
407
|
(e) => {
|
|
402
408
|
var n, s;
|
|
403
409
|
const t = { ...e };
|
|
@@ -407,26 +413,26 @@ function Dt({
|
|
|
407
413
|
},
|
|
408
414
|
[V, $]
|
|
409
415
|
), yt = c(() => ({
|
|
410
|
-
...
|
|
416
|
+
...N,
|
|
411
417
|
header: {
|
|
412
|
-
...
|
|
413
|
-
cell:
|
|
418
|
+
...N == null ? void 0 : N.header,
|
|
419
|
+
cell: Te
|
|
414
420
|
},
|
|
415
421
|
body: {
|
|
416
|
-
...
|
|
417
|
-
...
|
|
422
|
+
...N == null ? void 0 : N.body,
|
|
423
|
+
...ze()
|
|
418
424
|
}
|
|
419
|
-
}), [
|
|
425
|
+
}), [N, Te, ze]);
|
|
420
426
|
return /* @__PURE__ */ o.jsxs(
|
|
421
427
|
"div",
|
|
422
428
|
{
|
|
423
|
-
className:
|
|
424
|
-
fullscreen:
|
|
429
|
+
className: ne("bitzTableBlock", {
|
|
430
|
+
fullscreen: f.fullscreen
|
|
425
431
|
}),
|
|
426
432
|
style: ft,
|
|
427
433
|
children: [
|
|
428
|
-
!
|
|
429
|
-
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref:
|
|
434
|
+
!D && /* @__PURE__ */ o.jsxs("div", { ref: B, className: ut, style: mt, children: [
|
|
435
|
+
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: fe, children: [
|
|
430
436
|
Fe && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
431
437
|
Ve || /* @__PURE__ */ o.jsx("div", {}),
|
|
432
438
|
qe,
|
|
@@ -435,9 +441,9 @@ function Dt({
|
|
|
435
441
|
/* @__PURE__ */ o.jsx(
|
|
436
442
|
qt,
|
|
437
443
|
{
|
|
438
|
-
enabledRowDragSort:
|
|
439
|
-
dataSource:
|
|
440
|
-
mergeRowKey:
|
|
444
|
+
enabledRowDragSort: L,
|
|
445
|
+
dataSource: xe,
|
|
446
|
+
mergeRowKey: Be,
|
|
441
447
|
onDragEnd: Ct,
|
|
442
448
|
children: /* @__PURE__ */ o.jsx(
|
|
443
449
|
wt,
|
|
@@ -445,10 +451,10 @@ function Dt({
|
|
|
445
451
|
...m,
|
|
446
452
|
bordered: _e,
|
|
447
453
|
columns: nt,
|
|
448
|
-
dataSource:
|
|
454
|
+
dataSource: xe,
|
|
449
455
|
loading: !1,
|
|
450
456
|
pagination: !1,
|
|
451
|
-
scroll:
|
|
457
|
+
scroll: te,
|
|
452
458
|
expandable: ct,
|
|
453
459
|
rowSelection: ht,
|
|
454
460
|
onRow: dt,
|
|
@@ -456,21 +462,21 @@ function Dt({
|
|
|
456
462
|
rowClassName: bt,
|
|
457
463
|
className: "bitzTable",
|
|
458
464
|
components: yt,
|
|
459
|
-
rowKey:
|
|
465
|
+
rowKey: Be
|
|
460
466
|
}
|
|
461
467
|
)
|
|
462
468
|
}
|
|
463
469
|
)
|
|
464
470
|
] }),
|
|
465
|
-
R && !!
|
|
466
|
-
|
|
471
|
+
R && !!T && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: A, children: [
|
|
472
|
+
pe,
|
|
467
473
|
/* @__PURE__ */ o.jsx(
|
|
468
474
|
jt,
|
|
469
475
|
{
|
|
470
476
|
size: "small",
|
|
471
477
|
enableControl: ve,
|
|
472
478
|
pagination: x,
|
|
473
|
-
total:
|
|
479
|
+
total: T,
|
|
474
480
|
dataSource: b,
|
|
475
481
|
resetPage: Oe,
|
|
476
482
|
hideTotalText: !0,
|
|
@@ -478,20 +484,20 @@ function Dt({
|
|
|
478
484
|
}
|
|
479
485
|
)
|
|
480
486
|
] }),
|
|
481
|
-
!R && !!h && !!
|
|
487
|
+
!R && !!h && !!T && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: A, children: pe })
|
|
482
488
|
] }),
|
|
483
|
-
|
|
484
|
-
(l || !!(b != null && b.length)) && /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
489
|
+
D && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
490
|
+
(l || !!(b != null && b.length)) && /* @__PURE__ */ o.jsx(o.Fragment, { children: ae ? (
|
|
485
491
|
// @ts-ignore
|
|
486
492
|
/* @__PURE__ */ o.jsx(
|
|
487
|
-
|
|
493
|
+
zt,
|
|
488
494
|
{
|
|
489
|
-
onRefresh: async () => !l &&
|
|
490
|
-
children:
|
|
495
|
+
onRefresh: async () => !l && ae(),
|
|
496
|
+
children: We
|
|
491
497
|
}
|
|
492
498
|
)
|
|
493
|
-
) :
|
|
494
|
-
!l && /* @__PURE__ */ o.jsx(
|
|
499
|
+
) : We }),
|
|
500
|
+
!l && /* @__PURE__ */ o.jsx(Wt, { data: b, title: He, img: $e }),
|
|
495
501
|
/* @__PURE__ */ o.jsx(
|
|
496
502
|
Bt,
|
|
497
503
|
{
|
|
@@ -500,7 +506,7 @@ function Dt({
|
|
|
500
506
|
placement: "bottom",
|
|
501
507
|
height: "auto",
|
|
502
508
|
closable: !1,
|
|
503
|
-
onClose:
|
|
509
|
+
onClose: ue,
|
|
504
510
|
children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
|
|
505
511
|
/* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Ze.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
506
512
|
"div",
|
|
@@ -515,7 +521,7 @@ function Dt({
|
|
|
515
521
|
t
|
|
516
522
|
)) }),
|
|
517
523
|
/* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
|
|
518
|
-
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick:
|
|
524
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: ue, children: Re })
|
|
519
525
|
] })
|
|
520
526
|
}
|
|
521
527
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../../../../_virtual/
|
|
2
|
+
import { __module as i } from "../../../../../_virtual/index.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|