bitz-react-admin-ui 2.9.1 → 2.10.1

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.
@@ -1,711 +1,671 @@
1
- import { j as n } from "../../../node_modules/react/jsx-runtime.mjs";
2
- import { useRef as I, useContext as Ae, useState as G, useEffect as we, useMemo as a, useLayoutEffect as Fe, useCallback as de } from "react";
3
- import { isMobile as z } from "../../../node_modules/react-device-detect/dist/lib.mjs";
4
- import { Typography as ge, Skeleton as Ut, Alert as Xt, Table as Zt, Spin as vt } from "antd";
5
- import he from "../../../node_modules/classnames/index.mjs";
6
- import Et from "../../BitzDrawer/index.mjs";
7
- import At from "../../BitzPagination/index.mjs";
8
- import Ft from "../../BitzNoData/index.mjs";
1
+ import { j as r } from "../../../node_modules/react/jsx-runtime.mjs";
2
+ import { useRef as O, useContext as De, useState as G, useEffect as Je, useMemo as h, useLayoutEffect as Qe, useCallback as ce } from "react";
3
+ import { isMobile as g } from "../../../node_modules/react-device-detect/dist/lib.mjs";
4
+ import { Typography as xe, Skeleton as Gt, Alert as It, Table as Yt, Spin as Dt } from "antd";
5
+ import ie from "../../../node_modules/classnames/index.mjs";
6
+ import Jt from "../../BitzDrawer/index.mjs";
7
+ import Qt from "../../BitzPagination/index.mjs";
8
+ import Rt from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
- import es from "../../BitzList/List.mjs";
10
+ import Ut from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
- import ts from "../../BitzPullRefresh/PullRefresh.mjs";
13
- import ss, { BitzTableContext as rs, toolCols as ns } from "../Store/index.mjs";
14
- import { loopFilter as os, columnSort as ls, genColumnKey as Te } from "../Store/utils/index.mjs";
15
- import is from "../../BitzTheme/index.mjs";
16
- import { tablePaddingInline as cs } from "../../BitzConfigProvider/context.mjs";
17
- import et from "../../BitzHighlight/index.mjs";
18
- import as from "../../../node_modules/antd/es/table/ExpandIcon.mjs";
12
+ import Xt from "../../BitzPullRefresh/PullRefresh.mjs";
13
+ import Zt, { BitzTableContext as Et, toolCols as pt } from "../Store/index.mjs";
14
+ import { loopFilter as At, columnSort as Ft, genColumnKey as es } from "../Store/utils/index.mjs";
15
+ import ts from "../../BitzTheme/index.mjs";
16
+ import { tablePaddingInline as ss } from "../../BitzConfigProvider/context.mjs";
17
+ import Re from "../../BitzHighlight/index.mjs";
18
+ import rs from "../../../node_modules/antd/es/table/ExpandIcon.mjs";
19
19
  import "../../../node_modules/antd/es/config-provider/index.mjs";
20
- import us from "../../../node_modules/antd/locale/en_US.mjs";
21
- import { getColumnsWithTool as ds, loopBuildSkeleton as hs, resetScroll as tt } from "./utils.mjs";
22
- import { getCssVar as fs } from "./style.mjs";
23
- import ms from "./SortableRow.mjs";
24
- import bs from "./SortTableContext.mjs";
25
- import ys from "./ResizableTitle copy.mjs";
26
- import Cs from "../TextOverflow/index.mjs";
20
+ import ns from "../../../node_modules/antd/locale/en_US.mjs";
21
+ import { getColumnsWithTool as ls, resetScroll as Ue } from "./utils.mjs";
22
+ import { getCssVar as os } from "./style.mjs";
23
+ import cs from "./SortableRow.mjs";
24
+ import is from "./SortTableContext.mjs";
25
+ import us from "./ResizableTitle copy.mjs";
26
+ import as from "../TextOverflow/index.mjs";
27
27
  import "./index.less.mjs";
