bitz-react-admin-ui 2.5.4 → 2.5.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/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +4 -3
- package/dist/components/BitzTable/ActionBar/Button.d.ts +7 -3
- package/dist/components/BitzTable/ActionBar/Button.mjs +26 -7
- package/dist/components/BitzTable/ActionBar/index.d.ts +2 -0
- package/dist/components/BitzTable/Store/index.mjs +96 -101
- package/dist/components/BitzTable/Store/utils/index.mjs +29 -29
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +36 -36
- package/dist/components/BitzTable/Table/index.mjs +399 -377
- package/dist/components/BitzTableSelect/Select/index.mjs +1 -1
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +90 -91
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +42 -40
- package/dist/components/BitzText/index.d.ts +9 -0
- package/dist/components/BitzText/index.less.mjs +4 -0
- package/dist/components/BitzText/index.mjs +64 -0
- package/dist/components/BitzText/utils.d.ts +4 -0
- package/dist/components/BitzText/utils.mjs +5 -0
- package/dist/components/BitzTooltip/index.d.ts +17 -0
- package/dist/components/BitzTooltip/index.mjs +96 -0
- package/dist/components/BitzTooltip/style.d.ts +5 -0
- package/dist/components/BitzTooltip/style.mjs +50 -0
- package/dist/components/BitzTooltip/utils.d.ts +2 -0
- package/dist/components/BitzTooltip/utils.mjs +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +42 -38
- package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +21 -0
- package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs +63 -0
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +7 -6
- package/package.json +1 -1
|
@@ -1,271 +1,291 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import { Skeleton as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { j as n } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as De, useState as $, useEffect as G, useMemo as i, useRef as V, useCallback as E } from "react";
|
|
3
|
+
import { isMobile as m } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import { Skeleton as Mt, Typography as _e, Table as Pt, Spin as Lt } from "antd";
|
|
5
|
+
import v from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import Rt from "../../BitzDrawer/index.mjs";
|
|
7
7
|
import Ht from "../../BitzPagination/index.mjs";
|
|
8
|
-
import
|
|
8
|
+
import $t from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import qt from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { loopFilter as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { tablePaddingInline as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
12
|
+
import Kt from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
|
+
import Ot, { BitzTableContext as Vt, toolCols as Dt } from "../Store/index.mjs";
|
|
14
|
+
import { loopFilter as _t, columnSort as Gt, genColumnKey as Ge } from "../Store/utils/index.mjs";
|
|
15
|
+
import de from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
16
|
+
import Yt from "../../BitzTheme/index.mjs";
|
|
17
|
+
import { tablePaddingInline as It } from "../../BitzConfigProvider/context.mjs";
|
|
18
|
+
import Ye from "../../BitzHighlight/index.mjs";
|
|
19
|
+
import Jt from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
20
20
|
import "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/config-provider/index.mjs";
|
|
21
|
-
import
|
|
22
|
-
import { getColumnsWithTool as
|
|
23
|
-
import { getCssVar as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
21
|
+
import Qt from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/locale/en_US.mjs";
|
|
22
|
+
import { getColumnsWithTool as Ut, loopBuildSkeleton as Xt, resetScroll as Ie } from "./utils.mjs";
|
|
23
|
+
import { getCssVar as Zt } from "./style.mjs";
|
|
24
|
+
import pt from "./SortableRow.mjs";
|
|
25
|
+
import Et from "./SortTableContext.mjs";
|
|
26
|
+
import vt from "./ResizableTitle copy.mjs";
|
|
27
|
+
import At from "../TextOverflow/index.mjs";
|
|
28
28
|
import "./index.less.mjs";
|
|
29
|
-
import { ConfigContext as
|
|
30
|
-
import
|
|
31
|
-
function
|
|
29
|
+
import { ConfigContext as Ft } from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/config-provider/context.mjs";
|
|
30
|
+
import es from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
31
|
+
function ts({
|
|
32
32
|
showPagination: D = !0,
|
|
33
|
-
height:
|
|
34
|
-
minHeight:
|
|
33
|
+
height: B,
|
|
34
|
+
minHeight: Y,
|
|
35
35
|
dataSource: C,
|
|
36
|
-
total:
|
|
37
|
-
columns:
|
|
38
|
-
loading:
|
|
39
|
-
skeletonNum:
|
|
36
|
+
total: T = 0,
|
|
37
|
+
columns: A,
|
|
38
|
+
loading: c,
|
|
39
|
+
skeletonNum: I = {
|
|
40
40
|
pc: 10,
|
|
41
41
|
mobile: 10
|
|
42
42
|
},
|
|
43
|
-
skeletonRender:
|
|
44
|
-
skeletonRowNum:
|
|
45
|
-
skeletonRowsWidth:
|
|
43
|
+
skeletonRender: F,
|
|
44
|
+
skeletonRowNum: Je = 4,
|
|
45
|
+
skeletonRowsWidth: Qe = ["35%", "100%", "100%", "60%"],
|
|
46
46
|
// mobileLoadEmit,
|
|
47
|
-
mobileRefreshEmit:
|
|
48
|
-
operationFilter:
|
|
49
|
-
enableControlPage:
|
|
47
|
+
mobileRefreshEmit: he,
|
|
48
|
+
operationFilter: a,
|
|
49
|
+
enableControlPage: Ue,
|
|
50
50
|
pagination: x,
|
|
51
|
-
paginationEmit:
|
|
51
|
+
paginationEmit: q = () => {
|
|
52
52
|
},
|
|
53
|
-
onChange:
|
|
54
|
-
enabledRowDragSort:
|
|
55
|
-
onRowDragEnd:
|
|
56
|
-
resizableColumns:
|
|
57
|
-
mobilePageHeight:
|
|
58
|
-
mobileCancelText:
|
|
59
|
-
noDataTitle:
|
|
60
|
-
noDataImg:
|
|
61
|
-
color:
|
|
62
|
-
size:
|
|
63
|
-
showTableTool:
|
|
64
|
-
tableAction:
|
|
65
|
-
tableToolbar:
|
|
66
|
-
selectionBar:
|
|
67
|
-
scroll:
|
|
68
|
-
components:
|
|
69
|
-
expandable:
|
|
70
|
-
rowSelection:
|
|
71
|
-
selectionAlert:
|
|
72
|
-
resetPage:
|
|
73
|
-
...
|
|
53
|
+
onChange: ee,
|
|
54
|
+
enabledRowDragSort: K,
|
|
55
|
+
onRowDragEnd: te,
|
|
56
|
+
resizableColumns: J,
|
|
57
|
+
mobilePageHeight: ss = 500,
|
|
58
|
+
mobileCancelText: Xe = "取消",
|
|
59
|
+
noDataTitle: Ze,
|
|
60
|
+
noDataImg: pe,
|
|
61
|
+
color: rs,
|
|
62
|
+
size: be,
|
|
63
|
+
showTableTool: Ee = !0,
|
|
64
|
+
tableAction: ve,
|
|
65
|
+
tableToolbar: Ae,
|
|
66
|
+
selectionBar: Fe,
|
|
67
|
+
scroll: u,
|
|
68
|
+
components: S,
|
|
69
|
+
expandable: g,
|
|
70
|
+
rowSelection: H,
|
|
71
|
+
selectionAlert: h,
|
|
72
|
+
resetPage: et,
|
|
73
|
+
...d
|
|
74
74
|
}) {
|
|
75
|
-
var
|
|
76
|
-
const { token:
|
|
77
|
-
|
|
78
|
-
minHeight: G = 500,
|
|
79
|
-
cellPaddingInline: Ee = Ot
|
|
80
|
-
} = d, { showColumnBorder: Y, hideRowBorder: de, rowHoverable: Ae, ...f } = pe(pt), [Fe, I] = R(!1), [m, et] = R([]);
|
|
81
|
-
ae(() => {
|
|
75
|
+
var Oe;
|
|
76
|
+
const { token: j } = Yt.useToken(), { Table: f } = j, me = f.tableSpaceBetweenPage ?? 10, tt = f.cellPaddingInline ?? It, Q = f.minHeight ?? 500, { showColumnBorder: U, hideRowBorder: ye, rowHoverable: st, ...l } = De(Vt), [rt, X] = $(!1), [y, nt] = $([]);
|
|
77
|
+
G(() => {
|
|
82
78
|
let e = [...C ?? []];
|
|
83
|
-
(x == null ? void 0 : x.page) !== 1 && (e = [...
|
|
84
|
-
}, [
|
|
85
|
-
const
|
|
86
|
-
var o,
|
|
87
|
-
let s,
|
|
88
|
-
if (typeof
|
|
89
|
-
s = (o =
|
|
90
|
-
(
|
|
79
|
+
(x == null ? void 0 : x.page) !== 1 && (e = [...y, ...e]), nt(e);
|
|
80
|
+
}, [m ? C : 0]);
|
|
81
|
+
const Ce = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= T, [y, T]), [Z, ot] = $([]), [lt, xe] = $(!1), ct = async (e, t) => {
|
|
82
|
+
var o, b, w;
|
|
83
|
+
let s, r = !1;
|
|
84
|
+
if (typeof a == "function")
|
|
85
|
+
s = (o = a == null ? void 0 : a(e, t)) == null ? void 0 : o.filter(
|
|
86
|
+
(z) => z.type !== "divider"
|
|
91
87
|
);
|
|
92
|
-
else if (s = (
|
|
93
|
-
|
|
88
|
+
else if (s = (b = a == null ? void 0 : a.custom) == null ? void 0 : b.call(a, e, t), a != null && a.request) {
|
|
89
|
+
xe(!0), X(!0), r = !0;
|
|
94
90
|
try {
|
|
95
|
-
const
|
|
96
|
-
(
|
|
97
|
-
var
|
|
91
|
+
const z = await (a == null ? void 0 : a.request(e, t));
|
|
92
|
+
(w = a.fieldsName) != null && w.label ? s = z == null ? void 0 : z.map((_) => {
|
|
93
|
+
var fe;
|
|
98
94
|
return {
|
|
99
|
-
...
|
|
100
|
-
label:
|
|
95
|
+
..._,
|
|
96
|
+
label: _ == null ? void 0 : _[((fe = a.fieldsName) == null ? void 0 : fe.label) ?? "label"]
|
|
101
97
|
};
|
|
102
|
-
}) : s =
|
|
98
|
+
}) : s = z ?? [];
|
|
103
99
|
} finally {
|
|
104
|
-
|
|
100
|
+
xe(!1);
|
|
105
101
|
}
|
|
106
102
|
}
|
|
107
|
-
s != null && s.length && (
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
var s,
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
},
|
|
103
|
+
s != null && s.length && (ot(s), r || X(!0));
|
|
104
|
+
}, we = () => {
|
|
105
|
+
X(!1);
|
|
106
|
+
}, it = (e, t) => {
|
|
107
|
+
var s, r;
|
|
108
|
+
X(!1), (s = e.onClick) == null || s.call(e), !(e != null && e.onClick) && typeof a != "function" && (a != null && a.onClick) && a.onClick((r = Z == null ? void 0 : Z[t]) == null ? void 0 : r.key);
|
|
109
|
+
}, se = V(null), ge = V(null), k = V(null), re = de(k), ne = V(null), oe = de(ne), le = V(null), O = de(le), at = (...e) => {
|
|
110
|
+
Ie(se), ee == null || ee(...e);
|
|
111
|
+
}, ut = (...e) => {
|
|
112
|
+
Ie(se), q == null || q(...e);
|
|
113
|
+
}, N = i(() => !(u != null && u.auto) && J, [u == null ? void 0 : u.auto, J]), je = () => {
|
|
118
114
|
var s;
|
|
119
|
-
const e = (s =
|
|
115
|
+
const e = (s = k.current) == null ? void 0 : s.querySelectorAll(
|
|
120
116
|
"& > .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)"
|
|
121
117
|
), t = [];
|
|
122
|
-
if (e == null || e.forEach((
|
|
118
|
+
if (e == null || e.forEach((r) => {
|
|
123
119
|
var o;
|
|
124
120
|
t.push(
|
|
125
|
-
((o =
|
|
121
|
+
((o = r.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : o.clientWidth) || 0
|
|
126
122
|
);
|
|
127
123
|
}), t.length)
|
|
128
|
-
return Math.ceil(Math.max(...t)) +
|
|
129
|
-
},
|
|
130
|
-
var
|
|
131
|
-
let e = (
|
|
124
|
+
return Math.ceil(Math.max(...t)) + tt * 2;
|
|
125
|
+
}, ft = () => {
|
|
126
|
+
var r, o, b, w;
|
|
127
|
+
let e = (r = k.current) == null ? void 0 : r.querySelector(
|
|
132
128
|
".ant-table-content"
|
|
133
129
|
);
|
|
134
|
-
e || (e = (o =
|
|
130
|
+
e || (e = (o = k.current) == null ? void 0 : o.querySelector(
|
|
135
131
|
".ant-table-body"
|
|
136
132
|
));
|
|
137
133
|
let t = !1, s = 0;
|
|
138
|
-
return e && (e.clientWidth - (
|
|
134
|
+
return e && (e.clientWidth - (U ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, s = (w = (b = k.current) == null ? void 0 : b.querySelector(
|
|
139
135
|
".ant-table-cell-scrollbar"
|
|
140
|
-
)) == null ? void 0 :
|
|
141
|
-
}, { y:
|
|
142
|
-
const { hasScrollBar: e, scrollbarSize: t } =
|
|
143
|
-
if (typeof
|
|
136
|
+
)) == null ? void 0 : w.offsetWidth), { hasScrollBar: t, scrollbarSize: s };
|
|
137
|
+
}, { y: ce, hasScrollBar: W, scrollbarSize: M } = i(() => {
|
|
138
|
+
const { hasScrollBar: e, scrollbarSize: t } = ft();
|
|
139
|
+
if (typeof B > "u")
|
|
144
140
|
return {
|
|
145
141
|
hasScrollBar: e,
|
|
146
142
|
scrollbarSize: t
|
|
147
143
|
};
|
|
148
|
-
let s = 40,
|
|
149
|
-
if (
|
|
150
|
-
const
|
|
151
|
-
s = parseInt(
|
|
144
|
+
let s = 40, r = 40;
|
|
145
|
+
if (k.current) {
|
|
146
|
+
const Ve = window.getComputedStyle(k.current);
|
|
147
|
+
s = parseInt(
|
|
148
|
+
Ve.getPropertyValue(`--${l.tableSize}Table-height`)
|
|
149
|
+
), r = parseInt(Ve.getPropertyValue("--toolbar-height"));
|
|
152
150
|
}
|
|
153
|
-
const o = (
|
|
154
|
-
return { y: (
|
|
151
|
+
const o = (O == null ? void 0 : O.height) || 0, b = o ? me : 0, w = Y ?? Q, z = B >= w ? B : w;
|
|
152
|
+
return { y: (l.fullscreen ? window.innerHeight : z) - o - b - r - s, hasScrollBar: e, scrollbarSize: t };
|
|
155
153
|
}, [
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
l.fullscreen,
|
|
155
|
+
B,
|
|
156
|
+
Y,
|
|
157
|
+
Q,
|
|
158
|
+
O == null ? void 0 : O.height,
|
|
159
|
+
re == null ? void 0 : re.height,
|
|
160
|
+
oe == null ? void 0 : oe.height,
|
|
161
|
+
l.tableSize
|
|
162
|
+
]), dt = () => {
|
|
164
163
|
let e = 0;
|
|
165
|
-
if (
|
|
166
|
-
const s = window.getComputedStyle(
|
|
164
|
+
if (k.current) {
|
|
165
|
+
const s = window.getComputedStyle(k.current), r = parseInt(
|
|
167
166
|
s.getPropertyValue("--toolCell-paddingInline")
|
|
168
167
|
);
|
|
169
|
-
e = parseInt(s.getPropertyValue("--fontSize")) + 4 + 2 *
|
|
168
|
+
e = parseInt(s.getPropertyValue("--fontSize")) + 4 + 2 * r;
|
|
170
169
|
}
|
|
171
170
|
let t = 0;
|
|
172
|
-
return
|
|
173
|
-
}, { sortColumns:
|
|
174
|
-
const t = (
|
|
171
|
+
return H && (t += e), g && (t += e), K && (t += e), t;
|
|
172
|
+
}, { sortColumns: P, toolColWidth: ke } = i(() => {
|
|
173
|
+
const t = (A ?? []).filter((b) => !Dt.includes(b)), r = _t(
|
|
175
174
|
t,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
).sort(
|
|
175
|
+
l.columnsMap,
|
|
176
|
+
l.finish
|
|
177
|
+
).sort(Gt(l.columnsMap));
|
|
179
178
|
let o = 0;
|
|
180
|
-
return
|
|
181
|
-
}, [
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
179
|
+
return m || (o = dt()), { sortColumns: r, toolColWidth: o };
|
|
180
|
+
}, [l.columnsMap, l.finish, A]), [L, ze] = $([]), [ie, Be] = $(!1), p = V(!1);
|
|
181
|
+
G(() => {
|
|
182
|
+
var s;
|
|
183
|
+
const e = d.columnsState ?? {};
|
|
184
|
+
((s = Object.keys(e)) == null ? void 0 : s.length) || (p.current = !0);
|
|
185
|
+
}, []), G(() => {
|
|
186
|
+
if (N && (!ie || !p.current)) {
|
|
187
|
+
const e = P.map((t, s) => {
|
|
188
|
+
let r = t.width;
|
|
189
|
+
return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (r = je() ?? t.width), {
|
|
190
|
+
key: Ge(t, s),
|
|
191
|
+
width: r ?? 0
|
|
192
|
+
};
|
|
187
193
|
});
|
|
188
|
-
|
|
194
|
+
ze(e), l.finish && (p.current = !0, Be(!0));
|
|
189
195
|
}
|
|
190
|
-
}, [
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
}, [P, N, ie, l.finish]), G(() => {
|
|
197
|
+
if (N && ie && p.current) {
|
|
198
|
+
const e = P.map((t, s) => {
|
|
199
|
+
let r = t.width;
|
|
200
|
+
return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (r = je() ?? t.width), {
|
|
201
|
+
key: Ge(t, s),
|
|
202
|
+
width: r ?? 0
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
ze(e);
|
|
206
|
+
}
|
|
207
|
+
}, [P, N]);
|
|
208
|
+
const [ae, ht] = $(0), bt = i(() => {
|
|
209
|
+
if (N && ae)
|
|
199
210
|
return {
|
|
200
|
-
width:
|
|
211
|
+
width: ae,
|
|
201
212
|
maxWidth: "100%"
|
|
202
213
|
};
|
|
203
|
-
}, [
|
|
214
|
+
}, [N, ae]), Te = i(() => {
|
|
204
215
|
let e;
|
|
205
|
-
if (typeof
|
|
216
|
+
if (typeof ce == "number" && (e = ce - 1), typeof (u == null ? void 0 : u.y) == "number" && (e = u.y - 2), u != null && u.auto)
|
|
206
217
|
return {
|
|
207
218
|
x: void 0,
|
|
208
219
|
y: e
|
|
209
220
|
};
|
|
210
|
-
let t =
|
|
211
|
-
if (
|
|
212
|
-
t =
|
|
213
|
-
const s =
|
|
214
|
-
|
|
221
|
+
let t = u == null ? void 0 : u.x;
|
|
222
|
+
if (J) {
|
|
223
|
+
t = L.reduce((o, b) => o + b.width, 0), t += ke;
|
|
224
|
+
const s = U ? 1 : 0, r = W ? +M : 0;
|
|
225
|
+
ht(t + s + r);
|
|
215
226
|
}
|
|
216
|
-
return
|
|
227
|
+
return u != null && u.y ? { x: t, y: u.y } : { x: t, y: e };
|
|
217
228
|
}, [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
229
|
+
u,
|
|
230
|
+
ce,
|
|
231
|
+
J,
|
|
232
|
+
L,
|
|
233
|
+
ke,
|
|
234
|
+
U,
|
|
224
235
|
W,
|
|
225
|
-
|
|
226
|
-
]),
|
|
227
|
-
if (
|
|
228
|
-
return
|
|
229
|
-
const e =
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
236
|
+
M
|
|
237
|
+
]), R = i(() => {
|
|
238
|
+
if (m)
|
|
239
|
+
return P;
|
|
240
|
+
const e = P.length - 1, t = P.map((s, r) => {
|
|
241
|
+
var o;
|
|
242
|
+
return {
|
|
243
|
+
...s,
|
|
244
|
+
...e === r && {
|
|
245
|
+
className: v(s.className, "lastColumn")
|
|
246
|
+
},
|
|
247
|
+
width: L.length ? (o = L[r]) == null ? void 0 : o.width : (s == null ? void 0 : s.width) || void 0,
|
|
248
|
+
...Te.x !== void 0 ? {
|
|
249
|
+
onHeaderCell: (b) => ({
|
|
250
|
+
width: b.width,
|
|
251
|
+
stretchref: ge,
|
|
252
|
+
datagridref: ne,
|
|
253
|
+
onResize: mt(r)
|
|
254
|
+
})
|
|
255
|
+
} : {},
|
|
256
|
+
...!(s != null && s.render) && s.copyable ? {
|
|
257
|
+
render: (b) => ["number", "bigint"].includes(typeof b) ? b : /* @__PURE__ */ n.jsx(At, { value: b })
|
|
258
|
+
} : {}
|
|
259
|
+
};
|
|
260
|
+
});
|
|
261
|
+
return Ut(
|
|
262
|
+
A,
|
|
249
263
|
t,
|
|
250
|
-
|
|
251
|
-
!!
|
|
252
|
-
!!
|
|
264
|
+
K,
|
|
265
|
+
!!H,
|
|
266
|
+
!!g
|
|
253
267
|
);
|
|
254
|
-
}, [
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
268
|
+
}, [P, L]), mt = (e) => (t, { size: s, minWidth: r }) => {
|
|
269
|
+
const b = (s.width > r ? s.width : r) - L[e].width, w = `${L[e].key}`;
|
|
270
|
+
Be(!0), l.setColumnsMap({
|
|
271
|
+
...l.columnsMap,
|
|
272
|
+
[w]: {
|
|
273
|
+
...l.columnsMap[w],
|
|
274
|
+
width: L[e].width + b
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}, Se = i(() => Xt(R), [R]), yt = i(() => c ? Se : R, [c, R, Se]), Ne = i(() => {
|
|
278
|
+
const e = (C ?? []).length, t = e > (I.pc ?? 10) ? e >= 15 ? 15 : e : I.pc ?? 10;
|
|
279
|
+
return Array.from({ length: t }).map((r, o) => ({
|
|
260
280
|
key: `${Date.now()}${o}`
|
|
261
281
|
}));
|
|
262
|
-
}, [C]),
|
|
263
|
-
if (
|
|
282
|
+
}, [C]), We = i(() => c ? Ne : C ?? [], [c, C, Ne]), { table: ue, locale: Ct = Qt } = De(Ft), xt = { ...Ct.Table }, wt = ((Oe = ue == null ? void 0 : ue.expandable) == null ? void 0 : Oe.expandIcon) || (g == null ? void 0 : g.expandIcon) || Jt(xt), Me = i(() => {
|
|
283
|
+
if (g)
|
|
264
284
|
return {
|
|
265
|
-
...
|
|
266
|
-
expandedRowRender: () => /* @__PURE__ */
|
|
285
|
+
...g,
|
|
286
|
+
expandedRowRender: () => /* @__PURE__ */ n.jsx(n.Fragment, {}),
|
|
267
287
|
expandIcon: (e) => {
|
|
268
|
-
const t =
|
|
288
|
+
const t = wt(e);
|
|
269
289
|
return {
|
|
270
290
|
...t,
|
|
271
291
|
props: {
|
|
@@ -273,141 +293,143 @@ function Ft({
|
|
|
273
293
|
disabled: !0,
|
|
274
294
|
style: {
|
|
275
295
|
...t.props.style,
|
|
276
|
-
backgroundColor:
|
|
296
|
+
backgroundColor: j.colorBgContainerDisabled
|
|
277
297
|
}
|
|
278
298
|
}
|
|
279
299
|
};
|
|
280
300
|
}
|
|
281
301
|
};
|
|
282
|
-
}, [
|
|
283
|
-
if (
|
|
302
|
+
}, [g]), gt = i(() => c ? Me : g, [c, g, Me]), Pe = i(() => {
|
|
303
|
+
if (H)
|
|
284
304
|
return {
|
|
285
|
-
...
|
|
305
|
+
...H,
|
|
286
306
|
selectedRowKeys: [],
|
|
287
307
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
288
308
|
};
|
|
289
|
-
}, [
|
|
309
|
+
}, [H]), jt = i(() => c ? Pe : H, [c, H, Pe]), Le = i(() => c ? "key" : d.rowKey, [c, d.rowKey]), Re = i(() => `${be ?? l.stylesConfig.size}BitzTable`, [be, l.stylesConfig.size]), kt = E(
|
|
290
310
|
(e, t) => {
|
|
291
|
-
var
|
|
292
|
-
if (!
|
|
311
|
+
var r;
|
|
312
|
+
if (!d.onRow || c)
|
|
293
313
|
return {};
|
|
294
|
-
const s = (
|
|
314
|
+
const s = (r = d.onRow) == null ? void 0 : r.call(d, e, t);
|
|
295
315
|
return s.onClick && (s.className = "rowPointerCursor"), s;
|
|
296
316
|
},
|
|
297
|
-
[
|
|
298
|
-
),
|
|
317
|
+
[d.onRow, c]
|
|
318
|
+
), zt = i(() => v(
|
|
299
319
|
"bitzTableContainer",
|
|
300
|
-
{ hideBorder:
|
|
320
|
+
{ hideBorder: ye },
|
|
301
321
|
{ hasScrollBar: W },
|
|
302
|
-
|
|
303
|
-
|
|
322
|
+
{ stickyTable: !!(d != null && d.sticky) },
|
|
323
|
+
Re,
|
|
324
|
+
d.className
|
|
304
325
|
), [
|
|
305
|
-
|
|
306
|
-
|
|
326
|
+
d.className,
|
|
327
|
+
Re,
|
|
307
328
|
W,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
329
|
+
l.fullscreen,
|
|
330
|
+
ye,
|
|
331
|
+
d.sticky
|
|
332
|
+
]), Bt = i(() => ({
|
|
333
|
+
"--container-bgColor": j.colorBgContainer
|
|
334
|
+
}), [j.colorBgContainer]), Tt = i(() => {
|
|
335
|
+
const e = Y ?? Q;
|
|
314
336
|
let t;
|
|
315
|
-
|
|
316
|
-
const s =
|
|
317
|
-
let
|
|
318
|
-
return (
|
|
337
|
+
B && (t = B >= e ? B : e);
|
|
338
|
+
const s = l.fullscreen ? "100%" : t;
|
|
339
|
+
let r;
|
|
340
|
+
return (M ?? 0) > 0 && (r = M), Zt({
|
|
319
341
|
height: s ?? "auto",
|
|
320
|
-
token:
|
|
321
|
-
evenRowBgColor:
|
|
322
|
-
table:
|
|
323
|
-
gap:
|
|
324
|
-
borderColor: (
|
|
325
|
-
scrollbarWidth:
|
|
326
|
-
other:
|
|
342
|
+
token: j,
|
|
343
|
+
evenRowBgColor: l.zebra ? f == null ? void 0 : f.evenRowBgColor : j.colorBgContainer,
|
|
344
|
+
table: f,
|
|
345
|
+
gap: me,
|
|
346
|
+
borderColor: (f == null ? void 0 : f.borderColor) || j.colorBorderSecondary,
|
|
347
|
+
scrollbarWidth: r,
|
|
348
|
+
other: d.style
|
|
327
349
|
});
|
|
328
350
|
}, [
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
]),
|
|
351
|
+
d.style,
|
|
352
|
+
l.fullscreen,
|
|
353
|
+
B,
|
|
354
|
+
Y,
|
|
355
|
+
Q,
|
|
356
|
+
f,
|
|
357
|
+
l == null ? void 0 : l.zebra,
|
|
358
|
+
M
|
|
359
|
+
]), St = E(
|
|
338
360
|
(e, t, s) => {
|
|
339
|
-
const
|
|
340
|
-
if (
|
|
341
|
-
const o =
|
|
342
|
-
return
|
|
361
|
+
const r = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
362
|
+
if (d.rowClassName) {
|
|
363
|
+
const o = d.rowClassName(e, t, s);
|
|
364
|
+
return v(r, o);
|
|
343
365
|
}
|
|
344
|
-
return
|
|
366
|
+
return r;
|
|
345
367
|
},
|
|
346
|
-
[
|
|
347
|
-
),
|
|
348
|
-
|
|
368
|
+
[d.rowClassName]
|
|
369
|
+
), He = i(() => /* @__PURE__ */ n.jsx(
|
|
370
|
+
qt,
|
|
349
371
|
{
|
|
350
|
-
finished:
|
|
372
|
+
finished: Ce,
|
|
351
373
|
onLoad: async () => (
|
|
352
374
|
// @ts-ignore
|
|
353
|
-
!
|
|
375
|
+
!c && (q == null ? void 0 : q((x == null ? void 0 : x.page) + 1, x == null ? void 0 : x.size))
|
|
354
376
|
),
|
|
355
377
|
loadingText: "加载中...",
|
|
356
378
|
finishedText: "没有更多了",
|
|
357
379
|
errorText: "加载失败",
|
|
358
|
-
children: /* @__PURE__ */
|
|
380
|
+
children: /* @__PURE__ */ n.jsxs(
|
|
359
381
|
"div",
|
|
360
382
|
{
|
|
361
383
|
className: "mobileList",
|
|
362
|
-
style: { backgroundColor:
|
|
384
|
+
style: { backgroundColor: f == null ? void 0 : f.mobileListBgColor },
|
|
363
385
|
children: [
|
|
364
|
-
|
|
386
|
+
y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ n.jsx(
|
|
365
387
|
"div",
|
|
366
388
|
{
|
|
367
389
|
className: "listItem",
|
|
368
|
-
style: { backgroundColor:
|
|
369
|
-
onClick: () =>
|
|
370
|
-
children:
|
|
390
|
+
style: { backgroundColor: f == null ? void 0 : f.listItemBgColor },
|
|
391
|
+
onClick: () => ct(e, t),
|
|
392
|
+
children: R == null ? void 0 : R.map((s, r) => {
|
|
371
393
|
var o;
|
|
372
|
-
return !(s != null && s.mobileHide) && /* @__PURE__ */
|
|
394
|
+
return !(s != null && s.mobileHide) && /* @__PURE__ */ n.jsxs(
|
|
373
395
|
"div",
|
|
374
396
|
{
|
|
375
397
|
className: "row",
|
|
376
|
-
style: { color:
|
|
398
|
+
style: { color: j.colorText },
|
|
377
399
|
children: [
|
|
378
|
-
!s.mobileHideLabel && /* @__PURE__ */
|
|
400
|
+
!s.mobileHideLabel && /* @__PURE__ */ n.jsxs("div", { className: "label", children: [
|
|
379
401
|
`${s.title}`,
|
|
380
402
|
":"
|
|
381
403
|
] }),
|
|
382
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ n.jsx("div", { className: "value", children: ((o = s == null ? void 0 : s.render) == null ? void 0 : o.call(
|
|
383
405
|
s,
|
|
384
|
-
|
|
406
|
+
es(e, (s == null ? void 0 : s.dataIndex) || ""),
|
|
385
407
|
e,
|
|
386
408
|
t
|
|
387
409
|
)) || (e == null ? void 0 : e[s.dataIndex]) })
|
|
388
410
|
]
|
|
389
411
|
},
|
|
390
|
-
|
|
412
|
+
r
|
|
391
413
|
);
|
|
392
414
|
})
|
|
393
415
|
},
|
|
394
416
|
t
|
|
395
417
|
)),
|
|
396
|
-
Array.from({ length:
|
|
418
|
+
Array.from({ length: I.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ n.jsx(
|
|
397
419
|
"div",
|
|
398
420
|
{
|
|
399
421
|
className: "listItem",
|
|
400
422
|
style: {
|
|
401
|
-
display:
|
|
402
|
-
backgroundColor:
|
|
423
|
+
display: c ? "block" : "none",
|
|
424
|
+
backgroundColor: f == null ? void 0 : f.listItemBgColor
|
|
403
425
|
},
|
|
404
|
-
children: /* @__PURE__ */
|
|
405
|
-
|
|
426
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "row", children: F ? F() : /* @__PURE__ */ n.jsx(
|
|
427
|
+
Mt,
|
|
406
428
|
{
|
|
407
429
|
title: !1,
|
|
408
430
|
paragraph: {
|
|
409
|
-
rows:
|
|
410
|
-
width:
|
|
431
|
+
rows: Je,
|
|
432
|
+
width: Qe
|
|
411
433
|
},
|
|
412
434
|
active: !0
|
|
413
435
|
}
|
|
@@ -420,186 +442,186 @@ function Ft({
|
|
|
420
442
|
)
|
|
421
443
|
}
|
|
422
444
|
), [
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
445
|
+
m ? Ce : 0,
|
|
446
|
+
m ? c : 0,
|
|
447
|
+
m ? x : 0,
|
|
448
|
+
m ? f : 0,
|
|
449
|
+
m ? y : 0,
|
|
450
|
+
m ? R : 0,
|
|
451
|
+
m ? I : 0,
|
|
452
|
+
m ? F : 0
|
|
431
453
|
]);
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}, [
|
|
435
|
-
const
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
|
|
454
|
+
G(() => {
|
|
455
|
+
l.setSelected(!!(h != null && h.num));
|
|
456
|
+
}, [h]);
|
|
457
|
+
const $e = i(() => /* @__PURE__ */ n.jsxs("div", { className: "alert", children: [
|
|
458
|
+
/* @__PURE__ */ n.jsx(
|
|
459
|
+
Ye,
|
|
438
460
|
{
|
|
439
461
|
highlightTag: "strong",
|
|
440
|
-
keywords: `${
|
|
441
|
-
sourceString: `共 ${
|
|
462
|
+
keywords: `${T}`,
|
|
463
|
+
sourceString: `共 ${T} 条`,
|
|
442
464
|
tagClass: "totalText"
|
|
443
465
|
}
|
|
444
466
|
),
|
|
445
|
-
!!
|
|
446
|
-
/* @__PURE__ */
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
|
|
467
|
+
!!h && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
468
|
+
/* @__PURE__ */ n.jsx(_e.Text, { className: "splitBorder", children: "/" }),
|
|
469
|
+
/* @__PURE__ */ n.jsx(
|
|
470
|
+
Ye,
|
|
449
471
|
{
|
|
450
472
|
highlightTag: "strong",
|
|
451
|
-
keywords: `${(
|
|
452
|
-
sourceString: `已选中 ${(
|
|
473
|
+
keywords: `${(h == null ? void 0 : h.num) ?? 0}`,
|
|
474
|
+
sourceString: `已选中 ${(h == null ? void 0 : h.num) ?? 0} 条`
|
|
453
475
|
}
|
|
454
476
|
),
|
|
455
|
-
!!(
|
|
456
|
-
|
|
477
|
+
!!(h != null && h.num) && /* @__PURE__ */ n.jsx(
|
|
478
|
+
_e.Link,
|
|
457
479
|
{
|
|
458
480
|
className: "cleanSelected",
|
|
459
|
-
onClick:
|
|
481
|
+
onClick: h == null ? void 0 : h.onClear,
|
|
460
482
|
children: "取消选中"
|
|
461
483
|
}
|
|
462
484
|
)
|
|
463
485
|
] })
|
|
464
|
-
] }), [
|
|
465
|
-
|
|
466
|
-
},
|
|
467
|
-
row: (e) =>
|
|
468
|
-
} : {}, [
|
|
486
|
+
] }), [T, h]), Nt = (e) => {
|
|
487
|
+
c || te == null || te(e);
|
|
488
|
+
}, qe = E(() => K ? {
|
|
489
|
+
row: (e) => pt({ ...e, loading: c == null ? void 0 : c.toString() })
|
|
490
|
+
} : {}, [K, K ? c : !1]), Ke = E(
|
|
469
491
|
(e) => {
|
|
470
|
-
var
|
|
471
|
-
if (
|
|
472
|
-
return
|
|
492
|
+
var r, o;
|
|
493
|
+
if (N)
|
|
494
|
+
return vt({ ...e, hasScrollBar: W, scrollbarSize: M });
|
|
473
495
|
const t = { ...e };
|
|
474
|
-
return ((
|
|
496
|
+
return ((r = t.className) == null ? void 0 : r.includes(
|
|
475
497
|
"ant-table-cell-fix-right"
|
|
476
|
-
)) && !W && ((o = t.style) != null && o.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (
|
|
498
|
+
)) && !W && ((o = t.style) != null && o.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (M || 0)), /* @__PURE__ */ n.jsx("th", { ...t });
|
|
477
499
|
},
|
|
478
|
-
[W,
|
|
479
|
-
),
|
|
480
|
-
...
|
|
500
|
+
[W, M, N]
|
|
501
|
+
), Wt = i(() => ({
|
|
502
|
+
...S,
|
|
481
503
|
header: {
|
|
482
|
-
...
|
|
483
|
-
cell:
|
|
504
|
+
...S == null ? void 0 : S.header,
|
|
505
|
+
cell: Ke
|
|
484
506
|
},
|
|
485
507
|
body: {
|
|
486
|
-
...
|
|
487
|
-
...
|
|
508
|
+
...S == null ? void 0 : S.body,
|
|
509
|
+
...qe()
|
|
488
510
|
}
|
|
489
|
-
}), [
|
|
490
|
-
return /* @__PURE__ */
|
|
511
|
+
}), [S, Ke, qe]);
|
|
512
|
+
return /* @__PURE__ */ n.jsxs(
|
|
491
513
|
"div",
|
|
492
514
|
{
|
|
493
|
-
className:
|
|
494
|
-
fullscreen:
|
|
515
|
+
className: v("bitzTableBlock", {
|
|
516
|
+
fullscreen: l.fullscreen
|
|
495
517
|
}),
|
|
496
518
|
style: Bt,
|
|
497
519
|
children: [
|
|
498
|
-
!
|
|
499
|
-
/* @__PURE__ */
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
520
|
+
!m && /* @__PURE__ */ n.jsxs("div", { ref: k, className: zt, style: Tt, children: [
|
|
521
|
+
/* @__PURE__ */ n.jsxs("div", { className: "bitzTableContainerBody", ref: ne, children: [
|
|
522
|
+
Ee && /* @__PURE__ */ n.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
523
|
+
ve || /* @__PURE__ */ n.jsx("div", {}),
|
|
524
|
+
Ae,
|
|
525
|
+
Fe
|
|
504
526
|
] }),
|
|
505
|
-
/* @__PURE__ */
|
|
527
|
+
/* @__PURE__ */ n.jsx(
|
|
506
528
|
"div",
|
|
507
529
|
{
|
|
508
530
|
className: "stretchLine",
|
|
509
|
-
ref:
|
|
531
|
+
ref: ge,
|
|
510
532
|
style: {
|
|
511
|
-
background:
|
|
533
|
+
background: j.colorPrimary,
|
|
512
534
|
bottom: W ? "var(--scrollbar-width)" : 0
|
|
513
535
|
}
|
|
514
536
|
}
|
|
515
537
|
),
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
|
|
538
|
+
/* @__PURE__ */ n.jsx(
|
|
539
|
+
Et,
|
|
518
540
|
{
|
|
519
|
-
enabledRowDragSort:
|
|
520
|
-
dataSource:
|
|
521
|
-
mergeRowKey:
|
|
522
|
-
onDragEnd:
|
|
523
|
-
children: /* @__PURE__ */
|
|
524
|
-
|
|
541
|
+
enabledRowDragSort: K,
|
|
542
|
+
dataSource: We,
|
|
543
|
+
mergeRowKey: Le,
|
|
544
|
+
onDragEnd: Nt,
|
|
545
|
+
children: /* @__PURE__ */ n.jsx(
|
|
546
|
+
Pt,
|
|
525
547
|
{
|
|
526
|
-
...
|
|
527
|
-
bordered:
|
|
528
|
-
columns:
|
|
529
|
-
dataSource:
|
|
548
|
+
...d,
|
|
549
|
+
bordered: U,
|
|
550
|
+
columns: yt,
|
|
551
|
+
dataSource: We,
|
|
530
552
|
loading: !1,
|
|
531
553
|
pagination: !1,
|
|
532
|
-
scroll:
|
|
533
|
-
expandable:
|
|
534
|
-
rowSelection:
|
|
535
|
-
style:
|
|
536
|
-
onRow:
|
|
537
|
-
rowHoverable:
|
|
538
|
-
rowClassName:
|
|
554
|
+
scroll: Te,
|
|
555
|
+
expandable: gt,
|
|
556
|
+
rowSelection: jt,
|
|
557
|
+
style: bt,
|
|
558
|
+
onRow: kt,
|
|
559
|
+
rowHoverable: st,
|
|
560
|
+
rowClassName: St,
|
|
539
561
|
className: "bitzTable",
|
|
540
|
-
components:
|
|
541
|
-
rowKey:
|
|
542
|
-
onChange:
|
|
543
|
-
ref:
|
|
562
|
+
components: Wt,
|
|
563
|
+
rowKey: Le,
|
|
564
|
+
onChange: at,
|
|
565
|
+
ref: se
|
|
544
566
|
}
|
|
545
567
|
)
|
|
546
568
|
}
|
|
547
569
|
)
|
|
548
570
|
] }),
|
|
549
|
-
D && !!
|
|
550
|
-
|
|
551
|
-
/* @__PURE__ */
|
|
571
|
+
D && !!T && /* @__PURE__ */ n.jsxs("div", { className: "bitzTablePagination", ref: le, children: [
|
|
572
|
+
$e,
|
|
573
|
+
/* @__PURE__ */ n.jsx(
|
|
552
574
|
Ht,
|
|
553
575
|
{
|
|
554
576
|
size: "small",
|
|
555
|
-
enableControl:
|
|
577
|
+
enableControl: Ue,
|
|
556
578
|
pagination: x,
|
|
557
|
-
total:
|
|
579
|
+
total: T,
|
|
558
580
|
dataSource: C,
|
|
559
|
-
resetPage:
|
|
581
|
+
resetPage: et,
|
|
560
582
|
hideTotalText: !0,
|
|
561
|
-
paginationEmit:
|
|
583
|
+
paginationEmit: ut
|
|
562
584
|
}
|
|
563
585
|
)
|
|
564
586
|
] }),
|
|
565
|
-
!D && !!
|
|
587
|
+
!D && !!h && !!T && /* @__PURE__ */ n.jsx("div", { className: "bitzTablePagination", ref: le, children: $e })
|
|
566
588
|
] }),
|
|
567
|
-
|
|
568
|
-
(
|
|
589
|
+
m && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
590
|
+
(c || !!(C != null && C.length)) && /* @__PURE__ */ n.jsx(n.Fragment, { children: he ? (
|
|
569
591
|
// @ts-ignore
|
|
570
|
-
/* @__PURE__ */
|
|
571
|
-
|
|
592
|
+
/* @__PURE__ */ n.jsx(
|
|
593
|
+
Kt,
|
|
572
594
|
{
|
|
573
|
-
onRefresh: async () => !
|
|
574
|
-
children:
|
|
595
|
+
onRefresh: async () => !c && he(),
|
|
596
|
+
children: He
|
|
575
597
|
}
|
|
576
598
|
)
|
|
577
|
-
) :
|
|
578
|
-
!
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
|
|
599
|
+
) : He }),
|
|
600
|
+
!c && /* @__PURE__ */ n.jsx($t, { data: C, title: Ze, img: pe }),
|
|
601
|
+
/* @__PURE__ */ n.jsx(
|
|
602
|
+
Rt,
|
|
581
603
|
{
|
|
582
604
|
className: "tableMobileDrawer",
|
|
583
|
-
open:
|
|
605
|
+
open: rt,
|
|
584
606
|
placement: "bottom",
|
|
585
607
|
height: "auto",
|
|
586
608
|
closable: !1,
|
|
587
|
-
onClose:
|
|
588
|
-
children: /* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */
|
|
609
|
+
onClose: we,
|
|
610
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: "drawerBox", children: [
|
|
611
|
+
/* @__PURE__ */ n.jsx("div", { className: "boxBody", children: lt ? /* @__PURE__ */ n.jsx("div", { className: "operaList", children: /* @__PURE__ */ n.jsx(Lt, {}) }) : Z.map((e, t) => /* @__PURE__ */ n.jsx(
|
|
590
612
|
"div",
|
|
591
613
|
{
|
|
592
614
|
className: "operaList",
|
|
593
|
-
onClick: () =>
|
|
615
|
+
onClick: () => it(e, t),
|
|
594
616
|
...e.danger && {
|
|
595
|
-
style: { color:
|
|
617
|
+
style: { color: j.colorError }
|
|
596
618
|
},
|
|
597
619
|
children: e.label
|
|
598
620
|
},
|
|
599
621
|
t
|
|
600
622
|
)) }),
|
|
601
|
-
/* @__PURE__ */
|
|
602
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ n.jsx("div", { className: "boxLine" }),
|
|
624
|
+
/* @__PURE__ */ n.jsx("div", { className: "boxFooter", onClick: we, children: Xe })
|
|
603
625
|
] })
|
|
604
626
|
}
|
|
605
627
|
)
|
|
@@ -608,7 +630,7 @@ function Ft({
|
|
|
608
630
|
}
|
|
609
631
|
);
|
|
610
632
|
}
|
|
611
|
-
const
|
|
633
|
+
const qs = (D) => /* @__PURE__ */ n.jsx(Ot, { initValue: D, children: /* @__PURE__ */ n.jsx(ts, { ...D }) });
|
|
612
634
|
export {
|
|
613
|
-
|
|
635
|
+
qs as default
|
|
614
636
|
};
|