bitz-react-admin-ui 2.1.6 → 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.
Files changed (40) hide show
  1. package/dist/_virtual/dayjs.min.mjs +5 -2
  2. package/dist/_virtual/dayjs.min2.mjs +4 -0
  3. package/dist/components/BitzCalendar/index.mjs +1 -1
  4. package/dist/components/BitzConfigProvider/context.d.ts +6 -0
  5. package/dist/components/BitzConfigProvider/index.d.ts +2 -0
  6. package/dist/components/BitzDayJs/index.mjs +1 -1
  7. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  12. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  13. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  14. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  15. package/dist/components/BitzTable/Store/index.d.ts +2 -2
  16. package/dist/components/BitzTable/Store/index.mjs +35 -35
  17. package/dist/components/BitzTable/Store/utils/index.mjs +24 -24
  18. package/dist/components/BitzTable/Table/index.d.ts +3 -1
  19. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +4 -2
  20. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +116 -109
  21. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +5 -5
  22. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +24 -25
  23. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -10
  24. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +57 -76
  25. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +41 -55
  26. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +3 -0
  27. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +47 -0
  28. package/dist/components/BitzTable/ToolBar/index.d.ts +3 -3
  29. package/dist/components/BitzTable/index.d.ts +2 -2
  30. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -14
  31. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +82 -80
  32. package/dist/components/BitzTableSelect/TableCell/index.mjs +25 -23
  33. package/dist/components/BitzTableSelect/TextBlock/index.mjs +17 -16
  34. package/dist/components/BitzTableSelect/index.d.ts +1 -0
  35. package/dist/components/BitzTableSelect/index.mjs +33 -31
  36. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  37. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  38. package/dist/style.css +1 -1
  39. package/dist/utils/time.mjs +1 -1
  40. package/package.json +1 -1
@@ -1,115 +1,122 @@
1
1
  import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
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";
2
+ import { Modal as re, Typography as oe, Card as se, Segmented as ne, Flex as le, message as W } from "antd";
3
+ import { useState as m, useContext as q, useRef as K, useMemo as ie, useEffect as ae } from "react";
4
+ import { BitzTableContext as ce } from "../../Store/index.mjs";
5
+ import A from "../../../BitzButton/index.mjs";
7
6
  import fe from "../../../BitzTheme/index.mjs";
8
- import de from "../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
7
+ import me from "../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
9
8
  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);
