bitz-react-admin-ui 2.1.7 → 2.1.8
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/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzConfigProvider/context.d.ts +6 -0
- package/dist/components/BitzConfigProvider/index.d.ts +2 -0
- 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/ToolBar/ColConfigIcon/ExportConfig/index.mjs +5 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -10
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +57 -76
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +41 -55
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +3 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +47 -0
- package/dist/components/BitzTable/ToolBar/index.d.ts +1 -1
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -14
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +82 -80
- package/dist/components/BitzTableSelect/TableCell/index.mjs +25 -23
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +17 -16
- package/dist/components/BitzTableSelect/index.d.ts +1 -0
- package/dist/components/BitzTableSelect/index.mjs +33 -31
- 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
|
@@ -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
|
};
|
|
@@ -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);
|
|
@@ -26,7 +26,13 @@ export interface TableComponentContextProps {
|
|
|
26
26
|
/** 外观配置的作用域 */
|
|
27
27
|
setStylesScope?: (value: StylesConfigScopeType) => void;
|
|
28
28
|
}
|
|
29
|
+
/** 控制tableSelect的全局行为 */
|
|
30
|
+
export interface TableSelectComponentContextProps {
|
|
31
|
+
/** 默认size */
|
|
32
|
+
defaultSize?: DensitySize;
|
|
33
|
+
}
|
|
29
34
|
export interface BitzConfigProviderContextProps {
|
|
30
35
|
Table?: TableComponentContextProps;
|
|
36
|
+
TableSelect?: TableSelectComponentContextProps;
|
|
31
37
|
}
|
|
32
38
|
export declare const BitzConfigContext: import("react").Context<BitzConfigProviderContextProps>;
|
|
@@ -14,6 +14,8 @@ interface TableConfigBySize {
|
|
|
14
14
|
export interface BitzTableSelectComponentToken {
|
|
15
15
|
/** table与分页组件的纵向间隙距离 */
|
|
16
16
|
tableSpaceBetweenPage?: number;
|
|
17
|
+
/** 控制padding-block */
|
|
18
|
+
paddingBlock?: number;
|
|
17
19
|
/** list背景颜色 移动端 */
|
|
18
20
|
mobileListBgColor?: string;
|
|
19
21
|
/** listItem背景颜色 移动端 */
|
|
@@ -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) => {
|
|
@@ -13,9 +13,9 @@ const G = T(
|
|
|
13
13
|
R(() => {
|
|
14
14
|
g(n.map((e) => e.field)), a(n.filter((e) => e.show).map((e) => e.field));
|
|
15
15
|
}, [n]);
|
|
16
|
-
const j = p(() => s.length === l.length, [s, l]), C = p(() => l.length > 0 && l.length < s.length, [l, s]),
|
|
16
|
+
const j = p(() => s.length === l.length, [s, l]), C = p(() => l.length > 0 && l.length < s.length, [l, s]), b = (e) => {
|
|
17
17
|
a(e.target.checked ? s : []);
|
|
18
|
-
}, [
|
|
18
|
+
}, [v, w] = r("page"), [k, y] = r(1);
|
|
19
19
|
return z(f, () => ({
|
|
20
20
|
getExportConfig: () => {
|
|
21
21
|
const e = [];
|
|
@@ -40,11 +40,11 @@ const G = T(
|
|
|
40
40
|
{
|
|
41
41
|
checked: j,
|
|
42
42
|
indeterminate: C,
|
|
43
|
-
onChange:
|
|
43
|
+
onChange: b,
|
|
44
44
|
children: "全选"
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
/* @__PURE__ */ t.jsx(h.Group, { value: l, onChange: a, children: n.map((e) => /* @__PURE__ */ t.jsx(h, { value: e.field, children: e.title }, e.field)) })
|
|
47
|
+
/* @__PURE__ */ t.jsx(h.Group, { value: l, onChange: a, children: n.map((e) => /* @__PURE__ */ t.jsx(h, { title: e.title, value: e.field, children: e.title }, e.field)) })
|
|
48
48
|
] }) }),
|
|
49
49
|
/* @__PURE__ */ t.jsx(i.Item, { label: "导出设置", className: "exportTotal", children: /* @__PURE__ */ t.jsx(o.Group, { children: /* @__PURE__ */ t.jsxs(c, { vertical: !0, gap: 8, children: [
|
|
50
50
|
/* @__PURE__ */ t.jsx(o, { value: "current", children: "仅导出当前页" }),
|
|
@@ -61,7 +61,7 @@ const G = T(
|
|
|
61
61
|
addonAfter: /* @__PURE__ */ t.jsx(
|
|
62
62
|
I,
|
|
63
63
|
{
|
|
64
|
-
value:
|
|
64
|
+
value: v,
|
|
65
65
|
onChange: w,
|
|
66
66
|
options: [
|
|
67
67
|
{ label: "页", value: "page" },
|
|
@@ -12,7 +12,7 @@ import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/
|
|
|
12
12
|
import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
13
|
import { css as r } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
14
14
|
const n = (o) => {
|
|
15
|
-
var a,
|
|
15
|
+
var a, i, t;
|
|
16
16
|
return r`
|
|
17
17
|
.ant-modal-content {
|
|
18
18
|
background-color: ${(a = o.Modal) == null ? void 0 : a.contentBg};
|
|
@@ -20,7 +20,7 @@ const n = (o) => {
|
|
|
20
20
|
.ant-modal-header {
|
|
21
21
|
font-size: 16px;
|
|
22
22
|
font-weight: 700;
|
|
23
|
-
background-color: ${(
|
|
23
|
+
background-color: ${(i = o.Modal) == null ? void 0 : i.headerBg};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.ant-modal-body {
|
|
@@ -31,11 +31,11 @@ const n = (o) => {
|
|
|
31
31
|
text-align: left;
|
|
32
32
|
margin: 0;
|
|
33
33
|
padding: 20px;
|
|
34
|
-
background-color: ${(
|
|
34
|
+
background-color: ${(t = o.Modal) == null ? void 0 : t.footerBg};
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
38
|
-
},
|
|
38
|
+
}, l = (o) => r`
|
|
39
39
|
.sortContent {
|
|
40
40
|
width: 100%;
|
|
41
41
|
height: 100%;
|
|
@@ -135,11 +135,11 @@ const n = (o) => {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
`,
|
|
138
|
+
`, d = (o) => r`
|
|
139
139
|
.stylesConfigFormContent {
|
|
140
140
|
display: flex;
|
|
141
141
|
flex-direction: column;
|
|
142
|
-
|
|
142
|
+
|
|
143
143
|
.ant-form-item {
|
|
144
144
|
width: 100%;
|
|
145
145
|
|
|
@@ -220,7 +220,7 @@ const n = (o) => {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
`,
|
|
223
|
+
`, p = (o) => r`
|
|
224
224
|
.exportConfigFormContent {
|
|
225
225
|
display: flex;
|
|
226
226
|
flex-direction: column;
|
|
@@ -239,6 +239,14 @@ const n = (o) => {
|
|
|
239
239
|
display: grid;
|
|
240
240
|
grid-template-columns: repeat(3, 1fr);
|
|
241
241
|
gap: 8px;
|
|
242
|
+
|
|
243
|
+
.ant-checkbox-wrapper span:last-child {
|
|
244
|
+
display: -webkit-box;
|
|
245
|
+
-webkit-line-clamp: 1;
|
|
246
|
+
-webkit-box-orient: vertical;
|
|
247
|
+
overflow: hidden;
|
|
248
|
+
text-overflow: ellipsis;
|
|
249
|
+
}
|
|
242
250
|
}
|
|
243
251
|
}
|
|
244
252
|
`, v = (o) => r`
|
|
@@ -272,11 +280,11 @@ const n = (o) => {
|
|
|
272
280
|
min-height: 450px;
|
|
273
281
|
max-height: 100%;
|
|
274
282
|
|
|
275
|
-
${d(o)}
|
|
276
|
-
|
|
277
283
|
${l(o)}
|
|
278
284
|
|
|
279
|
-
${
|
|
285
|
+
${d(o)}
|
|
286
|
+
|
|
287
|
+
${p()}
|
|
280
288
|
}
|
|
281
289
|
}
|
|
282
290
|
}
|
|
@@ -1,97 +1,78 @@
|
|
|
1
1
|
import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const { Option:
|
|
7
|
-
onClick:
|
|
2
|
+
import { Tooltip as h, Flex as y, Typography as i, InputNumber as S, Select as g } from "antd";
|
|
3
|
+
import { useState as s } from "react";
|
|
4
|
+
import j from "../../Select/index.mjs";
|
|
5
|
+
import { selectStyles as b, inputNumberStyles as T } from "./styles.mjs";
|
|
6
|
+
const { Option: r } = g, V = ({
|
|
7
|
+
onClick: p,
|
|
8
8
|
onClose: c
|
|
9
9
|
}) => {
|
|
10
|
-
const [
|
|
11
|
-
if (!
|
|
10
|
+
const [u, a] = s(!1), [f, l] = s(!1), [o, m] = s("page"), [t, d] = s(1), x = () => {
|
|
11
|
+
if (!f) {
|
|
12
12
|
if (!t && typeof t != "number" || t <= 0) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
l(!0), a(!0), setTimeout(() => {
|
|
14
|
+
a(!1), l(!1);
|
|
15
15
|
}, 2e3);
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
l(!0), p("any", { value: t, type: o }), c();
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
return /* @__PURE__ */ e.jsx(
|
|
22
|
-
|
|
22
|
+
h,
|
|
23
23
|
{
|
|
24
|
-
open:
|
|
24
|
+
open: u,
|
|
25
25
|
title: "数字必须大于等于1",
|
|
26
26
|
getTooltipContainer: (n) => n.parentElement.parentElement.parentElement,
|
|
27
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
addonAfter: /* @__PURE__ */ e.jsxs(
|
|
39
|
-
y,
|
|
27
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
28
|
+
y,
|
|
29
|
+
{
|
|
30
|
+
align: "center",
|
|
31
|
+
gap: 8,
|
|
32
|
+
onClick: (n) => n.stopPropagation(),
|
|
33
|
+
style: { padding: "5px 12px" },
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ e.jsx(i.Text, { style: { fontSize: "var(--fontSize)" }, children: "导出" }),
|
|
36
|
+
/* @__PURE__ */ e.jsx(
|
|
37
|
+
S,
|
|
40
38
|
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
39
|
+
controls: !1,
|
|
40
|
+
min: 1,
|
|
41
|
+
value: t,
|
|
42
|
+
onChange: (n) => d(n),
|
|
43
|
+
style: { width: 100 },
|
|
44
|
+
size: "small",
|
|
45
|
+
addonAfter: /* @__PURE__ */ e.jsxs(
|
|
46
|
+
j,
|
|
47
|
+
{
|
|
48
|
+
value: o,
|
|
49
|
+
onChange: m,
|
|
50
|
+
className: b,
|
|
51
|
+
popupMatchSelectWidth: !1,
|
|
52
|
+
suffixIcon: !1,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ e.jsx(r, { value: "page", children: "页" }),
|
|
55
|
+
/* @__PURE__ */ e.jsx(r, { value: "pieces", children: "条" })
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
className: T
|
|
62
60
|
}
|
|
63
61
|
),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
box-shadow: none;
|
|
76
|
-
}
|
|
77
|
-
.ant-input-number-group-addon {
|
|
78
|
-
width: auto;
|
|
79
|
-
}
|
|
80
|
-
`
|
|
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
|
-
] })
|
|
62
|
+
/* @__PURE__ */ e.jsx(
|
|
63
|
+
i.Link,
|
|
64
|
+
{
|
|
65
|
+
style: { userSelect: "none", fontSize: "var(--fontSize)" },
|
|
66
|
+
onClick: x,
|
|
67
|
+
children: "下载"
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
)
|
|
92
73
|
}
|
|
93
74
|
);
|
|
94
75
|
};
|
|
95
76
|
export {
|
|
96
|
-
|
|
77
|
+
V as default
|
|
97
78
|
};
|
|
@@ -1,76 +1,62 @@
|
|
|
1
1
|
import { j as o } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { memo as x, useState as y, useContext as d } from "react";
|
|
3
|
+
import c from "../style.mjs";
|
|
4
|
+
import b from "../../../BitzButton/index.mjs";
|
|
5
|
+
import g from "../../Dropdown/index.mjs";
|
|
6
|
+
import j from "./AnyDataTotalLabel.mjs";
|
|
7
|
+
import { BitzTableContext as E } from "../../Store/index.mjs";
|
|
8
|
+
import { overlayStyles as N } from "./styles.mjs";
|
|
9
|
+
import O from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
|
|
10
|
+
const h = ({
|
|
11
|
+
show: n = !0,
|
|
12
|
+
order: s,
|
|
12
13
|
loading: m,
|
|
13
14
|
onClick: e,
|
|
14
|
-
icon: l = /* @__PURE__ */ o.jsx(
|
|
15
|
+
icon: l = /* @__PURE__ */ o.jsx(O, {})
|
|
15
16
|
}) => {
|
|
16
|
-
const { toolbarItemClassName:
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const { toolbarItemClassName: p } = c(), [i, r] = y(!1), a = d(E).exportConfig, u = [
|
|
18
|
+
{ key: "current", label: "仅导出当前页" },
|
|
19
|
+
{ key: "all", label: "导出全部数据" },
|
|
20
|
+
{ type: "divider" },
|
|
19
21
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{ type: "divider" },
|
|
27
|
-
{
|
|
28
|
-
key: "any",
|
|
29
|
-
label: /* @__PURE__ */ o.jsx(
|
|
30
|
-
c,
|
|
31
|
-
{
|
|
32
|
-
onClick: (t, i) => e == null ? void 0 : e(t, i),
|
|
33
|
-
onClose: () => r(!1)
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
className: "anyTotal"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
onClick: ({ key: t }) => e == null ? void 0 : e(t)
|
|
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
|
-
}
|
|
22
|
+
key: "any",
|
|
23
|
+
label: /* @__PURE__ */ o.jsx(
|
|
24
|
+
j,
|
|
25
|
+
{
|
|
26
|
+
onClick: (t, f) => e == null ? void 0 : e(t, a, f),
|
|
27
|
+
onClose: () => r(!1)
|
|
55
28
|
}
|
|
56
|
-
|
|
29
|
+
),
|
|
30
|
+
className: "anyTotal"
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
return n ? /* @__PURE__ */ o.jsx(
|
|
34
|
+
g,
|
|
35
|
+
{
|
|
36
|
+
open: i,
|
|
37
|
+
onOpenChange: r,
|
|
38
|
+
overlayClassName: N,
|
|
57
39
|
trigger: ["click"],
|
|
58
40
|
disabled: m,
|
|
59
41
|
destroyPopupOnHide: !0,
|
|
60
42
|
getPopupContainer: (t) => t.parentElement.parentElement.parentElement,
|
|
43
|
+
menu: {
|
|
44
|
+
items: u,
|
|
45
|
+
onClick: ({ key: t }) => e == null ? void 0 : e(t, a)
|
|
46
|
+
},
|
|
61
47
|
children: /* @__PURE__ */ o.jsx(
|
|
62
|
-
|
|
48
|
+
b,
|
|
63
49
|
{
|
|
64
50
|
type: "text",
|
|
65
|
-
className:
|
|
51
|
+
className: p,
|
|
66
52
|
icon: l,
|
|
67
|
-
style: { order:
|
|
53
|
+
style: { order: s },
|
|
68
54
|
children: "下载"
|
|
69
55
|
}
|
|
70
56
|
)
|
|
71
57
|
}
|
|
72
58
|
) : null;
|
|
73
|
-
},
|
|
59
|
+
}, P = x(h);
|
|
74
60
|
export {
|
|
75
|
-
|
|
61
|
+
P as default
|
|
76
62
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { css as t } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
2
|
+
const a = t`
|
|
3
|
+
.anyTotal {
|
|
4
|
+
cursor: default !important;
|
|
5
|
+
padding: 0 !important;
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
background-color: inherit !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`, e = t`
|
|
12
|
+
width: auto;
|
|
13
|
+
height: calc(var(--fontSize) + 12px);
|
|
14
|
+
|
|
15
|
+
.ant-select-selection-item {
|
|
16
|
+
padding-right: 0 !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ant-select-selector {
|
|
20
|
+
width: auto !important;
|
|
21
|
+
padding-inline: 8px !important;
|
|
22
|
+
}
|
|
23
|
+
`, i = t`
|
|
24
|
+
.ant-input-number-group-wrapper {
|
|
25
|
+
height: calc(var(--fontSize) + 12px);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ant-input-number-wrapper,
|
|
29
|
+
.ant-input-number,
|
|
30
|
+
.ant-input-number-input-wrap,
|
|
31
|
+
.ant-input-number-input {
|
|
32
|
+
height: 100% !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ant-input-number {
|
|
36
|
+
box-shadow: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ant-input-number-group-addon {
|
|
40
|
+
width: auto;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
export {
|
|
44
|
+
i as inputNumberStyles,
|
|
45
|
+
a as overlayStyles,
|
|
46
|
+
e as selectStyles
|
|
47
|
+
};
|
|
@@ -3,7 +3,7 @@ import { MouseEventHandler } from 'react';
|
|
|
3
3
|
import { ToolEnum } from '../../../components/BitzConfigProvider/context';
|
|
4
4
|
import { ColumnsConfigProps } from '..';
|
|
5
5
|
export type MenuKeysType = 'current' | 'all' | 'any';
|
|
6
|
-
export type ExportEvent = (key: MenuKeysType, info?: {
|
|
6
|
+
export type ExportEvent = (key: MenuKeysType, exportConfig: ExportConfigProps[], info?: {
|
|
7
7
|
value: number;
|
|
8
8
|
type: 'page' | 'pieces';
|
|
9
9
|
}) => void;
|