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