42
- return;
43
- }
44
- if (!((F = g.current) == null ? void 0 : F.hasOne())) {
45
- m(3), D.error("导出设置至少需要一个字段"), i(!1);
46
- return;
47
- }
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();
59
- })) : n.hide();
60
- }, a = ce(() => s.mode === "dark", [s.mode]);
61
- return /* @__PURE__ */ e.jsx(
62
- se,
63
- {
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),
68
- style: {
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
73
- },
74
- styles: { body: { maxHeight: window.innerHeight - 300 } },
75
- width: 700,
76
- footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
77
- /* @__PURE__ */ e.jsx(
78
- q,
79
- {
80
- type: "primary",
81
- icon: /* @__PURE__ */ e.jsx(xe, {}),
82
- onClick: _,
83
- loading: I,
84
- children: "保存"
85
- }
86
- ),
87
- /* @__PURE__ */ e.jsx(q, { onClick: () => n.hide(), children: "取消" })
88
- ] }),
89
- children: /* @__PURE__ */ e.jsxs(le, { className: "container", bordered: !1, children: [
90
- /* @__PURE__ */ e.jsx("div", { className: "segmentedWrapper", children: /* @__PURE__ */ e.jsx(
91
- ie,
92
- {
93
- size: "large",
94
- options: [
95
- { label: "外观设置", value: 1 },
96
- { label: "列设置", value: 2 },
97
- { label: "导出设置", value: 3 }
98
- ],
99
- value: l,
100
- onChange: m
101
- }
102
- ) }),
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 })
107
- ] })
9
+ import de from "./ColumnsSort/index.mjs";
10
+ import pe from "./ExportConfig/index.mjs";
11
+ import { styles as ge } from "./style.mjs";
12
+ import { BitzConfigContext as ye } from "../../../BitzConfigProvider/context.mjs";
13
+ import Ce from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
14
+ import xe from "../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
15
+ const Ne = ({
16
+ open: u,
17
+ title: G,
18
+ onChange: s,
19
+ close: n,
20
+ getContainer: I
21
+ }) => {
22
+ const { token: l } = fe.useToken(), [i, a] = m(1), [J, d] = m(!1);
23
+ m(!1);
24
+ const [P, r] = m(!1), {
25
+ persistenceType: Q,
26
+ persistenceKey: T,
27
+ onlineChange: p,
28
+ setColumnsMap: U,
29
+ setSortKeyColumns: X,
30
+ stylesStorageType: Y,
31
+ stylesStorageKey: k,
32
+ setTableStylesConfig: g,
33
+ onlineStylesConfigChange: y,
34
+ exportStorageType: Z,
35
+ exportStorageKey: v,
36
+ setTableExportConfig: _,
37
+ onlineExportConfigChange: C
38
+ } = q(ce), o = q(ye).Table, t = K(null), B = K(null), x = K(null), $ = async () => {
39
+ var F, R, z, w, E, M, N, O, V, H, L, D;
40
+ if (P)
41
+ return;
42
+ r(!0);
43
+ const S = (F = t.current) == null ? void 0 : F.getCheckedKeys();
44
+ if (!(S != null && S.length)) {
45
+ a(2), W.error("表格至少需要显示一列"), r(!1);
46
+ return;
47
+ }
48
+ if (!((R = x.current) == null ? void 0 : R.hasOne())) {
49
+ a(3), W.error("导出设置至少需要一个字段"), r(!1);
50
+ return;
51
+ }
52
+ const j = (z = B.current) == null ? void 0 : z.getFormInstance(), f = await (j == null ? void 0 : j.getFieldsValue()), ee = xe(f, "stylesScope"), h = {
53
+ ...(w = t.current) == null ? void 0 : w.getLeftSortColumns(),
54
+ ...(E = t.current) == null ? void 0 : E.getCenterSortColumns(),
55
+ ...(M = t.current) == null ? void 0 : M.getRightSortColumns()
56
+ }, te = [
57
+ ...((N = t.current) == null ? void 0 : N.getLeftSortKeys()) ?? [],
58
+ ...((O = t.current) == null ? void 0 : O.getCenterSortKeys()) ?? [],
59
+ ...((V = t.current) == null ? void 0 : V.getRightSortKeys()) ?? []
60
+ ], b = ((H = x.current) == null ? void 0 : H.getExportConfig()) ?? [];
61
+ g == null || g(ee), (L = o == null ? void 0 : o.setStylesScope) == null || L.call(o, f.stylesScope ? "global" : "current"), U(h), X(te), _(b), Y === "online" && k && (y == null || y(k, f)), Q === "online" && T && (p == null || p(T, h)), Z === "online" && v && (C == null || C(v, b)), r(!1), s ? (d(!0), (D = s == null ? void 0 : s(f, h, b)) == null || D.finally(() => {
62
+ d(!1), n();
63
+ })) : n();
64
+ }, c = ie(() => l.mode === "dark", [l.mode]);
65
+ return ae(() => {
66
+ u || (a(1), d(!1), r(!1));
67
+ }, [u]), /* @__PURE__ */ e.jsx(
68
+ re,
69
+ {
70
+ className: me(ge(l), "tableConfigModal"),
71
+ title: /* @__PURE__ */ e.jsx(oe.Title, { style: { fontSize: 16, margin: 0 }, children: G }),
72
+ destroyOnClose: !0,
73
+ getContainer: I,
74
+ open: u,
75
+ onCancel: n,
76
+ style: {
77
+ "--sortCard-bgColor": c ? "#444" : "#f2f2f2",
78
+ "--sortCard-titleColor": c ? "#ccc" : "#777",
79
+ "--radioCard-bgColor": c ? "#444" : "#F2F2F2",
80
+ "--radioCard-bgHoverColor": c ? "#333" : l.colorBgContainer
81
+ },
82
+ styles: { body: { maxHeight: window.innerHeight - 300 } },
83
+ width: 700,
84
+ footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
85
+ /* @__PURE__ */ e.jsx(
86
+ A,
87
+ {
88
+ type: "primary",
89
+ icon: /* @__PURE__ */ e.jsx(Ce, {}),
90
+ onClick: $,
91
+ loading: J,
92
+ children: "保存"
93
+ }
94
+ ),
95
+ /* @__PURE__ */ e.jsx(A, { onClick: n, children: "取消" })
96
+ ] }),
97
+ children: /* @__PURE__ */ e.jsxs(se, { className: "container", bordered: !1, children: [
98
+ /* @__PURE__ */ e.jsx("div", { className: "segmentedWrapper", children: /* @__PURE__ */ e.jsx(
99
+ ne,
100
+ {
101
+ size: "large",
102
+ options: [
103
+ { label: "外观设置", value: 1 },
104
+ { label: "列设置", value: 2 },
105
+ { label: "导出设置", value: 3 }
106
+ ],
107
+ value: i,
108
+ onChange: a
109
+ }
110
+ ) }),
111
+ /* @__PURE__ */ e.jsxs(le, { className: "containerBody", children: [
112
+ /* @__PURE__ */ e.jsx(ue, { ref: B, display: i === 1 }),
113
+ /* @__PURE__ */ e.jsx(de, { ref: t, display: i === 2 }),
114
+ /* @__PURE__ */ e.jsx(pe, { ref: x, display: i === 3 })
108
115
  ] })
109
- }
110
- );
111
- }
112
- );
116
+ ] })
117
+ }
118
+ );
119
+ };
113
120
  export {
114
- Oe as default
121
+ Ne as default
115
122
  };