28
- import { querySelectorAll as xs, querySelector as ws } from "../../../utils/select-query.mjs";
29
- import { TdCell as gs } from "./TdCell.mjs";
30
- import Ts from "../../../node_modules/lodash-es/isNil.mjs";
31
- import { ConfigContext as js } from "../../../node_modules/antd/es/config-provider/context.mjs";
32
- import ks from "../../../node_modules/lodash-es/at.mjs";
33
- function zs({
34
- showPagination: Z = !0,
35
- height: q,
36
- minHeight: te,
37
- dataSource: T,
38
- total: K = 0,
39
- columns: fe,
40
- loading: u,
41
- loadingType: st,
42
- dataProps: rt = {},
43
- skeletonNum: se = {
28
+ import { querySelectorAll as ds, querySelector as hs } from "../../../utils/select-query.mjs";
29
+ import { TdCell as fs } from "./TdCell.mjs";
30
+ import ms from "../../../node_modules/lodash-es/isNil.mjs";
31
+ import { ConfigContext as bs } from "../../../node_modules/antd/es/config-provider/context.mjs";
32
+ import ys from "../../../node_modules/lodash-es/at.mjs";
33
+ function Cs({
34
+ showPagination: R = !0,
35
+ height: H,
36
+ minHeight: ue,
37
+ dataSource: z,
38
+ total: M = 0,
39
+ columns: ae,
40
+ loading: a,
41
+ dataProps: Xe = {},
42
+ skeletonNum: we = {
44
43
  pc: 10,
45
44
  mobile: 10
46
45
  },
47
- skeletonRender: me,
48
- skeletonRowNum: nt = 4,
49
- skeletonRowsWidth: ot = ["35%", "100%", "100%", "60%"],
46
+ skeletonRender: de,
47
+ skeletonRowNum: Ze = 4,
48
+ skeletonRowsWidth: Ee = ["35%", "100%", "100%", "60%"],
50
49
  // mobileLoadEmit,
51
- mobileRefreshEmit: je,
52
- operationFilter: f,
53
- enableControlPage: lt,
54
- pagination: B,
55
- paginationEmit: Y = () => {
50
+ mobileRefreshEmit: ge,
51
+ operationFilter: d,
52
+ enableControlPage: pe,
53
+ pagination: x,
54
+ paginationEmit: I = () => {
56
55
  },
57
- onChange: be,
58
- enabledRowDragSort: J,
59
- onRowDragEnd: ye,
60
- resizableColumns: re,
56
+ onChange: he,
57
+ enabledRowDragSort: Y,
58
+ onRowDragEnd: fe,
59
+ resizableColumns: F,
61
60
  // mobilePageHeight = 500,
62
- mobileCancelText: it = "取消",
63
- noDataTitle: ct,
64
- noDataImg: at,
61
+ mobileCancelText: Ae = "取消",
62
+ noDataTitle: Fe,
63
+ noDataImg: et,
65
64
  // color,
66
- size: ke,
67
- showTableTool: ut = !0,
68
- tableAction: dt,
69
- tableToolbar: ht,
70
- selectionBar: ft,
71
- scroll: m,
72
- components: O,
73
- expandable: H,
74
- rowSelection: D,
75
- selectionAlert: y,
76
- resetPage: mt,
77
- inview: ze = !0,
78
- ...c
65
+ size: Te,
66
+ showTableTool: tt = !0,
67
+ tableAction: st,
68
+ tableToolbar: rt,
69
+ selectionBar: nt,
70
+ scroll: f,
71
+ components: P,
72
+ expandable: k,
73
+ rowSelection: V,
74
+ selectionAlert: C,
75
+ resetPage: lt,
76
+ inview: je,
77
+ ...u
79
78
  }) {
80
- var Ye, Je;
81
- const { token: P } = is.useToken(), Ne = I([]), { Table: b } = P, We = b.tableSpaceBetweenPage ?? 10, bt = b.cellPaddingInline ?? cs, ne = b.minHeight ?? 500, { showColumnBorder: oe, hideRowBorder: Be, rowHoverable: yt, ...i } = Ae(rs), [Ct, le] = G(!1), [N, xt] = G([]);
82
- we(() => {
83
- let e = [...T ?? []];
84
- (B == null ? void 0 : B.page) !== 1 && (e = [...N, ...e]), xt(e);
85
- }, [z ? T : 0]);
86
- const Se = a(() => !!(N != null && N.length) && (N == null ? void 0 : N.length) >= K, [N, K]), [ie, wt] = G([]), [gt, Me] = G(!1), Tt = async (e, t) => {
87
- var o, l, x;
88
- let s, r = !1;
89
- if (typeof f == "function")
90
- s = (o = f == null ? void 0 : f(e, t)) == null ? void 0 : o.filter(
91
- (h) => h.type !== "divider"
79
+ var ve, _e, Ge;
80
+ const { token: W } = ts.useToken(), ze = O([]), { Table: m } = W, Ne = m.tableSpaceBetweenPage ?? 10, ot = m.cellPaddingInline ?? ss, U = m.minHeight ?? 500, { showColumnBorder: me, hideRowBorder: ke, rowHoverable: ct, ...c } = De(Et), [it, ee] = G(!1), [T, ut] = G([]);
81
+ Je(() => {
82
+ let e = [...z ?? []];
83
+ (x == null ? void 0 : x.page) !== 1 && (e = [...T, ...e]), ut(e);
84
+ }, [g ? z : 0]);
85
+ const We = h(() => !!(T != null && T.length) && (T == null ? void 0 : T.length) >= M, [T, M]), [te, at] = G([]), [dt, Be] = G(!1), ht = async (e, s) => {
86
+ var l, o, b;
87
+ let t, n = !1;
88
+ if (typeof d == "function")
89
+ t = (l = d == null ? void 0 : d(e, s)) == null ? void 0 : l.filter(
90
+ (y) => y.type !== "divider"
92
91
  );
93
- else if (s = (l = f == null ? void 0 : f.custom) == null ? void 0 : l.call(f, e, t), f != null && f.request) {
94
- Me(!0), le(!0), r = !0;
92
+ else if (t = (o = d == null ? void 0 : d.custom) == null ? void 0 : o.call(d, e, s), d != null && d.request) {
93
+ Be(!0), ee(!0), n = !0;
95
94
  try {
96
- const h = await (f == null ? void 0 : f.request(e, t));
97
- (x = f.fieldsName) != null && x.label ? s = h == null ? void 0 : h.map((C) => {
98
- var W;
95
+ const y = await (d == null ? void 0 : d.request(e, s));
96
+ (b = d.fieldsName) != null && b.label ? t = y == null ? void 0 : y.map((w) => {
97
+ var S;
99
98
  return {
100
- ...C,
101
- label: C == null ? void 0 : C[((W = f.fieldsName) == null ? void 0 : W.label) ?? "label"]
99
+ ...w,
100
+ label: w == null ? void 0 : w[((S = d.fieldsName) == null ? void 0 : S.label) ?? "label"]
102
101
  };
103
- }) : s = h ?? [];
102
+ }) : t = y ?? [];
104
103
  } finally {
105
- Me(!1);
104
+ Be(!1);
106
105
  }
107
106
  }
108
- s != null && s.length && (wt(s), r || le(!0));
109
- }, He = () => {
110
- le(!1);
111
- }, jt = (e, t) => {
112
- var s, r;
113
- le(!1), (s = e.onClick) == null || s.call(e), !(e != null && e.onClick) && typeof f != "function" && (f != null && f.onClick) && f.onClick((r = ie == null ? void 0 : ie[t]) == null ? void 0 : r.key);
114
- }, Q = I(null), Pe = I(null), d = I(null), p = I(null), v = I(null), kt = (...e) => {
115
- tt(Q), be == null || be(...e);
116
- }, zt = (...e) => {
117
- tt(Q), Y == null || Y(...e);
118
- }, U = a(() => !(m != null && m.auto) && re, [m == null ? void 0 : m.auto, re]), Nt = () => {
119
- var s;
120
- const e = xs(
121
- "& > .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)",
122
- (s = d.current) == null ? void 0 : s.querySelectorAll
123
- ), t = [];
124
- if (e == null || e.forEach((r) => {
125
- var o;
126
- t.push(
127
- ((o = ws("& > .operationCol .actionGroup", r.querySelector)) == null ? void 0 : o.clientWidth) || 0
107
+ t != null && t.length && (at(t), n || ee(!0));
108
+ }, Se = () => {
109
+ ee(!1);
110
+ }, ft = (e, s) => {
111
+ var t, n;
112
+ ee(!1), (t = e.onClick) == null || t.call(e), !(e != null && e.onClick) && typeof d != "function" && (d != null && d.onClick) && d.onClick((n = te == null ? void 0 : te[s]) == null ? void 0 : n.key);
113
+ }, D = O(null), He = O(null), i = O(null), $ = O(null), X = O(null), mt = (...e) => {
114
+ Ue(D), he == null || he(...e);
115
+ }, bt = (...e) => {
116
+ Ue(D), I == null || I(...e);
117
+ }, se = h(() => !(f != null && f.auto) && F, [f == null ? void 0 : f.auto, F]), yt = () => {
118
+ var t;
119
+ const e = ds(
120
+ "& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-tbody > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)",
121
+ (t = i.current) == null ? void 0 : t.querySelectorAll
122
+ ), s = [];
123
+ if (e == null || e.forEach((n) => {
124
+ var l;
125
+ s.push(
126
+ ((l = hs("& > .operationCol .actionGroup", n.querySelector)) == null ? void 0 : l.clientWidth) || 0
128
127
  );
129
- }), t.length)
130
- return Math.ceil(Math.max(...t));
131
- }, Wt = () => {
132
- var o, l, x, h;
133
- let e = (o = d.current) == null ? void 0 : o.querySelector(
128
+ }), s.length)
129
+ return Math.ceil(Math.max(...s));
130
+ }, Ct = () => {
131
+ var l, o, b, y;
132
+ let e = (l = i.current) == null ? void 0 : l.querySelector(
134
133
  ".ant-table-content"
135
134
  );
136
- e || (e = (l = d.current) == null ? void 0 : l.querySelector(
137
- ".ant-table-body"
135
+ e || (e = (o = i.current) == null ? void 0 : o.querySelector(
136
+ ".ant-table-tbody"
138
137
  ));
139
- let t = 0, s = !1, r = 0;
140
- return e && (t = e.clientWidth - (oe ? 1 : 0), s = e.offsetWidth - e.clientWidth > 0, r = (h = (x = d.current) == null ? void 0 : x.querySelector(
138
+ let s = 0, t = !1, n = 0;
139
+ return e && (s = e.clientWidth - (me ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, n = (y = (b = i.current) == null ? void 0 : b.querySelector(
141
140
  ".ant-table-cell-scrollbar"
142
- )) == null ? void 0 : h.offsetWidth), { hasScrollBar: s, scrollbarSize: r, tbodyWidth: t };
143
- }, Le = a(() => {
144
- const e = (T ?? []).length, t = e > (se.pc ?? 10) ? e >= 15 ? 15 : e : se.pc ?? 10;
145
- return Array.from({ length: t }).map((r, o) => ({
146
- key: `${Date.now()}${o}`
147
- }));
148
- }, [T]), ce = a(() => st === "normal" ? u ? Ne.current : (Ne.current = T, T) : u ? Le : T ?? [], [u, T, Le]), { hasScrollBar: L, scrollbarSize: S, tbodyWidth: E } = a(() => Wt(), [ce, i.fullscreen]), Ce = a(() => {
149
- var R, _, k, ee, Qe, ue, Ue, Xe, Ze, ve;
150
- if (typeof q > "u" || Ts((R = d == null ? void 0 : d.current) == null ? void 0 : R.clientHeight))
141
+ )) == null ? void 0 : y.offsetWidth), { hasScrollBar: t, scrollbarSize: n, tbodyWidth: s };
142
+ }, re = h(() => a ? ze.current : (ze.current = z, z), [a, z]), { hasScrollBar: v, scrollbarSize: q, tbodyWidth: ne } = h(() => Ct(), [re, c.fullscreen]), be = h(() => {
143
+ var S, _, B, E, p, Q, K, N, A, oe, Ie;
144
+ if (typeof H > "u" || ms((S = i == null ? void 0 : i.current) == null ? void 0 : S.clientHeight))
151
145
  return;
152
- const e = (_ = d == null ? void 0 : d.current) == null ? void 0 : _.clientHeight, t = ((Qe = (ee = (k = d == null ? void 0 : d.current) == null ? void 0 : k.querySelector) == null ? void 0 : ee.call(k, ".ant-table-header")) == null ? void 0 : Qe.clientHeight) ?? 50, s = ((Xe = (Ue = (ue = d == null ? void 0 : d.current) == null ? void 0 : ue.querySelector) == null ? void 0 : Ue.call(ue, ".bitzTablePagination")) == null ? void 0 : Xe.clientHeight) ?? 30;
153
- let r = 40, o = 40;
154
- if (d.current) {
155
- const Ee = window.getComputedStyle(d.current);
156
- r = parseInt(Ee.getPropertyValue("--cell-height")), o = parseInt(Ee.getPropertyValue("--toolbar-height"));
146
+ (_ = i == null ? void 0 : i.current) == null || _.clientHeight;
147
+ const e = ((p = (E = (B = i == null ? void 0 : i.current) == null ? void 0 : B.querySelector) == null ? void 0 : E.call(B, ".ant-table-header")) == null ? void 0 : p.clientHeight) ?? 50, s = ((N = (K = (Q = i == null ? void 0 : i.current) == null ? void 0 : Q.querySelector) == null ? void 0 : K.call(Q, ".bitzTablePagination")) == null ? void 0 : N.clientHeight) ?? 30;
148
+ let t = 40;
149
+ if (i.current) {
150
+ const Ye = window.getComputedStyle(i.current);
151
+ parseInt(Ye.getPropertyValue("--cell-height")), t = parseInt(Ye.getPropertyValue("--toolbar-height"));
157
152
  }
158
- const l = ((Ze = v == null ? void 0 : v.current) == null ? void 0 : Ze.clientHeight) || 0, x = l ? We : 0, h = (x || 10) + o + s + (t ?? 50), C = (ve = Q == null ? void 0 : Q.current) == null ? void 0 : ve.clientHeight;
159
- if (!i.fullscreen && e < C + h)
160
- return e - h;
161
- const W = te ?? ne, $ = q >= W ? q : W;
162
- return (i.fullscreen ? window.innerHeight : $) - l - x - o - r;
153
+ const o = ((((A = X == null ? void 0 : X.current) == null ? void 0 : A.clientHeight) || 30 ? Ne : 0) || 10) + t + s + (e ?? 50), b = (Ie = (oe = i == null ? void 0 : i.current) == null ? void 0 : oe.querySelector) == null ? void 0 : Ie.call(
154
+ oe,
155
+ ".ant-table-tbody"
156
+ ), y = (H > U ? H : U) - o;
157
+ if (!document.fullscreenElement && (b == null ? void 0 : b.clientHeight) > y)
158
+ return b.style.maxHeight = `${y}px`, y;
163
159
  }, [
164
- (Ye = d == null ? void 0 : d.current) == null ? void 0 : Ye.clientHeight,
165
- i.fullscreen,
166
- q,
167
- te,
168
- ne,
160
+ (ve = i == null ? void 0 : i.current) == null ? void 0 : ve.clientHeight,
161
+ // @ts-ignore
162
+ (_e = D == null ? void 0 : D.current) == null ? void 0 : _e.clientHeight,
163
+ c.fullscreen,
164
+ H,
165
+ ue,
166
+ U,
169
167
  // paginationRect?.height,
170
- ce,
168
+ re,
171
169
  // containerBodyRect?.height,
172
- i.tableSize
173
- ]), Bt = () => {
170
+ c.tableSize
171
+ ]), xt = () => {
174
172
  let e = 0;
175
- if (d.current) {
176
- const s = window.getComputedStyle(d.current), r = parseInt(
177
- s.getPropertyValue("--toolCell-paddingInline")
173
+ if (i.current) {
174
+ const t = window.getComputedStyle(i.current), n = parseInt(
175
+ t.getPropertyValue("--toolCell-paddingInline")
178
176
  );
179
- e = parseInt(s.getPropertyValue("--fontSize")) + 4 + 2 * r;
177
+ e = parseInt(t.getPropertyValue("--fontSize")) + 4 + 2 * n;
180
178
  }
181
- let t = 0;
182
- return D && (t += e), H && (t += e), J && (t += e), t;
183
- }, [j, St] = G([]), [A, Mt] = G(0);
184
- Fe(() => {
185
- var h;
186
- const e = fe ?? [], t = (h = e.find((C) => C.isOperationCol)) == null ? void 0 : h.width, s = e.filter((C) => !ns.includes(C)), o = os(s, i.columnsMap).sort(ls(i.columnsMap)), l = o.findIndex((C) => C.isOperationCol);
187
- l >= 0 && (o[l].width = t);
188
- let x = 0;
189
- z || (x = Bt()), St(o), Mt(x);
190
- }, [i.columnsMap, fe]);
191
- const [g, Ht] = G([]);
192
- we(() => {
193
- if (U) {
194
- const e = j.map((t, s) => {
195
- let r = t.width;
196
- if (t != null && t.isOperationCol && (t != null && t.useMaxWidth)) {
197
- const l = Nt();
198
- l && (r = l + bt * 2);
179
+ let s = 0;
180
+ return V && (s += e), k && (s += e), Y && (s += e), s;
181
+ }, [L, wt] = G([]), [ye, gt] = G(0);
182
+ Qe(() => {
183
+ var y;
184
+ const e = ae ?? [], s = (y = e.find((w) => w.isOperationCol)) == null ? void 0 : y.width, t = e.filter((w) => !pt.includes(w)), l = At(t, c.columnsMap).sort(Ft(c.columnsMap)), o = l.findIndex((w) => w.isOperationCol);
185
+ o >= 0 && (l[o].width = s);
186
+ let b = 0;
187
+ g || (b = xt()), wt(l), gt(b);
188
+ }, [c.columnsMap, ae]);
189
+ const [j, Tt] = G([]);
190
+ Je(() => {
191
+ if (se) {
192
+ const e = L.map((s, t) => {
193
+ let n = s.width;
194
+ if (s != null && s.isOperationCol && (s != null && s.useMaxWidth)) {
195
+ const o = yt();
196
+ o && (n = o + ot * 2);
199
197
  }
200
198
  return {
201
- key: Te(t, s),
202
- width: r ?? 0
199
+ key: es(s, t),
200
+ width: n ?? 0
203
201
  };
204
202
  });
205
- Ht(e);
203
+ Tt(e);
206
204
  }
207
- }, [j, U]);
208
- const $e = I(!1), qe = I(!1), ae = a(() => {
205
+ }, [L, se]);
206
+ const jt = O(!1), zt = O(!1), le = h(() => {
209
207
  let e;
210
- if (typeof Ce == "number" && (e = Ce - 1), typeof (m == null ? void 0 : m.y) == "number" && (e = m.y - 2), m != null && m.auto)
208
+ if (typeof be == "number" && (e = be - 1), typeof (f == null ? void 0 : f.y) == "number" && (e = f.y - 2), f != null && f.auto)
211
209
  return {
212
210
  x: void 0,
213
211
  y: e
214
212
  };
215
- let t = m == null ? void 0 : m.x;
216
- return re && g.length && (t = g.reduce((o, l) => o + l.width, 0) + A, E && t < E - (L ? S : 0) && ($e.current = !0, t = E)), m != null && m.y ? { x: t, y: m.y } : { x: t, y: e };
217
- }, [
218
- m,
219
- Ce,
220
- re,
221
- g,
222
- A,
223
- oe,
224
- L,
225
- S
226
- ]);
227
- we(() => {
228
- if (U && g.length) {
229
- const t = g.reduce((o, l) => o + l.width, 0) + A, r = E - (L ? S : 0);
230
- if (t < r || $e.current && t > r && !qe.current) {
231
- const o = /* @__PURE__ */ new Map(), l = j.findIndex(
232
- (w) => w == null ? void 0 : w.isOperationCol
233
- );
234
- let x = "";
235
- l >= 0 && (x = Te(
236
- j[l],
237
- l
238
- )), g.forEach((w) => o.set(w.key, w.width));
239
- let h = r - t, C = j.length;
240
- if (l >= 0 && C--, h >= C) {
241
- const w = Math.floor(h / C);
242
- o.forEach((F, R) => {
243
- o.set(R, F + (x === R ? 0 : w));
244
- }), h = h - w * C;
245
- }
246
- let W = 0;
247
- l === 0 && j.length > 1 && W++;
248
- const $ = Te(j[W]);
249
- o.set($, o.get($) + h);
250
- const M = { ...i.columnsMap };
251
- for (const w in M)
252
- M[w].show && (M[w].width = o.get(w));
253
- i.setColumnsMap(M);
254
- }
255
- }
213
+ let s = f == null ? void 0 : f.x;
214
+ return F && j.length && (s = j.reduce((l, o) => l + o.width, 0) + ye, ne && s < ne - (v ? q : 0) && (jt.current = !0, s = ne)), f != null && f.y ? { x: s, y: f.y } : { x: s, y: e };
256
215
  }, [
257
- U,
258
- g,
259
- A,
260
- oe,
261
- L,
262
- S
263
- ]);
264
- const Pt = a(() => {
265
- var e;
266
- if (i.fullscreen) {
267
- const t = document.body.clientHeight, s = (e = document.fullscreenElement) != null && e.classList.contains(
216
+ f,
217
+ be,
218
+ F,
219
+ j,
220
+ ye,
221
+ me,
222
+ v,
223
+ q
224
+ ]), Nt = h(() => {
225
+ var e, s, t;
226
+ if (c.fullscreen) {
227
+ const n = document.body.clientHeight, l = (e = document.fullscreenElement) != null && e.classList.contains(
268
228
  "bz-fullscreen"
269
- ) ? 50 : 0;
270
- return { y: t - 80 - s };
229
+ ) ? 50 : 0, o = 130, b = (t = (s = document.fullscreenElement) == null ? void 0 : s.querySelector) == null ? void 0 : t.call(
230
+ s,
231
+ ".ant-table-tbody"
232
+ ), y = n - o - l;
233
+ if ((b == null ? void 0 : b.clientHeight) > y)
234
+ return { y };
271
235
  }
272
- return {};
273
- }, [i.fullscreen]), V = a(() => {
274
- if (z)
275
- return j;
276
- const e = j.length - 1, t = j.map((s, r) => {
277
- var o;
236
+ }, [c.fullscreen]), Z = h(() => {
237
+ if (g)
238
+ return L;
239
+ const e = L.length - 1, s = L.map((t, n) => {
240
+ var l;
278
241
  return {
279
- ...s,
280
- ...typeof s.title == "string" && {
281
- title: /* @__PURE__ */ n.jsx(
282
- ge.Paragraph,
242
+ ...t,
243
+ ...typeof t.title == "string" && {
244
+ title: /* @__PURE__ */ r.jsx(
245
+ xe.Paragraph,
283
246
  {
284
247
  className: "bitzTableTitle",
285
248
  ellipsis: { rows: 2 },
286
- children: s.title
249
+ children: t.title
287
250
  }
288
251
  )
289
252
  },
290
- ...e === r && {
291
- className: he(s.className, "lastColumn")
253
+ ...e === n && {
254
+ className: ie(t.className, "lastColumn")
292
255
  },
293
- width: g.length ? (o = g[r]) == null ? void 0 : o.width : (s == null ? void 0 : s.width) || void 0,
294
- ...ae.x !== void 0 ? {
295
- onHeaderCell: (l) => {
296
- var x;
256
+ width: j.length ? (l = j[n]) == null ? void 0 : l.width : (t == null ? void 0 : t.width) || void 0,
257
+ ...le.x !== void 0 ? {
258
+ onHeaderCell: (o) => {
259
+ var b;
297
260
  return {
298
- ...(x = s.onHeaderCell) == null ? void 0 : x.call(s),
299
- width: l.width,
300
- stretchref: Pe,
301
- datagridref: p,
302
- onResize: Lt(r)
261
+ ...(b = t.onHeaderCell) == null ? void 0 : b.call(t),
262
+ width: o.width,
263
+ stretchref: He,
264
+ datagridref: $,
265
+ onResize: kt(n)
303
266
  };
304
267
  }
305
268
  } : {},
306
- ...!(s != null && s.render) && s.copyable ? {
307
- render: (l) => ["number", "bigint"].includes(typeof l) ? l : /* @__PURE__ */ n.jsx(Cs, { value: l })
269
+ ...!(t != null && t.render) && t.copyable ? {
270
+ render: (o) => ["number", "bigint"].includes(typeof o) ? o : /* @__PURE__ */ r.jsx(as, { value: o })
308
271
  } : {}
309
272
  };
310
273
  });
311
- return ds(
312
- fe,
313
- t,
314
- J,
315
- !!D,
316
- !!H
274
+ return ls(
275
+ ae,
276
+ s,
277
+ Y,
278
+ !!V,
279
+ !!k
317
280
  );
318
- }, [j, g]), Lt = (e) => (t, { size: s, minWidth: r }) => {
319
- const l = (s.width > r ? s.width : r) - g[e].width;
320
- if (l === 0)
281
+ }, [L, j]), kt = (e) => (s, { size: t, minWidth: n }) => {
282
+ const o = (t.width > n ? t.width : n) - j[e].width;
283
+ if (o === 0)
321
284
  return;
322
- const h = g.reduce((_, k) => _ + k.width, 0) + l + A, W = E - (L ? S : 0);
323
- let $ = "", M = -1, w = 0;
324
- if (l < 0 && h < W) {
325
- M = e + 1;
326
- const _ = j.length - 1, k = j[_];
327
- (e === _ - 1 && (k != null && k.isOperationCol) || e === _ && !(k != null && k.isOperationCol)) && (M = e - 1);
328
- let ee = 0;
329
- ae.x > W && (ee = ae.x - W), $ = `${g[M].key}`, w = g[M].width - l - ee;
285
+ const y = j.reduce((K, N) => K + N.width, 0) + o + ye, S = ne - (v ? q : 0);
286
+ let _ = "", B = -1, E = 0;
287
+ if (o < 0 && y < S) {
288
+ B = e + 1;
289
+ const K = L.length - 1, N = L[K];
290
+ (e === K - 1 && (N != null && N.isOperationCol) || e === K && !(N != null && N.isOperationCol)) && (B = e - 1);
291
+ let A = 0;
292
+ le.x > S && (A = le.x - S), _ = `${j[B].key}`, E = j[B].width - o - A;
330
293
  }
331
- const F = `${g[e].key}`, R = {
332
- ...i.columnsMap,
333
- [F]: {
334
- ...i.columnsMap[F],
335
- width: g[e].width + l
294
+ const p = `${j[e].key}`, Q = {
295
+ ...c.columnsMap,
296
+ [p]: {
297
+ ...c.columnsMap[p],
298
+ width: j[e].width + o
336
299
  },
337
- ...$ && M >= 0 && {
338
- [$]: {
339
- ...i.columnsMap[$],
340
- width: w
300
+ ..._ && B >= 0 && {
301
+ [_]: {
302
+ ...c.columnsMap[_],
303
+ width: E
341
304
  }
342
305
  }
343
306
  };
344
- i.setColumnsMap(R), qe.current = !0, i.persistenceType === "online" && i.persistenceKey && i.startAutoSaveCountdown();
345
- }, Ke = a(() => hs(V), [V]), X = a(() => u ? Ke : V, [u, V, Ke]), { table: xe, locale: $t = us } = Ae(js), qt = { ...$t.Table }, Kt = ((Je = xe == null ? void 0 : xe.expandable) == null ? void 0 : Je.expandIcon) || (H == null ? void 0 : H.expandIcon) || as(qt), Oe = a(() => {
346
- if (H)
307
+ c.setColumnsMap(Q), zt.current = !0, c.persistenceType === "online" && c.persistenceKey && c.startAutoSaveCountdown();
308
+ }, J = Z, { table: Ce, locale: Wt = ns } = De(bs), Bt = { ...Wt.Table }, St = ((Ge = Ce == null ? void 0 : Ce.expandable) == null ? void 0 : Ge.expandIcon) || (k == null ? void 0 : k.expandIcon) || rs(Bt), Me = h(() => {
309
+ if (k)
347
310
  return {
348
- ...H,
349
- expandedRowRender: () => /* @__PURE__ */ n.jsx(n.Fragment, {}),
311
+ ...k,
312
+ expandedRowRender: () => /* @__PURE__ */ r.jsx(r.Fragment, {}),
350
313
  expandIcon: (e) => {
351
- const t = Kt(e);
314
+ const s = St(e);
352
315
  return {
353
- ...t,
316
+ ...s,
354
317
  props: {
355
- ...t.props,
318
+ ...s.props,
356
319
  disabled: !0,
357
320
  style: {
358
- ...t.props.style,
359
- backgroundColor: P.colorBgContainerDisabled
321
+ ...s.props.style,
322
+ backgroundColor: W.colorBgContainerDisabled
360
323
  }
361
324
  }
362
325
  };
363
326
  }
364
327
  };
365
- }, [H]), Ot = a(() => u ? Oe : H, [u, H, Oe]), pe = a(() => {
366
- if (D)
328
+ }, [k]), Ht = h(() => a ? Me : k, [a, k, Me]), Pe = h(() => {
329
+ if (V)
367
330
  return {
368
- ...D,
331
+ ...V,
369
332
  selectedRowKeys: [],
370
333
  getCheckboxProps: () => ({ disabled: !0 })
371
334
  };
372
- }, [D]), pt = a(() => u ? pe : D, [u, D, pe]), Ve = a(() => u ? "key" : c.rowKey, [u, c.rowKey]), _e = a(() => `${ke ?? i.stylesConfig.size}BitzTable`, [ke, i.stylesConfig.size]), Vt = de(
373
- (e, t) => {
374
- var r;
375
- if (!c.onRow || u)
335
+ }, [V]), Mt = h(() => a ? Pe : V, [a, V, Pe]), $e = h(() => a ? "key" : u.rowKey, [a, u.rowKey]), qe = h(() => `${Te ?? c.stylesConfig.size}BitzTable`, [Te, c.stylesConfig.size]), Pt = ce(
336
+ (e, s) => {
337
+ var n;
338
+ if (!u.onRow || a)
376
339
  return {};
377
- const s = (r = c.onRow) == null ? void 0 : r.call(c, e, t);
378
- return s.onClick && (s.className = "rowPointerCursor"), s;
340
+ const t = (n = u.onRow) == null ? void 0 : n.call(u, e, s);
341
+ return t.onClick && (t.className = "rowPointerCursor"), t;
379
342
  },
380
- [c.onRow, u]
381
- ), _t = a(() => he(
343
+ [u.onRow, a]
344
+ ), $t = h(() => ie(
382
345
  "bitzTableContainer",
383
- { hideBorder: Be },
384
- { hasScrollBar: L },
385
- { stickyTable: !!(c != null && c.sticky) },
386
- _e,
387
- c.className
346
+ { hideBorder: ke },
347
+ { hasScrollBar: v },
348
+ { stickyTable: !!(u != null && u.sticky) },
349
+ qe,
350
+ u.className
388
351
  ), [
389
- c.className,
390
- _e,
391
- L,
392
- i.fullscreen,
393
- Be,
394
- c.sticky
395
- ]), It = a(() => ({
396
- "--container-bgColor": P.colorBgContainer
397
- }), [P.colorBgContainer]), Dt = a(() => {
398
- const e = te ?? ne;
399
- let t;
400
- q && (t = q >= e ? q : e);
401
- const s = i.fullscreen ? "100%" : t;
402
- let r;
403
- return (S ?? 0) > 0 && (r = S), fs({
404
- height: s ?? "auto",
405
- token: P,
406
- evenRowBgColor: i.zebra ? b == null ? void 0 : b.evenRowBgColor : P.colorBgContainer,
407
- table: b,
408
- gap: We,
409
- borderColor: (b == null ? void 0 : b.borderColor) || P.colorBorderSecondary,
410
- scrollbarWidth: r,
411
- other: c.style
352
+ u.className,
353
+ qe,
354
+ v,
355
+ c.fullscreen,
356
+ ke,
357
+ u.sticky
358
+ ]), qt = h(() => ({
359
+ "--container-bgColor": W.colorBgContainer
360
+ }), [W.colorBgContainer]), Lt = h(() => {
361
+ const e = ue ?? U;
362
+ let s;
363
+ H && (s = H >= e ? H : e);
364
+ const t = c.fullscreen ? "100%" : s;
365
+ let n;
366
+ return (q ?? 0) > 0 && (n = q), os({
367
+ height: t ?? "auto",
368
+ token: W,
369
+ evenRowBgColor: c.zebra ? m == null ? void 0 : m.evenRowBgColor : W.colorBgContainer,
370
+ table: m,
371
+ gap: Ne,
372
+ borderColor: (m == null ? void 0 : m.borderColor) || W.colorBorderSecondary,
373
+ scrollbarWidth: n,
374
+ other: u.style
412
375
  });
413
376
  }, [
414
- c.style,
415
- i.fullscreen,
416
- q,
417
- te,
418
- ne,
419
- b,
420
- i == null ? void 0 : i.zebra,
421
- S
422
- ]), Rt = de(
423
- (e, t, s) => {
424
- const r = t % 2 === 0 ? "oddRow" : "evenRow";
425
- if (c.rowClassName) {
426
- const o = c.rowClassName(e, t, s);
427
- return he(r, o);
377
+ u.style,
378
+ c.fullscreen,
379
+ H,
380
+ ue,
381
+ U,
382
+ m,
383
+ c == null ? void 0 : c.zebra,
384
+ q
385
+ ]), Kt = ce(
386
+ (e, s, t) => {
387
+ const n = s % 2 === 0 ? "oddRow" : "evenRow";
388
+ if (u.rowClassName) {
389
+ const l = u.rowClassName(e, s, t);
390
+ return ie(n, l);
428
391
  }
429
- return r;
392
+ return n;
430
393
  },
431
- [c.rowClassName]
432
- ), Ie = a(() => /* @__PURE__ */ n.jsx(
433
- es,
394
+ [u.rowClassName]
395
+ ), Le = h(() => /* @__PURE__ */ r.jsx(
396
+ Ut,
434
397
  {
435
- finished: Se,
398
+ finished: We,
436
399
  onLoad: async () => (
437
400
  // @ts-ignore
438
- !u && (Y == null ? void 0 : Y((B == null ? void 0 : B.page) + 1, B == null ? void 0 : B.size))
401
+ !a && (I == null ? void 0 : I((x == null ? void 0 : x.page) + 1, x == null ? void 0 : x.size))
439
402
  ),
440
403
  loadingText: "加载中...",
441
404
  finishedText: "没有更多了",
442
405
  errorText: "加载失败",
443
- children: /* @__PURE__ */ n.jsxs(
406
+ children: /* @__PURE__ */ r.jsxs(
444
407
  "div",
445
408
  {
446
409
  className: "mobileList",
447
- style: { backgroundColor: b == null ? void 0 : b.mobileListBgColor },
410
+ style: { backgroundColor: m == null ? void 0 : m.mobileListBgColor },
448
411
  children: [
449
- N == null ? void 0 : N.map((e, t) => /* @__PURE__ */ n.jsx(
412
+ T == null ? void 0 : T.map((e, s) => /* @__PURE__ */ r.jsx(
450
413
  "div",
451
414
  {
452
415
  className: "listItem",
453
- style: { backgroundColor: b == null ? void 0 : b.listItemBgColor },
454
- onClick: () => Tt(e, t),
455
- children: V == null ? void 0 : V.map((s, r) => {
456
- var o;
457
- return !(s != null && s.mobileHide) && /* @__PURE__ */ n.jsxs(
416
+ style: { backgroundColor: m == null ? void 0 : m.listItemBgColor },
417
+ onClick: () => ht(e, s),
418
+ children: Z == null ? void 0 : Z.map((t, n) => {
419
+ var l;
420
+ return !(t != null && t.mobileHide) && /* @__PURE__ */ r.jsxs(
458
421
  "div",
459
422
  {
460
423
  className: "row",
461
- style: { color: P.colorText },
424
+ style: { color: W.colorText },
462
425
  children: [
463
- !s.mobileHideLabel && /* @__PURE__ */ n.jsxs("div", { className: "label", children: [
464
- `${s.title}`,
426
+ !t.mobileHideLabel && /* @__PURE__ */ r.jsxs("div", { className: "label", children: [
427
+ `${t.title}`,
465
428
  ":"
466
429
  ] }),
467
- /* @__PURE__ */ n.jsx("div", { className: "value", children: ((o = s == null ? void 0 : s.render) == null ? void 0 : o.call(
468
- s,
469
- ks(e, (s == null ? void 0 : s.dataIndex) || ""),
430
+ /* @__PURE__ */ r.jsx("div", { className: "value", children: ((l = t == null ? void 0 : t.render) == null ? void 0 : l.call(
431
+ t,
432
+ ys(e, (t == null ? void 0 : t.dataIndex) || ""),
470
433
  e,
471
- t
472
- )) || (e == null ? void 0 : e[s.dataIndex]) })
434
+ s
435
+ )) || (e == null ? void 0 : e[t.dataIndex]) })
473
436
  ]
474
437
  },
475
- r
438
+ n
476
439
  );
477
440
  })
478
441
  },
479
- t
442
+ s
480
443
  )),
481
- Array.from({ length: se.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ n.jsx(
444
+ Array.from({ length: we.mobile ?? 2 }).map((e, s) => /* @__PURE__ */ r.jsx(
482
445
  "div",
483
446
  {
484
447
  className: "listItem",
485
448
  style: {
486
- display: u ? "block" : "none",
487
- backgroundColor: b == null ? void 0 : b.listItemBgColor
449
+ display: a ? "block" : "none",
450
+ backgroundColor: m == null ? void 0 : m.listItemBgColor
488
451
  },
489
- children: /* @__PURE__ */ n.jsx("div", { className: "row", children: me ? me() : /* @__PURE__ */ n.jsx(
490
- Ut,
452
+ children: /* @__PURE__ */ r.jsx("div", { className: "row", children: de ? de() : /* @__PURE__ */ r.jsx(
453
+ Gt,
491
454
  {
492
455
  title: !1,
493
456
  paragraph: {
494
- rows: nt,
495
- width: ot
457
+ rows: Ze,
458
+ width: Ee
496
459
  },
497
460
  active: !0
498
461
  }
499
462
  ) })
500
463
  },
501
- `${Date.now()}${t}`
464
+ `${Date.now()}${s}`
502
465
  ))
503
466
  ]
504
467
  }
505
468
  )
506
469
  }
507
470
  ), [
508
- z ? Se : 0,
509
- z ? u : 0,
510
- z ? B : 0,
511
- z ? b : 0,
512
- z ? N : 0,
513
- z ? V : 0,
514
- z ? se : 0,
515
- z ? me : 0
471
+ g ? We : 0,
472
+ g ? a : 0,
473
+ g ? x : 0,
474
+ g ? m : 0,
475
+ g ? T : 0,
476
+ g ? Z : 0,
477
+ g ? we : 0,
478
+ g ? de : 0
516
479
  ]);
517
- Fe(() => {
518
- i.setSelected(!!(y != null && y.num));
519
- }, [y]);
520
- const De = a(() => /* @__PURE__ */ n.jsxs("div", { className: "alert", children: [
521
- /* @__PURE__ */ n.jsx(
522
- et,
480
+ Qe(() => {
481
+ c.setSelected(!!(C != null && C.num));
482
+ }, [C]);
483
+ const Ke = h(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
484
+ /* @__PURE__ */ r.jsx(
485
+ Re,
523
486
  {
524
487
  highlightTag: "strong",
525
- keywords: `${K}`,
526
- sourceString: `共 ${K} 条`,
488
+ keywords: `${M}`,
489
+ sourceString: `共 ${M} 条`,
527
490
  tagClass: "totalText"
528
491
  }
529
492
  ),
530
- !!y && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
531
- /* @__PURE__ */ n.jsx(ge.Text, { className: "splitBorder", children: "/" }),
532
- /* @__PURE__ */ n.jsx(
533
- et,
493
+ !!C && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
494
+ /* @__PURE__ */ r.jsx(xe.Text, { className: "splitBorder", children: "/" }),
495
+ /* @__PURE__ */ r.jsx(
496
+ Re,
534
497
  {
535
498
  highlightTag: "strong",
536
- keywords: `${(y == null ? void 0 : y.num) ?? 0}`,
537
- sourceString: `已选中 ${(y == null ? void 0 : y.num) ?? 0} 条`
499
+ keywords: `${(C == null ? void 0 : C.num) ?? 0}`,
500
+ sourceString: `已选中 ${(C == null ? void 0 : C.num) ?? 0} 条`
538
501
  }
539
502
  ),
540
- !!(y != null && y.num) && /* @__PURE__ */ n.jsx(
541
- ge.Link,
503
+ !!(C != null && C.num) && /* @__PURE__ */ r.jsx(
504
+ xe.Link,
542
505
  {
543
506
  className: "cleanSelected",
544
- onClick: y == null ? void 0 : y.onClear,
507
+ onClick: C == null ? void 0 : C.onClear,
545
508
  children: "取消选中"
546
509
  }
547
510
  )
548
511
  ] })
549
- ] }), [K, y]), Gt = (e) => {
550
- u || ye == null || ye(e);
551
- }, Re = de(() => J ? {
552
- row: (e) => ms({ ...e, loading: u == null ? void 0 : u.toString() })
553
- } : {}, [J, J ? u : !1]), Ge = de(
512
+ ] }), [M, C]), Ot = (e) => {
513
+ a || fe == null || fe(e);
514
+ }, Oe = ce(() => Y ? {
515
+ row: (e) => cs({ ...e, loading: a == null ? void 0 : a.toString() })
516
+ } : {}, [Y, Y ? a : !1]), Ve = ce(
554
517
  (e) => {
555
- var r, o;
556
- if (U)
557
- return ys({ ...e, hasScrollBar: L, scrollbarSize: S });
558
- const t = { ...e };
559
- return ((r = t.className) == null ? void 0 : r.includes(
560
- "ant-table-cell-fix-right"
561
- )) && !L && ((o = t.style) != null && o.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (S || 0)), /* @__PURE__ */ n.jsx("th", { ...t });
518
+ if (se)
519
+ return us({ ...e, hasScrollBar: v, scrollbarSize: q });
520
+ const s = { ...e };
521
+ return /* @__PURE__ */ r.jsx("th", { ...s });
562
522
  },
563
- [L, S, U]
564
- ), Yt = a(() => c != null && c.virtual ? {} : ze ? { cell: gs } : {}, [ze, c == null ? void 0 : c.virtual]), Jt = a(() => ({
565
- ...O,
523
+ [v, q, se, c.fullscreen]
524
+ ), Vt = h(() => u != null && u.virtual ? {} : je ?? (x == null ? void 0 : x.size) > 10 ? { cell: fs } : {}, [je, u == null ? void 0 : u.virtual, z, x, c.fullscreen]), vt = h(() => ({
525
+ ...P,
566
526
  header: {
567
- ...O == null ? void 0 : O.header,
568
- cell: Ge
527
+ ...P == null ? void 0 : P.header,
528
+ cell: Ve
569
529
  },
570
530
  body: {
571
- ...Yt,
572
- ...O == null ? void 0 : O.body,
573
- ...Re()
531
+ ...Vt,
532
+ ...P == null ? void 0 : P.body,
533
+ ...Oe()
574
534
  }
575
- }), [O, Ge, Re]), Qt = a(() => {
535
+ }), [P, Ve, Oe]), _t = h(() => {
576
536
  var e;
577
- if ((X == null ? void 0 : X.length) > 5 && (p != null && p.current)) {
578
- const t = X.reduce(
579
- (r, o) => (o.fixed && (r += o.width), r),
537
+ if ((J == null ? void 0 : J.length) > 5 && ($ != null && $.current)) {
538
+ const s = J.reduce(
539
+ (n, l) => (l.fixed && (n += l.width), n),
580
540
  0
581
- ), s = (e = p == null ? void 0 : p.current) == null ? void 0 : e.clientWidth;
582
- return t > s - 300;
541
+ ), t = (e = $ == null ? void 0 : $.current) == null ? void 0 : e.clientWidth;
542
+ return s > t - 300;
583
543
  }
584
544
  return !1;
585
- }, [X]);
586
- return /* @__PURE__ */ n.jsxs(
545
+ }, [J]);
546
+ return /* @__PURE__ */ r.jsxs(
587
547
  "div",
588
548
  {
589
- className: he("bitzTableBlock", {
590
- fullscreen: i.fullscreen
549
+ className: ie("bitzTableBlock", {
550
+ fullscreen: c.fullscreen
591
551
  }),
592
- style: It,
593
- ...rt,
552
+ style: qt,
553
+ ...Xe,
594
554
  children: [
595
- !z && /* @__PURE__ */ n.jsxs("div", { ref: d, className: _t, style: Dt, children: [
596
- /* @__PURE__ */ n.jsxs("div", { className: "bitzTableContainerBody", ref: p, children: [
597
- ut && /* @__PURE__ */ n.jsxs("div", { className: "bitzTableToolbarBlock", children: [
598
- dt || /* @__PURE__ */ n.jsx("div", {}),
599
- ht,
600
- ft
555
+ !g && /* @__PURE__ */ r.jsxs("div", { ref: i, className: $t, style: Lt, children: [
556
+ /* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: $, children: [
557
+ tt && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
558
+ st || /* @__PURE__ */ r.jsx("div", {}),
559
+ rt,
560
+ nt
601
561
  ] }),
602
- /* @__PURE__ */ n.jsx(
562
+ /* @__PURE__ */ r.jsx(
603
563
  "div",
604
564
  {
605
565
  className: "stretchLine",
606
- ref: Pe,
566
+ ref: He,
607
567
  style: {
608
- background: P.colorPrimary,
568
+ background: W.colorPrimary,
609
569
  bottom: 0
610
570
  }
611
571
  }
612
572
  ),
613
- /* @__PURE__ */ n.jsxs(
614
- bs,
573
+ /* @__PURE__ */ r.jsxs(
574
+ is,
615
575
  {
616
- enabledRowDragSort: J,
617
- dataSource: ce,
618
- mergeRowKey: Ve,
619
- onDragEnd: Gt,
576
+ enabledRowDragSort: Y,
577
+ dataSource: re,
578
+ mergeRowKey: $e,
579
+ onDragEnd: Ot,
620
580
  children: [
621
- Qt && /* @__PURE__ */ n.jsx(
622
- Xt,
581
+ _t && /* @__PURE__ */ r.jsx(
582
+ It,
623
583
  {
624
584
  closable: !0,
625
585
  type: "error",
626
586
  message: "表格固定列的宽度超过表格宽度,影响表格显示效果;请重新拖拽列宽度或点击表格设置调整固定列配置。"
627
587
  }
628
588
  ),
629
- /* @__PURE__ */ n.jsx(
630
- Zt,
589
+ /* @__PURE__ */ r.jsx(
590
+ Yt,
631
591
  {
632
- ...c,
633
- bordered: oe,
634
- columns: X,
635
- dataSource: ce,
636
- loading: !1,
592
+ ...u,
593
+ bordered: me,
594
+ columns: J,
595
+ dataSource: re,
596
+ loading: a,
637
597
  pagination: !1,
638
- scroll: { ...ae, ...Pt },
639
- expandable: Ot,
640
- rowSelection: pt,
641
- onRow: Vt,
642
- rowHoverable: yt,
643
- rowClassName: Rt,
598
+ scroll: { ...le, ...Nt },
599
+ expandable: Ht,
600
+ rowSelection: Mt,
601
+ onRow: Pt,
602
+ rowHoverable: ct,
603
+ rowClassName: Kt,
644
604
  className: "bitzTable",
645
- components: Jt,
646
- rowKey: Ve,
647
- onChange: kt,
648
- ref: Q
605
+ components: vt,
606
+ rowKey: $e,
607
+ onChange: mt,
608
+ ref: D
649
609
  }
650
610
  )
651
611
  ]
652
612
  }
653
613
  )
654
614
  ] }),
655
- Z && !!K && /* @__PURE__ */ n.jsxs("div", { className: "bitzTablePagination", ref: v, children: [
656
- De,
657
- /* @__PURE__ */ n.jsx(
658
- At,
615
+ R && !!M && /* @__PURE__ */ r.jsxs("div", { className: "bitzTablePagination", ref: X, children: [
616
+ Ke,
617
+ /* @__PURE__ */ r.jsx(
618
+ Qt,
659
619
  {
660
620
  size: "small",
661
- enableControl: lt,
662
- pagination: B,
663
- total: K,
664
- dataSource: T,
665
- resetPage: mt,
621
+ enableControl: pe,
622
+ pagination: x,
623
+ total: M,
624
+ dataSource: z,
625
+ resetPage: lt,
666
626
  hideTotalText: !0,
667
- paginationEmit: zt
627
+ paginationEmit: bt
668
628
  }
669
629
  )
670
630
  ] }),
671
- !Z && !!y && !!K && /* @__PURE__ */ n.jsx("div", { className: "bitzTablePagination", ref: v, children: De })
631
+ !R && !!C && !!M && /* @__PURE__ */ r.jsx("div", { className: "bitzTablePagination", ref: X, children: Ke })
672
632
  ] }),
673
- z && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
674
- (u || !!(T != null && T.length)) && /* @__PURE__ */ n.jsx(n.Fragment, { children: je ? (
633
+ g && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
634
+ (a || !!(z != null && z.length)) && /* @__PURE__ */ r.jsx(r.Fragment, { children: ge ? (
675
635
  // @ts-ignore
676
- /* @__PURE__ */ n.jsx(
677
- ts,
636
+ /* @__PURE__ */ r.jsx(
637
+ Xt,
678
638
  {
679
- onRefresh: async () => !u && je(),
680
- children: Ie
639
+ onRefresh: async () => !a && ge(),
640
+ children: Le
681
641
  }
682
642
  )
683
- ) : Ie }),
684
- !u && /* @__PURE__ */ n.jsx(Ft, { data: T, title: ct, img: at }),
685
- /* @__PURE__ */ n.jsx(
686
- Et,
643
+ ) : Le }),
644
+ !a && /* @__PURE__ */ r.jsx(Rt, { data: z, title: Fe, img: et }),
645
+ /* @__PURE__ */ r.jsx(
646
+ Jt,
687
647
  {
688
648
  className: "tableMobileDrawer",
689
- open: Ct,
649
+ open: it,
690
650
  placement: "bottom",
691
651
  height: "auto",
692
652
  closable: !1,
693
- onClose: He,
694
- children: /* @__PURE__ */ n.jsxs("div", { className: "drawerBox", children: [
695
- /* @__PURE__ */ n.jsx("div", { className: "boxBody", children: gt ? /* @__PURE__ */ n.jsx("div", { className: "operaList", children: /* @__PURE__ */ n.jsx(vt, {}) }) : ie.map((e, t) => /* @__PURE__ */ n.jsx(
653
+ onClose: Se,
654
+ children: /* @__PURE__ */ r.jsxs("div", { className: "drawerBox", children: [
655
+ /* @__PURE__ */ r.jsx("div", { className: "boxBody", children: dt ? /* @__PURE__ */ r.jsx("div", { className: "operaList", children: /* @__PURE__ */ r.jsx(Dt, {}) }) : te.map((e, s) => /* @__PURE__ */ r.jsx(
696
656
  "div",
697
657
  {
698
658
  className: "operaList",
699
- onClick: () => jt(e, t),
659
+ onClick: () => ft(e, s),
700
660
  ...e.danger && {
701
- style: { color: P.colorError }
661
+ style: { color: W.colorError }
702
662
  },
703
663
  children: e.label
704
664
  },
705
- t
665
+ s
706
666
  )) }),
707
- /* @__PURE__ */ n.jsx("div", { className: "boxLine" }),
708
- /* @__PURE__ */ n.jsx("div", { className: "boxFooter", onClick: He, children: it })
667
+ /* @__PURE__ */ r.jsx("div", { className: "boxLine" }),
668
+ /* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick: Se, children: Ae })
709
669
  ] })
710
670
  }
711
671
  )
@@ -714,7 +674,7 @@ function zs({
714
674
  }
715
675
  );
716
676
  }
717
- const rr = (Z) => /* @__PURE__ */ n.jsx(ss, { initValue: Z, children: /* @__PURE__ */ n.jsx(zs, { ...Z }) });
677
+ const Es = (R) => /* @__PURE__ */ r.jsx(Zt, { initValue: R, children: /* @__PURE__ */ r.jsx(Cs, { ...R }) });
718
678
  export {
719
- rr as default
679
+ Es as default
720
680
  };