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.
- package/dist/_virtual/dayjs.min.mjs +2 -5
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/Table/index.mjs +124 -124
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +20 -20
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +19 -19
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +35 -35
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
- package/dist/_virtual/dayjs.min2.mjs +0 -4
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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 "../../
|
|
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,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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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
|
|
2
|
-
import { useContext as pe, useRef as P, useState as
|
|
3
|
-
import { isMobile as
|
|
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
|
|
25
|
+
import At from "./SortTableContext.mjs";
|
|
26
26
|
import "./index.less.mjs";
|
|
27
|
-
import { ConfigContext as
|
|
28
|
-
import
|
|
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
|
|
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:
|
|
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:
|
|
47
|
+
operationFilter: _,
|
|
48
48
|
enableControlPage: Se,
|
|
49
49
|
pagination: C,
|
|
50
50
|
paginationEmit: R = () => {
|
|
51
51
|
},
|
|
52
52
|
enabledRowDragSort: S,
|
|
53
|
-
onRowDragEnd:
|
|
54
|
-
mobilePageHeight:
|
|
53
|
+
onRowDragEnd: q,
|
|
54
|
+
mobilePageHeight: Vt = 500,
|
|
55
55
|
mobileCancelText: He = "取消",
|
|
56
56
|
noDataTitle: $e,
|
|
57
|
-
noDataImg:
|
|
58
|
-
color:
|
|
57
|
+
noDataImg: Ae,
|
|
58
|
+
color: _t,
|
|
59
59
|
size: ie,
|
|
60
|
-
showTableTool:
|
|
61
|
-
tableAction:
|
|
62
|
-
tableToolbar:
|
|
63
|
-
selectionBar:
|
|
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:
|
|
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:
|
|
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]),
|
|
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] =
|
|
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
|
|
80
|
-
(
|
|
79
|
+
const s = (n = _ == null ? void 0 : _(e, t)) == null ? void 0 : n.filter(
|
|
80
|
+
(r) => r.type !== "divider"
|
|
81
81
|
);
|
|
82
|
-
|
|
82
|
+
s != null && s.length && (Je(s), E(!0));
|
|
83
83
|
}, de = () => {
|
|
84
|
-
|
|
84
|
+
E(!1);
|
|
85
85
|
}, Ye = (e) => {
|
|
86
86
|
var t;
|
|
87
|
-
|
|
88
|
-
}, B = P(null),
|
|
89
|
-
var
|
|
90
|
-
const e = (
|
|
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
|
|
94
|
+
var r;
|
|
95
95
|
t.push(
|
|
96
|
-
((
|
|
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)) +
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
114
|
+
scrollbarSize: s
|
|
115
115
|
};
|
|
116
|
-
let n = 40,
|
|
116
|
+
let n = 40, r = 40;
|
|
117
117
|
if (B.current) {
|
|
118
|
-
const
|
|
119
|
-
n = parseInt(
|
|
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 -
|
|
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
|
-
|
|
128
|
-
|
|
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
|
|
132
|
-
}, [d, X, J,
|
|
133
|
-
const t = e.length,
|
|
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) -
|
|
144
|
-
return Y >= 0 ? Y /
|
|
145
|
-
},
|
|
146
|
-
const t = (N ?? []).filter((f) => !Le.includes(f)), { filterColumns:
|
|
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 =
|
|
150
|
-
if (!
|
|
149
|
+
), b = s.sort(pt(u.columnsMap));
|
|
150
|
+
if (!O) {
|
|
151
151
|
const f = tt(t);
|
|
152
|
-
H.current = Math.ceil(f ?? 0),
|
|
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 (
|
|
157
|
-
return
|
|
158
|
-
const e =
|
|
159
|
-
|
|
160
|
-
const n =
|
|
161
|
-
...
|
|
162
|
-
...
|
|
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 =
|
|
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
|
-
...
|
|
172
|
-
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,
|
|
180
|
-
const e = m == null ? void 0 : m.length, t = e > (
|
|
181
|
-
return Array.from({ length: t }).map((n,
|
|
182
|
-
key: `${Date.now()}${
|
|
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(
|
|
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__ */
|
|
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
|
|
217
|
-
return
|
|
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,
|
|
256
|
+
(e, t, s) => {
|
|
257
257
|
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
258
258
|
if (h.rowClassName) {
|
|
259
|
-
const
|
|
260
|
-
return te(n,
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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((
|
|
289
|
-
var
|
|
290
|
-
return !(
|
|
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
|
-
!
|
|
297
|
-
`${
|
|
296
|
+
!s.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
|
|
297
|
+
`${s.title}`,
|
|
298
298
|
":"
|
|
299
299
|
] }),
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
|
|
302
|
-
|
|
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[
|
|
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:
|
|
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__ */
|
|
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__ */
|
|
341
|
-
/* @__PURE__ */
|
|
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__ */
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
370
|
+
var s;
|
|
371
371
|
const t = { ...e };
|
|
372
|
-
return t.className.includes("ant-table-cell-fix-right") && !$ && ((
|
|
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__ */
|
|
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) && (
|
|
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__ */
|
|
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
|
-
!
|
|
401
|
-
/* @__PURE__ */
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
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__ */
|
|
408
|
-
|
|
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__ */
|
|
414
|
+
children: /* @__PURE__ */ o.jsx(
|
|
415
415
|
se,
|
|
416
416
|
{
|
|
417
417
|
...h,
|
|
418
|
-
bordered:
|
|
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:
|
|
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__ */
|
|
437
|
+
p && !!w && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
|
|
438
438
|
je,
|
|
439
|
-
/* @__PURE__ */
|
|
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:
|
|
447
|
+
resetPage: _e,
|
|
448
448
|
hideTotalText: !0,
|
|
449
449
|
paginationEmit: R
|
|
450
450
|
}
|
|
451
451
|
)
|
|
452
452
|
] }),
|
|
453
|
-
!p && oe && !!w && /* @__PURE__ */
|
|
453
|
+
!p && oe && !!w && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: I, children: je })
|
|
454
454
|
] }),
|
|
455
|
-
|
|
456
|
-
(l || (m == null ? void 0 : m.length) > 0) && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
467
|
-
/* @__PURE__ */
|
|
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:
|
|
471
|
+
open: Ue,
|
|
472
472
|
placement: "bottom",
|
|
473
473
|
height: "auto",
|
|
474
474
|
closable: !1,
|
|
475
475
|
onClose: de,
|
|
476
|
-
children: /* @__PURE__ */
|
|
477
|
-
/* @__PURE__ */
|
|
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__ */
|
|
490
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
};
|