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,4 +1,7 @@
1
- var a = { exports: {} };
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
- a as __module
6
+ s as default
4
7
  };
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
@@ -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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
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,4 +1,4 @@
1
- import t from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
1
+ import t from "../../_virtual/dayjs.min.mjs";
2
2
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
3
3
  const m = {
4
4
  dayjs() {
@@ -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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
+ import m from "../../_virtual/dayjs.min.mjs";
6
6
  import "./index.less.mjs";
7
7
  m.extend(p);
8
8
  const x = (a) => {
@@ -44,7 +44,7 @@ export interface ExportConfigProps {
44
44
  title: string;
45
45
  show: boolean;
46
46
  }
47
- export interface ExportConfigState<TableKey = any> {
47
+ export interface ExportColumnStateType<TableKey = any> {
48
48
  persistenceType?: 'localStorage' | 'sessionStorage' | 'online';
49
49
  persistenceKey?: TableKey;
50
50
  defaultValue?: ExportConfigProps[];
@@ -71,7 +71,7 @@ export type UseContainerProps<T = any> = {
71
71
  bordered?: BitzTableBorderedType;
72
72
  defaultBordered?: BitzTableBorderedType;
73
73
  /** 导出配置 */
74
- exportConfigState?: ExportConfigState;
74
+ exportConfigState?: ExportColumnStateType;
75
75
  defaultExportConfig?: ExportConfigProps[];
76
76
  exportConfig?: ExportConfigProps[];
77
77
  onExportConfigChange?: (value: ExportConfigProps[]) => void;
@@ -16,16 +16,16 @@ function Je(e) {
16
16
  var n, o, c, l;
17
17
  const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.stylesConfigState || {};
18
18
  if (i && t && typeof window < "u" && t !== "online") {
19
- const u = window[t];
19
+ const f = window[t];
20
20
  try {
21
- const f = u == null ? void 0 : u.getItem(i);
22
- if (f)
21
+ const u = f == null ? void 0 : f.getItem(i);
22
+ if (u)
23
23
  return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? S(
24
- JSON.parse(f),
24
+ JSON.parse(u),
25
25
  (o = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : o.defaultValue
26
- ) : JSON.parse(f);
27
- } catch (f) {
28
- console.warn(f);
26
+ ) : JSON.parse(u);
27
+ } catch (u) {
28
+ console.warn(u);
29
29
  }
30
30
  }
31
31
  return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((l = e.stylesConfigState) == null ? void 0 : l.defaultValue) || V;
@@ -62,10 +62,10 @@ function Je(e) {
62
62
  const { onlineGet: n, persistenceKey: o } = e.stylesConfigState;
63
63
  try {
64
64
  (a = n == null ? void 0 : n(o)) == null || a.then((c) => {
65
- var u, f;
66
- const l = S(c, (u = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : u.value);
65
+ var f, u;
66
+ const l = S(c, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
67
67
  E(
68
- (f = Object.keys(l ?? {})) != null && f.length ? l ?? {} : V
68
+ (u = Object.keys(l ?? {})) != null && u.length ? l ?? {} : V
69
69
  );
70
70
  });
71
71
  } catch (c) {
@@ -79,9 +79,9 @@ function Je(e) {
79
79
  return e.exportConfigState.defaultValue;
80
80
  const t = [];
81
81
  return (a = e.columns) == null || a.forEach(
82
- ({ key: n, dataIndex: o, title: c }, l) => {
83
- const u = se(n ?? o, l);
84
- u && t.push({
82
+ ({ key: n, dataIndex: o, title: c, isOperationCol: l }, f) => {
83
+ const u = se(n ?? o, f);
84
+ u && !l && t.push({
85
85
  field: u,
86
86
  title: c,
87
87
  show: !0
@@ -93,16 +93,16 @@ function Je(e) {
93
93
  var n, o, c, l;
94
94
  const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.exportConfigState || {};
95
95
  if (i && t && typeof window < "u" && t !== "online") {
96
- const u = window[t];
96
+ const f = window[t];
97
97
  try {
98
- const f = u == null ? void 0 : u.getItem(i);
99
- if (f)
98
+ const u = f == null ? void 0 : f.getItem(i);
99
+ if (u)
100
100
  return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? S(
101
- JSON.parse(f),
101
+ JSON.parse(u),
102
102
  (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
103
- ) : JSON.parse(f);
104
- } catch (f) {
105
- console.warn(f);
103
+ ) : JSON.parse(u);
104
+ } catch (u) {
105
+ console.warn(u);
106
106
  }
107
107
  }
108
108
  return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((l = e.exportConfigState) == null ? void 0 : l.defaultValue) || m;
@@ -160,9 +160,9 @@ function Je(e) {
160
160
  const { onlineGet: n, persistenceKey: o } = e.exportConfigState;
161
161
  try {
162
162
  (a = n == null ? void 0 : n(o)) == null || a.then((c) => {
163
- var u;
164
- const l = S(c, (u = e == null ? void 0 : e.exportConfigState) == null ? void 0 : u.value);
165
- w(l ?? m);
163
+ var f;
164
+ const l = S(c ?? [], (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
165
+ w(l != null && l.length ? l : m);
166
166
  });
167
167
  } catch (c) {
168
168
  console.warn(c);
@@ -170,10 +170,10 @@ function Je(e) {
170
170
  }
171
171
  }, []);
172
172
  const x = C(() => {
173
- var c, l, u, f, oe, le, ue;
173
+ var c, l, f, u, oe, le, ue;
174
174
  if ((c = e == null ? void 0 : e.columnsState) != null && c.defaultValue)
175
175
  return e.columnsState.defaultValue;
176
- const t = ((u = (l = e.columns) == null ? void 0 : l.filter((s) => s.fixed === "left")) == null ? void 0 : u.map((s, g) => ({ ...s, order: g }))) ?? [], i = ((oe = (f = e.columns) == null ? void 0 : f.filter((s) => s.fixed === "right")) == null ? void 0 : oe.map((s, g) => ({ ...s, order: g }))) ?? [], a = ((ue = (le = e.columns) == null ? void 0 : le.filter((s) => !["left", "right"].includes(s.fixed))) == null ? void 0 : ue.map((s, g) => ({ ...s, order: g }))) ?? [], n = [...t, ...a, ...i], o = {};
176
+ const t = ((f = (l = e.columns) == null ? void 0 : l.filter((s) => s.fixed === "left")) == null ? void 0 : f.map((s, g) => ({ ...s, order: g }))) ?? [], i = ((oe = (u = e.columns) == null ? void 0 : u.filter((s) => s.fixed === "right")) == null ? void 0 : oe.map((s, g) => ({ ...s, order: g }))) ?? [], a = ((ue = (le = e.columns) == null ? void 0 : le.filter((s) => !["left", "right"].includes(s.fixed))) == null ? void 0 : ue.map((s, g) => ({ ...s, order: g }))) ?? [], n = [...t, ...a, ...i], o = {};
177
177
  return n == null || n.forEach(
178
178
  ({ key: s, dataIndex: g, order: xe, fixed: he, disabled: Ke }, Te) => {
179
179
  const fe = se(s ?? g, Te);
@@ -190,16 +190,16 @@ function Je(e) {
190
190
  var n, o, c, l;
191
191
  const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.columnsState || {};
192
192
  if (i && t && typeof window < "u" && t !== "online") {
193
- const u = window[t];
193
+ const f = window[t];
194
194
  try {
195
- const f = u == null ? void 0 : u.getItem(i);
196
- if (f)
195
+ const u = f == null ? void 0 : f.getItem(i);
196
+ if (u)
197
197
  return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? S(
198
- JSON.parse(f),
198
+ JSON.parse(u),
199
199
  (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
200
- ) : JSON.parse(f);
201
- } catch (f) {
202
- console.warn(f);
200
+ ) : JSON.parse(u);
201
+ } catch (u) {
202
+ console.warn(u);
203
203
  }
204
204
  }
205
205
  return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((l = e.columnsState) == null ? void 0 : l.defaultValue) || x;
@@ -289,10 +289,10 @@ function Je(e) {
289
289
  const { onlineGet: n, persistenceKey: o } = e.columnsState;
290
290
  try {
291
291
  (a = n == null ? void 0 : n(o)) == null || a.then((c) => {
292
- var u, f;
293
- const l = S(c, (u = e == null ? void 0 : e.columnsState) == null ? void 0 : u.value);
292
+ var f, u;
293
+ const l = S(c, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
294
294
  h(
295
- (f = Object.keys(l ?? {})) != null && f.length ? l ?? {} : x
295
+ (u = Object.keys(l ?? {})) != null && u.length ? l ?? {} : x
296
296
  );
297
297
  });
298
298
  } catch (c) {
@@ -1,42 +1,42 @@
1
- const a = (r, d) => {
2
- let f = 0, t = 0;
1
+ const y = (n, f) => {
2
+ let d = 0, t = 0;
3
3
  return {
4
- filterColumns: ((o, l) => o.map((n) => {
5
- const e = h((n == null ? void 0 : n.key) || (n == null ? void 0 : n.dataIndex), n.index), s = l[e];
6
- return s && s.show === !1 ? (n.width ? f += n.width : t += 1, !1) : { ...n, ...s };
7
- }))(r, d).filter(Boolean),
8
- width: f,
4
+ filterColumns: ((o, l) => o.map((e) => {
5
+ const r = h((e == null ? void 0 : e.key) || (e == null ? void 0 : e.dataIndex), e.index), s = l[r];
6
+ return s && s.show === !1 ? (typeof e.width == "number" ? d += e.width : t += 1, !1) : { ...e, ...s };
7
+ }))(n, f).filter(Boolean),
8
+ width: d,
9
9
  autoWidthColLength: t
10
10
  };
11
- }, h = (r, d) => r ? Array.isArray(r) ? r.join("-") : r.toString() : `${d}`, y = (r) => (d, f) => {
12
- var e, s, u, x;
13
- const { fixed: t, index: c } = d, { fixed: i, index: o } = f;
11
+ }, h = (n, f) => n ? Array.isArray(n) ? n.join("-") : n.toString() : `${f}`, a = (n) => (f, d) => {
12
+ var r, s, c, x;
13
+ const { fixed: t, index: u } = f, { fixed: i, index: o } = d;
14
14
  if (t === "left" && i !== "left" || i === "right" && t !== "right")
15
15
  return -2;
16
16
  if (i === "left" && t !== "left" || t === "right" && i !== "right")
17
17
  return 2;
18
- const l = d.key || `${c}`, n = f.key || `${o}`;
19
- return (e = r[l]) != null && e.order || (s = r[n]) != null && s.order ? (((u = r[l]) == null ? void 0 : u.order) || 0) - (((x = r[n]) == null ? void 0 : x.order) || 0) : (d.index || 0) - (f.index || 0);
18
+ const l = f.key || `${u}`, e = d.key || `${o}`;
19
+ return (r = n[l]) != null && r.order || (s = n[e]) != null && s.order ? (((c = n[l]) == null ? void 0 : c.order) || 0) - (((x = n[e]) == null ? void 0 : x.order) || 0) : (f.index || 0) - (d.index || 0);
20
20
  };
21
- function g(r, d, f) {
21
+ function g(n, f, d) {
22
22
  const t = {};
23
- let c = "";
24
- const i = (o, l, n) => {
25
- for (const e in o)
26
- if (o.hasOwnProperty(e) && (typeof o[e] == "object" && o[e] !== null && (c = e, t[e] = { ...o[e] }, i(o[e], l, n)), e === l)) {
27
- const s = t[c];
28
- t[c] = {
23
+ let u = "";
24
+ const i = (o, l, e) => {
25
+ for (const r in o)
26
+ if (o.hasOwnProperty(r) && (typeof o[r] == "object" && o[r] !== null && (u = r, t[r] = { ...o[r] }, i(o[r], l, e)), r === l)) {
27
+ const s = t[u];
28
+ t[u] = {
29
29
  ...s,
30
- [l]: n
30
+ [l]: e
31
31
  // [prop]: current.disabled || current.fixed ? true : val,
32
- }, c = "";
32
+ }, u = "";
33
33
  }
34
34
  };
35
- return i(r, d, f), t;
35
+ return i(n, f, d), t;
36
36
  }
37
37
  export {
38
- y as columnSort,
38
+ a as columnSort,
39
39
  h as genColumnKey,
40
- a as loopFilter,
40
+ y as loopFilter,
41
41
  g as updateNestedObject
42
42
  };
@@ -3,7 +3,7 @@ import { TableProps } from 'antd';
3
3
  import { SkeletonParagraphProps } from 'antd/es/skeleton/Paragraph';
4
4
  import { AnyObject } from 'antd/es/_util/type';
5
5
  import type { RowClassName } from 'rc-table/es/interface';
6
- import { ColumnStateType, DensitySize, StylesStateType } from '../Store';
6
+ import { ColumnStateType, DensitySize, StylesStateType, ExportColumnStateType } from '../Store';
7
7
  import { ActionsFunType, BitzTableColumnsType } from '..';
8
8
  import { BitzTableBorderedType } from '@/components/BitzConfigProvider/context';
9
9
  import './index.less';
@@ -80,6 +80,8 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
80
80
  stylesConfigState?: StylesStateType;
81
81
  /** 用于配置和存储列配置,不传则不存储 */
82
82
  columnsState?: ColumnStateType;
83
+ /** 用于配置和存储导出列配置,不传则不存储 */
84
+ exportConfigState?: ExportColumnStateType;
83
85
  /** 自定义行类名 */
84
86
  rowClassName?: RowClassName<RecordType>;
85
87
  /** 重置分页的page为1 */
@@ -1,10 +1,12 @@
1
- /// <reference types="react" />
2
1
  import { ModalProps } from 'antd';
2
+ import { FC } from 'react';
3
3
  import { BitzTableToolBarProps } from '..';
4
4
  export interface ColumnConfigModalProps {
5
+ open: boolean;
6
+ close: () => void;
5
7
  title: string;
6
8
  onChange?: BitzTableToolBarProps['onColumnChange'];
7
9
  getContainer: ModalProps['getContainer'];
8
10
  }
9
- declare const ColumnConfigModal: import("react").FC<ColumnConfigModalProps & import("@ebay/nice-modal-react").NiceModalHocProps>;
11
+ declare const ColumnConfigModal: FC<ColumnConfigModalProps>;
10
12
  export default ColumnConfigModal;