@@ -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]), v = (e) => {
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
- }, [b, w] = r("page"), [k, y] = r(1);
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: v,
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: b,
64
+ value: v,
65
65
  onChange: w,
66
66
  options: [
67
67
  { label: "页", value: "page" },
@@ -1,44 +1,43 @@
1
1
  import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as g, useState as x, useMemo as h, useEffect as j } from "react";
3
- import { Tooltip as b } from "antd";
4
- import { show as E } from "@ebay/nice-modal-react";
5
- import B from "./ColumnConfigModal.mjs";
2
+ import { useState as m, useMemo as h, useEffect as j } from "react";
3
+ import { Tooltip as E } from "antd";
4
+ import b from "./ColumnConfigModal.mjs";
6
5
  import p from "../style.mjs";
7
6
  import v from "../../../BitzButton/index.mjs";
8
- import { BitzTableContext as y } from "../../Store/index.mjs";
9
- import z from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs";
10
- const s = "表格设置", N = (n) => {
11
- const { order: a, show: u = !0, icon: f = /* @__PURE__ */ e.jsx(z, {}) } = n, { toolbarItemClassName: d } = p(), { uuid: l } = g(y), [i, r] = x(!1), C = h(() => i ? !1 : void 0, [i]);
12
- return j(() => (document == null || document.addEventListener("fullscreenchange", (o) => {
13
- var t, m, c;
14
- (t = o.target) != null && t.classList.contains("bitzTableBlock") && (r(!!document.fullscreenElement), (c = (m = document.fullscreenElement) == null ? void 0 : m.classList) != null && c.contains("bitzTableBlock") || r(!1));
7
+ import y from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs";
8
+ const o = "表格设置", I = (n) => {
9
+ const { order: u, show: f = !0, icon: d = /* @__PURE__ */ e.jsx(y, {}) } = n, { toolbarItemClassName: g } = p(), [x, l] = m(!1), [r, c] = m(!1), C = h(() => r ? !1 : void 0, [r]);
10
+ return j(() => (document == null || document.addEventListener("fullscreenchange", (s) => {
11
+ var t, i, a;
12
+ (t = s.target) != null && t.classList.contains("bitzTableBlock") && (c(!!document.fullscreenElement), (a = (i = document.fullscreenElement) == null ? void 0 : i.classList) != null && a.contains("bitzTableBlock") || c(!1));
15
13
  }), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
16
- })), []), u ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
14
+ })), []), f ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
17
15
  /* @__PURE__ */ e.jsx(
18
- B,
16
+ b,
19
17
  {
20
- id: `ColumnConfigModal-${l}`,
21
- title: s,
22
- onChange: async (o) => {
18
+ open: x,
19
+ title: o,
20
+ onChange: async (...s) => {
23
21
  var t;
24
- return (t = n.onChange) == null ? void 0 : t.call(n, o);
22
+ return (t = n.onChange) == null ? void 0 : t.call(n, ...s);
25
23
  },
26
- getContainer: C
24
+ getContainer: C,
25
+ close: () => l(!1)
27
26
  }
28
27
  ),
29
- /* @__PURE__ */ e.jsx(b, { title: s, open: !1, children: /* @__PURE__ */ e.jsx(
28
+ /* @__PURE__ */ e.jsx(E, { title: o, open: !1, children: /* @__PURE__ */ e.jsx(
30
29
  v,
31
30
  {
32
31
  type: "text",
33
- className: d,
34
- onClick: () => E(`ColumnConfigModal-${l}`),
35
- icon: f,
36
- style: { order: a },
37
- children: s
32
+ className: g,
33
+ onClick: () => l(!0),
34
+ icon: d,
35
+ style: { order: u },
36
+ children: o
38
37
  }
39
38
  ) })
40
39
  ] }) : null;
41
40
  };
