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