bitz-react-admin-ui 1.9.3 → 1.9.5
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/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 +274 -230
- package/dist/components/BitzTable/Table/style.d.ts +3 -2
- package/dist/components/BitzTable/Table/style.mjs +13 -12
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +42 -38
- package/dist/components/BitzTable/ToolBar/index.d.ts +2 -0
- 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
- package/dist/components/BitzTable/TableSkeleton/index.d.ts +0 -9
- package/dist/components/BitzTable/TableSkeleton/index.mjs +0 -99
|
@@ -1,194 +1,251 @@
|
|
|
1
1
|
import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import { Table as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
2
|
+
import { useContext as I, useState as $, useMemo as a, useEffect as ue, useRef as V, useCallback as fe } from "react";
|
|
3
|
+
import { isMobile as F } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import { Table as T, Skeleton as me } from "antd";
|
|
5
|
+
import U from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import rr from "../../BitzDrawer/index.mjs";
|
|
7
|
+
import tr from "../../BitzPagination/index.mjs";
|
|
8
|
+
import or from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import nr from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
12
|
+
import sr from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
|
+
import lr, { TableContext as ir } from "../Store/index.mjs";
|
|
14
|
+
import { columnSort as pe, genColumnKey as xe } from "../Store/utils/index.mjs";
|
|
15
|
+
import q from "../../../node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSize/index.mjs";
|
|
16
|
+
import cr from "../ActionCol/style.mjs";
|
|
17
|
+
import ar from "../../BitzTheme/index.mjs";
|
|
18
|
+
import { BitzConfigContext as dr } from "../../BitzConfigProvider/context.mjs";
|
|
19
|
+
import hr from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
20
|
+
import "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/config-provider/index.mjs";
|
|
21
|
+
import ur from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/locale/en_US.mjs";
|
|
22
|
+
import { getCssVar as fr } from "./style.mjs";
|
|
21
23
|
import "./index.less.mjs";
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
import { ConfigContext as mr } from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/config-provider/context.mjs";
|
|
25
|
+
import pr from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
26
|
+
function xr({
|
|
27
|
+
rowHoverable: v,
|
|
28
|
+
fillEvenRow: G,
|
|
29
|
+
showPagination: ge = !0,
|
|
30
|
+
height: L,
|
|
31
|
+
dataSource: s = [],
|
|
32
|
+
total: E = 0,
|
|
33
|
+
columns: B,
|
|
34
|
+
loading: u = !1,
|
|
35
|
+
skeletonNum: ye = 2,
|
|
36
|
+
skeletonRender: S,
|
|
37
|
+
skeletonRowNum: Ce = 4,
|
|
38
|
+
skeletonRowsWidth: be = ["35%", "100%", "100%", "60%"],
|
|
39
|
+
mobileLoadEmit: we,
|
|
40
|
+
mobileRefreshEmit: X,
|
|
41
|
+
operationFilter: W,
|
|
42
|
+
enableControlPage: Be,
|
|
43
|
+
pagination: je,
|
|
44
|
+
paginationEmit: Ne = () => {
|
|
42
45
|
},
|
|
43
|
-
mobilePageHeight:
|
|
44
|
-
mobileCancelText:
|
|
45
|
-
noDataTitle:
|
|
46
|
-
noDataImg:
|
|
47
|
-
color:
|
|
48
|
-
size:
|
|
49
|
-
showTableTool:
|
|
50
|
-
tableAction:
|
|
51
|
-
tableToolbar:
|
|
52
|
-
selectionBar:
|
|
53
|
-
scroll:
|
|
54
|
-
components:
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
mobilePageHeight: gr = 500,
|
|
47
|
+
mobileCancelText: ke = "取消",
|
|
48
|
+
noDataTitle: ve,
|
|
49
|
+
noDataImg: Le,
|
|
50
|
+
color: yr,
|
|
51
|
+
size: J,
|
|
52
|
+
showTableTool: Te = !0,
|
|
53
|
+
tableAction: ze,
|
|
54
|
+
tableToolbar: Me,
|
|
55
|
+
selectionBar: Ee,
|
|
56
|
+
scroll: f,
|
|
57
|
+
components: P,
|
|
58
|
+
expandable: m,
|
|
59
|
+
rowSelection: y,
|
|
60
|
+
resetPage: We,
|
|
61
|
+
...b
|
|
57
62
|
}) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
var de;
|
|
64
|
+
const { token: x } = ar.useToken(), { Table: i } = x, { tableSpaceBetweenPage: Q = 10 } = i, { gap: Pe } = cr(), p = I(ir), { Table: c } = I(dr), [j, Y] = $(!1), [Re, R] = $(!1), De = a(() => !!(s != null && s.length) && (s == null ? void 0 : s.length) >= E, [s, E]), [Oe, Ae] = $([]), He = (r, e) => {
|
|
65
|
+
var n;
|
|
66
|
+
const t = (n = W == null ? void 0 : W(r, e)) == null ? void 0 : n.filter(
|
|
61
67
|
(l) => l.type !== "divider"
|
|
62
68
|
);
|
|
63
|
-
t != null && t.length && (
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
+
t != null && t.length && (Ae(t), R(!0));
|
|
70
|
+
}, Z = () => {
|
|
71
|
+
R(!1);
|
|
72
|
+
}, _e = (r) => {
|
|
73
|
+
var e;
|
|
74
|
+
R(!1), (e = r.onClick) == null || e.call(r);
|
|
69
75
|
};
|
|
70
|
-
|
|
71
|
-
var
|
|
72
|
-
(
|
|
76
|
+
ue(() => (document == null || document.addEventListener("fullscreenchange", (r) => {
|
|
77
|
+
var e, t, n;
|
|
78
|
+
(e = r.target) != null && e.classList.contains("bitzTableBlock") && (Y(!!document.fullscreenElement), (n = (t = document.fullscreenElement) == null ? void 0 : t.classList) != null && n.contains("bitzTableBlock") || Y(!1));
|
|
73
79
|
}), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
|
|
74
80
|
})), []);
|
|
75
|
-
const
|
|
81
|
+
const N = V(null), D = q(N), z = V(null), O = q(z), ee = V(null), k = q(ee), Ke = () => {
|
|
76
82
|
var t;
|
|
77
|
-
const
|
|
83
|
+
const r = (t = z.current) == null ? void 0 : t.querySelectorAll(
|
|
78
84
|
".ant-table-body tr:not(.ant-table-measure-row)"
|
|
79
|
-
),
|
|
80
|
-
if (
|
|
85
|
+
), e = [];
|
|
86
|
+
if (r == null || r.forEach((n) => {
|
|
81
87
|
var l;
|
|
82
|
-
|
|
83
|
-
((l =
|
|
88
|
+
e.push(
|
|
89
|
+
((l = n.querySelector(".operationCol .actionGroup")) == null ? void 0 : l.clientWidth) || 0
|
|
84
90
|
);
|
|
85
|
-
}),
|
|
86
|
-
return Math.ceil(Math.max(...
|
|
87
|
-
},
|
|
91
|
+
}), e.length)
|
|
92
|
+
return Math.ceil(Math.max(...e)) + Pe * 2;
|
|
93
|
+
}, re = () => {
|
|
88
94
|
var l;
|
|
89
|
-
const
|
|
95
|
+
const r = (l = z.current) == null ? void 0 : l.querySelector(
|
|
90
96
|
".ant-table-body"
|
|
91
|
-
),
|
|
92
|
-
return { tbodyWidth:
|
|
93
|
-
}, { y:
|
|
94
|
-
if (typeof
|
|
97
|
+
), e = r == null ? void 0 : r.clientWidth, t = ((r == null ? void 0 : r.offsetWidth) || 0) - e, n = t > 0;
|
|
98
|
+
return { tbodyWidth: e, scrollBarWidth: t, hasScrollBar: n };
|
|
99
|
+
}, { y: A, hasScrollBar: te } = a(() => {
|
|
100
|
+
if (typeof L > "u")
|
|
95
101
|
return {};
|
|
96
|
-
const { hasScrollBar:
|
|
97
|
-
let
|
|
98
|
-
if (
|
|
99
|
-
const
|
|
100
|
-
|
|
102
|
+
const { hasScrollBar: r } = re();
|
|
103
|
+
let e = 40, t = 40;
|
|
104
|
+
if (N.current) {
|
|
105
|
+
const w = window.getComputedStyle(N.current);
|
|
106
|
+
e = parseInt(w.getPropertyValue("--cell-height")), t = parseInt(w.getPropertyValue("--toolbar-height"));
|
|
101
107
|
}
|
|
102
|
-
const
|
|
103
|
-
return { y: (
|
|
108
|
+
const n = (k == null ? void 0 : k.height) || 0, l = n ? Q : 0;
|
|
109
|
+
return { y: (j ? window.innerHeight : L) - n - l - t - e, hasScrollBar: r };
|
|
104
110
|
}, [
|
|
105
|
-
w,
|
|
106
111
|
j,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
L,
|
|
113
|
+
k == null ? void 0 : k.height,
|
|
114
|
+
D == null ? void 0 : D.height,
|
|
115
|
+
O == null ? void 0 : O.height
|
|
116
|
+
]), H = a(() => f != null && f.x ? { x: f.x, y: f.y || A } : f != null && f.y ? { x: 1e3, y: f.y } : { x: 1e3, y: A }, [f, A]), oe = fe(
|
|
117
|
+
(r) => {
|
|
118
|
+
const e = r.length, t = r.filter((C) => C.width), l = t.map((C) => C.width).reduce((C, K) => C + K, 0);
|
|
113
119
|
let h = 0;
|
|
114
|
-
if (
|
|
115
|
-
const
|
|
116
|
-
|
|
120
|
+
if (N.current) {
|
|
121
|
+
const C = window.getComputedStyle(N.current), K = parseInt(
|
|
122
|
+
C.getPropertyValue("--toolCell-paddingInline")
|
|
117
123
|
);
|
|
118
|
-
h = parseInt(
|
|
124
|
+
h = parseInt(C.getPropertyValue("--fontSize")) + 4 + 2 * K;
|
|
119
125
|
}
|
|
120
|
-
let
|
|
121
|
-
|
|
122
|
-
const { tbodyWidth:
|
|
123
|
-
return
|
|
126
|
+
let d = 0;
|
|
127
|
+
y && (d += h), m && (d += h);
|
|
128
|
+
const { tbodyWidth: M } = re(), w = parseInt(`${H.x}`) || 0, er = Math.max(w, M), he = (parseInt(`${er}`) || 0) - l - d;
|
|
129
|
+
return he >= 0 ? he / (e - t.length) : void 0;
|
|
124
130
|
},
|
|
125
|
-
[
|
|
126
|
-
),
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
(
|
|
130
|
-
|
|
131
|
-
),
|
|
132
|
-
return
|
|
133
|
-
...
|
|
134
|
-
children:
|
|
135
|
-
} :
|
|
136
|
-
}).filter(Boolean),
|
|
137
|
-
if (
|
|
138
|
-
return
|
|
139
|
-
const t =
|
|
131
|
+
[m, y, H]
|
|
132
|
+
), g = a(() => {
|
|
133
|
+
const r = (h) => h.map((d) => {
|
|
134
|
+
const M = xe(
|
|
135
|
+
(d == null ? void 0 : d.key) || (d == null ? void 0 : d.dataIndex),
|
|
136
|
+
d.index
|
|
137
|
+
), w = p.columnsMap[M];
|
|
138
|
+
return w && w.show === !1 ? !1 : d.children ? {
|
|
139
|
+
...d,
|
|
140
|
+
children: r(d.children)
|
|
141
|
+
} : d;
|
|
142
|
+
}).filter(Boolean), e = r(B);
|
|
143
|
+
if (F)
|
|
144
|
+
return e.sort(pe(p.columnsMap));
|
|
145
|
+
const t = e.sort(pe(p.columnsMap)), n = oe(t), l = t.map((h) => ({
|
|
140
146
|
...h,
|
|
141
147
|
...h.width ? {
|
|
142
|
-
width: h.useMaxWidth ?
|
|
148
|
+
width: h.useMaxWidth ? Ke() ?? h.width : h.width
|
|
143
149
|
} : {
|
|
144
150
|
// 给未设置width的列设置平均数
|
|
145
|
-
width:
|
|
151
|
+
width: n
|
|
146
152
|
}
|
|
147
153
|
}));
|
|
148
|
-
return [
|
|
149
|
-
}, [
|
|
150
|
-
|
|
151
|
-
if (
|
|
152
|
-
const
|
|
153
|
-
(
|
|
154
|
+
return [T.SELECTION_COLUMN, T.EXPAND_COLUMN, ...l];
|
|
155
|
+
}, [B, p.columnsMap, oe, p.sortKeyColumns]);
|
|
156
|
+
ue(() => {
|
|
157
|
+
if (B && B.length > 0) {
|
|
158
|
+
const r = B.map(
|
|
159
|
+
(e) => (
|
|
154
160
|
// @ts-ignore
|
|
155
|
-
|
|
161
|
+
xe((e == null ? void 0 : e.key) ?? (e == null ? void 0 : e.dataIndex), e == null ? void 0 : e.dataIndex)
|
|
156
162
|
)
|
|
157
163
|
);
|
|
158
|
-
|
|
164
|
+
p.setSortKeyColumns(r);
|
|
159
165
|
}
|
|
160
|
-
}, [
|
|
161
|
-
const ne =
|
|
166
|
+
}, [B]);
|
|
167
|
+
const ne = a(() => {
|
|
168
|
+
var e;
|
|
169
|
+
const r = (e = g == null ? void 0 : g.filter((t) => Object.keys(t).length !== 0)) == null ? void 0 : e.map((t) => t != null && t.isOperationCol ? t : {
|
|
170
|
+
...t,
|
|
171
|
+
sorter: !1,
|
|
172
|
+
render: (n, l, h) => /* @__PURE__ */ o.jsx(
|
|
173
|
+
me,
|
|
174
|
+
{
|
|
175
|
+
active: !0,
|
|
176
|
+
title: !1,
|
|
177
|
+
paragraph: {
|
|
178
|
+
rows: 1,
|
|
179
|
+
width: (h + 1) % 2 === 0 ? "100%" : "60%"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
});
|
|
184
|
+
return [T.SELECTION_COLUMN, T.EXPAND_COLUMN, ...r];
|
|
185
|
+
}, [g]), Ie = a(() => u ? ne : g, [u, g, ne]), se = a(() => {
|
|
186
|
+
const r = s == null ? void 0 : s.length, e = r > 4 ? r >= 20 ? 20 : r : 4;
|
|
187
|
+
return Array.from({ length: e }).map((n, l) => ({
|
|
188
|
+
key: `${Date.now()}${l}`
|
|
189
|
+
}));
|
|
190
|
+
}, [s]), $e = a(() => u ? se : s, [u, s, se]), { table: _, locale: Ve = ur } = I(mr), Fe = { ...Ve.Table }, Ue = ((de = _ == null ? void 0 : _.expandable) == null ? void 0 : de.expandIcon) || (m == null ? void 0 : m.expandIcon) || hr(Fe), le = a(() => {
|
|
191
|
+
if (m)
|
|
192
|
+
return {
|
|
193
|
+
...m,
|
|
194
|
+
expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
195
|
+
expandIcon: (r) => {
|
|
196
|
+
const e = Ue(r);
|
|
197
|
+
return {
|
|
198
|
+
...e,
|
|
199
|
+
props: {
|
|
200
|
+
...e.props,
|
|
201
|
+
disabled: !0,
|
|
202
|
+
style: {
|
|
203
|
+
...e.props.style,
|
|
204
|
+
backgroundColor: x.colorBgContainerDisabled
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
}, [m]), qe = a(() => u ? le : m, [u, m, le]), ie = a(() => {
|
|
211
|
+
if (y)
|
|
212
|
+
return {
|
|
213
|
+
...y,
|
|
214
|
+
selectedRowKeys: [],
|
|
215
|
+
getCheckboxProps: () => ({ disabled: !0 })
|
|
216
|
+
};
|
|
217
|
+
}, [y]), Ge = a(() => u ? ie : y, [u, y, ie]), ce = a(() => `${J ?? (p == null ? void 0 : p.tableSize) ?? "lg"}BitzTable`, [J, p.tableSize]), Se = a(() => b.bordered ?? (c == null ? void 0 : c.bordered), [b.bordered, c == null ? void 0 : c.bordered]), Xe = a(() => U(
|
|
162
218
|
"bitzTableContainer",
|
|
163
219
|
/* "hideBorder", */
|
|
164
|
-
{ hasScrollBar:
|
|
165
|
-
|
|
166
|
-
), [
|
|
167
|
-
"--container-bgColor":
|
|
168
|
-
}), [
|
|
169
|
-
const
|
|
170
|
-
return
|
|
171
|
-
height:
|
|
172
|
-
evenRowBgColor:
|
|
173
|
-
colorBgContainer:
|
|
174
|
-
table:
|
|
175
|
-
gap:
|
|
220
|
+
{ hasScrollBar: te },
|
|
221
|
+
ce
|
|
222
|
+
), [ce, te, j]), Je = a(() => ({
|
|
223
|
+
"--container-bgColor": x.colorBgContainer
|
|
224
|
+
}), [x.colorBgContainer]), Qe = a(() => {
|
|
225
|
+
const r = G ?? (c == null ? void 0 : c.fillEvenRow) ?? !0;
|
|
226
|
+
return fr({
|
|
227
|
+
height: j ? "100%" : L,
|
|
228
|
+
evenRowBgColor: r ? i == null ? void 0 : i.evenRowBgColor : x.colorBgContainer,
|
|
229
|
+
colorBgContainer: x.colorBgContainer,
|
|
230
|
+
table: i,
|
|
231
|
+
gap: Q,
|
|
232
|
+
borderColor: (i == null ? void 0 : i.borderColor) || x.colorBorderSecondary
|
|
176
233
|
});
|
|
177
|
-
}, [
|
|
178
|
-
(
|
|
179
|
-
const
|
|
180
|
-
if (
|
|
181
|
-
const l =
|
|
182
|
-
return
|
|
234
|
+
}, [j, L, i, G, c == null ? void 0 : c.fillEvenRow]), Ye = fe(
|
|
235
|
+
(r, e, t) => {
|
|
236
|
+
const n = e % 2 === 0 ? "oddRow" : "evenRow";
|
|
237
|
+
if (b.rowClassName) {
|
|
238
|
+
const l = b.rowClassName(r, e, t);
|
|
239
|
+
return U(n, l);
|
|
183
240
|
}
|
|
184
|
-
return
|
|
241
|
+
return n;
|
|
185
242
|
},
|
|
186
|
-
[
|
|
187
|
-
),
|
|
188
|
-
|
|
243
|
+
[b.rowClassName]
|
|
244
|
+
), ae = /* @__PURE__ */ o.jsx(
|
|
245
|
+
nr,
|
|
189
246
|
{
|
|
190
|
-
finished:
|
|
191
|
-
onLoad:
|
|
247
|
+
finished: De,
|
|
248
|
+
onLoad: we,
|
|
192
249
|
loadingText: "加载中...",
|
|
193
250
|
finishedText: "没有更多了",
|
|
194
251
|
errorText: "加载失败",
|
|
@@ -196,21 +253,21 @@ function Ze({
|
|
|
196
253
|
"div",
|
|
197
254
|
{
|
|
198
255
|
className: "mobileList",
|
|
199
|
-
style: { backgroundColor:
|
|
256
|
+
style: { backgroundColor: i == null ? void 0 : i.mobileListBgColor },
|
|
200
257
|
children: [
|
|
201
|
-
|
|
258
|
+
s == null ? void 0 : s.map((r, e) => /* @__PURE__ */ o.jsx(
|
|
202
259
|
"div",
|
|
203
260
|
{
|
|
204
261
|
className: "listItem",
|
|
205
|
-
style: { backgroundColor:
|
|
206
|
-
onClick: () =>
|
|
207
|
-
children:
|
|
262
|
+
style: { backgroundColor: i == null ? void 0 : i.listItemBgColor },
|
|
263
|
+
onClick: () => He(r, e),
|
|
264
|
+
children: g == null ? void 0 : g.map((t, n) => {
|
|
208
265
|
var l;
|
|
209
266
|
return !(t != null && t.mobileHide) && /* @__PURE__ */ o.jsxs(
|
|
210
267
|
"div",
|
|
211
268
|
{
|
|
212
269
|
className: "row",
|
|
213
|
-
style: { color:
|
|
270
|
+
style: { color: x.colorText },
|
|
214
271
|
children: [
|
|
215
272
|
!t.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
|
|
216
273
|
`${t.title}`,
|
|
@@ -218,137 +275,124 @@ function Ze({
|
|
|
218
275
|
] }),
|
|
219
276
|
/* @__PURE__ */ o.jsx("div", { className: "value", children: ((l = t == null ? void 0 : t.render) == null ? void 0 : l.call(
|
|
220
277
|
t,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
)) || (
|
|
278
|
+
pr(r, (t == null ? void 0 : t.dataIndex) || ""),
|
|
279
|
+
r,
|
|
280
|
+
e
|
|
281
|
+
)) || (r == null ? void 0 : r[t.dataIndex]) })
|
|
225
282
|
]
|
|
226
283
|
},
|
|
227
|
-
|
|
284
|
+
n
|
|
228
285
|
);
|
|
229
286
|
})
|
|
230
287
|
},
|
|
231
|
-
|
|
288
|
+
e
|
|
232
289
|
)),
|
|
233
|
-
|
|
290
|
+
u && Array.from({ length: ye }).map((r, e) => /* @__PURE__ */ o.jsx(
|
|
234
291
|
"div",
|
|
235
292
|
{
|
|
236
293
|
className: "listItem",
|
|
237
|
-
style: { backgroundColor:
|
|
238
|
-
children: /* @__PURE__ */ o.jsx("div", { className: "row", children:
|
|
239
|
-
|
|
294
|
+
style: { backgroundColor: i == null ? void 0 : i.listItemBgColor },
|
|
295
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "row", children: S ? S() : /* @__PURE__ */ o.jsx(
|
|
296
|
+
me,
|
|
240
297
|
{
|
|
241
298
|
title: !1,
|
|
242
299
|
paragraph: {
|
|
243
|
-
rows:
|
|
244
|
-
width:
|
|
300
|
+
rows: Ce,
|
|
301
|
+
width: be
|
|
245
302
|
},
|
|
246
303
|
active: !0
|
|
247
304
|
}
|
|
248
305
|
) })
|
|
249
306
|
},
|
|
250
|
-
|
|
307
|
+
e
|
|
251
308
|
))
|
|
252
309
|
]
|
|
253
310
|
}
|
|
254
311
|
)
|
|
255
312
|
}
|
|
256
|
-
),
|
|
257
|
-
if (
|
|
258
|
-
return
|
|
259
|
-
if (!(
|
|
313
|
+
), Ze = a(() => {
|
|
314
|
+
if (P)
|
|
315
|
+
return P;
|
|
316
|
+
if (!(v ?? (c == null ? void 0 : c.rowHoverable) ?? !0))
|
|
260
317
|
return {
|
|
261
318
|
body: {
|
|
262
|
-
cell: ({ onMouseEnter:
|
|
319
|
+
cell: ({ onMouseEnter: e, onMouseLeave: t, ...n }) => /* @__PURE__ */ o.jsx("td", { ...n })
|
|
263
320
|
}
|
|
264
321
|
};
|
|
265
|
-
}, [
|
|
322
|
+
}, [P, v, c == null ? void 0 : c.rowHoverable]);
|
|
266
323
|
return /* @__PURE__ */ o.jsxs(
|
|
267
324
|
"div",
|
|
268
325
|
{
|
|
269
|
-
className:
|
|
270
|
-
style:
|
|
326
|
+
className: U("bitzTableBlock", { fullscreen: j }),
|
|
327
|
+
style: Je,
|
|
271
328
|
children: [
|
|
272
|
-
!
|
|
329
|
+
!F && /* @__PURE__ */ o.jsxs("div", { ref: N, className: Xe, style: Qe, children: [
|
|
273
330
|
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: z, children: [
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
331
|
+
Te && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
332
|
+
ze || /* @__PURE__ */ o.jsx("div", {}),
|
|
333
|
+
Me,
|
|
334
|
+
y && /* @__PURE__ */ o.jsx(o.Fragment, { children: Ee })
|
|
278
335
|
] }),
|
|
279
336
|
/* @__PURE__ */ o.jsx(
|
|
280
|
-
|
|
337
|
+
T,
|
|
281
338
|
{
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
339
|
+
...b,
|
|
340
|
+
bordered: Se,
|
|
341
|
+
columns: Ie,
|
|
342
|
+
dataSource: $e,
|
|
285
343
|
loading: !1,
|
|
286
344
|
pagination: !1,
|
|
287
|
-
scroll:
|
|
288
|
-
|
|
289
|
-
|
|
345
|
+
scroll: H,
|
|
346
|
+
expandable: qe,
|
|
347
|
+
rowSelection: Ge,
|
|
348
|
+
rowClassName: Ye,
|
|
290
349
|
className: "bitzTable",
|
|
291
|
-
components:
|
|
292
|
-
|
|
293
|
-
),
|
|
294
|
-
/* @__PURE__ */ o.jsx(
|
|
295
|
-
Ue,
|
|
296
|
-
{
|
|
297
|
-
bordered: te,
|
|
298
|
-
columns: N,
|
|
299
|
-
dataLength: i.length,
|
|
300
|
-
scroll: T,
|
|
301
|
-
rowSelection: d.rowSelection,
|
|
302
|
-
expandable: d.expandable,
|
|
303
|
-
showTableTool: U,
|
|
304
|
-
rowClassName: oe,
|
|
305
|
-
loading: v,
|
|
306
|
-
className: "bitzTableSkeleton",
|
|
307
|
-
components: se
|
|
350
|
+
components: Ze,
|
|
351
|
+
rowKey: u ? void 0 : b.rowKey
|
|
308
352
|
}
|
|
309
353
|
)
|
|
310
354
|
] }),
|
|
311
|
-
|
|
312
|
-
|
|
355
|
+
ge && /* @__PURE__ */ o.jsx(
|
|
356
|
+
tr,
|
|
313
357
|
{
|
|
314
358
|
size: "small",
|
|
315
|
-
elRefInstance:
|
|
316
|
-
enableControl:
|
|
317
|
-
pagination:
|
|
318
|
-
total:
|
|
319
|
-
dataSource:
|
|
320
|
-
resetPage:
|
|
321
|
-
paginationEmit:
|
|
359
|
+
elRefInstance: ee,
|
|
360
|
+
enableControl: Be,
|
|
361
|
+
pagination: je,
|
|
362
|
+
total: E,
|
|
363
|
+
dataSource: s,
|
|
364
|
+
resetPage: We,
|
|
365
|
+
paginationEmit: Ne
|
|
322
366
|
}
|
|
323
367
|
)
|
|
324
368
|
] }),
|
|
325
|
-
|
|
326
|
-
(
|
|
327
|
-
!
|
|
369
|
+
F && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
370
|
+
(u || (s == null ? void 0 : s.length) > 0) && /* @__PURE__ */ o.jsx(o.Fragment, { children: X ? /* @__PURE__ */ o.jsx(sr, { onRefresh: X, children: ae }) : ae }),
|
|
371
|
+
!u && /* @__PURE__ */ o.jsx(or, { data: s, title: ve, img: Le }),
|
|
328
372
|
/* @__PURE__ */ o.jsx(
|
|
329
|
-
|
|
373
|
+
rr,
|
|
330
374
|
{
|
|
331
375
|
className: "tableMobileDrawer",
|
|
332
|
-
open:
|
|
376
|
+
open: Re,
|
|
333
377
|
placement: "bottom",
|
|
334
378
|
height: "auto",
|
|
335
379
|
closable: !1,
|
|
336
|
-
onClose:
|
|
380
|
+
onClose: Z,
|
|
337
381
|
children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
|
|
338
|
-
/* @__PURE__ */ o.jsx("div", { className: "boxBody", children:
|
|
382
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Oe.map((r, e) => /* @__PURE__ */ o.jsx(
|
|
339
383
|
"div",
|
|
340
384
|
{
|
|
341
385
|
className: "operaList",
|
|
342
|
-
onClick: () =>
|
|
343
|
-
...
|
|
344
|
-
style: { color:
|
|
386
|
+
onClick: () => _e(r),
|
|
387
|
+
...r.danger && {
|
|
388
|
+
style: { color: x.colorError }
|
|
345
389
|
},
|
|
346
|
-
children:
|
|
390
|
+
children: r.label
|
|
347
391
|
},
|
|
348
|
-
|
|
392
|
+
e
|
|
349
393
|
)) }),
|
|
350
394
|
/* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
|
|
351
|
-
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick:
|
|
395
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: Z, children: ke })
|
|
352
396
|
] })
|
|
353
397
|
}
|
|
354
398
|
)
|
|
@@ -357,7 +401,7 @@ function Ze({
|
|
|
357
401
|
}
|
|
358
402
|
);
|
|
359
403
|
}
|
|
360
|
-
const
|
|
404
|
+
const Ur = (v) => /* @__PURE__ */ o.jsx(lr, { initValue: v, children: /* @__PURE__ */ o.jsx(xr, { ...v }) });
|
|
361
405
|
export {
|
|
362
|
-
|
|
406
|
+
Ur as default
|
|
363
407
|
};
|