bitz-react-admin-ui 2.1.3 → 2.1.5

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 (65) hide show
  1. package/dist/_virtual/dayjs.min.mjs +5 -2
  2. package/dist/_virtual/dayjs.min2.mjs +4 -0
  3. package/dist/_virtual/index.mjs +2 -2
  4. package/dist/_virtual/index2.mjs +2 -2
  5. package/dist/assets/iconfont/IconColumnCancelFixed.d.ts +7 -0
  6. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +35 -0
  7. package/dist/assets/iconfont/IconColumnFixedLeft.d.ts +7 -0
  8. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +35 -0
  9. package/dist/assets/iconfont/IconColumnFixedRight.d.ts +7 -0
  10. package/dist/assets/iconfont/IconColumnFixedRight.mjs +35 -0
  11. package/dist/assets/iconfont/IconDragOrder.d.ts +7 -0
  12. package/dist/assets/iconfont/IconDragOrder.mjs +35 -0
  13. package/dist/assets/iconfont/index.d.ts +5 -1
  14. package/dist/assets/iconfont/index.mjs +105 -89
  15. package/dist/components/BitzCalendar/index.mjs +1 -1
  16. package/dist/components/BitzDayJs/index.mjs +1 -1
  17. package/dist/components/BitzFluentInput/index.d.ts +2 -5
  18. package/dist/components/BitzFluentInput/index.mjs +4 -58
  19. package/dist/components/BitzFluentSelect/index.d.ts +4 -5
  20. package/dist/components/BitzFluentSelect/index.mjs +4 -58
  21. package/dist/components/BitzFluentTreeSelect/index.mjs +6 -0
  22. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  23. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  24. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  25. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  26. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  27. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  28. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  29. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  30. package/dist/components/BitzTable/Select/index.d.ts +4 -0
  31. package/dist/components/BitzTable/Select/index.mjs +11 -0
  32. package/dist/components/BitzTable/Select/style.d.ts +4 -0
  33. package/dist/components/BitzTable/Select/style.mjs +66 -0
  34. package/dist/components/BitzTable/Store/index.d.ts +43 -9
  35. package/dist/components/BitzTable/Store/index.mjs +259 -146
  36. package/dist/components/BitzTable/Store/utils/index.mjs +26 -25
  37. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +73 -61
  38. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +118 -61
  39. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +4 -3
  40. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +48 -47
  41. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +5 -1
  42. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +84 -15
  43. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +59 -50
  44. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +1 -1
  45. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +47 -21
  46. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +5 -0
  47. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +89 -0
  48. package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +1 -2
  49. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +46 -32
  50. package/dist/components/BitzTable/ToolBar/index.d.ts +5 -2
  51. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +148 -123
  52. package/dist/components/BitzTableSelect/TextBlock/index.mjs +21 -18
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.mjs +94 -92
  55. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  56. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  57. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  58. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  59. package/dist/style.css +1 -1
  60. package/dist/utils/WithFluent.d.ts +9 -0
  61. package/dist/utils/WithFluent.mjs +58 -0
  62. package/dist/utils/time.mjs +1 -1
  63. package/package.json +2 -1
  64. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +0 -5
  65. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +0 -15
@@ -1,20 +1,20 @@
1
1
  import { j as i } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { css as he } from "../../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
3
3
  import { theme as de, Flex as z, Typography as B, Space as ue, Checkbox as me, Button as fe } from "antd";
4
- import { forwardRef as pe, useMemo as k, useContext as xe, useEffect as F, useState as m, useCallback as ge, useImperativeHandle as Ce, memo as Me } from "react";
5
- import { useImmer as ye } from "../../../../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
4
+ import { forwardRef as pe, useMemo as L, useContext as xe, useEffect as F, useState as m, useCallback as ge, useImperativeHandle as Ce, memo as ye } from "react";
5
+ import { useImmer as Me } from "../../../../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
6
6
  import "../../../index.mjs";
