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