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