7
- import { columnSort as ke, genColumnKey as Le, updateNestedObject as L } from "../../../Store/utils/index.mjs";
7
+ import { columnSort as ke, genColumnKey as Le, updateNestedObject as K } from "../../../Store/utils/index.mjs";
8
8
  import O from "./DndList.mjs";
9
9
  import { BitzTableContext as Ke } from "../../../Store/index.mjs";
10
10
  import Se from "../../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
11
11
  import je from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
12
12
  const we = pe(
13
13
  ({ display: $ }, V) => {
14
- const { token: W } = de.useToken(), X = k(() => ({
14
+ const { token: W } = de.useToken(), X = L(() => ({
15
15
  width: "100%",
16
16
  ...{ display: $ ? "flex" : "none" }
17
- }), [$]), { defaultColumnKeyMap: Y, columns: H, columnsMap: Z, sortKeyColumns: _ } = xe(Ke), [a, P] = ye({
17
+ }), [$]), { defaultColumnKeyMap: Y, columns: H, columnsMap: Z, sortKeyColumns: _ } = xe(Ke), [a, P] = Me({
18
18
  columnsMap: {},
19
19
  sortKeyColumns: []
20
20
  });
@@ -23,7 +23,7 @@ const we = pe(
23
23
  e.columnsMap = { ...Z }, e.sortKeyColumns = [..._];
24
24
  });
25
25
  }, []);
26
- const q = k(() => ((s, t) => s.map(({ key: n, dataIndex: o, children: c, ...l }) => {
26
+ const q = L(() => ((s, t) => s.map(({ key: n, dataIndex: o, children: c, ...l }) => {
27
27
  var U;
28
28
  const g = Le(
29
29
  n || o,
@@ -46,45 +46,45 @@ const we = pe(
46
46
  ((n = a.columnsMap[c]) == null ? void 0 : n.fixed) === "left" ? e[c] = a.columnsMap[c] : ((o = a.columnsMap[c]) == null ? void 0 : o.fixed) === "right" ? s[c] = a.columnsMap[c] : t[c] = a.columnsMap[c];
47
47
  f(e), p(s), x(t);
48
48
  }, [a.columnsMap]);
49
- const [K, N] = m([]), [C, S] = m([]), [h, f] = m({}), [j, E] = m([]), [M, w] = m([]), [d, p] = m({}), [b, T] = m([]), [y, R] = m([]), [u, x] = m({});
49
+ const [S, N] = m([]), [C, j] = m([]), [h, f] = m({}), [w, E] = m([]), [y, b] = m([]), [d, p] = m({}), [R, T] = m([]), [M, v] = m([]), [u, x] = m({});
50
50
  F(() => {
51
51
  const e = [], s = [], t = [], n = [], o = [], c = [];
52
52
  q.forEach((l) => {
53
53
  l.fixed === "left" ? (e.push(l), s.push(l.key)) : l.fixed === "right" ? (t.push(l), n.push(l.key)) : (o.push(l), c.push(l.key));
54
- }), N(e), S(s), E(t), w(n), T(o), R(c);
54
+ }), N(e), j(s), E(t), b(n), T(o), v(c);
55
55
  }, [q]);
56
56
  const ee = (e) => {
57
57
  f(e);
58
58
  }, te = (e, s) => {
59
- f(e), S(s);
59
+ f(e), j(s);
60
60
  }, se = (e) => {
61
61
  p(e);
62
62
  }, oe = (e, s) => {
63
- p(e), w(s);
63
+ p(e), b(s);
64
64
  }, ne = (e) => {
65
65
  x(e);
66
66
  }, ce = (e, s) => {
67
- x(e), R(s);
67
+ x(e), v(s);
68
68
  }, G = (e, s, t, n) => {
69
69
  const o = { ...s[e] };
70
70
  delete s[e], x({
71
71
  ...u,
72
- [e]: { ...o, fixed: void 0, order: b.length }
72
+ [e]: { ...o, fixed: void 0, order: R.length }
73
73
  });
74
74
  const c = t.findIndex((r) => r.key === e), l = t.splice(c, 1)[0];
75
- T([...b, { ...l, fixed: void 0 }]);
75
+ T([...R, { ...l, fixed: void 0 }]);
76
76
  const g = n.splice(c, 1);
77
- return R([...y, ...g]), { map: s, list: t, keys: n };
77
+ return v([...M, ...g]), { map: s, list: t, keys: n };
78
78
  }, J = (e, s, t, n) => {
79
79
  const o = { ...s[e] };
80
80
  delete s[e], f({
81
81
  ...h,
82
- [e]: { ...o, fixed: "left", order: K.length, show: !0 }
82
+ [e]: { ...o, fixed: "left", order: S.length, show: !0 }
83
83
  });
84
84
  const c = t.findIndex((r) => r.key === e), l = t.splice(c, 1)[0];
85
- N([...K, { ...l, fixed: "left" }]);
85
+ N([...S, { ...l, fixed: "left" }]);
86
86
  const g = n.splice(c, 1);
87
- return S([...C, ...g]), { map: s, list: t, keys: n };
87
+ return j([...C, ...g]), { map: s, list: t, keys: n };
88
88
  }, Q = (e, s, t, n) => {
89
89
  const o = { ...s[e] };
90
90
  delete s[e], p({
@@ -92,69 +92,69 @@ const we = pe(
92
92
  [e]: {
93
93
  ...o,
94
94
  fixed: "right",
95
- order: j.length,
95
+ order: w.length,
96
96
  show: !0
97
97
  }
98
98
  });
99
99
  const c = t.findIndex((r) => r.key === e), l = t.splice(c, 1)[0];
100
- E([...j, { ...l, fixed: "right" }]);
100
+ E([...w, { ...l, fixed: "right" }]);
101
101
  const g = n.splice(c, 1);
102
- return w([...M, ...g]), { map: s, list: t, keys: n };
102
+ return b([...y, ...g]), { map: s, list: t, keys: n };
103
103
  }, D = (e, s) => {
104
104
  if (s === "left") {
105
105
  const { map: t, list: n, keys: o } = G(
106
106
  e,
107
107
  h,
108
- K,
108
+ S,
109
109
  C
110
110
  );
111
- f({ ...t }), N([...n]), S([...o]);
111
+ f({ ...t }), N([...n]), j([...o]);
112
112
  } else if (s === "center") {
113
113
  const { map: t, list: n, keys: o } = J(
114
114
  e,
115
115
  u,
116
- b,
117
- y
116
+ R,
117
+ M
118
118
  );
119
- x({ ...t }), T([...n]), R([...o]);
119
+ x({ ...t }), T([...n]), v([...o]);
120
120
  } else {
121
121
  const { map: t, list: n, keys: o } = J(
122
122
  e,
123
123
  d,
124
- j,
125
- M
124
+ w,
125
+ y
126
126
  );
127
- p({ ...t }), E([...n]), w([...o]);
127
+ p({ ...t }), E([...n]), b([...o]);
128
128
  }
129
129
  }, A = (e, s) => {
130
130
  if (s === "left") {
131
131
  const { map: t, list: n, keys: o } = Q(
132
132
  e,
133
133
  h,
134
- K,
134
+ S,
135
135
  C
136
136
  );
137
- f({ ...t }), N([...n]), S([...o]);
137
+ f({ ...t }), N([...n]), j([...o]);
138
138
  } else if (s === "center") {
139
139
  const { map: t, list: n, keys: o } = Q(
140
140
  e,
141
141
  u,
142
- b,
143
- y
142
+ R,
143
+ M
144
144
  );
145
- x({ ...t }), T([...n]), R([...o]);
145
+ x({ ...t }), T([...n]), v([...o]);
146
146
  } else {
147
147
  const { map: t, list: n, keys: o } = G(
148
148
  e,
149
149
  d,
150
- j,
151
- M
150
+ w,
151
+ y
152
152
  );
153
- p({ ...t }), E([...n]), w([...o]);
153
+ p({ ...t }), E([...n]), b([...o]);
154
154
  }
155
155
  }, le = ({ target: e }) => {
156
- e.checked ? (f(L(h, "show", !0)), x(L(u, "show", !0)), p(L(d, "show", !0))) : (f(L(h, "show", !1)), x(L(u, "show", !1)), p(L(d, "show", !1)));
157
- }, I = k(() => [...C, ...y, ...M], [C, y, M]), v = k(() => {
156
+ e.checked ? (f(K(h, "show", !0)), x(K(u, "show", !0)), p(K(d, "show", !0))) : (f(K(h, "show", !1)), x(K(u, "show", !1)), p(K(d, "show", !1)));
157
+ }, I = L(() => [...C, ...M, ...y], [C, M, y]), k = L(() => {
158
158
  var s, t, n;
159
159
  const e = [];
160
160
  for (const o in h)
@@ -164,7 +164,7 @@ const we = pe(
164
164
  for (const o in d)
165
165
  (n = d[o]) != null && n.show && e.push(o);
166
166
  return e;
167
- }, [h, u, d]), re = k(() => I.length === v.length, [I, v]), ie = k(() => v.length > 0 && v.length < I.length, [v, I]), ae = ge(() => {
167
+ }, [h, u, d]), re = L(() => I.length === k.length, [I, k]), ie = L(() => k.length > 0 && k.length < I.length, [k, I]), ae = ge(() => {
168
168
  P((e) => {
169
169
  e.columnsMap = { ...Y };
170
170
  });
@@ -173,9 +173,10 @@ const we = pe(
173
173
  getLeftSortColumns: () => h,
174
174
  getLeftSortKeys: () => C,
175
175
  getCenterSortColumns: () => u,
176
- getCenterSortKeys: () => y,
176
+ getCenterSortKeys: () => M,
177
177
  getRightSortColumns: () => d,
178
- getRightSortKeys: () => M
178
+ getRightSortKeys: () => y,
179
+ getCheckedKeys: () => k
179
180
  })), /* @__PURE__ */ i.jsxs(z, { vertical: !0, gap: 16, style: X, children: [
180
181
  /* @__PURE__ */ i.jsxs("div", { className: "sortContent", children: [
181
182
  /* @__PURE__ */ i.jsxs(z, { vertical: !0, className: "sortCard", gap: 6, children: [
@@ -184,7 +185,7 @@ const we = pe(
184
185
  O,
185
186
  {
186
187
  placement: "left",
187
- dataList: K,
188
+ dataList: S,
188
189
  keys: C,
189
190
  columnsMap: h,
190
191
  onLeftClick: D,
@@ -200,8 +201,8 @@ const we = pe(
200
201
  O,
201
202
  {
202
203
  placement: "center",
203
- dataList: b,
204
- keys: y,
204
+ dataList: R,
205
+ keys: M,
205
206
  columnsMap: u,
206
207
  onLeftClick: D,
207
208
  onRightClick: A,
@@ -216,8 +217,8 @@ const we = pe(
216
217
  O,
217
218
  {
218
219
  placement: "right",
219
- dataList: j,
220
- keys: M,
220
+ dataList: w,
221
+ keys: y,
221
222
  columnsMap: d,
222
223
  onLeftClick: D,
223
224
  onRightClick: A,
@@ -255,7 +256,7 @@ const we = pe(
255
256
  ] })
256
257
  ] });
257
258
  }
258
- ), Oe = Me(we);
259
+ ), Oe = ye(we);
259
260
  export {
260
261
  Oe as default
261
262
  };
@@ -2,5 +2,9 @@
2
2
  interface ExportConfigProps {
3
3
  display: boolean;
4
4
  }
5
- declare const _default: import("react").NamedExoticComponent<ExportConfigProps>;
5
+ export interface ExportConfigImperativeProps {
6
+ getExportConfig: () => any[];
7
+ hasOne: () => boolean;
8
+ }
9
+ declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ExportConfigProps & import("react").RefAttributes<ExportConfigImperativeProps>>>;
6
10
  export default _default;
@@ -1,17 +1,86 @@
1
- import { j as e } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import r from "../../../../BitzTheme/index.mjs";
3
- import { Flex as s } from "antd";
4
- import { memo as m, useMemo as n } from "react";
5
- const i = ({
6
- display: o
7
- }) => {
8
- r.useToken();
9
- const t = n(() => ({
10
- width: "100%",
11
- ...{ display: o ? "flex" : "none" }
12
- }), [o]);
13
- return /* @__PURE__ */ e.jsx(s, { style: t, children: "开发中..." });
14
- }, h = m(i);
1
+ import { j as t } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { BitzTableContext as E } from "../../../Store/index.mjs";
3
+ import A from "../../../../BitzTheme/index.mjs";
4
+ import { Form as i, Flex as c, Checkbox as h, Radio as o, InputNumber as F, Select as I } from "antd";
5
+ import { forwardRef as T, useMemo as p, useContext as N, useState as r, useEffect as R, useImperativeHandle as z, memo as B } from "react";
6
+ const G = T(
7
+ ({ display: u }, f) => {
8
+ A.useToken();
9
+ const m = p(() => ({
10
+ width: "100%",
11
+ ...{ display: u ? "flex" : "none" }
12
+ }), [u]), n = N(E).exportConfig, [s, g] = r([]), [l, a] = r([]);
13
+ R(() => {
14
+ g(n.map((e) => e.field)), a(n.filter((e) => e.show).map((e) => e.field));
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) => {
17
+ a(e.target.checked ? s : []);
18
+ }, [b, w] = r("page"), [k, y] = r(1);
19
+ return z(f, () => ({
20
+ getExportConfig: () => {
21
+ const e = [];
22
+ return n.forEach((d) => {
23
+ let x = !1;
24
+ l.includes(d.field) && (x = !0), e.push({ ...d, show: x });
25
+ }), e;
26
+ },
27
+ hasOne: () => l.length > 0
28
+ })), /* @__PURE__ */ t.jsxs(
29
+ i,
30
+ {
31
+ style: m,
32
+ labelCol: { span: 3 },
33
+ labelAlign: "left",
34
+ colon: !1,
35
+ className: "exportConfigFormContent",
36
+ children: [
37
+ /* @__PURE__ */ t.jsx(i.Item, { label: "导出字段", className: "exportFields", children: /* @__PURE__ */ t.jsxs(c, { vertical: !0, gap: 8, children: [
38
+ /* @__PURE__ */ t.jsx(
39
+ h,
40
+ {
41
+ checked: j,
42
+ indeterminate: C,
43
+ onChange: v,
44
+ children: "全选"
45
+ }
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)) })
48
+ ] }) }),
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
+ /* @__PURE__ */ t.jsx(o, { value: "current", children: "仅导出当前页" }),
51
+ /* @__PURE__ */ t.jsx(o, { value: "any", children: /* @__PURE__ */ t.jsxs(c, { align: "center", gap: 8, children: [
52
+ /* @__PURE__ */ t.jsx("span", { children: "导出" }),
53
+ /* @__PURE__ */ t.jsx(
54
+ F,
55
+ {
56
+ controls: !1,
57
+ min: 1,
58
+ value: k,
59
+ onChange: (e) => y(e),
60
+ style: { width: 120 },
61
+ addonAfter: /* @__PURE__ */ t.jsx(
62
+ I,
63
+ {
64
+ value: b,
65
+ onChange: w,
66
+ options: [
67
+ { label: "页", value: "page" },
68
+ { label: "条", value: "pieces" }
69
+ ],
70
+ onClick: (e) => e.preventDefault()
71
+ }
72
+ )
73
+ }
74
+ ),
75
+ /* @__PURE__ */ t.jsx("span", { children: "数据" })
76
+ ] }) }),
77
+ /* @__PURE__ */ t.jsx(o, { value: "all", children: "导出全部数据" })
78
+ ] }) }) })
79
+ ]
80
+ }
81
+ );
82
+ }
83
+ ), M = B(G);
15
84
  export {
16
- h as default
85
+ M as default
17
86
  };
@@ -1,4 +1,8 @@
1
1
  import { j as o } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import "../../../../../assets/iconfont/IconDragOrder.mjs";
3
+ import "../../../../../assets/iconfont/IconColumnFixedLeft.mjs";
4
+ import "../../../../../assets/iconfont/IconColumnFixedRight.mjs";
5
+ import "../../../../../assets/iconfont/IconColumnCancelFixed.mjs";
2
6
  import "../../../../../assets/iconfont/IconMore.mjs";
3
7
  import "../../../../../assets/iconfont/IconIcFluentHomeRegular.mjs";
4
8
  import H from "../../../../../assets/iconfont/IconKuansongde.mjs";
@@ -36,11 +40,11 @@ import D from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/
36
40
  import { forwardRef as J, useMemo as K, useContext as u, useEffect as L, useImperativeHandle as M, memo as V } from "react";
37
41
  import { BitzToolBarContext as Y } from "../../Wrapper/context.mjs";
38
42
  import l from "./RadioCard.mjs";
39
- const Z = ({ defaultSize: s, items: m }) => m.map((e) => e.key === s ? {
43
+ const Z = ({ defaultSize: s, items: a }) => a.map((e) => e.key === s ? {
40
44
  ...e,
41
45
  label: `${e.label}(默认)`
42
46
  } : e), q = J(
43
- ({ display: s }, m) => {
47
+ ({ display: s }, a) => {
44
48
  var x, b, f;
45
49
  const { token: e } = $.useToken(), j = K(() => ({
46
50
  width: "100%",
@@ -48,12 +52,12 @@ const Z = ({ defaultSize: s, items: m }) => m.map((e) => e.key === s ? {
48
52
  }), [s]), z = {
49
53
  size: 26,
50
54
  color: e.colorPrimary
51
- }, [c] = t.useForm(), g = (x = u(W).Table) == null ? void 0 : x.stylesScope, { defaultTableSize: P, stylesConfig: I } = u(E), r = (b = u(Y).config) == null ? void 0 : b.stylesConfig, p = (i, n) => {
55
+ }, [c] = t.useForm(), g = (x = u(W).Table) == null ? void 0 : x.stylesScope, { defaultTableSize: P, stylesConfig: I } = u(E), r = (b = u(Y).config) == null ? void 0 : b.stylesConfig, p = (i, m) => {
52
56
  var y, h;
53
- let a = n;
54
- return (y = r == null ? void 0 : r[i]) != null && y.disabled && (a = D(n, "disabledControl")), {
57
+ let n = m;
58
+ return (y = r == null ? void 0 : r[i]) != null && y.disabled && (n = D(m, "disabledControl")), {
55
59
  disabled: (h = r == null ? void 0 : r[i]) == null ? void 0 : h.disabled,
56
- className: a
60
+ className: n
57
61
  };
58
62
  };
59
63
  L(() => {
@@ -92,7 +96,7 @@ const Z = ({ defaultSize: s, items: m }) => m.map((e) => e.key === s ? {
92
96
  }
93
97
  ]
94
98
  });
95
- return M(m, () => ({
99
+ return M(a, () => ({
96
100
  getFormInstance: () => c
97
101
  })), /* @__PURE__ */ o.jsxs(
98
102
  t,
@@ -103,48 +107,53 @@ const Z = ({ defaultSize: s, items: m }) => m.map((e) => e.key === s ? {
103
107
  labelAlign: "left",
104
108
  colon: !1,
105
109
  className: "stylesConfigFormContent",
106
- layout: "inline",
107
110
  children: [
108
- /* @__PURE__ */ o.jsx(t.Item, { label: "行高", name: "size", children: /* @__PURE__ */ o.jsx(d.Group, { ...p("size", "sizeRadioGroup"), children: v.map(({ key: i, label: n, icon: a }) => /* @__PURE__ */ o.jsx(l, { label: n, value: i, children: /* @__PURE__ */ o.jsx(a, { ...z }) }, i)) }) }),
109
- /* @__PURE__ */ o.jsx(t.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("bordered", "splitBorderRadioGroup"), children: [
110
- /* @__PURE__ */ o.jsx(l, { label: "无分割线", value: "hide", children: /* @__PURE__ */ o.jsx(T, { size: 26, color: e.colorPrimaryHover }) }),
111
- /* @__PURE__ */ o.jsx(l, { label: "行分割线", value: "row", children: /* @__PURE__ */ o.jsx(
112
- B,
113
- {
114
- size: 26,
115
- color: [
116
- e.colorPrimaryHover,
117
- e.colorPrimary,
118
- e.colorPrimary,
119
- e.colorPrimaryHover
120
- ]
121
- }
122
- ) }),
123
- /* @__PURE__ */ o.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ o.jsx(
124
- G,
125
- {
126
- size: 26,
127
- color: [
128
- e.colorPrimaryHover,
129
- e.colorPrimary,
130
- e.colorPrimary,
131
- e.colorPrimaryHover
132
- ]
133
- }
134
- ) }),
135
- /* @__PURE__ */ o.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ o.jsx(
136
- R,
137
- {
138
- size: 26,
139
- color: [
140
- e.colorPrimaryHover,
141
- e.colorPrimary,
142
- e.colorPrimary,
143
- e.colorPrimaryHover
144
- ]
145
- }
146
- ) })
147
- ] }) }),
111
+ /* @__PURE__ */ o.jsx(t.Item, { label: "行高", name: "size", children: /* @__PURE__ */ o.jsx(d.Group, { ...p("size", "sizeRadioGroup"), children: v.map(({ key: i, label: m, icon: n }) => /* @__PURE__ */ o.jsx(l, { label: m, value: i, children: /* @__PURE__ */ o.jsx(n, { ...z }) }, i)) }) }),
112
+ /* @__PURE__ */ o.jsx(t.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ o.jsxs(
113
+ d.Group,
114
+ {
115
+ ...p("bordered", "splitBorderRadioGroup"),
116
+ children: [
117
+ /* @__PURE__ */ o.jsx(l, { label: "无分割线", value: "hide", children: /* @__PURE__ */ o.jsx(T, { size: 26, color: e.colorPrimaryHover }) }),
118
+ /* @__PURE__ */ o.jsx(l, { label: "行分割线", value: "row", children: /* @__PURE__ */ o.jsx(
119
+ B,
120
+ {
121
+ size: 26,
122
+ color: [
123
+ e.colorPrimaryHover,
124
+ e.colorPrimary,
125
+ e.colorPrimary,
126
+ e.colorPrimaryHover
127
+ ]
128
+ }
129
+ ) }),
130
+ /* @__PURE__ */ o.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ o.jsx(
131
+ G,
132
+ {
133
+ size: 26,
134
+ color: [
135
+ e.colorPrimaryHover,
136
+ e.colorPrimary,
137
+ e.colorPrimary,
138
+ e.colorPrimaryHover
139
+ ]
140
+ }
141
+ ) }),
142
+ /* @__PURE__ */ o.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ o.jsx(
143
+ R,
144
+ {
145
+ size: 26,
146
+ color: [
147
+ e.colorPrimaryHover,
148
+ e.colorPrimary,
149
+ e.colorPrimary,
150
+ e.colorPrimaryHover
151
+ ]
152
+ }
153
+ ) })
154
+ ]
155
+ }
156
+ ) }),
148
157
  /* @__PURE__ */ o.jsx(t.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("zebra", "zebraRadioGroup"), children: [
149
158
  /* @__PURE__ */ o.jsx(l, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ o.jsx(
150
159
  F,
@@ -166,7 +175,7 @@ const Z = ({ defaultSize: s, items: m }) => m.map((e) => e.key === s ? {
166
175
  }
167
176
  );
168
177
  }
169
- ), Fo = V(q);
178
+ ), $o = V(q);
170
179
  export {
171
- Fo as default
180
+ $o as default
172
181
  };
@@ -1,2 +1,2 @@
1
- import { BitzGlobalToken } from "@/components/BitzTheme";
1
+ import { BitzGlobalToken } from '@/components/BitzTheme';
2
2
  export declare const styles: (token: BitzGlobalToken) => string;