bitz-react-admin-ui 2.1.5 → 2.1.6
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/_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/Dropdown/index.mjs +16 -15
- package/dist/components/BitzTable/Store/index.d.ts +9 -0
- package/dist/components/BitzTable/Store/index.mjs +146 -139
- package/dist/components/BitzTable/Table/index.mjs +226 -229
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +76 -73
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +10 -4
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +58 -50
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +0 -4
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +45 -28
- package/dist/components/BitzTable/ToolBar/index.d.ts +4 -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
- package/dist/_virtual/dayjs.min2.mjs +0 -4
|
@@ -1,91 +1,94 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { create as
|
|
3
|
-
import { Modal as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { BitzTableContext as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { styles as
|
|
13
|
-
import { BitzConfigContext as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
({ title:
|
|
18
|
-
const { token: s } =
|
|
19
|
-
|
|
20
|
-
const {
|
|
21
|
-
persistenceType:
|
|
22
|
-
persistenceKey:
|
|
23
|
-
onlineChange:
|
|
24
|
-
setColumnsMap:
|
|
25
|
-
setSortKeyColumns:
|
|
26
|
-
stylesStorageType:
|
|
27
|
-
stylesStorageKey:
|
|
28
|
-
setTableStylesConfig:
|
|
29
|
-
onlineStylesConfigChange:
|
|
30
|
-
exportStorageType:
|
|
31
|
-
exportStorageKey:
|
|
32
|
-
setTableExportConfig:
|
|
33
|
-
onlineExportConfigChange:
|
|
34
|
-
} =
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
2
|
+
import { create as te, useModal as oe, antdModalV5 as re } from "@ebay/nice-modal-react";
|
|
3
|
+
import { Modal as se, Typography as ne, Card as le, Segmented as ie, Flex as ae, message as D } from "antd";
|
|
4
|
+
import { useState as c, useContext as W, useRef as h, useMemo as ce } from "react";
|
|
5
|
+
import { BitzTableContext as me } from "../../Store/index.mjs";
|
|
6
|
+
import q from "../../../BitzButton/index.mjs";
|
|
7
|
+
import fe from "../../../BitzTheme/index.mjs";
|
|
8
|
+
import de from "../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
9
|
+
import ue from "./StylesConfig/index.mjs";
|
|
10
|
+
import pe from "./ColumnsSort/index.mjs";
|
|
11
|
+
import ge from "./ExportConfig/index.mjs";
|
|
12
|
+
import { styles as ye } from "./style.mjs";
|
|
13
|
+
import { BitzConfigContext as Ce } from "../../../BitzConfigProvider/context.mjs";
|
|
14
|
+
import xe from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
|
|
15
|
+
import Se from "../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
|
|
16
|
+
const Oe = te(
|
|
17
|
+
({ title: A, onChange: r, getContainer: G }) => {
|
|
18
|
+
const { token: s } = fe.useToken(), n = oe(), [l, m] = c(1), [I, j] = c(!1);
|
|
19
|
+
c(!1);
|
|
20
|
+
const [J, i] = c(!1), {
|
|
21
|
+
persistenceType: P,
|
|
22
|
+
persistenceKey: b,
|
|
23
|
+
onlineChange: f,
|
|
24
|
+
setColumnsMap: Q,
|
|
25
|
+
setSortKeyColumns: U,
|
|
26
|
+
stylesStorageType: X,
|
|
27
|
+
stylesStorageKey: K,
|
|
28
|
+
setTableStylesConfig: d,
|
|
29
|
+
onlineStylesConfigChange: u,
|
|
30
|
+
exportStorageType: Y,
|
|
31
|
+
exportStorageKey: T,
|
|
32
|
+
setTableExportConfig: Z,
|
|
33
|
+
onlineExportConfigChange: p
|
|
34
|
+
} = W(me), o = W(Ce).Table, t = h(null), k = h(null), g = h(null), _ = async () => {
|
|
35
|
+
var B, F, M, R, z, w, N, V, E, O, H, L;
|
|
36
|
+
if (J)
|
|
37
|
+
return;
|
|
38
|
+
i(!0);
|
|
39
|
+
const y = (B = t.current) == null ? void 0 : B.getCheckedKeys();
|
|
40
|
+
if (!(y != null && y.length)) {
|
|
41
|
+
m(2), D.error("表格至少需要显示一列"), i(!1);
|
|
39
42
|
return;
|
|
40
43
|
}
|
|
41
|
-
if (!((
|
|
42
|
-
|
|
44
|
+
if (!((F = g.current) == null ? void 0 : F.hasOne())) {
|
|
45
|
+
m(3), D.error("导出设置至少需要一个字段"), i(!1);
|
|
43
46
|
return;
|
|
44
47
|
}
|
|
45
|
-
const
|
|
46
|
-
...(
|
|
47
|
-
...(
|
|
48
|
-
...(
|
|
49
|
-
},
|
|
50
|
-
...((
|
|
51
|
-
...((
|
|
52
|
-
...((
|
|
53
|
-
],
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
const C = (M = k.current) == null ? void 0 : M.getFormInstance(), x = await (C == null ? void 0 : C.getFieldsValue()), $ = Se(x, "stylesScope"), S = {
|
|
49
|
+
...(R = t.current) == null ? void 0 : R.getLeftSortColumns(),
|
|
50
|
+
...(z = t.current) == null ? void 0 : z.getCenterSortColumns(),
|
|
51
|
+
...(w = t.current) == null ? void 0 : w.getRightSortColumns()
|
|
52
|
+
}, ee = [
|
|
53
|
+
...((N = t.current) == null ? void 0 : N.getLeftSortKeys()) ?? [],
|
|
54
|
+
...((V = t.current) == null ? void 0 : V.getCenterSortKeys()) ?? [],
|
|
55
|
+
...((E = t.current) == null ? void 0 : E.getRightSortKeys()) ?? []
|
|
56
|
+
], v = ((O = g.current) == null ? void 0 : O.getExportConfig()) ?? [];
|
|
57
|
+
d == null || d($), (H = o == null ? void 0 : o.setStylesScope) == null || H.call(o, x.stylesScope ? "global" : "current"), Q(S), U(ee), Z(v), X === "online" && K && (u == null || u(K, x)), P === "online" && b && (f == null || f(b, S)), Y === "online" && T && (p == null || p(T, v)), i(!1), r ? (j(!0), (L = r == null ? void 0 : r(S)) == null || L.finally(() => {
|
|
58
|
+
j(!1), n.hide();
|
|
56
59
|
})) : n.hide();
|
|
57
|
-
},
|
|
60
|
+
}, a = ce(() => s.mode === "dark", [s.mode]);
|
|
58
61
|
return /* @__PURE__ */ e.jsx(
|
|
59
|
-
|
|
62
|
+
se,
|
|
60
63
|
{
|
|
61
|
-
className:
|
|
62
|
-
title: /* @__PURE__ */ e.jsx(
|
|
63
|
-
getContainer:
|
|
64
|
-
...
|
|
64
|
+
className: de(ye(s), "tableConfigModal"),
|
|
65
|
+
title: /* @__PURE__ */ e.jsx(ne.Title, { style: { fontSize: 16, margin: 0 }, children: A }),
|
|
66
|
+
getContainer: G,
|
|
67
|
+
...re(n),
|
|
65
68
|
style: {
|
|
66
|
-
"--sortCard-bgColor":
|
|
67
|
-
"--sortCard-titleColor":
|
|
68
|
-
"--radioCard-bgColor":
|
|
69
|
-
"--radioCard-bgHoverColor":
|
|
69
|
+
"--sortCard-bgColor": a ? "#444" : "#f2f2f2",
|
|
70
|
+
"--sortCard-titleColor": a ? "#ccc" : "#777",
|
|
71
|
+
"--radioCard-bgColor": a ? "#444" : "#F2F2F2",
|
|
72
|
+
"--radioCard-bgHoverColor": a ? "#333" : s.colorBgContainer
|
|
70
73
|
},
|
|
71
74
|
styles: { body: { maxHeight: window.innerHeight - 300 } },
|
|
72
75
|
width: 700,
|
|
73
76
|
footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
74
77
|
/* @__PURE__ */ e.jsx(
|
|
75
|
-
|
|
78
|
+
q,
|
|
76
79
|
{
|
|
77
80
|
type: "primary",
|
|
78
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
79
|
-
onClick:
|
|
80
|
-
loading:
|
|
81
|
+
icon: /* @__PURE__ */ e.jsx(xe, {}),
|
|
82
|
+
onClick: _,
|
|
83
|
+
loading: I,
|
|
81
84
|
children: "保存"
|
|
82
85
|
}
|
|
83
86
|
),
|
|
84
|
-
/* @__PURE__ */ e.jsx(
|
|
87
|
+
/* @__PURE__ */ e.jsx(q, { onClick: () => n.hide(), children: "取消" })
|
|
85
88
|
] }),
|
|
86
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
89
|
+
children: /* @__PURE__ */ e.jsxs(le, { className: "container", bordered: !1, children: [
|
|
87
90
|
/* @__PURE__ */ e.jsx("div", { className: "segmentedWrapper", children: /* @__PURE__ */ e.jsx(
|
|
88
|
-
|
|
91
|
+
ie,
|
|
89
92
|
{
|
|
90
93
|
size: "large",
|
|
91
94
|
options: [
|
|
@@ -94,13 +97,13 @@ const Ve = $(
|
|
|
94
97
|
{ label: "导出设置", value: 3 }
|
|
95
98
|
],
|
|
96
99
|
value: l,
|
|
97
|
-
onChange:
|
|
100
|
+
onChange: m
|
|
98
101
|
}
|
|
99
102
|
) }),
|
|
100
|
-
/* @__PURE__ */ e.jsxs(
|
|
101
|
-
/* @__PURE__ */ e.jsx(
|
|
102
|
-
/* @__PURE__ */ e.jsx(
|
|
103
|
-
/* @__PURE__ */ e.jsx(
|
|
103
|
+
/* @__PURE__ */ e.jsxs(ae, { className: "containerBody", children: [
|
|
104
|
+
/* @__PURE__ */ e.jsx(ue, { ref: k, display: l === 1 }),
|
|
105
|
+
/* @__PURE__ */ e.jsx(pe, { ref: t, display: l === 2 }),
|
|
106
|
+
/* @__PURE__ */ e.jsx(ge, { ref: g, display: l === 3 })
|
|
104
107
|
] })
|
|
105
108
|
] })
|
|
106
109
|
}
|
|
@@ -108,5 +111,5 @@ const Ve = $(
|
|
|
108
111
|
}
|
|
109
112
|
);
|
|
110
113
|
export {
|
|
111
|
-
|
|
114
|
+
Oe as default
|
|
112
115
|
};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { MenuKeysType } from '..';
|
|
3
|
+
interface AnyDataTotalLabelProps {
|
|
4
|
+
onClick: (key: MenuKeysType, info: {
|
|
5
|
+
value: number;
|
|
6
|
+
type: 'page' | 'pieces';
|
|
7
|
+
}) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const AnyDataTotalLabel: FC<AnyDataTotalLabelProps>;
|
|
5
11
|
export default AnyDataTotalLabel;
|
|
@@ -1,42 +1,46 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { css as
|
|
3
|
-
import { Tooltip as
|
|
2
|
+
import { css as s } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
3
|
+
import { Tooltip as g, Flex as b, Typography as l, InputNumber as S, Select as j } from "antd";
|
|
4
4
|
import { useState as a } from "react";
|
|
5
5
|
import y from "../../Select/index.mjs";
|
|
6
|
-
const { Option:
|
|
7
|
-
onClick:
|
|
8
|
-
|
|
6
|
+
const { Option: p } = j, E = ({
|
|
7
|
+
onClick: u,
|
|
8
|
+
onClose: c
|
|
9
9
|
}) => {
|
|
10
|
-
const [
|
|
11
|
-
if (!
|
|
10
|
+
const [m, o] = a(!1), [d, i] = a(!1), [r, f] = a("page"), [t, h] = a(1), x = () => {
|
|
11
|
+
if (!d) {
|
|
12
12
|
if (!t && typeof t != "number" || t <= 0) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
i(!0), o(!0), setTimeout(() => {
|
|
14
|
+
o(!1), i(!1);
|
|
15
15
|
}, 2e3);
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
r(!1), p("page"), l(1);
|
|
20
|
-
}, 200);
|
|
18
|
+
i(!0), u("any", { value: t, type: r }), c();
|
|
21
19
|
}
|
|
22
20
|
};
|
|
23
|
-
return /* @__PURE__ */ e.jsx(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
size: "small",
|
|
34
|
-
addonAfter: /* @__PURE__ */ e.jsxs(
|
|
35
|
-
y,
|
|
21
|
+
return /* @__PURE__ */ e.jsx(
|
|
22
|
+
g,
|
|
23
|
+
{
|
|
24
|
+
open: m,
|
|
25
|
+
title: "数字必须大于等于1",
|
|
26
|
+
getTooltipContainer: (n) => n.parentElement.parentElement.parentElement,
|
|
27
|
+
children: /* @__PURE__ */ e.jsxs(b, { align: "center", gap: 8, onClick: (n) => n.stopPropagation(), children: [
|
|
28
|
+
/* @__PURE__ */ e.jsx(l.Text, { style: { fontSize: "var(--fontSize)" }, children: "导出" }),
|
|
29
|
+
/* @__PURE__ */ e.jsx(
|
|
30
|
+
S,
|
|
36
31
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
controls: !1,
|
|
33
|
+
min: 1,
|
|
34
|
+
value: t,
|
|
35
|
+
onChange: (n) => h(n),
|
|
36
|
+
style: { width: 100 },
|
|
37
|
+
size: "small",
|
|
38
|
+
addonAfter: /* @__PURE__ */ e.jsxs(
|
|
39
|
+
y,
|
|
40
|
+
{
|
|
41
|
+
value: r,
|
|
42
|
+
onChange: f,
|
|
43
|
+
className: s`
|
|
40
44
|
width: auto;
|
|
41
45
|
height: calc(var(--fontSize) + 12px);
|
|
42
46
|
|
|
@@ -49,15 +53,15 @@ const { Option: m } = j, V = ({
|
|
|
49
53
|
padding-inline: 8px !important;
|
|
50
54
|
}
|
|
51
55
|
`,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
popupMatchSelectWidth: !1,
|
|
57
|
+
suffixIcon: !1,
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ e.jsx(p, { value: "page", children: "页" }),
|
|
60
|
+
/* @__PURE__ */ e.jsx(p, { value: "pieces", children: "条" })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
className: s`
|
|
61
65
|
.ant-input-number-group-wrapper {
|
|
62
66
|
height: calc(var(--fontSize) + 12px);
|
|
63
67
|
}
|
|
@@ -67,23 +71,27 @@ const { Option: m } = j, V = ({
|
|
|
67
71
|
.ant-input-number-input {
|
|
68
72
|
height: 100% !important;
|
|
69
73
|
}
|
|
70
|
-
|
|
74
|
+
.ant-input-number {
|
|
75
|
+
box-shadow: none;
|
|
76
|
+
}
|
|
71
77
|
.ant-input-number-group-addon {
|
|
72
78
|
width: auto;
|
|
73
79
|
}
|
|
74
80
|
`
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ e.jsx(
|
|
84
|
+
l.Link,
|
|
85
|
+
{
|
|
86
|
+
style: { userSelect: "none", fontSize: "var(--fontSize)" },
|
|
87
|
+
onClick: x,
|
|
88
|
+
children: "下载"
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
] })
|
|
92
|
+
}
|
|
93
|
+
);
|
|
86
94
|
};
|
|
87
95
|
export {
|
|
88
|
-
|
|
96
|
+
E as default
|
|
89
97
|
};
|
|
@@ -6,10 +6,6 @@ interface ExportIconProps {
|
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
/** 是否显示导出icon */
|
|
8
8
|
show?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* 导出按钮下拉菜单的点击事件,通过key值判断是导出为excel或其他格式的文件
|
|
11
|
-
* @Key1 导出查询结果为excel: excel
|
|
12
|
-
*/
|
|
13
9
|
onClick?: ExportEvent;
|
|
14
10
|
}
|
|
15
11
|
declare const _default: import("react").NamedExoticComponent<ExportIconProps>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { memo as
|
|
1
|
+
import { j as o } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { memo as d, useState as u } from "react";
|
|
3
3
|
import f from "../style.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import x from "../../../BitzButton/index.mjs";
|
|
5
|
+
import y from "../../Dropdown/index.mjs";
|
|
6
|
+
import c from "./AnyDataTotalLabel.mjs";
|
|
7
7
|
import { css as b } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
8
|
-
import
|
|
8
|
+
import g from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
|
|
9
9
|
const j = ({
|
|
10
10
|
show: a = !0,
|
|
11
|
-
order:
|
|
12
|
-
loading:
|
|
11
|
+
order: n,
|
|
12
|
+
loading: m,
|
|
13
13
|
onClick: e,
|
|
14
|
-
icon:
|
|
14
|
+
icon: l = /* @__PURE__ */ o.jsx(g, {})
|
|
15
15
|
}) => {
|
|
16
|
-
const { toolbarItemClassName:
|
|
17
|
-
return a ? /* @__PURE__ */
|
|
18
|
-
|
|
16
|
+
const { toolbarItemClassName: s } = f(), [p, r] = u(!1);
|
|
17
|
+
return a ? /* @__PURE__ */ o.jsx(
|
|
18
|
+
y,
|
|
19
19
|
{
|
|
20
20
|
open: p,
|
|
21
|
-
onOpenChange:
|
|
21
|
+
onOpenChange: r,
|
|
22
22
|
menu: {
|
|
23
23
|
items: [
|
|
24
24
|
{ key: "current", label: "仅导出当前页" },
|
|
@@ -26,34 +26,51 @@ const j = ({
|
|
|
26
26
|
{ type: "divider" },
|
|
27
27
|
{
|
|
28
28
|
key: "any",
|
|
29
|
-
label: /* @__PURE__ */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
background-color: inherit !important;
|
|
29
|
+
label: /* @__PURE__ */ o.jsx(
|
|
30
|
+
c,
|
|
31
|
+
{
|
|
32
|
+
onClick: (t, i) => e == null ? void 0 : e(t, i),
|
|
33
|
+
onClose: () => r(!1)
|
|
35
34
|
}
|
|
36
|
-
|
|
35
|
+
),
|
|
36
|
+
className: "anyTotal"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
onClick: ({ key: t }) => e == null ? void 0 : e(t)
|
|
40
40
|
},
|
|
41
|
+
overlayClassName: b`
|
|
42
|
+
.ant-dropdown-menu.ant-dropdown-menu-root {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
|
|
46
|
+
.anyTotal {
|
|
47
|
+
cursor: default !important;
|
|
48
|
+
margin: 5px 12px;
|
|
49
|
+
padding: 0;
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
background-color: inherit !important;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`,
|
|
41
57
|
trigger: ["click"],
|
|
42
|
-
disabled:
|
|
58
|
+
disabled: m,
|
|
59
|
+
destroyPopupOnHide: !0,
|
|
43
60
|
getPopupContainer: (t) => t.parentElement.parentElement.parentElement,
|
|
44
|
-
children: /* @__PURE__ */
|
|
45
|
-
|
|
61
|
+
children: /* @__PURE__ */ o.jsx(
|
|
62
|
+
x,
|
|
46
63
|
{
|
|
47
64
|
type: "text",
|
|
48
|
-
className:
|
|
49
|
-
icon:
|
|
50
|
-
style: { order:
|
|
65
|
+
className: s,
|
|
66
|
+
icon: l,
|
|
67
|
+
style: { order: n },
|
|
51
68
|
children: "下载"
|
|
52
69
|
}
|
|
53
70
|
)
|
|
54
71
|
}
|
|
55
72
|
) : null;
|
|
56
|
-
},
|
|
73
|
+
}, T = d(j);
|
|
57
74
|
export {
|
|
58
|
-
|
|
75
|
+
T as default
|
|
59
76
|
};
|
|
@@ -41,7 +41,10 @@ export interface BitzTableToolBarProps {
|
|
|
41
41
|
loading?: boolean;
|
|
42
42
|
/**
|
|
43
43
|
* 导出按钮下拉菜单的点击事件,通过key值判断是导出为excel或其他格式的文件
|
|
44
|
-
* @Key1
|
|
44
|
+
* @Key1 仅导出当前页数据: current
|
|
45
|
+
* @Key2 导出所有数据: all
|
|
46
|
+
* @Key3 导出 xx页/条 数据: any
|
|
47
|
+
* @note key为any时,会返回第二个参数,info: {value: number, type: 'page' | 'pieces'}
|
|
45
48
|
*/
|
|
46
49
|
onExport?: ExportEvent;
|
|
47
50
|
/** 表格刷新 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../../../../_virtual/
|
|
2
|
+
import { __module as i } from "../../../../../_virtual/index2.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|