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