bitz-react-admin-ui 1.8.3 → 1.9.0

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