42
41
  export {
43
- N as default
42
+ I as default
44
43
  };
@@ -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, t, i;
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: ${(t = o.Modal) == null ? void 0 : t.headerBg};
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: ${(i = o.Modal) == null ? void 0 : i.footerBg};
34
+ background-color: ${(t = o.Modal) == null ? void 0 : t.footerBg};
35
35
  }
36
36
  }
37
37
  `;
38
- }, d = (o) => r`
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
- `, l = (o) => r`
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
- `, c = (o) => r`
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
- ${c()}
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 { 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
- import { useState as a } from "react";
5
- import y from "../../Select/index.mjs";
6
- const { Option: p } = j, E = ({
7
- onClick: u,
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 [m, o] = a(!1), [d, i] = a(!1), [r, f] = a("page"), [t, h] = a(1), x = () => {
11
- if (!d) {
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
- i(!0), o(!0), setTimeout(() => {
14
- o(!1), i(!1);
13
+ l(!0), a(!0), setTimeout(() => {
14
+ a(!1), l(!1);
15
15
  }, 2e3);
16
16
  return;
17
17
  }
18
- i(!0), u("any", { value: t, type: r }), c();
18
+ l(!0), p("any", { value: t, type: o }), c();
19
19
  }
20
20
  };
21
21
  return /* @__PURE__ */ e.jsx(
22
- g,
22
+ h,
23
23
  {
24
- open: m,
24
+ open: u,
25
25
  title: "数字必须大于等于1",
26
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,
31
- {
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,
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
- value: r,
42
- onChange: f,
43
- className: s`
44
- width: auto;
45
- height: calc(var(--fontSize) + 12px);
46
-
47
- .ant-select-selection-item {
48
- padding-right: 0 !important;
49
- }
50
-
51
- .ant-select-selector {
52
- width: auto !important;
53
- padding-inline: 8px !important;
54
- }
55
- `,
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
- ]
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
- className: s`
65
- .ant-input-number-group-wrapper {
66
- height: calc(var(--fontSize) + 12px);
67
- }
68
- .ant-input-number-wrapper,
69
- .ant-input-number,
70
- .ant-input-number-input-wrap,
71
- .ant-input-number-input {
72
- height: 100% !important;
73
- }
74
- .ant-input-number {
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
- E as default
77
+ V as default
97
78
  };