bitz-react-admin-ui 2.2.1 → 2.2.2
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 +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- 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/ActionCol/index.mjs +1 -7
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -16
- package/dist/components/BitzTable/Store/index.mjs +1 -3
- package/dist/components/BitzTable/Table/SortTableContext.d.ts +2 -2
- package/dist/components/BitzTable/Table/SortableRow.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.mjs +44 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +17 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +11 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +21 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +6 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +19 -24
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +41 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +118 -126
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +6 -2
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +9 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +27 -1
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -4
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +0 -1
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +1 -6
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +39 -33
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- 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/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
s as default
|
|
4
7
|
};
|
package/dist/_virtual/index.mjs
CHANGED
package/dist/_virtual/index2.mjs
CHANGED
|
@@ -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 "../../_virtual/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 "../../_virtual/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 "../../_virtual/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 "../../_virtual/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 "../../_virtual/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 "../../_virtual/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 "../../_virtual/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 "../../_virtual/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 "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
7
|
m.extend(p);
|
|
8
8
|
const x = (a) => {
|
|
@@ -104,13 +104,7 @@ function q(s) {
|
|
|
104
104
|
const u = l(c, m).filter(
|
|
105
105
|
(o) => o.type != "detail"
|
|
106
106
|
);
|
|
107
|
-
return /* @__PURE__ */ t.jsx(
|
|
108
|
-
R,
|
|
109
|
-
{
|
|
110
|
-
actionGroup: u,
|
|
111
|
-
refInstance: a
|
|
112
|
-
}
|
|
113
|
-
);
|
|
107
|
+
return /* @__PURE__ */ t.jsx(R, { actionGroup: u, refInstance: a });
|
|
114
108
|
},
|
|
115
109
|
...r
|
|
116
110
|
}), [i, a, l]);
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Space as
|
|
3
|
-
import
|
|
4
|
-
import { useContext as i, useMemo as p, useEffect as
|
|
5
|
-
import { BitzTableContext as
|
|
2
|
+
import { Space as c } from "antd";
|
|
3
|
+
import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
|
+
import { useContext as i, useMemo as p, useEffect as f } from "react";
|
|
5
|
+
import { BitzTableContext as C } from "../Store/index.mjs";
|
|
6
6
|
import u from "./style.mjs";
|
|
7
|
-
const
|
|
8
|
-
show: e,
|
|
9
|
-
num: x,
|
|
10
|
-
onClear: N,
|
|
11
|
-
children: s
|
|
12
|
-
}) => {
|
|
7
|
+
const v = ({ show: e, children: s }) => {
|
|
13
8
|
const {
|
|
14
9
|
blockClassName: a,
|
|
15
10
|
showCls: o,
|
|
16
|
-
btnClassName:
|
|
11
|
+
btnClassName: x,
|
|
17
12
|
batchOperationClassName: r,
|
|
18
|
-
alertContentClassName:
|
|
19
|
-
} = u(), { setSelected: m } = i(
|
|
13
|
+
alertContentClassName: N
|
|
14
|
+
} = u(), { setSelected: m } = i(C), l = p(() => n(a, {
|
|
20
15
|
[`${o}`]: e
|
|
21
16
|
}), [e]);
|
|
22
|
-
return
|
|
17
|
+
return f(() => {
|
|
23
18
|
m(e ?? !1);
|
|
24
|
-
}, [e]), /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(
|
|
19
|
+
}, [e]), /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(c.Compact, { className: r, children: s || /* @__PURE__ */ t.jsx("div", {}) }) });
|
|
25
20
|
};
|
|
26
21
|
export {
|
|
27
|
-
|
|
22
|
+
v as default
|
|
28
23
|
};
|
|
@@ -295,9 +295,7 @@ function Be(e) {
|
|
|
295
295
|
(a = n == null ? void 0 : n(o)) == null || a.then((c) => {
|
|
296
296
|
var f;
|
|
297
297
|
const l = S(c ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
|
|
298
|
-
h(
|
|
299
|
-
Object.keys(l).length ? l : x
|
|
300
|
-
);
|
|
298
|
+
h(Object.keys(l).length ? l : x);
|
|
301
299
|
});
|
|
302
300
|
} catch (c) {
|
|
303
301
|
console.warn(c);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface RowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
3
3
|
'data-row-key': string;
|
|
4
|
-
loading: 'true' | 'false';
|
|
4
|
+
'loading': 'true' | 'false';
|
|
5
5
|
}
|
|
6
6
|
declare const SortableRow: ({ children, loading, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default SortableRow;
|
|
@@ -20,9 +20,9 @@ import Lt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/ta
|
|
|
20
20
|
import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
|
|
21
21
|
import Pt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
|
|
22
22
|
import { getColumnsWithTool as Rt, loopBuildSkeleton as St } from "./utils.mjs";
|
|
23
|
-
import { getCssVar as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
23
|
+
import { getCssVar as Ht } from "./style.mjs";
|
|
24
|
+
import $t from "./SortableRow.mjs";
|
|
25
|
+
import vt from "./SortTableContext.mjs";
|
|
26
26
|
import "./index.less.mjs";
|
|
27
27
|
import { ConfigContext as At } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
|
|
28
28
|
import Dt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
@@ -52,9 +52,9 @@ function Kt({
|
|
|
52
52
|
enabledRowDragSort: S,
|
|
53
53
|
onRowDragEnd: _,
|
|
54
54
|
mobilePageHeight: Ot = 500,
|
|
55
|
-
mobileCancelText:
|
|
56
|
-
noDataTitle:
|
|
57
|
-
noDataImg:
|
|
55
|
+
mobileCancelText: He = "取消",
|
|
56
|
+
noDataTitle: $e,
|
|
57
|
+
noDataImg: ve,
|
|
58
58
|
color: Vt,
|
|
59
59
|
size: ie,
|
|
60
60
|
showTableTool: Ae = !0,
|
|
@@ -69,7 +69,7 @@ function Kt({
|
|
|
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),
|
|
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([]);
|
|
73
73
|
Ct(() => {
|
|
74
74
|
let e = [...m];
|
|
75
75
|
(C == null ? void 0 : C.page) !== 1 && (e = [...y, ...e]), Ue(e);
|
|
@@ -105,7 +105,7 @@ function Kt({
|
|
|
105
105
|
".ant-table-cell-scrollbar"
|
|
106
106
|
)) == null ? void 0 : L.offsetWidth;
|
|
107
107
|
return { tbodyWidth: t, hasScrollBar: n, scrollbarSize: o };
|
|
108
|
-
}, { y: X, tbodyWidth: J, hasScrollBar:
|
|
108
|
+
}, { y: X, tbodyWidth: J, hasScrollBar: $, scrollbarSize: M } = i(() => {
|
|
109
109
|
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
|
|
110
110
|
if (typeof W > "u")
|
|
111
111
|
return {
|
|
@@ -128,7 +128,7 @@ function Kt({
|
|
|
128
128
|
U == null ? void 0 : U.height
|
|
129
129
|
]), et = i(() => {
|
|
130
130
|
let e = (d == null ? void 0 : d.x) ?? 1e3;
|
|
131
|
-
return q.current && (e -= q.current), F &&
|
|
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
132
|
}, [d, X, J, F]), tt = (e) => {
|
|
133
133
|
const t = e.length, r = e.filter((z) => z.width), o = r.map((z) => z.width).reduce((z, Z) => z + Z, 0);
|
|
134
134
|
let b = 0;
|
|
@@ -142,24 +142,24 @@ function Kt({
|
|
|
142
142
|
a && (f += b), x && (f += b);
|
|
143
143
|
const { tbodyWidth: L } = ue(), Y = Math.max((d == null ? void 0 : d.x) ?? 0, L ?? 0) - o - f, A = t - r.length;
|
|
144
144
|
return Y >= 0 ? Y / A : void 0;
|
|
145
|
-
},
|
|
145
|
+
}, v = i(() => {
|
|
146
146
|
const t = (N ?? []).filter((f) => !Le.includes(f)), { filterColumns: r, width: n, autoWidthColLength: o } = kt(
|
|
147
147
|
t,
|
|
148
148
|
u.columnsMap
|
|
149
149
|
), b = r.sort(pt(u.columnsMap));
|
|
150
150
|
if (!K) {
|
|
151
151
|
const f = tt(t);
|
|
152
|
-
|
|
152
|
+
H.current = Math.ceil(f ?? 0), q.current = Math.ceil(n), Ge(o);
|
|
153
153
|
}
|
|
154
154
|
return b;
|
|
155
155
|
}, [u.columnsMap]), T = i(() => {
|
|
156
156
|
if (K)
|
|
157
|
-
return
|
|
158
|
-
const e =
|
|
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
159
|
r.splice(e, 1, N == null ? void 0 : N[t]);
|
|
160
160
|
const n = r.map((o) => ({
|
|
161
161
|
...o,
|
|
162
|
-
...o.isDragSortCol ? {
|
|
162
|
+
...o != null && o.isDragSortCol ? {
|
|
163
163
|
onCell: (...b) => {
|
|
164
164
|
var f;
|
|
165
165
|
return {
|
|
@@ -172,11 +172,11 @@ function Kt({
|
|
|
172
172
|
width: o.useMaxWidth ? Ze() ?? o.width : o.width
|
|
173
173
|
} : {
|
|
174
174
|
// 给未设置width的列设置平均数
|
|
175
|
-
width:
|
|
175
|
+
width: H
|
|
176
176
|
}
|
|
177
177
|
}));
|
|
178
178
|
return Rt(N, n, a, x);
|
|
179
|
-
}, [N,
|
|
179
|
+
}, [N, v]), fe = i(() => St(T, Le), [T]), rt = i(() => l ? fe : T, [l, T, fe]), me = i(() => {
|
|
180
180
|
const e = m == null ? void 0 : m.length, t = e > (O.pc ?? 10) ? e >= 20 ? 20 : e : O.pc ?? 10;
|
|
181
181
|
return Array.from({ length: t }).map((n, o) => ({
|
|
182
182
|
key: `${Date.now()}${o}`
|
|
@@ -220,13 +220,13 @@ function Kt({
|
|
|
220
220
|
), at = i(() => te(
|
|
221
221
|
"bitzTableContainer",
|
|
222
222
|
{ hideBorder: ae },
|
|
223
|
-
{ hasScrollBar:
|
|
223
|
+
{ hasScrollBar: $ },
|
|
224
224
|
ge,
|
|
225
225
|
h.className
|
|
226
226
|
), [
|
|
227
227
|
h.className,
|
|
228
228
|
ge,
|
|
229
|
-
|
|
229
|
+
$,
|
|
230
230
|
u.fullscreen,
|
|
231
231
|
ae
|
|
232
232
|
]), dt = i(() => ({
|
|
@@ -234,7 +234,7 @@ function Kt({
|
|
|
234
234
|
}), [g.colorBgContainer]), ht = i(() => {
|
|
235
235
|
const e = u.fullscreen ? "100%" : W;
|
|
236
236
|
let t;
|
|
237
|
-
return (M ?? 0) > 0 && (t = M),
|
|
237
|
+
return (M ?? 0) > 0 && (t = M), Ht({
|
|
238
238
|
height: e,
|
|
239
239
|
fontFamily: g.fontFamily,
|
|
240
240
|
evenRowBgColor: u.zebra ? c == null ? void 0 : c.evenRowBgColor : g.colorBgContainer,
|
|
@@ -245,7 +245,14 @@ function Kt({
|
|
|
245
245
|
scrollbarWidth: t,
|
|
246
246
|
other: h.style
|
|
247
247
|
});
|
|
248
|
-
}, [
|
|
248
|
+
}, [
|
|
249
|
+
h.style,
|
|
250
|
+
u.fullscreen,
|
|
251
|
+
W,
|
|
252
|
+
c,
|
|
253
|
+
u == null ? void 0 : u.zebra,
|
|
254
|
+
M
|
|
255
|
+
]), ut = ee(
|
|
249
256
|
(e, t, r) => {
|
|
250
257
|
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
251
258
|
if (h.rowClassName) {
|
|
@@ -350,12 +357,19 @@ function Kt({
|
|
|
350
357
|
sourceString: `已选中 ${((Te = a == null ? void 0 : a.selectedRowKeys) == null ? void 0 : Te.length) ?? 0} 条`
|
|
351
358
|
}
|
|
352
359
|
),
|
|
353
|
-
!!((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__ */ s.jsx(
|
|
361
|
+
We.Link,
|
|
362
|
+
{
|
|
363
|
+
className: "cleanSelected",
|
|
364
|
+
onClick: a.onClear,
|
|
365
|
+
children: "取消选中"
|
|
366
|
+
}
|
|
367
|
+
)
|
|
354
368
|
] })
|
|
355
369
|
] }), ft = (e) => {
|
|
356
370
|
var r;
|
|
357
371
|
const t = { ...e };
|
|
358
|
-
return t.className.includes("ant-table-cell-fix-right") &&
|
|
372
|
+
return t.className.includes("ant-table-cell-fix-right") && !$ && ((r = t.style) != null && r.right) && (t.style = {
|
|
359
373
|
...t.style,
|
|
360
374
|
right: t.style.right - (M || 0)
|
|
361
375
|
}), /* @__PURE__ */ s.jsx("th", { ...t });
|
|
@@ -363,7 +377,7 @@ function Kt({
|
|
|
363
377
|
var t;
|
|
364
378
|
l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (_ == null || _(e));
|
|
365
379
|
}, ze = ee(() => S ? {
|
|
366
|
-
row: (e) =>
|
|
380
|
+
row: (e) => $t({ ...e, loading: l.toString() })
|
|
367
381
|
} : {}, [S, S ? l : !1]), bt = i(() => ({
|
|
368
382
|
...j,
|
|
369
383
|
header: {
|
|
@@ -374,11 +388,13 @@ function Kt({
|
|
|
374
388
|
...j == null ? void 0 : j.body,
|
|
375
389
|
...ze()
|
|
376
390
|
}
|
|
377
|
-
}), [j,
|
|
391
|
+
}), [j, $, M, ze]);
|
|
378
392
|
return /* @__PURE__ */ s.jsxs(
|
|
379
393
|
"div",
|
|
380
394
|
{
|
|
381
|
-
className: te("bitzTableBlock", {
|
|
395
|
+
className: te("bitzTableBlock", {
|
|
396
|
+
fullscreen: u.fullscreen
|
|
397
|
+
}),
|
|
382
398
|
style: dt,
|
|
383
399
|
children: [
|
|
384
400
|
!K && /* @__PURE__ */ s.jsxs("div", { ref: B, className: at, style: ht, children: [
|
|
@@ -389,7 +405,7 @@ function Kt({
|
|
|
389
405
|
Oe
|
|
390
406
|
] }),
|
|
391
407
|
/* @__PURE__ */ s.jsx(
|
|
392
|
-
|
|
408
|
+
vt,
|
|
393
409
|
{
|
|
394
410
|
enabledRowDragSort: S,
|
|
395
411
|
dataSource: be,
|
|
@@ -447,7 +463,7 @@ function Kt({
|
|
|
447
463
|
}
|
|
448
464
|
)
|
|
449
465
|
) : Be }),
|
|
450
|
-
!l && /* @__PURE__ */ s.jsx(jt, { data: m, title:
|
|
466
|
+
!l && /* @__PURE__ */ s.jsx(jt, { data: m, title: $e, img: ve }),
|
|
451
467
|
/* @__PURE__ */ s.jsx(
|
|
452
468
|
gt,
|
|
453
469
|
{
|
|
@@ -471,7 +487,7 @@ function Kt({
|
|
|
471
487
|
t
|
|
472
488
|
)) }),
|
|
473
489
|
/* @__PURE__ */ s.jsx("div", { className: "boxLine" }),
|
|
474
|
-
/* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: de, children:
|
|
490
|
+
/* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: de, children: He })
|
|
475
491
|
] })
|
|
476
492
|
}
|
|
477
493
|
)
|
|
@@ -97,8 +97,23 @@ const fe = "导出设置", he = ({
|
|
|
97
97
|
),
|
|
98
98
|
children: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
99
99
|
/* @__PURE__ */ e.jsx(oe, { ref: k, display: i === 1 }),
|
|
100
|
-
/* @__PURE__ */ e.jsx(
|
|
101
|
-
|
|
100
|
+
/* @__PURE__ */ e.jsx(
|
|
101
|
+
re,
|
|
102
|
+
{
|
|
103
|
+
parentHeight: t,
|
|
104
|
+
ref: s,
|
|
105
|
+
display: i === 2
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ e.jsx(
|
|
109
|
+
se,
|
|
110
|
+
{
|
|
111
|
+
parentHeight: t,
|
|
112
|
+
refInstance: x,
|
|
113
|
+
display: i === 3,
|
|
114
|
+
showSelectRadio: !1
|
|
115
|
+
}
|
|
116
|
+
)
|
|
102
117
|
] })
|
|
103
118
|
}
|
|
104
119
|
);
|
|
@@ -45,7 +45,14 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
|
|
|
45
45
|
getTooltipContainer: (p) => p.parentElement,
|
|
46
46
|
title: e,
|
|
47
47
|
open: r ? !1 : void 0,
|
|
48
|
-
children: /* @__PURE__ */ o.jsx(
|
|
48
|
+
children: /* @__PURE__ */ o.jsx(
|
|
49
|
+
t,
|
|
50
|
+
{
|
|
51
|
+
size: s.fontSize + 4,
|
|
52
|
+
className: n,
|
|
53
|
+
onClick: i
|
|
54
|
+
}
|
|
55
|
+
)
|
|
49
56
|
}
|
|
50
57
|
);
|
|
51
58
|
}, B = ({
|
|
@@ -107,7 +114,9 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
|
|
|
107
114
|
return /* @__PURE__ */ o.jsxs(
|
|
108
115
|
"div",
|
|
109
116
|
{
|
|
110
|
-
className: q({ sortItemDragging: m }, "sortItem", {
|
|
117
|
+
className: q({ sortItemDragging: m }, "sortItem", {
|
|
118
|
+
showSortItemOperat: a && !n
|
|
119
|
+
}),
|
|
111
120
|
style: z,
|
|
112
121
|
ref: S,
|
|
113
122
|
onMouseEnter: () => c(!0),
|
|
@@ -58,34 +58,27 @@ const U = ({
|
|
|
58
58
|
onDragStart: y,
|
|
59
59
|
onDragEnd: D,
|
|
60
60
|
onDragCancel: () => f(-1),
|
|
61
|
-
children: /* @__PURE__ */ s.jsx(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
isDragOverlay: !0
|
|
83
|
-
},
|
|
84
|
-
x[i].key
|
|
85
|
-
) })
|
|
86
|
-
] })
|
|
87
|
-
}
|
|
88
|
-
)
|
|
61
|
+
children: /* @__PURE__ */ s.jsx(N, { items: d, strategy: O, children: /* @__PURE__ */ s.jsxs(F, { vertical: !0, className: "sortList", children: [
|
|
62
|
+
x.map((e) => /* @__PURE__ */ s.jsx(
|
|
63
|
+
u,
|
|
64
|
+
{
|
|
65
|
+
item: e,
|
|
66
|
+
placement: g,
|
|
67
|
+
onLeftClick: h,
|
|
68
|
+
onRightClick: p,
|
|
69
|
+
onCheckboxChange: b
|
|
70
|
+
},
|
|
71
|
+
e.key
|
|
72
|
+
)),
|
|
73
|
+
/* @__PURE__ */ s.jsx(K, { children: i !== -1 && /* @__PURE__ */ s.jsx(
|
|
74
|
+
u,
|
|
75
|
+
{
|
|
76
|
+
item: x[i],
|
|
77
|
+
isDragOverlay: !0
|
|
78
|
+
},
|
|
79
|
+
x[i].key
|
|
80
|
+
) })
|
|
81
|
+
] }) })
|
|
89
82
|
}
|
|
90
83
|
);
|
|
91
84
|
};
|
|
@@ -34,7 +34,12 @@ const Re = ye(
|
|
|
34
34
|
}, []);
|
|
35
35
|
const W = k(() => ((o, t) => o.map((s) => {
|
|
36
36
|
var _;
|
|
37
|
-
const { key: n, dataIndex: r, children: l, ...C } = s, y = be(
|
|
37
|
+
const { key: n, dataIndex: r, children: l, ...C } = s, y = be(
|
|
38
|
+
s,
|
|
39
|
+
[t == null ? void 0 : t.columnKey, C.index].join("-")
|
|
40
|
+
), u = i[y || "null"] || {
|
|
41
|
+
show: !0
|
|
42
|
+
};
|
|
38
43
|
return {
|
|
39
44
|
key: y,
|
|
40
45
|
...Ee(C, ["className"]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportFieldsConfigProps } from
|
|
2
|
-
import { FC } from
|
|
1
|
+
import { ExportFieldsConfigProps } from '@/components/BitzTable/Store';
|
|
2
|
+
import { FC } from 'react';
|
|
3
3
|
interface DndListProps {
|
|
4
4
|
dataList: ExportFieldsConfigProps[];
|
|
5
5
|
keys: any[];
|
|
@@ -3,12 +3,7 @@ import { DndContext as j, closestCenter as u, DragOverlay as h } from "../../../
|
|
|
3
3
|
import { SortableContext as v, rectSortingStrategy as y, arrayMove as l } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
4
4
|
import { useState as C } from "react";
|
|
5
5
|
import m from "./DndItem.mjs";
|
|
6
|
-
const E = ({
|
|
7
|
-
dataList: r,
|
|
8
|
-
keys: a,
|
|
9
|
-
onChange: x,
|
|
10
|
-
onMoveEnd: d
|
|
11
|
-
}) => {
|
|
6
|
+
const E = ({ dataList: r, keys: a, onChange: x, onMoveEnd: d }) => {
|
|
12
7
|
const [s, c] = C(-1), f = (t) => {
|
|
13
8
|
const { active: e } = t;
|
|
14
9
|
e && c(e.data.current.sortable.index);
|
|
@@ -32,24 +27,24 @@ const E = ({
|
|
|
32
27
|
onDragStart: f,
|
|
33
28
|
onDragEnd: D,
|
|
34
29
|
onDragCancel: () => c(-1),
|
|
35
|
-
children: /* @__PURE__ */ o.jsx(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
)
|
|
30
|
+
children: /* @__PURE__ */ o.jsx(v, { items: a, strategy: y, children: /* @__PURE__ */ o.jsxs("div", { className: "sortList", children: [
|
|
31
|
+
r.map((t) => /* @__PURE__ */ o.jsx(
|
|
32
|
+
m,
|
|
33
|
+
{
|
|
34
|
+
item: t,
|
|
35
|
+
onCheckboxChange: p
|
|
36
|
+
},
|
|
37
|
+
t.field
|
|
38
|
+
)),
|
|
39
|
+
/* @__PURE__ */ o.jsx(h, { children: s !== -1 && /* @__PURE__ */ o.jsx(
|
|
40
|
+
m,
|
|
41
|
+
{
|
|
42
|
+
item: r[s],
|
|
43
|
+
isDragOverlay: !0
|
|
44
|
+
},
|
|
45
|
+
r[s].field
|
|
46
|
+
) })
|
|
47
|
+
] }) })
|
|
53
48
|
}
|
|
54
49
|
);
|
|
55
50
|
};
|
|
@@ -11,6 +11,6 @@ interface ExportConfigComponentProps<T extends boolean> {
|
|
|
11
11
|
showSelectRadio: T;
|
|
12
12
|
refInstance: Ref<ExportConfigImperativeProps<BooleanConvertType<T>>>;
|
|
13
13
|
}
|
|
14
|
-
declare function ExportConfig<T extends boolean>({ display, showSelectRadio, parentHeight, refInstance }: ExportConfigComponentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function ExportConfig<T extends boolean>({ display, showSelectRadio, parentHeight, refInstance, }: ExportConfigComponentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
declare const _default: import("react").MemoExoticComponent<typeof ExportConfig>;
|
|
16
16
|
export default _default;
|