bitz-react-admin-ui 1.6.5 → 1.6.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/README.md +2 -2
- package/dist/bitz-ui.mjs +126 -120
- package/dist/components/BitzFluentInput/index.mjs +20 -17
- package/dist/components/BitzFluentSelect/index.mjs +20 -18
- package/dist/components/BitzList/List.mjs +28 -0
- package/dist/components/BitzList/LoadMore.mjs +69 -0
- package/dist/components/BitzList/index.less.mjs +4 -0
- package/dist/components/BitzList/index.mjs +6 -0
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +113 -0
- package/dist/components/BitzPullRefresh/index.mjs +6 -0
- package/dist/components/BitzPullRefresh/style/index.less.mjs +4 -0
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +133 -94
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +64 -0
- package/dist/components/BitzTable/ActionBar/Button.mjs +10 -0
- package/dist/components/BitzTable/ActionBar/index.mjs +6 -60
- package/dist/components/BitzTable/ActionBar/style.mjs +36 -32
- package/dist/components/BitzTable/ActionCol/index.mjs +29 -28
- package/dist/components/BitzTable/Table/index.mjs +302 -253
- package/dist/components/BitzTable/TableSkeleton/index.mjs +46 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +179 -173
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/DndItem.mjs +28 -26
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +10 -9
- package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +1 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +28 -25
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +3 -2
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +23 -14
- package/dist/components/BitzTable/ToolBar/style.mjs +29 -20
- package/dist/hooks/use-event-listener.mjs +40 -0
- package/dist/hooks/use-lock-fn.mjs +21 -0
- package/dist/hooks/use-scroll-parent.mjs +34 -0
- package/dist/hooks/use-touch.mjs +33 -0
- package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +751 -1050
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSetState/index.mjs +16 -0
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_root.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +55 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObject.mjs +8 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/now.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/throttle.mjs +19 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/node_modules/.store/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs +48 -37
- package/dist/node_modules/_clsx@2.1.0@clsx/dist/clsx.mjs +23 -0
- package/dist/style.css +1 -1
- package/dist/type/bitz-ui.d.ts +2 -0
- package/dist/type/components/BitzList/List.d.ts +4 -0
- package/dist/type/components/BitzList/LoadMore.d.ts +4 -0
- package/dist/type/components/BitzList/PropsType.d.ts +35 -0
- package/dist/type/components/BitzList/index.d.ts +5 -0
- package/dist/type/components/BitzPagination/index.d.ts +8 -2
- package/dist/type/components/BitzPullRefresh/PropsType.d.ts +43 -0
- package/dist/type/components/BitzPullRefresh/PullRefresh.d.ts +4 -0
- package/dist/type/components/BitzPullRefresh/index.d.ts +5 -0
- package/dist/type/components/BitzSelect/component/BitzSelectMobile.d.ts +1 -0
- package/dist/type/components/BitzTable/ActionBar/ActionBar.d.ts +37 -0
- package/dist/type/components/BitzTable/ActionBar/Button.d.ts +6 -0
- package/dist/type/components/BitzTable/ActionBar/index.d.ts +6 -33
- package/dist/type/components/BitzTable/ActionBar/style.d.ts +2 -2
- package/dist/type/components/BitzTable/Store/index.d.ts +2 -3
- package/dist/type/components/BitzTable/Table/index.d.ts +2 -2
- package/dist/type/components/BitzTable/TableSkeleton/index.d.ts +1 -1
- package/dist/type/components/BitzTable/ToolBar/ExportIcon/index.d.ts +2 -1
- package/dist/type/components/BitzTable/ToolBar/style.d.ts +1 -2
- package/dist/type/components/BitzTable/index.d.ts +6 -7
- package/dist/type/hooks/use-event-listener.d.ts +11 -0
- package/dist/type/hooks/use-lock-fn.d.ts +2 -0
- package/dist/type/hooks/use-scroll-parent.d.ts +9 -0
- package/dist/type/hooks/use-touch.d.ts +18 -0
- package/dist/type/pages/Login2/useRowSelection.d.ts +6 -4
- package/dist/type/pages/Test/index.d.ts +3 -0
- package/dist/type/utils/get-default-props.d.ts +2 -0
- package/dist/type/utils/scroll.d.ts +6 -0
- package/dist/utils/get-default-props.mjs +12 -0
- package/dist/utils/scroll.mjs +15 -0
- package/package.json +2 -1
|
@@ -1,285 +1,334 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import { theme as ze, Table as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
1
|
+
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as ve, useState as J, useMemo as g, useRef as P, useEffect as Me, useCallback as ke } 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 { theme as ze, Table as A, Skeleton as Le } from "antd";
|
|
5
|
+
import We from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import He from "../../BitzDrawer/index.mjs";
|
|
7
|
+
import Pe from "../../BitzPagination/index.mjs";
|
|
8
|
+
import Ae from "../../BitzNoData/index.mjs";
|
|
9
|
+
import "../../BitzList/index.less.mjs";
|
|
10
|
+
import Se from "../../BitzList/List.mjs";
|
|
11
|
+
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
+
import Ee from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
|
+
import Oe, { TableContext as Ve } from "../Store/index.mjs";
|
|
14
|
+
import _e from "../TableSkeleton/index.mjs";
|
|
15
|
+
import { columnSort as Q, genColumnKey as Y } from "../Store/utils/index.mjs";
|
|
16
|
+
import S from "../../../node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSize/index.mjs";
|
|
17
|
+
import $e from "../ActionCol/style.mjs";
|
|
13
18
|
import "./index.less.mjs";
|
|
14
|
-
import
|
|
15
|
-
function
|
|
16
|
-
showPagination:
|
|
17
|
-
fillEvenRow:
|
|
18
|
-
evenRowBgColor:
|
|
19
|
-
height:
|
|
20
|
-
dataSource:
|
|
21
|
-
total:
|
|
22
|
-
columns:
|
|
23
|
-
loading:
|
|
24
|
-
skeletonNum:
|
|
25
|
-
skeletonRender:
|
|
26
|
-
skeletonRowNum:
|
|
27
|
-
skeletonRowsWidth:
|
|
28
|
-
mobileLoadEmit:
|
|
29
|
-
|
|
30
|
-
mobileRefreshEmit: Z = () => {
|
|
31
|
-
},
|
|
19
|
+
import De from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
20
|
+
function Ke({
|
|
21
|
+
showPagination: B = !0,
|
|
22
|
+
fillEvenRow: E = !0,
|
|
23
|
+
evenRowBgColor: Re = "#f9f9f9",
|
|
24
|
+
height: w,
|
|
25
|
+
dataSource: s = [],
|
|
26
|
+
total: k = 0,
|
|
27
|
+
columns: u,
|
|
28
|
+
loading: j = !1,
|
|
29
|
+
skeletonNum: Z = 2,
|
|
30
|
+
skeletonRender: O,
|
|
31
|
+
skeletonRowNum: I = 4,
|
|
32
|
+
skeletonRowsWidth: ee = ["35%", "100%", "100%", "60%"],
|
|
33
|
+
mobileLoadEmit: oe,
|
|
34
|
+
mobileRefreshEmit: V,
|
|
32
35
|
operationFilter: z,
|
|
33
|
-
enableControlPage:
|
|
34
|
-
pagination:
|
|
35
|
-
paginationEmit:
|
|
36
|
+
enableControlPage: te,
|
|
37
|
+
pagination: le,
|
|
38
|
+
paginationEmit: re = () => {
|
|
36
39
|
},
|
|
37
|
-
mobilePageHeight:
|
|
38
|
-
mobileCancelText:
|
|
39
|
-
noDataTitle:
|
|
40
|
-
noDataImg:
|
|
41
|
-
color:
|
|
42
|
-
size:
|
|
40
|
+
mobilePageHeight: qe = 500,
|
|
41
|
+
mobileCancelText: ne = "取消",
|
|
42
|
+
noDataTitle: se,
|
|
43
|
+
noDataImg: ae,
|
|
44
|
+
color: Ge,
|
|
45
|
+
size: _,
|
|
43
46
|
showTableTool: ie = !0,
|
|
44
|
-
tableAction:
|
|
45
|
-
tableToolbar:
|
|
46
|
-
selectionBar:
|
|
47
|
-
scroll:
|
|
48
|
-
resetPage:
|
|
49
|
-
...
|
|
47
|
+
tableAction: ce,
|
|
48
|
+
tableToolbar: he,
|
|
49
|
+
selectionBar: de,
|
|
50
|
+
scroll: c,
|
|
51
|
+
resetPage: fe,
|
|
52
|
+
...h
|
|
50
53
|
}) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
var X;
|
|
55
|
+
const { token: d } = ze.useToken(), { gap: xe } = $e(), f = ve(Ve), [be, L] = J(!1), ge = g(() => !!(s != null && s.length) && (s == null ? void 0 : s.length) >= k, [s, k]), [ue, Ce] = J([]), pe = (e, o) => {
|
|
56
|
+
var l;
|
|
57
|
+
const r = (l = z == null ? void 0 : z(e, o)) == null ? void 0 : l.filter(
|
|
58
|
+
(n) => n.type !== "divider"
|
|
55
59
|
);
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
+
r != null && r.length && (Ce(r), L(!0));
|
|
61
|
+
}, $ = () => {
|
|
62
|
+
L(!1);
|
|
63
|
+
}, ye = (e) => {
|
|
64
|
+
var o;
|
|
65
|
+
L(!1), (o = e.onClick) == null || o.call(e);
|
|
66
|
+
}, C = P(null), p = S(C), N = P(null), W = S(N), D = P(null), y = S(D), we = () => {
|
|
67
|
+
var r;
|
|
68
|
+
const e = (r = N.current) == null ? void 0 : r.querySelectorAll(
|
|
69
|
+
".ant-table-body tr:not(.ant-table-measure-row)"
|
|
70
|
+
), o = [];
|
|
71
|
+
if (e == null || e.forEach((l) => {
|
|
72
|
+
var n;
|
|
73
|
+
o.push(
|
|
74
|
+
((n = l.querySelector(".operationCol .actionGroup")) == null ? void 0 : n.clientWidth) || 0
|
|
75
|
+
);
|
|
76
|
+
}), o.length)
|
|
77
|
+
return Math.ceil(Math.max(...o)) + xe * 2;
|
|
78
|
+
}, K = () => {
|
|
60
79
|
var n;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
o = parseInt(f.getPropertyValue("--toolCell-width"));
|
|
80
|
+
const e = (n = N.current) == null ? void 0 : n.querySelector(
|
|
81
|
+
".ant-table-body"
|
|
82
|
+
), o = e == null ? void 0 : e.clientWidth, r = ((e == null ? void 0 : e.offsetWidth) || 0) - o, l = r > 0;
|
|
83
|
+
return { tbodyWidth: o, scrollBarWidth: r, hasScrollBar: l };
|
|
84
|
+
}, me = (e) => {
|
|
85
|
+
const o = e.length, r = e.filter((b) => b.width), n = r.map((b) => b.width).reduce((b, Te) => b + Te, 0);
|
|
86
|
+
let a = 0;
|
|
87
|
+
if (C.current) {
|
|
88
|
+
const b = window.getComputedStyle(C.current);
|
|
89
|
+
a = parseInt(b.getPropertyValue("--toolCell-width"));
|
|
72
90
|
}
|
|
73
|
-
let
|
|
74
|
-
|
|
75
|
-
const
|
|
76
|
-
return
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
let i = 0;
|
|
92
|
+
h.rowSelection && (i += a), h.expandable && (i += a);
|
|
93
|
+
const { tbodyWidth: v } = K(), x = parseInt(`${T.x}`) || 0, Ne = Math.max(x, v), F = (parseInt(`${Ne}`) || 0) - n - i;
|
|
94
|
+
return F >= 0 ? F / (o - r.length) : void 0;
|
|
95
|
+
}, { y: H, hasScrollBar: R } = g(() => {
|
|
96
|
+
if (typeof w > "u")
|
|
97
|
+
return {};
|
|
98
|
+
const { hasScrollBar: e } = K();
|
|
99
|
+
let o = 40, r = 40, l = 10;
|
|
100
|
+
if (C.current) {
|
|
101
|
+
const x = window.getComputedStyle(C.current);
|
|
102
|
+
o = parseInt(x.getPropertyValue("--cell-block")), r = parseInt(x.getPropertyValue("--toolbar-height")), l = parseInt(x.getPropertyValue("--container-gap")) || 0;
|
|
103
|
+
}
|
|
104
|
+
const n = (y == null ? void 0 : y.height) || 0, a = n ? l : 0;
|
|
105
|
+
return { y: w - n - a - r - o, hasScrollBar: e };
|
|
106
|
+
}, [
|
|
107
|
+
w,
|
|
108
|
+
y == null ? void 0 : y.height,
|
|
109
|
+
p == null ? void 0 : p.height,
|
|
110
|
+
W == null ? void 0 : W.height
|
|
111
|
+
]), T = g(() => c != null && c.x ? { x: c.x, y: c.y || H } : c != null && c.y ? { x: 1e3, y: c.y } : { x: 1e3, y: H }, [c, H]), m = g(() => {
|
|
112
|
+
const e = (a) => a.map((i) => {
|
|
113
|
+
const v = Y(
|
|
114
|
+
(i == null ? void 0 : i.key) || (i == null ? void 0 : i.dataIndex),
|
|
115
|
+
i.index
|
|
116
|
+
), x = f.columnsMap[v];
|
|
117
|
+
return x && x.show === !1 ? !1 : i.children ? {
|
|
118
|
+
...i,
|
|
119
|
+
children: e(i.children)
|
|
120
|
+
} : i;
|
|
121
|
+
}).filter(Boolean), o = e(u);
|
|
122
|
+
if (M)
|
|
123
|
+
return o.sort(Q(f.columnsMap));
|
|
124
|
+
const r = o.sort(Q(f.columnsMap)), l = me(r), n = r.map((a) => ({
|
|
125
|
+
...a,
|
|
126
|
+
...a.width ? {
|
|
127
|
+
width: a.useMaxWidth ? we() ?? a.width : a.width
|
|
128
|
+
} : {
|
|
93
129
|
// 给未设置width的列设置平均数
|
|
94
|
-
width:
|
|
130
|
+
width: l
|
|
95
131
|
}
|
|
96
132
|
}));
|
|
97
|
-
return [
|
|
133
|
+
return [A.SELECTION_COLUMN, A.EXPAND_COLUMN, ...n];
|
|
98
134
|
}, [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
135
|
+
f.columnsMap,
|
|
136
|
+
u,
|
|
137
|
+
M,
|
|
138
|
+
T.x,
|
|
139
|
+
h.rowSelection,
|
|
140
|
+
h.expandable,
|
|
141
|
+
p == null ? void 0 : p.height
|
|
105
142
|
]);
|
|
106
|
-
|
|
107
|
-
if (
|
|
108
|
-
const e =
|
|
109
|
-
(
|
|
143
|
+
Me(() => {
|
|
144
|
+
if (u && u.length > 0) {
|
|
145
|
+
const e = u.map(
|
|
146
|
+
(o) => (
|
|
110
147
|
// @ts-ignore
|
|
111
|
-
|
|
148
|
+
Y((o == null ? void 0 : o.key) ?? (o == null ? void 0 : o.dataIndex), o == null ? void 0 : o.dataIndex)
|
|
112
149
|
)
|
|
113
150
|
);
|
|
114
|
-
|
|
151
|
+
f.setSortKeyColumns(e);
|
|
115
152
|
}
|
|
116
|
-
}, [
|
|
117
|
-
const {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
)
|
|
153
|
+
}, [u]);
|
|
154
|
+
const q = g(() => `${_ ?? (f == null ? void 0 : f.tableSize) ?? "lg"}BitzTable`, [_, f.tableSize]), Be = g(() => We(
|
|
155
|
+
"bitzTableContainer",
|
|
156
|
+
/* "hideBorder", */
|
|
157
|
+
{ hasScrollBar: R },
|
|
158
|
+
q
|
|
159
|
+
), [q, R]), je = g(() => {
|
|
160
|
+
var e, o, r, l, n;
|
|
161
|
+
return {
|
|
162
|
+
height: w,
|
|
163
|
+
"--toolbar-bgColor": (e = d.Table) == null ? void 0 : e.toolbarBgColor,
|
|
164
|
+
"--thead-bgColor": (o = d.Table) == null ? void 0 : o.theadBgColor,
|
|
165
|
+
"--thead-hoverBgColor": (r = d.Table) == null ? void 0 : r.theadHoverBgColor,
|
|
166
|
+
"--evenRow-BgColor": (l = d.Table) == null ? void 0 : l.evenRowBgColor,
|
|
167
|
+
"--expandIcon-borderColor": (n = d.Table) == null ? void 0 : n.expandIconBorderColor
|
|
168
|
+
// '--tableBody-bootomBorderColor': token.Table?.borderColor || '#f0f0f0',
|
|
169
|
+
};
|
|
170
|
+
}, [w]), G = ke(
|
|
171
|
+
(e, o) => E ? o % 2 === 0 ? "oddRow" : "evenRow" : "",
|
|
172
|
+
[E]
|
|
173
|
+
), U = /* @__PURE__ */ t.jsx(
|
|
174
|
+
Se,
|
|
175
|
+
{
|
|
176
|
+
finished: ge,
|
|
177
|
+
onLoad: oe,
|
|
178
|
+
loadingText: "加载中...",
|
|
179
|
+
finishedText: "没有更多了",
|
|
180
|
+
errorText: "加载失败",
|
|
181
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
182
|
+
"div",
|
|
183
|
+
{
|
|
184
|
+
className: "mobileList",
|
|
185
|
+
style: { backgroundColor: (X = d.Table) == null ? void 0 : X.mobileListBgColor },
|
|
186
|
+
children: [
|
|
187
|
+
s == null ? void 0 : s.map((e, o) => {
|
|
188
|
+
var r;
|
|
189
|
+
return /* @__PURE__ */ t.jsx(
|
|
190
|
+
"div",
|
|
191
|
+
{
|
|
192
|
+
className: "listItem",
|
|
193
|
+
style: { backgroundColor: (r = d.Table) == null ? void 0 : r.listItemBgColor },
|
|
194
|
+
onClick: () => pe(e, o),
|
|
195
|
+
children: m == null ? void 0 : m.map((l, n) => {
|
|
196
|
+
var a;
|
|
197
|
+
return !(l != null && l.mobileHide) && /* @__PURE__ */ t.jsxs(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
className: "row",
|
|
201
|
+
style: { color: d.colorText },
|
|
202
|
+
children: [
|
|
203
|
+
!l.mobileHideLabel && /* @__PURE__ */ t.jsxs("div", { className: "label", children: [
|
|
204
|
+
`${l.title}`,
|
|
205
|
+
":"
|
|
206
|
+
] }),
|
|
207
|
+
/* @__PURE__ */ t.jsx("div", { className: "value", children: ((a = l == null ? void 0 : l.render) == null ? void 0 : a.call(
|
|
208
|
+
l,
|
|
209
|
+
De(e, (l == null ? void 0 : l.dataIndex) || ""),
|
|
210
|
+
e,
|
|
211
|
+
o
|
|
212
|
+
)) || (e == null ? void 0 : e[l.dataIndex]) })
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
n
|
|
216
|
+
);
|
|
217
|
+
})
|
|
218
|
+
},
|
|
219
|
+
o
|
|
220
|
+
);
|
|
221
|
+
}),
|
|
222
|
+
j && Array.from({ length: Z }).map((e, o) => {
|
|
223
|
+
var r;
|
|
224
|
+
return /* @__PURE__ */ t.jsx(
|
|
225
|
+
"div",
|
|
226
|
+
{
|
|
227
|
+
className: "listItem",
|
|
228
|
+
style: { backgroundColor: (r = d.Table) == null ? void 0 : r.listItemBgColor },
|
|
229
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "row", children: O ? O() : /* @__PURE__ */ t.jsx(
|
|
230
|
+
Le,
|
|
231
|
+
{
|
|
232
|
+
title: !1,
|
|
233
|
+
paragraph: {
|
|
234
|
+
rows: I,
|
|
235
|
+
width: ee
|
|
236
|
+
},
|
|
237
|
+
active: !0
|
|
238
|
+
}
|
|
239
|
+
) })
|
|
240
|
+
},
|
|
241
|
+
o
|
|
242
|
+
);
|
|
243
|
+
})
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
)
|
|
128
247
|
}
|
|
129
|
-
const l = y == null ? void 0 : y.height;
|
|
130
|
-
return { y: C - (l || 0) - n - e };
|
|
131
|
-
}, [C, y == null ? void 0 : y.height, g == null ? void 0 : g.height]), $ = x(() => i != null && i.x ? { x: i.x, y: i.y || M } : i != null && i.y ? { x: 1e3, y: i.y } : { x: 1e3, y: M }, [i, M]), Ne = x(() => `${O ?? (d == null ? void 0 : d.tableSize) ?? "lg"}BitzTable`, [O, d.tableSize]), D = x(() => ({
|
|
132
|
-
"--evenRow-BgColor": H
|
|
133
|
-
// '--tableBody-bootomBorderColor': token.Table?.borderColor || '#f0f0f0',
|
|
134
|
-
}), [
|
|
135
|
-
H
|
|
136
|
-
/** token.Table?.borderColor */
|
|
137
|
-
]), K = Be(
|
|
138
|
-
(e, n) => A ? n % 2 === 0 ? "oddRow" : "evenRow" : "",
|
|
139
|
-
[A]
|
|
140
248
|
);
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
-
!
|
|
143
|
-
"div",
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
paginationEmit: ne
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
),
|
|
198
|
-
v && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
199
|
-
(w || (r == null ? void 0 : r.length) > 0) && /* @__PURE__ */ s.jsx(
|
|
200
|
-
Me,
|
|
249
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "bitzTableBlock", children: [
|
|
250
|
+
!M && /* @__PURE__ */ t.jsxs("div", { ref: C, className: Be, style: je, children: [
|
|
251
|
+
/* @__PURE__ */ t.jsxs("div", { className: "bitzTableContainerBody", ref: N, children: [
|
|
252
|
+
ie && /* @__PURE__ */ t.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
253
|
+
ce || /* @__PURE__ */ t.jsx("div", {}),
|
|
254
|
+
he,
|
|
255
|
+
(h == null ? void 0 : h.rowSelection) && /* @__PURE__ */ t.jsx(t.Fragment, { children: de })
|
|
256
|
+
] }),
|
|
257
|
+
/* @__PURE__ */ t.jsx(
|
|
258
|
+
A,
|
|
259
|
+
{
|
|
260
|
+
columns: m,
|
|
261
|
+
dataSource: s,
|
|
262
|
+
loading: !1,
|
|
263
|
+
pagination: !1,
|
|
264
|
+
scroll: T,
|
|
265
|
+
...h,
|
|
266
|
+
rowClassName: G
|
|
267
|
+
}
|
|
268
|
+
),
|
|
269
|
+
/* @__PURE__ */ t.jsx(
|
|
270
|
+
_e,
|
|
271
|
+
{
|
|
272
|
+
columns: m,
|
|
273
|
+
dataLength: s.length,
|
|
274
|
+
scroll: T,
|
|
275
|
+
rowSelection: h.rowSelection,
|
|
276
|
+
expandable: h.expandable,
|
|
277
|
+
rowClassName: G,
|
|
278
|
+
loading: j
|
|
279
|
+
}
|
|
280
|
+
)
|
|
281
|
+
] }),
|
|
282
|
+
B && /* @__PURE__ */ t.jsx(
|
|
283
|
+
Pe,
|
|
284
|
+
{
|
|
285
|
+
elRefInstance: D,
|
|
286
|
+
enableControl: te,
|
|
287
|
+
pagination: le,
|
|
288
|
+
total: k,
|
|
289
|
+
dataSource: s,
|
|
290
|
+
resetPage: fe,
|
|
291
|
+
paginationEmit: re
|
|
292
|
+
}
|
|
293
|
+
)
|
|
294
|
+
] }),
|
|
295
|
+
M && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
296
|
+
(j || (s == null ? void 0 : s.length) > 0) && /* @__PURE__ */ t.jsx(t.Fragment, { children: V ? /* @__PURE__ */ t.jsx(Ee, { onRefresh: V, children: U }) : U }),
|
|
297
|
+
!j && /* @__PURE__ */ t.jsx(Ae, { data: s, title: se, img: ae }),
|
|
298
|
+
/* @__PURE__ */ t.jsx(
|
|
299
|
+
He,
|
|
201
300
|
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
301
|
+
className: "tableMobileDrawer",
|
|
302
|
+
open: be,
|
|
303
|
+
placement: "bottom",
|
|
304
|
+
height: "auto",
|
|
305
|
+
closable: !1,
|
|
306
|
+
onClose: $,
|
|
307
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: "drawerBox", children: [
|
|
308
|
+
/* @__PURE__ */ t.jsx("div", { className: "boxBody", children: ue.map((e, o) => /* @__PURE__ */ t.jsx(
|
|
210
309
|
"div",
|
|
211
310
|
{
|
|
212
|
-
className: "
|
|
213
|
-
onClick: () => ye(e
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
var c;
|
|
217
|
-
return /* @__PURE__ */ s.jsx("div", { children: !(l != null && l.mobileHideRow) && /* @__PURE__ */ s.jsxs("div", { className: "row", children: [
|
|
218
|
-
!l.mobileHideLabel && /* @__PURE__ */ s.jsxs("div", { className: "label", children: [
|
|
219
|
-
`${l.title}`,
|
|
220
|
-
":"
|
|
221
|
-
] }),
|
|
222
|
-
/* @__PURE__ */ s.jsx("div", { className: "value", children: ((c = l == null ? void 0 : l.render) == null ? void 0 : c.call(
|
|
223
|
-
l,
|
|
224
|
-
Oe(e, (l == null ? void 0 : l.dataIndex) || ""),
|
|
225
|
-
e,
|
|
226
|
-
n
|
|
227
|
-
)) || (e == null ? void 0 : e[l.dataIndex]) })
|
|
228
|
-
] }) }, h);
|
|
229
|
-
}
|
|
230
|
-
) })
|
|
231
|
-
},
|
|
232
|
-
n
|
|
233
|
-
)),
|
|
234
|
-
w && Array.from({ length: G }).map((e, n) => /* @__PURE__ */ s.jsx("div", { className: "mobileTableRow", children: /* @__PURE__ */ s.jsx("div", { className: "rowBox", children: W ? W() : /* @__PURE__ */ s.jsx(
|
|
235
|
-
Te,
|
|
236
|
-
{
|
|
237
|
-
title: !1,
|
|
238
|
-
paragraph: {
|
|
239
|
-
rows: J,
|
|
240
|
-
width: Q
|
|
311
|
+
className: "operaList",
|
|
312
|
+
onClick: () => ye(e),
|
|
313
|
+
...e.danger && {
|
|
314
|
+
style: { color: d.colorError }
|
|
241
315
|
},
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
className: "tableMobileDrawer",
|
|
249
|
-
open: xe,
|
|
250
|
-
placement: "bottom",
|
|
251
|
-
height: "auto",
|
|
252
|
-
closable: !1,
|
|
253
|
-
onClose: P,
|
|
254
|
-
children: /* @__PURE__ */ s.jsxs("div", { className: "drawerBox", children: [
|
|
255
|
-
/* @__PURE__ */ s.jsx("div", { className: "boxBody", children: ue.map((e, n) => /* @__PURE__ */ s.jsx(
|
|
256
|
-
"div",
|
|
257
|
-
{
|
|
258
|
-
className: "operaList",
|
|
259
|
-
onClick: () => we(e),
|
|
260
|
-
...e.danger && {
|
|
261
|
-
style: { color: fe.colorError }
|
|
262
|
-
},
|
|
263
|
-
children: e.label
|
|
264
|
-
},
|
|
265
|
-
n
|
|
266
|
-
)) }),
|
|
267
|
-
/* @__PURE__ */ s.jsx("div", { className: "boxLine" }),
|
|
268
|
-
/* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: P, children: le })
|
|
269
|
-
] })
|
|
270
|
-
}
|
|
271
|
-
)
|
|
316
|
+
children: e.label
|
|
317
|
+
},
|
|
318
|
+
o
|
|
319
|
+
)) }),
|
|
320
|
+
/* @__PURE__ */ t.jsx("div", { className: "boxLine" }),
|
|
321
|
+
/* @__PURE__ */ t.jsx("div", { className: "boxFooter", onClick: $, children: ne })
|
|
272
322
|
] })
|
|
273
323
|
}
|
|
274
|
-
)
|
|
275
|
-
!w && /* @__PURE__ */ s.jsx(Le, { data: r, title: re, img: te })
|
|
324
|
+
)
|
|
276
325
|
] })
|
|
277
326
|
] });
|
|
278
327
|
}
|
|
279
|
-
const
|
|
328
|
+
const fo = (B) => (
|
|
280
329
|
// @ts-ignore
|
|
281
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ t.jsx(Oe, { initValue: B, children: /* @__PURE__ */ t.jsx(Ke, { ...B }) })
|
|
282
331
|
);
|
|
283
332
|
export {
|
|
284
|
-
|
|
333
|
+
fo as default
|
|
285
334
|
};
|