bitz-react-admin-ui 2.2.2 → 2.2.4

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,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.mjs";
2
- import { __require as o } from "../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ var a = { exports: {} };
5
2
  export {
6
- s as default
3
+ a as __module
7
4
  };
@@ -1,7 +1,7 @@
1
1
  import { j as n } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useRef as O, useEffect as R } from "react";
3
3
  import { Calendar as k, Select as a, Row as w, Col as y } from "antd";
4
- import N from "../../_virtual/dayjs.min.mjs";
4
+ import N from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import B from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/weekOfYear.mjs";
6
6
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
7
7
  N.extend(B);
@@ -1,4 +1,4 @@
1
- import t from "../../_virtual/dayjs.min.mjs";
1
+ import t from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
2
2
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
3
3
  const m = {
4
4
  dayjs() {
@@ -1,5 +1,5 @@
1
1
  import { create as a } from "../../node_modules/.store/zustand@4.5.2/node_modules/zustand/esm/index.mjs";
2
- import o from "../../_virtual/dayjs.min.mjs";
2
+ import o from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
3
3
  var d = /* @__PURE__ */ ((e) => (e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum", e))(d || {});
4
4
  const i = a((e, k) => ({
5
5
  colHeight: 0,
@@ -1,7 +1,7 @@
1
1
  import { j as d } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useState as y, useEffect as j, useMemo as D } from "react";
3
3
  import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isToday.mjs";
4
- import n from "../../_virtual/dayjs.min.mjs";
4
+ import n from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import { useBitzFuiCalendarStore as S, CalendarTypeEnum as C } from "./BitzFuiCalendarStore.mjs";
6
6
  import N from "./CalendarAgendumItem.mjs";
7
7
  import x from "./CalendarAgendum.module.less.mjs";
@@ -1,7 +1,7 @@
1
1
  import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useMemo as a } from "react";
3
3
  import e from "./CalendarAgendum.module.less.mjs";
4
- import l from "../../_virtual/dayjs.min.mjs";
4
+ import l from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import { Button as c } from "antd";
6
6
  const d = (_, s) => {
7
7
  let t = s.diff(_, "minute"), m;
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { memo as m, useMemo as r } from "react";
3
- import d from "../../_virtual/dayjs.min.mjs";
3
+ import d from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
4
4
  import i from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
5
  const n = (t) => {
6
6
  const { time: e } = t, s = r(() => e.isSame(d(), "day"), [e]);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { memo as C, useMemo as i } from "react";
3
3
  import { Space as c, Button as o, DatePicker as b, Dropdown as h } from "antd";
4
4
  import { useBitzFuiCalendarStore as w, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
5
- import g from "../../_virtual/dayjs.min.mjs";
5
+ import g from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
6
  import T from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
7
7
  import v from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
8
8
  import _ from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
@@ -4,7 +4,7 @@ import E from "./FuiCalendarItem.mjs";
4
4
  import b from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import F from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrBefore.mjs";
6
6
  import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
7
- import r from "../../_virtual/dayjs.min.mjs";
7
+ import r from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
8
8
  import { useBitzFuiCalendarStore as z } from "./BitzFuiCalendarStore.mjs";
9
9
  r.extend(M);
10
10
  r.extend(F);
@@ -3,7 +3,7 @@ import { useState as w, useMemo as x, useEffect as E } from "react";
3
3
  import A from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import H from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import D from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
6
- import e from "../../_virtual/dayjs.min.mjs";
6
+ import e from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
7
7
  import "./index.less.mjs";
8
8
  e.extend(A);
9
9
  e.extend(H);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { useMemo as d } from "react";
3
3
  import p from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import T from "./BitzMeetingTimeItem.mjs";
5
- import m from "../../_virtual/dayjs.min.mjs";
5
+ import m from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
6
  import "./index.less.mjs";
7
7
  m.extend(p);
8
8
  const x = (a) => {
@@ -1,6 +1,6 @@
1
- import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as pe, useRef as P, useState as D, useEffect as Ct, useMemo as i, useCallback as ee } from "react";
3
- import { isMobile as K } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
1
+ import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as pe, useRef as P, useState as K, useEffect as Ct, useMemo as i, useCallback as ee } 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
4
  import { Table as se, Skeleton as xt, Typography as We } from "antd";
5
5
  import te from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
6
  import gt from "../../BitzDrawer/index.mjs";
@@ -22,12 +22,12 @@ import Pt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/local
22
22
  import { getColumnsWithTool as Rt, loopBuildSkeleton as St } from "./utils.mjs";
23
23
  import { getCssVar as Ht } from "./style.mjs";
24
24
  import $t from "./SortableRow.mjs";
25
- import vt from "./SortTableContext.mjs";
25
+ import At from "./SortTableContext.mjs";
26
26
  import "./index.less.mjs";
27
- import { ConfigContext as At } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
28
- import Dt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
27
+ import { ConfigContext as Dt } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
28
+ import Kt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
29
29
  const Le = [se.SELECTION_COLUMN, se.EXPAND_COLUMN];
30
- function Kt({
30
+ function Ot({
31
31
  showPagination: p = !0,
32
32
  showSelected: oe = !0,
33
33
  height: W,
@@ -35,7 +35,7 @@ function Kt({
35
35
  total: w = 0,
36
36
  columns: N,
37
37
  loading: l = !1,
38
- skeletonNum: O = {
38
+ skeletonNum: V = {
39
39
  pc: 10,
40
40
  mobile: 10
41
41
  },
@@ -44,93 +44,93 @@ function Kt({
44
44
  skeletonRowsWidth: Re = ["35%", "100%", "100%", "60%"],
45
45
  // mobileLoadEmit,
46
46
  mobileRefreshEmit: le,
47
- operationFilter: V,
47
+ operationFilter: _,
48
48
  enableControlPage: Se,
49
49
  pagination: C,
50
50
  paginationEmit: R = () => {
51
51
  },
52
52
  enabledRowDragSort: S,
53
- onRowDragEnd: _,
54
- mobilePageHeight: Ot = 500,
53
+ onRowDragEnd: q,
54
+ mobilePageHeight: Vt = 500,
55
55
  mobileCancelText: He = "取消",
56
56
  noDataTitle: $e,
57
- noDataImg: ve,
58
- color: Vt,
57
+ noDataImg: Ae,
58
+ color: _t,
59
59
  size: ie,
60
- showTableTool: Ae = !0,
61
- tableAction: De,
62
- tableToolbar: Ke,
63
- selectionBar: Oe,
60
+ showTableTool: De = !0,
61
+ tableAction: Ke,
62
+ tableToolbar: Oe,
63
+ selectionBar: Ve,
64
64
  scroll: d,
65
65
  components: j,
66
66
  expandable: x,
67
67
  rowSelection: a,
68
- resetPage: Ve,
68
+ resetPage: _e,
69
69
  ...h
70
70
  }) {
71
71
  var we, Ne, Te, ke;
72
- const { token: g } = Mt.useToken(), { Table: c } = g, { tableSpaceBetweenPage: ce = 10 } = c, { gap: _e } = Wt(), { showColumnBorder: qe, hideRowBorder: ae, rowHoverable: Fe, ...u } = pe(Tt), H = P(void 0), q = P(0), [F, Ge] = D(0), [Ee, G] = D(!1), [y, Ue] = D([]);
72
+ const { token: g } = Mt.useToken(), { Table: c } = g, { tableSpaceBetweenPage: ce = 10 } = c, { gap: qe } = Wt(), { showColumnBorder: Fe, hideRowBorder: ae, rowHoverable: Ge, ...u } = pe(Tt), H = P(void 0), F = P(0), [G, Ee] = K(0), [Ue, E] = K(!1), [y, ve] = K([]);
73
73
  Ct(() => {
74
74
  let e = [...m];
75
- (C == null ? void 0 : C.page) !== 1 && (e = [...y, ...e]), Ue(e);
75
+ (C == null ? void 0 : C.page) !== 1 && (e = [...y, ...e]), ve(e);
76
76
  }, [m]);
77
- const Ie = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= w, [y, w]), [Xe, Je] = D([]), Qe = (e, t) => {
77
+ const Ie = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= w, [y, w]), [Xe, Je] = K([]), Qe = (e, t) => {
78
78
  var n;
79
- const r = (n = V == null ? void 0 : V(e, t)) == null ? void 0 : n.filter(
80
- (o) => o.type !== "divider"
79
+ const s = (n = _ == null ? void 0 : _(e, t)) == null ? void 0 : n.filter(
80
+ (r) => r.type !== "divider"
81
81
  );
82
- r != null && r.length && (Je(r), G(!0));
82
+ s != null && s.length && (Je(s), E(!0));
83
83
  }, de = () => {
84
- G(!1);
84
+ E(!1);
85
85
  }, Ye = (e) => {
86
86
  var t;
87
- G(!1), (t = e.onClick) == null || t.call(e);
88
- }, B = P(null), E = re(B), he = P(null), U = re(he), I = P(null), k = re(I), Ze = () => {
89
- var r;
90
- const e = (r = B.current) == null ? void 0 : r.querySelectorAll(
87
+ E(!1), (t = e.onClick) == null || t.call(e);
88
+ }, B = P(null), U = re(B), he = P(null), v = re(he), I = P(null), k = re(I), Ze = () => {
89
+ var s;
90
+ const e = (s = B.current) == null ? void 0 : s.querySelectorAll(
91
91
  "& > .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)"
92
92
  ), t = [];
93
93
  if (e == null || e.forEach((n) => {
94
- var o;
94
+ var r;
95
95
  t.push(
96
- ((o = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : o.clientWidth) || 0
96
+ ((r = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : r.clientWidth) || 0
97
97
  );
98
98
  }), t.length)
99
- return Math.ceil(Math.max(...t)) + _e * 2;
99
+ return Math.ceil(Math.max(...t)) + qe * 2;
100
100
  }, ue = () => {
101
101
  var b, f, L;
102
102
  const e = (b = B.current) == null ? void 0 : b.querySelector(
103
103
  ".ant-table-body"
104
- ), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, o = (L = (f = B.current) == null ? void 0 : f.querySelector(
104
+ ), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, r = (L = (f = B.current) == null ? void 0 : f.querySelector(
105
105
  ".ant-table-cell-scrollbar"
106
106
  )) == null ? void 0 : L.offsetWidth;
107
- return { tbodyWidth: t, hasScrollBar: n, scrollbarSize: o };
107
+ return { tbodyWidth: t, hasScrollBar: n, scrollbarSize: r };
108
108
  }, { y: X, tbodyWidth: J, hasScrollBar: $, scrollbarSize: M } = i(() => {
109
- const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
109
+ const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: s } = ue();
110
110
  if (typeof W > "u")
111
111
  return {
112
112
  tbodyWidth: e,
113
113
  hasScrollBar: t,
114
- scrollbarSize: r
114
+ scrollbarSize: s
115
115
  };
116
- let n = 40, o = 40;
116
+ let n = 40, r = 40;
117
117
  if (B.current) {
118
- const A = window.getComputedStyle(B.current);
119
- n = parseInt(A.getPropertyValue("--cell-height")), o = parseInt(A.getPropertyValue("--toolbar-height"));
118
+ const D = window.getComputedStyle(B.current);
119
+ n = parseInt(D.getPropertyValue("--cell-height")), r = parseInt(D.getPropertyValue("--toolbar-height"));
120
120
  }
121
121
  const b = (k == null ? void 0 : k.height) || 0, f = b ? ce : 0;
122
- return { y: (u.fullscreen ? window.innerHeight : W) - b - f - o - n, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
122
+ return { y: (u.fullscreen ? window.innerHeight : W) - b - f - r - n, tbodyWidth: e, hasScrollBar: t, scrollbarSize: s };
123
123
  }, [
124
124
  u.fullscreen,
125
125
  W,
126
126
  k == null ? void 0 : k.height,
127
- E == null ? void 0 : E.height,
128
- U == null ? void 0 : U.height
127
+ U == null ? void 0 : U.height,
128
+ v == null ? void 0 : v.height
129
129
  ]), et = i(() => {
130
130
  let e = (d == null ? void 0 : d.x) ?? 1e3;
131
- return q.current && (e -= q.current), F && H.current && (e -= F * H.current), J && (e = Math.max(e, J)), d != null && d.x ? { x: e, y: d.y || X } : d != null && d.y ? { x: e, y: d.y } : { x: e, y: X };
132
- }, [d, X, J, F]), tt = (e) => {
133
- const t = e.length, r = e.filter((z) => z.width), o = r.map((z) => z.width).reduce((z, Z) => z + Z, 0);
131
+ return F.current && (e -= F.current), G && H.current && (e -= G * H.current), J && (e = Math.max(e, J)), d != null && d.x ? { x: e, y: d.y || X } : d != null && d.y ? { x: e, y: d.y } : { x: e, y: X };
132
+ }, [d, X, J, G]), tt = (e) => {
133
+ const t = e.length, s = e.filter((z) => z.width), r = s.map((z) => z.width).reduce((z, Z) => z + Z, 0);
134
134
  let b = 0;
135
135
  if (B.current) {
136
136
  const z = window.getComputedStyle(B.current), Z = parseInt(
@@ -140,52 +140,52 @@ function Kt({
140
140
  }
141
141
  let f = 0;
142
142
  a && (f += b), x && (f += b);
143
- const { tbodyWidth: L } = ue(), Y = Math.max((d == null ? void 0 : d.x) ?? 0, L ?? 0) - o - f, A = t - r.length;
144
- return Y >= 0 ? Y / A : void 0;
145
- }, v = i(() => {
146
- const t = (N ?? []).filter((f) => !Le.includes(f)), { filterColumns: r, width: n, autoWidthColLength: o } = kt(
143
+ const { tbodyWidth: L } = ue(), Y = Math.max((d == null ? void 0 : d.x) ?? 0, L ?? 0) - r - f, D = t - s.length;
144
+ return Y >= 0 ? Y / D : void 0;
145
+ }, A = i(() => {
146
+ const t = (N ?? []).filter((f) => !Le.includes(f)), { filterColumns: s, width: n, autoWidthColLength: r } = kt(
147
147
  t,
148
148
  u.columnsMap
149
- ), b = r.sort(pt(u.columnsMap));
150
- if (!K) {
149
+ ), b = s.sort(pt(u.columnsMap));
150
+ if (!O) {
151
151
  const f = tt(t);
152
- H.current = Math.ceil(f ?? 0), q.current = Math.ceil(n), Ge(o);
152
+ H.current = Math.ceil(f ?? 0), F.current = Math.ceil(n), Ee(r);
153
153
  }
154
154
  return b;
155
155
  }, [u.columnsMap]), T = i(() => {
156
- if (K)
157
- return v;
158
- const e = v.findIndex((o) => o == null ? void 0 : o.isOperationCol), t = (N ?? []).findIndex((o) => o == null ? void 0 : o.isOperationCol), r = v.slice();
159
- r.splice(e, 1, N == null ? void 0 : N[t]);
160
- const n = r.map((o) => ({
161
- ...o,
162
- ...o != null && o.isDragSortCol ? {
156
+ if (O)
157
+ return A;
158
+ const e = A.findIndex((r) => r == null ? void 0 : r.isOperationCol), t = (N ?? []).findIndex((r) => r == null ? void 0 : r.isOperationCol), s = A.slice();
159
+ s.splice(e, 1, N == null ? void 0 : N[t]);
160
+ const n = s.map((r) => ({
161
+ ...r,
162
+ ...r != null && r.isDragSortCol ? {
163
163
  onCell: (...b) => {
164
164
  var f;
165
165
  return {
166
- ...(f = o == null ? void 0 : o.onCell) == null ? void 0 : f.call(o, b),
166
+ ...(f = r == null ? void 0 : r.onCell) == null ? void 0 : f.call(r, b),
167
167
  "data-column-name": "dragSortCell"
168
168
  };
169
169
  }
170
170
  } : {},
171
- ...o.width ? {
172
- width: o.useMaxWidth ? Ze() ?? o.width : o.width
171
+ ...r != null && r.width ? {
172
+ width: r != null && r.useMaxWidth ? Ze() ?? r.width : r.width
173
173
  } : {
174
174
  // 给未设置width的列设置平均数
175
175
  width: H
176
176
  }
177
177
  }));
178
178
  return Rt(N, n, a, x);
179
- }, [N, v]), fe = i(() => St(T, Le), [T]), rt = i(() => l ? fe : T, [l, T, fe]), me = i(() => {
180
- const e = m == null ? void 0 : m.length, t = e > (O.pc ?? 10) ? e >= 20 ? 20 : e : O.pc ?? 10;
181
- return Array.from({ length: t }).map((n, o) => ({
182
- key: `${Date.now()}${o}`
179
+ }, [N, A]), fe = i(() => St(T, Le), [T]), rt = i(() => l ? fe : T, [l, T, fe]), me = i(() => {
180
+ const e = m == null ? void 0 : m.length, t = e > (V.pc ?? 10) ? e >= 20 ? 20 : e : V.pc ?? 10;
181
+ return Array.from({ length: t }).map((n, r) => ({
182
+ key: `${Date.now()}${r}`
183
183
  }));
184
- }, [m]), be = i(() => l ? me : m, [l, m, me]), { table: Q, locale: st = Pt } = pe(At), ot = { ...st.Table }, nt = ((we = Q == null ? void 0 : Q.expandable) == null ? void 0 : we.expandIcon) || (x == null ? void 0 : x.expandIcon) || Lt(ot), ye = i(() => {
184
+ }, [m]), be = i(() => l ? me : m, [l, m, me]), { table: Q, locale: st = Pt } = pe(Dt), ot = { ...st.Table }, nt = ((we = Q == null ? void 0 : Q.expandable) == null ? void 0 : we.expandIcon) || (x == null ? void 0 : x.expandIcon) || Lt(ot), ye = i(() => {
185
185
  if (x)
186
186
  return {
187
187
  ...x,
188
- expandedRowRender: () => /* @__PURE__ */ s.jsx(s.Fragment, {}),
188
+ expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
189
189
  expandIcon: (e) => {
190
190
  const t = nt(e);
191
191
  return {
@@ -213,8 +213,8 @@ function Kt({
213
213
  var n;
214
214
  if (!h.onRow || l)
215
215
  return {};
216
- const r = (n = h.onRow) == null ? void 0 : n.call(h, e, t);
217
- return r.onClick && (r.className = "rowPointerCursor"), r;
216
+ const s = (n = h.onRow) == null ? void 0 : n.call(h, e, t);
217
+ return s.onClick && (s.className = "rowPointerCursor"), s;
218
218
  },
219
219
  [h.onRow, l]
220
220
  ), at = i(() => te(
@@ -253,16 +253,16 @@ function Kt({
253
253
  u == null ? void 0 : u.zebra,
254
254
  M
255
255
  ]), ut = ee(
256
- (e, t, r) => {
256
+ (e, t, s) => {
257
257
  const n = t % 2 === 0 ? "oddRow" : "evenRow";
258
258
  if (h.rowClassName) {
259
- const o = h.rowClassName(e, t, r);
260
- return te(n, o);
259
+ const r = h.rowClassName(e, t, s);
260
+ return te(n, r);
261
261
  }
262
262
  return n;
263
263
  },
264
264
  [h.rowClassName]
265
- ), Be = /* @__PURE__ */ s.jsx(
265
+ ), Be = /* @__PURE__ */ o.jsx(
266
266
  zt,
267
267
  {
268
268
  finished: Ie,
@@ -273,36 +273,36 @@ function Kt({
273
273
  loadingText: "加载中...",
274
274
  finishedText: "没有更多了",
275
275
  errorText: "加载失败",
276
- children: /* @__PURE__ */ s.jsxs(
276
+ children: /* @__PURE__ */ o.jsxs(
277
277
  "div",
278
278
  {
279
279
  className: "mobileList",
280
280
  style: { backgroundColor: c == null ? void 0 : c.mobileListBgColor },
281
281
  children: [
282
- y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ s.jsx(
282
+ y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ o.jsx(
283
283
  "div",
284
284
  {
285
285
  className: "listItem",
286
286
  style: { backgroundColor: c == null ? void 0 : c.listItemBgColor },
287
287
  onClick: () => Qe(e, t),
288
- children: T == null ? void 0 : T.map((r, n) => {
289
- var o;
290
- return !(r != null && r.mobileHide) && /* @__PURE__ */ s.jsxs(
288
+ children: T == null ? void 0 : T.map((s, n) => {
289
+ var r;
290
+ return !(s != null && s.mobileHide) && /* @__PURE__ */ o.jsxs(
291
291
  "div",
292
292
  {
293
293
  className: "row",
294
294
  style: { color: g.colorText },
295
295
  children: [
296
- !r.mobileHideLabel && /* @__PURE__ */ s.jsxs("div", { className: "label", children: [
297
- `${r.title}`,
296
+ !s.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
297
+ `${s.title}`,
298
298
  ":"
299
299
  ] }),
300
- /* @__PURE__ */ s.jsx("div", { className: "value", children: ((o = r == null ? void 0 : r.render) == null ? void 0 : o.call(
301
- r,
302
- Dt(e, (r == null ? void 0 : r.dataIndex) || ""),
300
+ /* @__PURE__ */ o.jsx("div", { className: "value", children: ((r = s == null ? void 0 : s.render) == null ? void 0 : r.call(
301
+ s,
302
+ Kt(e, (s == null ? void 0 : s.dataIndex) || ""),
303
303
  e,
304
304
  t
305
- )) || (e == null ? void 0 : e[r.dataIndex]) })
305
+ )) || (e == null ? void 0 : e[s.dataIndex]) })
306
306
  ]
307
307
  },
308
308
  n
@@ -311,7 +311,7 @@ function Kt({
311
311
  },
312
312
  t
313
313
  )),
314
- Array.from({ length: O.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ s.jsx(
314
+ Array.from({ length: V.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ o.jsx(
315
315
  "div",
316
316
  {
317
317
  className: "listItem",
@@ -319,7 +319,7 @@ function Kt({
319
319
  display: l ? "block" : "none",
320
320
  backgroundColor: c == null ? void 0 : c.listItemBgColor
321
321
  },
322
- children: /* @__PURE__ */ s.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ s.jsx(
322
+ children: /* @__PURE__ */ o.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ o.jsx(
323
323
  xt,
324
324
  {
325
325
  title: !1,
@@ -337,8 +337,8 @@ function Kt({
337
337
  }
338
338
  )
339
339
  }
340
- ), je = /* @__PURE__ */ s.jsxs("div", { className: "alert", children: [
341
- /* @__PURE__ */ s.jsx(
340
+ ), je = /* @__PURE__ */ o.jsxs("div", { className: "alert", children: [
341
+ /* @__PURE__ */ o.jsx(
342
342
  Me,
343
343
  {
344
344
  highlightTag: "strong",
@@ -347,9 +347,9 @@ function Kt({
347
347
  tagClass: "totalText"
348
348
  }
349
349
  ),
350
- oe && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
351
- /* @__PURE__ */ s.jsx(We.Text, { className: "splitBorder", children: "/" }),
352
- /* @__PURE__ */ s.jsx(
350
+ oe && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
351
+ /* @__PURE__ */ o.jsx(We.Text, { className: "splitBorder", children: "/" }),
352
+ /* @__PURE__ */ o.jsx(
353
353
  Me,
354
354
  {
355
355
  highlightTag: "strong",
@@ -357,7 +357,7 @@ function Kt({
357
357
  sourceString: `已选中 ${((Te = a == null ? void 0 : a.selectedRowKeys) == null ? void 0 : Te.length) ?? 0} 条`
358
358
  }
359
359
  ),
360
- !!((ke = a == null ? void 0 : a.selectedRowKeys) != null && ke.length) && /* @__PURE__ */ s.jsx(
360
+ !!((ke = a == null ? void 0 : a.selectedRowKeys) != null && ke.length) && /* @__PURE__ */ o.jsx(
361
361
  We.Link,
362
362
  {
363
363
  className: "cleanSelected",
@@ -367,15 +367,15 @@ function Kt({
367
367
  )
368
368
  ] })
369
369
  ] }), ft = (e) => {
370
- var r;
370
+ var s;
371
371
  const t = { ...e };
372
- return t.className.includes("ant-table-cell-fix-right") && !$ && ((r = t.style) != null && r.right) && (t.style = {
372
+ return t.className.includes("ant-table-cell-fix-right") && !$ && ((s = t.style) != null && s.right) && (t.style = {
373
373
  ...t.style,
374
374
  right: t.style.right - (M || 0)
375
- }), /* @__PURE__ */ s.jsx("th", { ...t });
375
+ }), /* @__PURE__ */ o.jsx("th", { ...t });
376
376
  }, mt = (e) => {
377
377
  var t;
378
- l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (_ == null || _(e));
378
+ l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (q == null || q(e));
379
379
  }, ze = ee(() => S ? {
380
380
  row: (e) => $t({ ...e, loading: l.toString() })
381
381
  } : {}, [S, S ? l : !1]), bt = i(() => ({
@@ -389,7 +389,7 @@ function Kt({
389
389
  ...ze()
390
390
  }
391
391
  }), [j, $, M, ze]);
392
- return /* @__PURE__ */ s.jsxs(
392
+ return /* @__PURE__ */ o.jsxs(
393
393
  "div",
394
394
  {
395
395
  className: te("bitzTableBlock", {
@@ -397,25 +397,25 @@ function Kt({
397
397
  }),
398
398
  style: dt,
399
399
  children: [
400
- !K && /* @__PURE__ */ s.jsxs("div", { ref: B, className: at, style: ht, children: [
401
- /* @__PURE__ */ s.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [
402
- Ae && /* @__PURE__ */ s.jsxs("div", { className: "bitzTableToolbarBlock", children: [
403
- De || /* @__PURE__ */ s.jsx("div", {}),
404
- Ke,
405
- Oe
400
+ !O && /* @__PURE__ */ o.jsxs("div", { ref: B, className: at, style: ht, children: [
401
+ /* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [
402
+ De && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
403
+ Ke || /* @__PURE__ */ o.jsx("div", {}),
404
+ Oe,
405
+ Ve
406
406
  ] }),
407
- /* @__PURE__ */ s.jsx(
408
- vt,
407
+ /* @__PURE__ */ o.jsx(
408
+ At,
409
409
  {
410
410
  enabledRowDragSort: S,
411
411
  dataSource: be,
412
412
  mergeRowKey: xe,
413
413
  onDragEnd: mt,
414
- children: /* @__PURE__ */ s.jsx(
414
+ children: /* @__PURE__ */ o.jsx(
415
415
  se,
416
416
  {
417
417
  ...h,
418
- bordered: qe,
418
+ bordered: Fe,
419
419
  columns: rt,
420
420
  dataSource: be,
421
421
  loading: !1,
@@ -424,7 +424,7 @@ function Kt({
424
424
  expandable: lt,
425
425
  rowSelection: it,
426
426
  onRow: ct,
427
- rowHoverable: Fe,
427
+ rowHoverable: Ge,
428
428
  rowClassName: ut,
429
429
  className: "bitzTable",
430
430
  components: bt,
@@ -434,9 +434,9 @@ function Kt({
434
434
  }
435
435
  )
436
436
  ] }),
437
- p && !!w && /* @__PURE__ */ s.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
437
+ p && !!w && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
438
438
  je,
439
- /* @__PURE__ */ s.jsx(
439
+ /* @__PURE__ */ o.jsx(
440
440
  Bt,
441
441
  {
442
442
  size: "small",
@@ -444,18 +444,18 @@ function Kt({
444
444
  pagination: C,
445
445
  total: w,
446
446
  dataSource: m,
447
- resetPage: Ve,
447
+ resetPage: _e,
448
448
  hideTotalText: !0,
449
449
  paginationEmit: R
450
450
  }
451
451
  )
452
452
  ] }),
453
- !p && oe && !!w && /* @__PURE__ */ s.jsx("div", { className: "bitzTablePagination", ref: I, children: je })
453
+ !p && oe && !!w && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: I, children: je })
454
454
  ] }),
455
- K && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
456
- (l || (m == null ? void 0 : m.length) > 0) && /* @__PURE__ */ s.jsx(s.Fragment, { children: le ? (
455
+ O && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
456
+ (l || (m == null ? void 0 : m.length) > 0) && /* @__PURE__ */ o.jsx(o.Fragment, { children: le ? (
457
457
  // @ts-ignore
458
- /* @__PURE__ */ s.jsx(
458
+ /* @__PURE__ */ o.jsx(
459
459
  wt,
460
460
  {
461
461
  onRefresh: async () => !l && le(),
@@ -463,18 +463,18 @@ function Kt({
463
463
  }
464
464
  )
465
465
  ) : Be }),
466
- !l && /* @__PURE__ */ s.jsx(jt, { data: m, title: $e, img: ve }),
467
- /* @__PURE__ */ s.jsx(
466
+ !l && /* @__PURE__ */ o.jsx(jt, { data: m, title: $e, img: Ae }),
467
+ /* @__PURE__ */ o.jsx(
468
468
  gt,
469
469
  {
470
470
  className: "tableMobileDrawer",
471
- open: Ee,
471
+ open: Ue,
472
472
  placement: "bottom",
473
473
  height: "auto",
474
474
  closable: !1,
475
475
  onClose: de,
476
- children: /* @__PURE__ */ s.jsxs("div", { className: "drawerBox", children: [
477
- /* @__PURE__ */ s.jsx("div", { className: "boxBody", children: Xe.map((e, t) => /* @__PURE__ */ s.jsx(
476
+ children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
477
+ /* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Xe.map((e, t) => /* @__PURE__ */ o.jsx(
478
478
  "div",
479
479
  {
480
480
  className: "operaList",
@@ -486,8 +486,8 @@ function Kt({
486
486
  },
487
487
  t
488
488
  )) }),
489
- /* @__PURE__ */ s.jsx("div", { className: "boxLine" }),
490
- /* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: de, children: He })
489
+ /* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
490
+ /* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: de, children: He })
491
491
  ] })
492
492
  }
493
493
  )
@@ -496,7 +496,7 @@ function Kt({
496
496
  }
497
497
  );
498
498
  }
499
- const Cr = (p) => /* @__PURE__ */ s.jsx(Nt, { initValue: p, children: /* @__PURE__ */ s.jsx(Kt, { ...p }) });
499
+ const Cr = (p) => /* @__PURE__ */ o.jsx(Nt, { initValue: p, children: /* @__PURE__ */ o.jsx(Ot, { ...p }) });
500
500
  export {
501
501
  Cr as default
502
502
  };