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