bitz-react-admin-ui 2.3.1 → 2.3.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.
Files changed (58) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +4 -26
  2. package/dist/_virtual/index.mjs +2 -2
  3. package/dist/_virtual/index2.mjs +2 -2
  4. package/dist/components/BitzConfigProvider/context.d.ts +1 -0
  5. package/dist/components/BitzConfigProvider/context.mjs +4 -3
  6. package/dist/components/BitzHighlight/style.mjs +12 -12
  7. package/dist/components/BitzTable/ActionBar/style.mjs +21 -21
  8. package/dist/components/BitzTable/ActionCol/index.mjs +59 -58
  9. package/dist/components/BitzTable/ActionCol/style.d.ts +1 -1
  10. package/dist/components/BitzTable/ActionCol/style.mjs +28 -28
  11. package/dist/components/BitzTable/Dropdown/style.mjs +25 -25
  12. package/dist/components/BitzTable/SelectionBar/style.mjs +24 -24
  13. package/dist/components/BitzTable/Store/index.mjs +37 -37
  14. package/dist/components/BitzTable/SubTable/index.mjs +94 -94
  15. package/dist/components/BitzTable/Table/index.mjs +244 -245
  16. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +51 -47
  17. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +61 -60
  18. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +46 -38
  19. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +44 -44
  20. package/dist/components/BitzTable/ToolBar/style.mjs +21 -21
  21. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +14 -15
  22. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +14 -15
  23. package/dist/components/BitzTableSelect/TableCell/index.mjs +34 -33
  24. package/dist/components/BitzTableSelect/TextBlock/index.mjs +20 -18
  25. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  26. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -9
  27. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
  30. package/dist/_virtual/Draggable.mjs +0 -4
  31. package/dist/_virtual/DraggableCore.mjs +0 -4
  32. package/dist/_virtual/Resizable.mjs +0 -4
  33. package/dist/_virtual/ResizableBox.mjs +0 -4
  34. package/dist/_virtual/cjs.mjs +0 -4
  35. package/dist/_virtual/clsx.m.mjs +0 -6
  36. package/dist/_virtual/domFns.mjs +0 -4
  37. package/dist/_virtual/getPrefix.mjs +0 -4
  38. package/dist/_virtual/index6.mjs +0 -4
  39. package/dist/_virtual/log.mjs +0 -4
  40. package/dist/_virtual/positionFns.mjs +0 -4
  41. package/dist/_virtual/propTypes.mjs +0 -4
  42. package/dist/_virtual/shims.mjs +0 -4
  43. package/dist/_virtual/utils.mjs +0 -4
  44. package/dist/components/BitzTable/Table/ResizableTitle.mjs +0 -32
  45. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +0 -22
  46. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +0 -343
  47. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +0 -324
  48. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +0 -14
  49. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +0 -174
  50. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +0 -35
  51. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +0 -7
  52. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +0 -107
  53. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +0 -30
  54. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +0 -201
  55. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +0 -162
  56. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +0 -118
  57. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +0 -54
  58. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +0 -13
@@ -1,19 +1,19 @@
1
1
  import { j as n } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { BitzTableContext as A } from "../../../Store/index.mjs";
3
- import D from "../../../../BitzTheme/index.mjs";
4
- import { findParentFirstNodeByClass as L } from "../../../../../utils/findNode.mjs";
5
- import M from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
6
- import { Form as C, Flex as y, Checkbox as O, Radio as c, InputNumber as P, Select as G } from "antd";
7
- import { memo as $, useRef as q, useMemo as h, useContext as F, useState as f, useEffect as J, useImperativeHandle as Q } from "react";
8
- import R from "./DndList.mjs";
9
- function U({
2
+ import { BitzTableContext as N } from "../../../Store/index.mjs";
3
+ import P from "../../../../BitzTheme/index.mjs";
4
+ import { findParentFirstNodeByClass as G } from "../../../../../utils/findNode.mjs";
5
+ import $ from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
6
+ import { Form as C, Flex as y, Checkbox as q, Radio as h, InputNumber as J, Select as Q } from "antd";
7
+ import { memo as R, useRef as U, useMemo as f, useContext as T, useState as u, useEffect as W, useImperativeHandle as X } from "react";
8
+ import Y from "./DndList.mjs";
9
+ function Z({
10
10
  display: r,
11
11
  showSelectRadio: g = !1,
12
- parentHeight: u,
13
- refInstance: I
12
+ parentHeight: p,
13
+ refInstance: B
14
14
  }) {
15
- D.useToken();
16
- const v = q(null), t = M(v), N = h(() => ({
15
+ P.useToken();
16
+ const v = U(null), t = $(v), V = f(() => ({
17
17
  // display: display ? 'flex' : 'none'
18
18
  width: r ? "100%" : 0,
19
19
  height: "100%",
@@ -25,19 +25,19 @@ function U({
25
25
  left: 0,
26
26
  right: 0
27
27
  }
28
- }), [r]), T = h(() => typeof u == "number" && u && (t != null && t.height) ? u - (t == null ? void 0 : t.height) - 20 : "auto", [u, t == null ? void 0 : t.height]), l = F(A).exportConfig, x = F(A).selected, [i, w] = f([]), [a, p] = f([]), [m, b] = f("current"), [k, E] = f("page"), [j, S] = f(1);
29
- J(() => {
30
- var e, s;
31
- p(l.fields), w(l.fields.map((d) => d.field)), b(
32
- g && x ? "selectedRows" : l.config.key
33
- ), E(((e = l.config.info) == null ? void 0 : e.type) ?? "page"), S(((s = l.config.info) == null ? void 0 : s.value) ?? 1);
28
+ }), [r]), z = f(() => typeof p == "number" && p && (t != null && t.height) ? p - (t == null ? void 0 : t.height) - 20 : "auto", [p, t == null ? void 0 : t.height]), l = T(N).exportConfig, x = T(N).selected, [i, w] = u([]), [a, d] = u([]), [m, b] = u("current"), [k, E] = u("page"), [j, S] = u(1);
29
+ W(() => {
30
+ var e, s, c, A, F, I;
31
+ d(l.fields ?? []), w(((e = l.fields) == null ? void 0 : e.map((O) => O.field)) ?? []), b(
32
+ g && x ? "selectedRows" : ((s = l.config) == null ? void 0 : s.key) ?? "current"
33
+ ), E(((A = (c = l.config) == null ? void 0 : c.info) == null ? void 0 : A.type) ?? "page"), S(((I = (F = l.config) == null ? void 0 : F.info) == null ? void 0 : I.value) ?? 1);
34
34
  }, [l, g, x]);
35
- const o = h(() => a.filter((e) => e.show).map((e) => e.field), [a]), B = h(() => i.length === o.length, [i, o]), V = h(() => o.length > 0 && o.length < i.length, [o, i]), z = ({ target: e }) => {
36
- p(a.map((s) => ({ ...s, show: e.checked })));
37
- }, K = (e, s) => {
38
- p(e), w(s);
35
+ const o = f(() => a.filter((e) => e.show).map((e) => e.field), [a]), K = f(() => i.length === o.length, [i, o]), D = f(() => o.length > 0 && o.length < i.length, [o, i]), L = ({ target: e }) => {
36
+ d(a.map((s) => ({ ...s, show: e.checked })));
37
+ }, M = (e, s) => {
38
+ d(e), w(s);
39
39
  };
40
- return Q(I, () => ({
40
+ return X(B, () => ({
41
41
  getExportConfig: () => {
42
42
  const e = {
43
43
  fields: [],
@@ -47,8 +47,8 @@ function U({
47
47
  }
48
48
  };
49
49
  return a.forEach((s) => {
50
- let d = !1;
51
- o.includes(s.field) && (d = !0), e.fields.push({ ...s, show: d });
50
+ let c = !1;
51
+ o.includes(s.field) && (c = !0), e.fields.push({ ...s, show: c });
52
52
  }), m === "any" && (e.config.info = {
53
53
  type: k,
54
54
  value: (j || 0) < 1 ? 1 : j || 1
@@ -58,46 +58,46 @@ function U({
58
58
  })), /* @__PURE__ */ n.jsxs(
59
59
  C,
60
60
  {
61
- style: N,
61
+ style: V,
62
62
  labelCol: { span: 3 },
63
63
  labelAlign: "left",
64
64
  colon: !1,
65
65
  className: "exportConfigFormContent",
66
66
  children: [
67
- /* @__PURE__ */ n.jsx(C.Item, { label: "导出字段", className: "exportFields", children: /* @__PURE__ */ n.jsxs(y, { vertical: !0, style: { gap: 8, maxHeight: T }, children: [
67
+ /* @__PURE__ */ n.jsx(C.Item, { label: "导出字段", className: "exportFields", children: /* @__PURE__ */ n.jsxs(y, { vertical: !0, style: { gap: 8, maxHeight: z }, children: [
68
68
  /* @__PURE__ */ n.jsx(
69
- O,
69
+ q,
70
70
  {
71
- checked: B,
72
- indeterminate: V,
73
- onChange: z,
71
+ checked: K,
72
+ indeterminate: D,
73
+ onChange: L,
74
74
  style: { alignSelf: "flex-start" },
75
75
  children: "全选"
76
76
  }
77
77
  ),
78
78
  /* @__PURE__ */ n.jsx(
79
- R,
79
+ Y,
80
80
  {
81
81
  dataList: a,
82
82
  keys: i,
83
- onChange: p,
84
- onMoveEnd: K
83
+ onChange: d,
84
+ onMoveEnd: M
85
85
  }
86
86
  )
87
87
  ] }) }),
88
88
  /* @__PURE__ */ n.jsx(C.Item, { label: "导出设置", className: "exportTotal", children: /* @__PURE__ */ n.jsx(
89
- c.Group,
89
+ h.Group,
90
90
  {
91
91
  ref: v,
92
92
  value: m,
93
93
  onChange: ({ target: e }) => b(e.value),
94
94
  children: /* @__PURE__ */ n.jsxs(y, { vertical: !0, gap: 8, align: "flex-start", children: [
95
- g && x && /* @__PURE__ */ n.jsx(c, { value: "selectedRows", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出选中数据" }) }),
96
- /* @__PURE__ */ n.jsx(c, { value: "current", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "仅导出当前页" }) }),
97
- /* @__PURE__ */ n.jsx(c, { value: "any", children: /* @__PURE__ */ n.jsxs(y, { align: "center", gap: 8, children: [
95
+ g && x && /* @__PURE__ */ n.jsx(h, { value: "selectedRows", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出选中数据" }) }),
96
+ /* @__PURE__ */ n.jsx(h, { value: "current", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "仅导出当前页" }) }),
97
+ /* @__PURE__ */ n.jsx(h, { value: "any", children: /* @__PURE__ */ n.jsxs(y, { align: "center", gap: 8, children: [
98
98
  /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }),
99
99
  /* @__PURE__ */ n.jsx(
100
- P,
100
+ J,
101
101
  {
102
102
  controls: !1,
103
103
  min: 1,
@@ -105,7 +105,7 @@ function U({
105
105
  onChange: (e) => S(e),
106
106
  style: { width: 120 },
107
107
  addonAfter: /* @__PURE__ */ n.jsx(
108
- G,
108
+ Q,
109
109
  {
110
110
  value: k,
111
111
  onChange: E,
@@ -114,14 +114,14 @@ function U({
114
114
  { label: "条", value: "pieces" }
115
115
  ],
116
116
  onClick: (e) => e.preventDefault(),
117
- getPopupContainer: (e) => L(e, "containerBody")
117
+ getPopupContainer: (e) => G(e, "containerBody")
118
118
  }
119
119
  )
120
120
  }
121
121
  ),
122
122
  /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })
123
123
  ] }) }),
124
- /* @__PURE__ */ n.jsx(c, { value: "all", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })
124
+ /* @__PURE__ */ n.jsx(h, { value: "all", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })
125
125
  ] })
126
126
  }
127
127
  ) })
@@ -129,7 +129,7 @@ function U({
129
129
  }
130
130
  );
131
131
  }
132
- const te = $(U);
132
+ const re = R(Z);
133
133
  export {
134
- te as default
134
+ re as default
135
135
  };
@@ -1,7 +1,7 @@
1
- import { BitzTableContext as h } from "../Store/index.mjs";
1
+ import { BitzTableContext as N } from "../Store/index.mjs";
2
2
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
3
3
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
4
- import { useContext as u, useMemo as x } from "react";
4
+ import { useContext as R, useMemo as v } from "react";
5
5
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
6
6
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs";
7
7
  import "../../../node_modules/.store/rc-util@5.39.1/node_modules/rc-util/es/warning.mjs";
@@ -9,13 +9,13 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@an
9
9
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
10
10
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
11
11
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
12
- import y from "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
12
+ import w from "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
13
13
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
14
- import B from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
15
- import N from "../../BitzTheme/index.mjs";
16
- const O = () => {
17
- const { theme: S, token: i, hashId: n } = N.useToken(), { tableSize: a, selected: T } = u(h), $ = x(() => a ?? "lg", [a]), r = "toolbarItem", l = "rowSelecting", m = "ToolbarItemBtn", f = (e, g, t, o) => {
18
- var s, c, p, b, d;
14
+ import D from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
15
+ import E from "../../BitzTheme/index.mjs";
16
+ const W = () => {
17
+ const { theme: g, token: i, hashId: n } = E.useToken(), { tableSize: a, selected: h } = R(N), u = v(() => a ?? "lg", [a]), r = "toolbarItem", l = "rowSelecting", m = "ToolbarItemBtn", x = (e, B, t, o) => {
18
+ var s, c, p, b, d, S, T, $, f, z;
19
19
  return [
20
20
  {
21
21
  [`.${e}`]: {
@@ -36,48 +36,48 @@ const O = () => {
36
36
  }
37
37
  },
38
38
  {
39
- [`.${e}.${g}`]: {
39
+ [`.${e}.${B}`]: {
40
40
  color: "#fff !important"
41
41
  }
42
42
  },
43
43
  {
44
44
  [`.${e}.xl${t}`]: {
45
- fontSize: (s = o.Table.xlTable) == null ? void 0 : s.fontSize
45
+ fontSize: (c = (s = o.Table) == null ? void 0 : s.xlTable) == null ? void 0 : c.fontSize
46
46
  }
47
47
  },
48
48
  {
49
49
  [`.${e}.lg${t}`]: {
50
- fontSize: (c = o.Table.lgTable) == null ? void 0 : c.fontSize
50
+ fontSize: (b = (p = o.Table) == null ? void 0 : p.lgTable) == null ? void 0 : b.fontSize
51
51
  }
52
52
  },
53
53
  {
54
54
  [`.${e}.md${t}`]: {
55
- fontSize: (p = o.Table.mdTable) == null ? void 0 : p.fontSize
55
+ fontSize: (S = (d = o.Table) == null ? void 0 : d.mdTable) == null ? void 0 : S.fontSize
56
56
  }
57
57
  },
58
58
  {
59
59
  [`.${e}.sm${t}`]: {
60
- fontSize: (b = o.Table.smTable) == null ? void 0 : b.fontSize
60
+ fontSize: ($ = (T = o.Table) == null ? void 0 : T.smTable) == null ? void 0 : $.fontSize
61
61
  }
62
62
  },
63
63
  {
64
64
  [`.${e}.xs${t}`]: {
65
- fontSize: (d = o.Table.xsTable) == null ? void 0 : d.fontSize
65
+ fontSize: (z = (f = o.Table) == null ? void 0 : f.xsTable) == null ? void 0 : z.fontSize
66
66
  }
67
67
  }
68
68
  ];
69
69
  };
70
- y({ theme: S, token: i, hashId: n, path: [r] }, () => [
71
- f(r, l, m, i)
70
+ w({ theme: g, token: i, hashId: n, path: [r] }, () => [
71
+ x(r, l, m, i)
72
72
  ]);
73
- const z = `${$}${m}`;
74
- return { toolbarItemClassName: B(
73
+ const y = `${u}${m}`;
74
+ return { toolbarItemClassName: D(
75
75
  r,
76
- { [`${l}`]: T },
77
- z,
76
+ { [`${l}`]: h },
77
+ y,
78
78
  n
79
79
  ) };
80
80
  };
81
81
  export {
82
- O as default
82
+ W as default
83
83
  };
@@ -3,12 +3,11 @@ import p from "../../BitzDescriptions/index.mjs";
3
3
  import m from "../TableCell/index.mjs";
4
4
  import u from "../TextBlock/index.mjs";
5
5
  import { defaultValue as a } from "../index.mjs";
6
- const w = (n, o, e) => {
7
- const l = n.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
6
+ const R = (o, n, e) => {
7
+ const l = o.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
8
8
  ...r,
9
- width: "auto",
10
9
  render: (t, c, g) => {
11
- const f = (o == null ? void 0 : o.length) === 1 ? !1 : g + 1 > ((o == null ? void 0 : o.length) || 0) / 2;
10
+ const f = (n == null ? void 0 : n.length) === 1 ? !1 : g + 1 > ((n == null ? void 0 : n.length) || 0) / 2;
12
11
  if (r != null && r.render) {
13
12
  const s = r.render(t, c, g);
14
13
  if (typeof s == "object")
@@ -24,22 +23,22 @@ const w = (n, o, e) => {
24
23
  return [
25
24
  {
26
25
  title: "序号",
27
- rowScope: "row",
26
+ // rowScope: 'row',
28
27
  className: "numRow",
29
28
  width: 80,
30
29
  render: (r, t, c) => c + 1 + (e.page - 1) * e.size
31
30
  },
32
31
  ...l
33
32
  ];
34
- }, R = (n, o) => n ? {
33
+ }, w = (o, n) => o ? {
35
34
  expandable: {
36
35
  rowExpandable: (e) => {
37
36
  var l;
38
- return o ? !0 : (l = e[n]) == null ? void 0 : l.length;
37
+ return n ? !0 : (l = e[o]) == null ? void 0 : l.length;
39
38
  },
40
39
  expandedRowRender: (e) => {
41
40
  var r;
42
- const l = (r = e[n]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
41
+ const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
43
42
  return /* @__PURE__ */ i.jsx(
44
43
  p,
45
44
  {
@@ -51,8 +50,8 @@ const w = (n, o, e) => {
51
50
  );
52
51
  }
53
52
  }
54
- } : null, S = (n, o) => {
55
- if (n) {
53
+ } : null, y = (o, n) => {
54
+ if (o) {
56
55
  const e = {
57
56
  gutter: 20,
58
57
  left: {
@@ -67,7 +66,7 @@ const w = (n, o, e) => {
67
66
  button: 4
68
67
  }
69
68
  };
70
- return o || (e.right.search = 11, e.right.operation = 13, e.right.toolTagSelect = 0, e.right.totalSelect = 11, e.right.button = void 0), e;
69
+ return n || (e.right.search = 11, e.right.operation = 13, e.right.toolTagSelect = 0, e.right.totalSelect = 11, e.right.button = void 0), e;
71
70
  } else {
72
71
  const e = {
73
72
  gutter: 0,
@@ -83,11 +82,11 @@ const w = (n, o, e) => {
83
82
  button: void 0
84
83
  }
85
84
  };
86
- return o || (e.right.search = 11, e.right.operation = 13, e.right.toolTagSelect = 0, e.right.totalSelect = 11), e;
85
+ return n || (e.right.search = 11, e.right.operation = 13, e.right.toolTagSelect = 0, e.right.totalSelect = 11), e;
87
86
  }
88
87
  };
89
88
  export {
90
- w as getColumns,
91
- R as getExpandable,
92
- S as getLayoutConfig
89
+ R as getColumns,
90
+ w as getExpandable,
91
+ y as getLayoutConfig
93
92
  };
@@ -3,7 +3,7 @@ import { useRef as se, useContext as ce, useState as v, useMemo as B, useCallbac
3
3
  import { Row as b, Col as a, Space as F, Form as h, Select as G, Spin as ae, Typography as pe, Flex as ue, Empty as H } from "antd";
4
4
  import de from "../../BitzPagination/index.mjs";
5
5
  import xe from "../../BitzTable/index.mjs";
6
- import L from "../../BitzButton/index.mjs";
6
+ import O from "../../BitzButton/index.mjs";
7
7
  import { getColumns as me, getExpandable as he, getLayoutConfig as je } from "./getData.mjs";
8
8
  import Se from "../TextBlock/index.mjs";
9
9
  import fe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
@@ -16,15 +16,15 @@ import ge from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_module
16
16
  function He({
17
17
  columns: P,
18
18
  tableData: y,
19
- total: O,
19
+ total: W,
20
20
  loading: p,
21
21
  loadingFailed: j,
22
- loadAgain: W,
22
+ loadAgain: $,
23
23
  page: z,
24
- onPageChange: $,
25
- searchInput: q,
24
+ onPageChange: q,
25
+ searchInput: J,
26
26
  showToolTagSelect: E,
27
- toolTags: J,
27
+ toolTags: L,
28
28
  onToolTagChange: w,
29
29
  lrLayout: T,
30
30
  parentRender: I,
@@ -139,7 +139,7 @@ function He({
139
139
  /* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T && I && I(M, g == null ? void 0 : g.height) }),
140
140
  /* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(F, { direction: "vertical", size: M, style: { width: "100%" }, children: [
141
141
  /* @__PURE__ */ e.jsx(h, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(b, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(a, { span: 24, children: /* @__PURE__ */ e.jsxs(b, { justify: "space-between", gutter: [16, 16], children: [
142
- /* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(h.Item, { children: q }) }),
142
+ /* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(h.Item, { children: J }) }),
143
143
  /* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(b, { justify: "end", gutter: 8, children: [
144
144
  /* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsx(
145
145
  G,
@@ -153,7 +153,7 @@ function He({
153
153
  placeholder: "常用标签",
154
154
  showSearch: !1,
155
155
  disabled: p,
156
- options: J,
156
+ options: L,
157
157
  value: Y,
158
158
  onChange: D,
159
159
  onDropdownVisibleChange: S
@@ -182,7 +182,7 @@ function He({
182
182
  ) })
183
183
  ] }) }) }),
184
184
  /* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
185
- L,
185
+ O,
186
186
  {
187
187
  type: "primary",
188
188
  danger: !0,
@@ -191,7 +191,7 @@ function He({
191
191
  }
192
192
  ) }),
193
193
  /* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
194
- L,
194
+ O,
195
195
  {
196
196
  type: "primary",
197
197
  onClick: () => x([], [], "confirm"),
@@ -206,7 +206,7 @@ function He({
206
206
  ref: k,
207
207
  ...j && {
208
208
  className: "pointerMouse",
209
- onClick: () => W()
209
+ onClick: () => $()
210
210
  },
211
211
  children: /* @__PURE__ */ e.jsx(
212
212
  ae,
@@ -221,8 +221,7 @@ function He({
221
221
  rowKey: t.value,
222
222
  loading: p,
223
223
  bordered: "row-column",
224
- tableLayout: "fixed",
225
- scroll: { x: 1, y: 400 },
224
+ scroll: { x: 2, y: 400 },
226
225
  showPagination: !1,
227
226
  showTableTool: !1,
228
227
  rowSelection: N,
@@ -247,9 +246,9 @@ function He({
247
246
  size: "small",
248
247
  enableControl: !0,
249
248
  pagination: z,
250
- total: O,
249
+ total: W,
251
250
  dataSource: y,
252
- paginationEmit: $
251
+ paginationEmit: q
253
252
  }
254
253
  ) }) })
255
254
  ] }) })
@@ -1,52 +1,53 @@
1
- import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useMemo as c, useState as p } from "react";
3
- import { Input as d } from "antd";
4
- import u from "../TextBlock/index.mjs";
5
- import t from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
- import x from "../../BitzTheme/index.mjs";
1
+ import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useMemo as p, useState as u } from "react";
3
+ import { Input as x } from "antd";
4
+ import f from "../TextBlock/index.mjs";
5
+ import s from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
+ import T from "../../BitzTheme/index.mjs";
7
7
  import "./index.less.mjs";
8
- import f from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
9
- const { TextArea: B } = d, b = ({ value: l, isLatterHalf: n = !1 }) => {
10
- var r;
11
- const { token: o } = x.useToken(), a = ((r = o == null ? void 0 : o.BitzTableSelect) == null ? void 0 : r.paddingBlock) ?? 10, i = c(() => ({
12
- paddingBlock: a,
13
- paddingInline: 24
14
- }), [o]), [m, s] = p(!1);
15
- return /* @__PURE__ */ e.jsxs(
8
+ import { tablePaddingInline as B } from "../../BitzConfigProvider/context.mjs";
9
+ import g from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
10
+ const { TextArea: I } = x, z = ({ value: n, isLatterHalf: a = !1 }) => {
11
+ var r, m;
12
+ const { token: e } = T.useToken(), l = ((r = e.Table) == null ? void 0 : r.cellPaddingInline) ?? B, i = ((m = e == null ? void 0 : e.BitzTableSelect) == null ? void 0 : m.paddingBlock) ?? 10, c = p(() => ({
13
+ paddingBlock: i,
14
+ paddingInline: l
15
+ }), [e]), [d, t] = u(!1);
16
+ return /* @__PURE__ */ o.jsxs(
16
17
  "div",
17
18
  {
18
19
  className: "cellBlock",
19
- style: i,
20
- onFocus: () => s(!0),
21
- onBlur: () => s(!1),
20
+ style: c,
21
+ onFocus: () => t(!0),
22
+ onBlur: () => t(!1),
22
23
  children: [
23
- /* @__PURE__ */ e.jsx(u, { className: t("cellText"), value: l }),
24
- /* @__PURE__ */ e.jsxs(
24
+ /* @__PURE__ */ o.jsx(f, { className: s("cellText"), value: n }),
25
+ /* @__PURE__ */ o.jsxs(
25
26
  "div",
26
27
  {
27
- className: t(
28
+ className: s(
28
29
  "tipBlock",
29
- n ? "toTop" : "toBottom",
30
- m ? "show" : ""
30
+ a ? "toTop" : "toBottom",
31
+ d ? "show" : ""
31
32
  ),
32
33
  style: {
33
- paddingInlineStart: 24 - 2,
34
- paddingInlineEnd: 24 - 4,
35
- paddingBlock: a
34
+ paddingInlineStart: l - 2,
35
+ paddingInlineEnd: l - 4,
36
+ paddingBlock: i
36
37
  },
37
38
  children: [
38
- /* @__PURE__ */ e.jsx(
39
- f,
39
+ /* @__PURE__ */ o.jsx(
40
+ g,
40
41
  {
41
- className: t("closeIcon", n ? "top" : "bottom"),
42
- onClick: () => s(!1)
42
+ className: s("closeIcon", a ? "top" : "bottom"),
43
+ onClick: () => t(!1)
43
44
  }
44
45
  ),
45
- /* @__PURE__ */ e.jsx(
46
- B,
46
+ /* @__PURE__ */ o.jsx(
47
+ I,
47
48
  {
48
49
  className: "tipText",
49
- value: l,
50
+ value: n,
50
51
  autoSize: {
51
52
  minRows: 1,
52
53
  maxRows: 100
@@ -63,5 +64,5 @@ const { TextArea: B } = d, b = ({ value: l, isLatterHalf: n = !1 }) => {
63
64
  );
64
65
  };
65
66
  export {
66
- b as default
67
+ z as default
67
68
  };
@@ -1,41 +1,43 @@
1
- import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { Input as l } from "antd";
3
- import m from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
- import { defaultValue as n } from "../index.mjs";
1
+ import { j as m } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { theme as c, Input as p } from "antd";
3
+ import d from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
+ import { defaultValue as f } from "../index.mjs";
5
5
  import "./index.less.mjs";
6
- const { TextArea: p } = l, j = ({
6
+ import { tablePaddingInline as x } from "../../BitzConfigProvider/context.mjs";
7
+ const { TextArea: u } = p, h = ({
7
8
  maxRows: t = 1,
8
- minRows: o,
9
- bold: s,
9
+ minRows: s,
10
+ bold: o,
10
11
  value: e,
11
12
  className: r
12
13
  }) => {
13
- const a = {
14
+ var n;
15
+ const { token: a } = c.useToken(), i = ((n = a.Table) == null ? void 0 : n.cellPaddingInline) ?? x, l = {
14
16
  "--cell-text-maxRows": t,
15
- ...s && {
16
- fontWeight: s
17
+ ...o && {
18
+ fontWeight: o
17
19
  },
18
- ...e === n && {
19
- paddingInline: 24
20
+ ...e === f && {
21
+ paddingInline: i
20
22
  }
21
23
  };
22
- return /* @__PURE__ */ i.jsx(
23
- p,
24
+ return /* @__PURE__ */ m.jsx(
25
+ u,
24
26
  {
25
- className: m("textBlock", r),
27
+ className: d("textBlock", r),
26
28
  title: e,
27
29
  value: e,
28
30
  readOnly: !0,
29
31
  size: "small",
30
32
  variant: "borderless",
31
33
  autoSize: {
32
- minRows: o ?? t,
34
+ minRows: s ?? t,
33
35
  maxRows: t
34
36
  },
35
- style: a
37
+ style: l
36
38
  }
37
39
  );
38
40
  };
39
41
  export {
40
- j as default
42
+ h as default
41
43
  };
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
- import { __module as i } from "../../../../../_virtual/index2.mjs";
2
+ import { __module as i } from "../../../../../_virtual/index.mjs";
3
3
  /*!
4
4
  Copyright (c) 2018 Jed Watson.
5
5
  Licensed under the MIT License (MIT), see
@@ -1,16 +1,15 @@
1
1
  import { getDefaultExportFromCjs as e } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
- import { __module as r } from "../../../../../_virtual/index.mjs";
2
+ import { __module as r } from "../../../../../_virtual/index2.mjs";
3
3
  import { __require as o } from "../../../react-is@16.13.1/node_modules/react-is/index.mjs";
4
- import { __require as p } from "./factoryWithTypeCheckers.mjs";
5
- import { __require as t } from "./factoryWithThrowingShims.mjs";
4
+ import { __require as t } from "./factoryWithTypeCheckers.mjs";
5
+ import { __require as p } from "./factoryWithThrowingShims.mjs";
6
6
  if (process.env.NODE_ENV !== "production") {
7
7
  var s = o(), i = !0;
8
- r.exports = p()(s.isElement, i);
8
+ r.exports = t()(s.isElement, i);
9
9
  } else
10
- r.exports = t()();
11
- var a = r.exports;
12
- const q = /* @__PURE__ */ e(a);
10
+ r.exports = p()();
11
+ var m = r.exports;
12
+ const q = /* @__PURE__ */ e(m);
13
13
  export {
14
- q as default,
15
- a as p
14
+ q as default
16
15
  };
@@ -1,4 +1,4 @@
1
- import { __module as r } from "../../../../../../_virtual/index6.mjs";
1
+ import { __module as r } from "../../../../../../_virtual/index5.mjs";
2
2
  import { __require as i } from "../cjs/use-sync-external-store-shim.production.min.mjs";
3
3
  import { __require as o } from "../cjs/use-sync-external-store-shim.development.mjs";
4
4
  var e;