bitz-react-admin-ui 2.2.8 → 2.3.0

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 (176) hide show
  1. package/dist/_virtual/dayjs.min.mjs +5 -2
  2. package/dist/_virtual/dayjs.min2.mjs +4 -0
  3. package/dist/assets/iconfont/IconChenggong.mjs +10 -4
  4. package/dist/assets/iconfont/IconClose.mjs +7 -1
  5. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
  6. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
  7. package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
  8. package/dist/assets/iconfont/IconCuowu.mjs +8 -2
  9. package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
  10. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  11. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  12. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  13. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  14. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  15. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  16. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  17. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  18. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  19. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  20. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  21. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  22. package/dist/assets/iconfont/IconMore.mjs +26 -4
  23. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  24. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  25. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  26. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  27. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  28. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  29. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  30. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  31. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  32. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  33. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  34. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  35. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  36. package/dist/assets/iconfont/index.mjs +33 -33
  37. package/dist/components/BitzAddTag/index.mjs +41 -8
  38. package/dist/components/BitzAddressBook/index.mjs +122 -35
  39. package/dist/components/BitzAppPage/index.mjs +18 -4
  40. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  41. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  42. package/dist/components/BitzButton/index.mjs +23 -9
  43. package/dist/components/BitzCalendar/index.mjs +53 -20
  44. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  45. package/dist/components/BitzCascader/index.mjs +6 -2
  46. package/dist/components/BitzCollapse/index.mjs +4 -4
  47. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  48. package/dist/components/BitzConfigProvider/index.mjs +12 -8
  49. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  50. package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
  51. package/dist/components/BitzConvert/index.mjs +1 -1
  52. package/dist/components/BitzDayJs/index.mjs +1 -1
  53. package/dist/components/BitzDescriptions/index.mjs +11 -1
  54. package/dist/components/BitzDrawer/index.mjs +17 -2
  55. package/dist/components/BitzEmpty/index.mjs +6 -2
  56. package/dist/components/BitzException/index.mjs +6 -1
  57. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  58. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  59. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +27 -21
  60. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +22 -4
  61. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +28 -5
  62. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +6 -3
  63. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +13 -4
  64. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +52 -20
  65. package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
  66. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  67. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  68. package/dist/components/BitzFullScreen/index.mjs +9 -6
  69. package/dist/components/BitzHighlight/Child.mjs +23 -9
  70. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  71. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  72. package/dist/components/BitzHighlight/style.mjs +4 -1
  73. package/dist/components/BitzImage/index.mjs +1 -1
  74. package/dist/components/BitzImage/previewImage.mjs +12 -5
  75. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  76. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  77. package/dist/components/BitzList/List.mjs +17 -3
  78. package/dist/components/BitzList/LoadMore.mjs +29 -20
  79. package/dist/components/BitzLoadMore/index.mjs +34 -14
  80. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +25 -12
  81. package/dist/components/BitzMeetingTime/index.mjs +11 -7
  82. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  83. package/dist/components/BitzModal/index.mjs +24 -11
  84. package/dist/components/BitzNoData/index.mjs +4 -1
  85. package/dist/components/BitzNoMore/index.mjs +1 -1
  86. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  87. package/dist/components/BitzPageContainer/index.mjs +107 -46
  88. package/dist/components/BitzPageHeader/index.mjs +89 -21
  89. package/dist/components/BitzPagination/index.mjs +71 -22
  90. package/dist/components/BitzPopover/index.mjs +4 -4
  91. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  92. package/dist/components/BitzQRCode/index.mjs +6 -1
  93. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  94. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  95. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  96. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  97. package/dist/components/BitzRefresh/index.mjs +5 -1
  98. package/dist/components/BitzRemark/index.mjs +4 -4
  99. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  100. package/dist/components/BitzSearch/index.mjs +1 -1
  101. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  102. package/dist/components/BitzSelect/index.mjs +1 -1
  103. package/dist/components/BitzSkeleton/index.mjs +31 -1
  104. package/dist/components/BitzSwitch/index.mjs +7 -2
  105. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  106. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  107. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
  108. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  109. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  110. package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
  111. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  112. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  113. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  114. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
  115. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
  116. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  117. package/dist/components/BitzTable/Store/index.d.ts +2 -2
  118. package/dist/components/BitzTable/Store/index.mjs +248 -212
  119. package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
  120. package/dist/components/BitzTable/SubTable/index.mjs +121 -73
  121. package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
  122. package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
  123. package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
  124. package/dist/components/BitzTable/Table/index.mjs +417 -207
  125. package/dist/components/BitzTable/Table/style.mjs +11 -1
  126. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
  137. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
  138. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
  139. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  140. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
  141. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  142. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
  143. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  144. package/dist/components/BitzTableOperations/index.mjs +13 -3
  145. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  146. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  147. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
  148. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
  149. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  150. package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
  151. package/dist/components/BitzTableSelect/index.mjs +61 -13
  152. package/dist/components/BitzTag/index.mjs +1 -1
  153. package/dist/components/BitzTheme/index.mjs +6 -6
  154. package/dist/components/BitzTimeline/index.mjs +11 -1
  155. package/dist/components/BitzTimer/Form.mjs +32 -11
  156. package/dist/components/BitzTimer/Timer.mjs +76 -38
  157. package/dist/components/BitzTimer/index.mjs +66 -43
  158. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  159. package/dist/components/BitzToast/index.mjs +1 -1
  160. package/dist/components/BitzTree/index.mjs +4 -1
  161. package/dist/components/BitzUeEditor/index.mjs +5 -5
  162. package/dist/components/BitzUpload/index.mjs +81 -43
  163. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  164. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  165. package/dist/hooks/use-event-listener.mjs +11 -2
  166. package/dist/hooks/use-lock-fn.mjs +13 -10
  167. package/dist/hooks/use-scroll-parent.mjs +16 -14
  168. package/dist/hooks/useEvent.mjs +7 -4
  169. package/dist/hooks/useMergedState.mjs +11 -11
  170. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  171. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  172. package/dist/style.css +1 -1
  173. package/dist/utils/WithFluent.mjs +27 -12
  174. package/dist/utils/create.mjs +7 -1
  175. package/dist/utils/time.mjs +1 -1
  176. package/package.json +1 -1
@@ -1,14 +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 k } from "../../../Store/index.mjs";
3
- import K from "../../../../BitzTheme/index.mjs";
4
- import { findParentFirstNodeByClass as M } from "../../../../../utils/findNode.mjs";
5
- import L from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
6
- import { Form as j, Flex as y, Checkbox as O, Radio as u, InputNumber as P, Select as G } from "antd";
7
- import { memo as $, useRef as q, useMemo as c, useContext as A, useState as h, useEffect as J, useImperativeHandle as Q } from "react";
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
8
  import R from "./DndList.mjs";
9
- function U({ display: r, showSelectRadio: g = !1, parentHeight: f, refInstance: S }) {
10
- K.useToken();
11
- const v = q(null), t = L(v), I = c(() => ({
9
+ function U({
10
+ display: r,
11
+ showSelectRadio: g = !1,
12
+ parentHeight: u,
13
+ refInstance: I
14
+ }) {
15
+ D.useToken();
16
+ const v = q(null), t = M(v), N = h(() => ({
12
17
  // display: display ? 'flex' : 'none'
13
18
  width: r ? "100%" : 0,
14
19
  height: "100%",
@@ -20,17 +25,19 @@ function U({ display: r, showSelectRadio: g = !1, parentHeight: f, refInstance:
20
25
  left: 0,
21
26
  right: 0
22
27
  }
23
- }), [r]), N = c(() => typeof f == "number" && f && (t != null && t.height) ? f - (t == null ? void 0 : t.height) - 20 : "auto", [f, t == null ? void 0 : t.height]), l = A(k).exportConfig, x = A(k).selected, [i, w] = h([]), [a, p] = h([]), [m, F] = h("current"), [E, B] = h("page"), [C, b] = h(1);
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);
24
29
  J(() => {
25
30
  var e, s;
26
- p(l.fields), w(l.fields.map((d) => d.field)), F(g && x ? "selectedRows" : l.config.key), B(((e = l.config.info) == null ? void 0 : e.type) ?? "page"), b(((s = l.config.info) == null ? void 0 : s.value) ?? 1);
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);
27
34
  }, [l, g, x]);
28
- const o = c(() => a.filter((e) => e.show).map((e) => e.field), [a]), T = c(() => i.length === o.length, [i, o]), D = c(() => o.length > 0 && o.length < i.length, [o, i]), V = ({ target: e }) => {
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 }) => {
29
36
  p(a.map((s) => ({ ...s, show: e.checked })));
30
- }, z = (e, s) => {
37
+ }, K = (e, s) => {
31
38
  p(e), w(s);
32
39
  };
33
- return Q(S, () => ({
40
+ return Q(I, () => ({
34
41
  getExportConfig: () => {
35
42
  const e = {
36
43
  fields: [],
@@ -43,15 +50,84 @@ function U({ display: r, showSelectRadio: g = !1, parentHeight: f, refInstance:
43
50
  let d = !1;
44
51
  o.includes(s.field) && (d = !0), e.fields.push({ ...s, show: d });
45
52
  }), m === "any" && (e.config.info = {
46
- type: E,
47
- value: (C || 0) < 1 ? 1 : C || 1
53
+ type: k,
54
+ value: (j || 0) < 1 ? 1 : j || 1
48
55
  }), e;
49
56
  },
50
57
  hasOne: () => o.length > 0
51
- })), n.jsxs(j, { style: I, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "exportConfigFormContent", children: [n.jsx(j.Item, { label: "导出字段", className: "exportFields", children: n.jsxs(y, { vertical: !0, style: { gap: 8, maxHeight: N }, children: [n.jsx(O, { checked: T, indeterminate: D, onChange: V, style: { alignSelf: "flex-start" }, children: "全选" }), n.jsx(R, { dataList: a, keys: i, onChange: p, onMoveEnd: z })] }) }), n.jsx(j.Item, { label: "导出设置", className: "exportTotal", children: n.jsx(u.Group, { ref: v, value: m, onChange: ({ target: e }) => F(e.value), children: n.jsxs(y, { vertical: !0, gap: 8, align: "flex-start", children: [g && x && n.jsx(u, { value: "selectedRows", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出选中数据" }) }), n.jsx(u, { value: "current", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "仅导出当前页" }) }), n.jsx(u, { value: "any", children: n.jsxs(y, { align: "center", gap: 8, children: [n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }), n.jsx(P, { controls: !1, min: 1, value: C, onChange: (e) => b(e), style: { width: 120 }, addonAfter: n.jsx(G, { value: E, onChange: B, options: [
52
- { label: "页", value: "page" },
53
- { label: "条", value: "pieces" }
54
- ], onClick: (e) => e.preventDefault(), getPopupContainer: (e) => M(e, "containerBody") }) }), n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })] }) }), n.jsx(u, { value: "all", children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })] }) }) })] });
58
+ })), /* @__PURE__ */ n.jsxs(
59
+ C,
60
+ {
61
+ style: N,
62
+ labelCol: { span: 3 },
63
+ labelAlign: "left",
64
+ colon: !1,
65
+ className: "exportConfigFormContent",
66
+ children: [
67
+ /* @__PURE__ */ n.jsx(C.Item, { label: "导出字段", className: "exportFields", children: /* @__PURE__ */ n.jsxs(y, { vertical: !0, style: { gap: 8, maxHeight: T }, children: [
68
+ /* @__PURE__ */ n.jsx(
69
+ O,
70
+ {
71
+ checked: B,
72
+ indeterminate: V,
73
+ onChange: z,
74
+ style: { alignSelf: "flex-start" },
75
+ children: "全选"
76
+ }
77
+ ),
78
+ /* @__PURE__ */ n.jsx(
79
+ R,
80
+ {
81
+ dataList: a,
82
+ keys: i,
83
+ onChange: p,
84
+ onMoveEnd: K
85
+ }
86
+ )
87
+ ] }) }),
88
+ /* @__PURE__ */ n.jsx(C.Item, { label: "导出设置", className: "exportTotal", children: /* @__PURE__ */ n.jsx(
89
+ c.Group,
90
+ {
91
+ ref: v,
92
+ value: m,
93
+ onChange: ({ target: e }) => b(e.value),
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: [
98
+ /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }),
99
+ /* @__PURE__ */ n.jsx(
100
+ P,
101
+ {
102
+ controls: !1,
103
+ min: 1,
104
+ value: j,
105
+ onChange: (e) => S(e),
106
+ style: { width: 120 },
107
+ addonAfter: /* @__PURE__ */ n.jsx(
108
+ G,
109
+ {
110
+ value: k,
111
+ onChange: E,
112
+ options: [
113
+ { label: "页", value: "page" },
114
+ { label: "条", value: "pieces" }
115
+ ],
116
+ onClick: (e) => e.preventDefault(),
117
+ getPopupContainer: (e) => L(e, "containerBody")
118
+ }
119
+ )
120
+ }
121
+ ),
122
+ /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })
123
+ ] }) }),
124
+ /* @__PURE__ */ n.jsx(c, { value: "all", children: /* @__PURE__ */ n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出全部数据" }) })
125
+ ] })
126
+ }
127
+ ) })
128
+ ]
129
+ }
130
+ );
55
131
  }
56
132
  const te = $(U);
57
133
  export {
@@ -1,6 +1,13 @@
1
1
  import { j as r } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { Radio as i, Flex as o, Typography as s } from "antd";
3
- const x = ({ label: e, value: t, children: a }) => r.jsx(i, { value: t, children: r.jsxs(o, { vertical: !0, align: "center", gap: 8, children: [a, r.jsx(s.Text, { children: e })] }) });
3
+ const d = ({
4
+ label: e,
5
+ value: t,
6
+ children: a
7
+ }) => /* @__PURE__ */ r.jsx(i, { value: t, children: /* @__PURE__ */ r.jsxs(o, { vertical: !0, align: "center", gap: 8, children: [
8
+ a,
9
+ /* @__PURE__ */ r.jsx(s.Text, { children: e })
10
+ ] }) });
4
11
  export {
5
- x as default
12
+ d as default
6
13
  };
@@ -5,17 +5,17 @@ import "../../../../../assets/iconfont/IconColumnFixedRight.mjs";
5
5
  import "../../../../../assets/iconfont/IconColumnCancelFixed.mjs";
6
6
  import "../../../../../assets/iconfont/IconMore.mjs";
7
7
  import "../../../../../assets/iconfont/IconIcFluentHomeRegular.mjs";
8
- import v from "../../../../../assets/iconfont/IconKuansongde.mjs";
9
- import B from "../../../../../assets/iconfont/IconTekuansong.mjs";
10
- import E from "../../../../../assets/iconfont/IconJincoude.mjs";
11
- import H from "../../../../../assets/iconfont/IconZhongdengde.mjs";
12
- import S from "../../../../../assets/iconfont/IconTejincou.mjs";
13
- import k from "../../../../../assets/iconfont/IconWufengexian.mjs";
14
- import F from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
15
- import w from "../../../../../assets/iconfont/IconHangfengexian.mjs";
16
- import T from "../../../../../assets/iconfont/IconLiefengexian.mjs";
17
- import R from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
18
- import G from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
8
+ import H from "../../../../../assets/iconfont/IconKuansongde.mjs";
9
+ import C from "../../../../../assets/iconfont/IconTekuansong.mjs";
10
+ import S from "../../../../../assets/iconfont/IconJincoude.mjs";
11
+ import k from "../../../../../assets/iconfont/IconZhongdengde.mjs";
12
+ import w from "../../../../../assets/iconfont/IconTejincou.mjs";
13
+ import T from "../../../../../assets/iconfont/IconWufengexian.mjs";
14
+ import R from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
15
+ import B from "../../../../../assets/iconfont/IconHangfengexian.mjs";
16
+ import G from "../../../../../assets/iconfont/IconLiefengexian.mjs";
17
+ import F from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
18
+ import N from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
19
19
  import "../../../../../assets/iconfont/IconZhongzhi.mjs";
20
20
  import "../../../../../assets/iconfont/IconGaojisousuo.mjs";
21
21
  import "../../../../../assets/iconfont/IconSousuo.mjs";
@@ -32,12 +32,12 @@ import "../../../../../assets/iconfont/IconFabu.mjs";
32
32
  import "../../../../../assets/iconfont/IconShanchu1.mjs";
33
33
  import "../../../../../assets/iconfont/IconShanchu.mjs";
34
34
  import "../../../../../assets/iconfont/IconTuodong.mjs";
35
- import { BitzConfigContext as A } from "../../../../BitzConfigProvider/context.mjs";
36
- import { BitzTableContext as N } from "../../../Store/index.mjs";
37
- import W from "../../../../BitzTheme/index.mjs";
38
- import { Form as t, Radio as p, Checkbox as D } from "antd";
39
- import $ from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
40
- import { forwardRef as J, useMemo as K, useContext as d, useEffect as L, useImperativeHandle as M, memo as V } from "react";
35
+ import { BitzConfigContext as W } from "../../../../BitzConfigProvider/context.mjs";
36
+ import { BitzTableContext as E } from "../../../Store/index.mjs";
37
+ import $ from "../../../../BitzTheme/index.mjs";
38
+ import { Form as t, Radio as d, Checkbox as A } from "antd";
39
+ import D from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
40
+ import { forwardRef as J, useMemo as K, useContext as u, useEffect as L, useImperativeHandle as M, memo as V } from "react";
41
41
  import { BitzToolBarContext as Y } from "../../Wrapper/context.mjs";
42
42
  import l from "./RadioCard.mjs";
43
43
  const Z = ({ defaultSize: s, items: a }) => a.map((e) => e.key === s ? {
@@ -45,75 +45,129 @@ const Z = ({ defaultSize: s, items: a }) => a.map((e) => e.key === s ? {
45
45
  label: `${e.label}(默认)`
46
46
  } : e), q = J(({ display: s }, a) => {
47
47
  var x, b, f;
48
- const { token: e } = W.useToken(), j = K(() => ({
48
+ const { token: e } = $.useToken(), j = K(() => ({
49
49
  width: "100%",
50
50
  ...{ display: s ? "flex" : "none" }
51
51
  }), [s]), z = {
52
52
  size: 26,
53
53
  color: e.colorPrimary
54
- }, [c] = t.useForm(), g = (x = d(A).Table) == null ? void 0 : x.stylesScope, { defaultTableSize: C, stylesConfig: P } = d(N), r = (b = d(Y).config) == null ? void 0 : b.stylesConfig, u = (i, m) => {
54
+ }, [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) => {
55
55
  var y, h;
56
56
  let n = m;
57
- return (y = r == null ? void 0 : r[i]) != null && y.disabled && (n = $(m, "disabledControl")), {
57
+ return (y = r == null ? void 0 : r[i]) != null && y.disabled && (n = D(m, "disabledControl")), {
58
58
  disabled: (h = r == null ? void 0 : r[i]) == null ? void 0 : h.disabled,
59
59
  className: n
60
60
  };
61
61
  };
62
62
  L(() => {
63
63
  c.setFieldsValue({
64
- ...P,
64
+ ...I,
65
65
  stylesScope: g === "global"
66
66
  });
67
67
  }, []);
68
- const I = Z({
69
- defaultSize: C,
68
+ const v = Z({
69
+ defaultSize: P,
70
70
  items: [
71
71
  {
72
72
  key: "xs",
73
73
  label: "特紧凑",
74
- icon: S
74
+ icon: w
75
75
  },
76
76
  {
77
77
  key: "sm",
78
78
  label: "紧凑",
79
- icon: E
79
+ icon: S
80
80
  },
81
81
  {
82
82
  key: "md",
83
83
  label: "中等",
84
- icon: H
84
+ icon: k
85
85
  },
86
86
  {
87
87
  key: "lg",
88
88
  label: "宽松",
89
- icon: v
89
+ icon: H
90
90
  },
91
91
  {
92
92
  key: "xl",
93
93
  label: "特宽松",
94
- icon: B
94
+ icon: C
95
95
  }
96
96
  ]
97
97
  });
98
98
  return M(a, () => ({
99
99
  getFormInstance: () => c
100
- })), o.jsxs(t, { form: c, style: j, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "stylesConfigFormContent", children: [o.jsx(t.Item, { label: "行高", name: "size", children: o.jsx(p.Group, { ...u("size", "sizeRadioGroup"), children: I.map(({ key: i, label: m, icon: n }) => o.jsx(l, { label: m, value: i, children: o.jsx(n, { ...z }) }, i)) }) }), o.jsx(t.Item, { label: "分割线", name: "bordered", children: o.jsxs(p.Group, { ...u("bordered", "splitBorderRadioGroup"), children: [o.jsx(l, { label: "无分割线", value: "hide", children: o.jsx(k, { size: 26, color: e.colorPrimaryHover }) }), o.jsx(l, { label: "行分割线", value: "row", children: o.jsx(w, { size: 26, color: [
101
- e.colorPrimaryHover,
102
- e.colorPrimary,
103
- e.colorPrimary,
104
- e.colorPrimaryHover
105
- ] }) }), o.jsx(l, { label: "列分割线", value: "column", children: o.jsx(T, { size: 26, color: [
106
- e.colorPrimaryHover,
107
- e.colorPrimary,
108
- e.colorPrimary,
109
- e.colorPrimaryHover
110
- ] }) }), o.jsx(l, { label: "行列分割线", value: "row-column", children: o.jsx(F, { size: 26, color: [
111
- e.colorPrimaryHover,
112
- e.colorPrimary,
113
- e.colorPrimary,
114
- e.colorPrimaryHover
115
- ] }) })] }) }), o.jsx(t.Item, { label: "斑马纹", name: "zebra", children: o.jsxs(p.Group, { ...u("zebra", "zebraRadioGroup"), children: [o.jsx(l, { label: "有斑马纹", value: !0, children: o.jsx(R, { size: 26, color: [e.colorPrimaryHover, e.colorPrimary] }) }), o.jsx(l, { label: "无斑马纹", value: !1, children: o.jsx(G, { size: 26, color: e.colorPrimaryHover }) })] }) }), o.jsx(t.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: o.jsx(D, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })] });
116
- }), Wo = V(q);
100
+ })), /* @__PURE__ */ o.jsxs(
101
+ t,
102
+ {
103
+ form: c,
104
+ style: j,
105
+ labelCol: { span: 3 },
106
+ labelAlign: "left",
107
+ colon: !1,
108
+ className: "stylesConfigFormContent",
109
+ children: [
110
+ /* @__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)) }) }),
111
+ /* @__PURE__ */ o.jsx(t.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("bordered", "splitBorderRadioGroup"), children: [
112
+ /* @__PURE__ */ o.jsx(l, { label: "无分割线", value: "hide", children: /* @__PURE__ */ o.jsx(T, { size: 26, color: e.colorPrimaryHover }) }),
113
+ /* @__PURE__ */ o.jsx(l, { label: "行分割线", value: "row", children: /* @__PURE__ */ o.jsx(
114
+ B,
115
+ {
116
+ size: 26,
117
+ color: [
118
+ e.colorPrimaryHover,
119
+ e.colorPrimary,
120
+ e.colorPrimary,
121
+ e.colorPrimaryHover
122
+ ]
123
+ }
124
+ ) }),
125
+ /* @__PURE__ */ o.jsx(l, { label: "列分割线", value: "column", children: /* @__PURE__ */ o.jsx(
126
+ G,
127
+ {
128
+ size: 26,
129
+ color: [
130
+ e.colorPrimaryHover,
131
+ e.colorPrimary,
132
+ e.colorPrimary,
133
+ e.colorPrimaryHover
134
+ ]
135
+ }
136
+ ) }),
137
+ /* @__PURE__ */ o.jsx(l, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ o.jsx(
138
+ R,
139
+ {
140
+ size: 26,
141
+ color: [
142
+ e.colorPrimaryHover,
143
+ e.colorPrimary,
144
+ e.colorPrimary,
145
+ e.colorPrimaryHover
146
+ ]
147
+ }
148
+ ) })
149
+ ] }) }),
150
+ /* @__PURE__ */ o.jsx(t.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ o.jsxs(d.Group, { ...p("zebra", "zebraRadioGroup"), children: [
151
+ /* @__PURE__ */ o.jsx(l, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ o.jsx(
152
+ F,
153
+ {
154
+ size: 26,
155
+ color: [e.colorPrimaryHover, e.colorPrimary]
156
+ }
157
+ ) }),
158
+ /* @__PURE__ */ o.jsx(l, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ o.jsx(
159
+ N,
160
+ {
161
+ size: 26,
162
+ color: e.colorPrimaryHover
163
+ }
164
+ ) })
165
+ ] }) }),
166
+ /* @__PURE__ */ o.jsx(t.Item, { name: "stylesScope", valuePropName: "checked", className: "scope", children: /* @__PURE__ */ o.jsx(A, { disabled: (f = r == null ? void 0 : r.stylesScope) == null ? void 0 : f.disabled, children: "应用到全局表格" }) })
167
+ ]
168
+ }
169
+ );
170
+ }), $o = V(q);
117
171
  export {
118
- Wo as default
172
+ $o as default
119
173
  };
@@ -1,18 +1,40 @@
1
1
  import { j as t } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as C, useState as x, useMemo as d } from "react";
2
+ import { useContext as x, useState as C, useMemo as d } from "react";
3
3
  import { Tooltip as g } from "antd";
4
4
  import j from "./ColumnConfigModal.mjs";
5
5
  import h from "../style.mjs";
6
6
  import p from "../../../BitzButton/index.mjs";
7
7
  import { BitzTableContext as y } from "../../Store/index.mjs";
8
8
  import B from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs";
9
- const o = "表格设置", w = (e) => {
10
- const { order: i, show: l = !0, icon: m = t.jsx(B, {}) } = e, { fullscreen: n } = C(y), { toolbarItemClassName: a } = h(), [c, s] = x(!1), f = d(() => n ? !1 : void 0, [n]);
11
- return l ? t.jsxs(t.Fragment, { children: [t.jsx(j, { open: c, title: o, onChange: async (...u) => {
12
- var r;
13
- return (r = e.onChange) == null ? void 0 : r.call(e, ...u);
14
- }, getContainer: f, close: () => s(!1) }), t.jsx(g, { title: o, open: !1, children: t.jsx(p, { type: "text", className: a, onClick: () => s(!0), icon: m, style: { order: i }, children: o }) })] }) : null;
9
+ const o = "表格设置", v = (e) => {
10
+ const { order: l, show: i = !0, icon: m = /* @__PURE__ */ t.jsx(B, {}) } = e, { fullscreen: n } = x(y), { toolbarItemClassName: a } = h(), [c, s] = C(!1), f = d(() => n ? !1 : void 0, [n]);
11
+ return i ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
12
+ /* @__PURE__ */ t.jsx(
13
+ j,
14
+ {
15
+ open: c,
16
+ title: o,
17
+ onChange: async (...u) => {
18
+ var r;
19
+ return (r = e.onChange) == null ? void 0 : r.call(e, ...u);
20
+ },
21
+ getContainer: f,
22
+ close: () => s(!1)
23
+ }
24
+ ),
25
+ /* @__PURE__ */ t.jsx(g, { title: o, open: !1, children: /* @__PURE__ */ t.jsx(
26
+ p,
27
+ {
28
+ type: "text",
29
+ className: a,
30
+ onClick: () => s(!0),
31
+ icon: m,
32
+ style: { order: l },
33
+ children: o
34
+ }
35
+ ) })
36
+ ] }) : null;
15
37
  };
16
38
  export {
17
- w as default
39
+ v as default
18
40
  };
@@ -1,14 +1,20 @@
1
1
  import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { message as y } from "antd";
3
- import { useState as m, useContext as B, useRef as E, useMemo as b } from "react";
3
+ import { useState as m, useContext as E, useRef as b, useMemo as B } from "react";
4
4
  import { BitzTableContext as O } from "../../Store/index.mjs";
5
5
  import c from "../../../BitzButton/index.mjs";
6
6
  import R from "../../../BitzTheme/index.mjs";
7
7
  import T from "../Modal/index.mjs";
8
8
  import z from "../ColConfigIcon/ExportConfig/index.mjs";
9
- import A from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
10
- const q = ({ open: u, title: p, onExport: s, close: o, getContainer: d }) => {
11
- const { token: i } = R.useToken(), [x, r] = m(!1), [g, t] = m(!1), { defaultTableExportConfig: C } = B(O), n = E(null), h = async () => {
9
+ import M from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs";
10
+ const q = ({
11
+ open: u,
12
+ title: p,
13
+ onExport: s,
14
+ close: o,
15
+ getContainer: d
16
+ }) => {
17
+ const { token: i } = R.useToken(), [x, r] = m(!1), [g, t] = m(!1), { defaultTableExportConfig: h } = E(O), n = b(null), C = async () => {
12
18
  var f, l;
13
19
  if (g)
14
20
  return;
@@ -16,23 +22,47 @@ const q = ({ open: u, title: p, onExport: s, close: o, getContainer: d }) => {
16
22
  y.error("导出设置至少需要一个字段"), t(!1);
17
23
  return;
18
24
  }
19
- const k = ((l = n.current) == null ? void 0 : l.getExportConfig()) ?? C;
25
+ const k = ((l = n.current) == null ? void 0 : l.getExportConfig()) ?? h;
20
26
  s && (t(!1), r(!0), s(k).finally(() => {
21
27
  r(!1), o();
22
28
  }));
23
29
  };
24
- b(() => i.mode === "dark", [i.mode]);
30
+ B(() => i.mode === "dark", [i.mode]);
25
31
  const j = () => {
26
32
  r(!1), t(!1);
27
33
  };
28
- return e.jsx(T, { open: u, title: p, close: o, closeAfter: j, getContainer: d, footer: e.jsxs(e.Fragment, { children: [e.jsx(c, {
29
- type: "primary",
30
- icon: e.jsx(A, {}),
31
- onClick: h,
32
- // disabled={!isEdit}
33
- loading: x,
34
- children: "导出"
35
- }), e.jsx(c, { onClick: o, children: "取消" })] }), children: (a) => e.jsx(z, { parentHeight: a, refInstance: n, display: !0, showSelectRadio: !0 }) });
34
+ return /* @__PURE__ */ e.jsx(
35
+ T,
36
+ {
37
+ open: u,
38
+ title: p,
39
+ close: o,
40
+ closeAfter: j,
41
+ getContainer: d,
42
+ footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
43
+ /* @__PURE__ */ e.jsx(
44
+ c,
45
+ {
46
+ type: "primary",
47
+ icon: /* @__PURE__ */ e.jsx(M, {}),
48
+ onClick: C,
49
+ loading: x,
50
+ children: "导出"
51
+ }
52
+ ),
53
+ /* @__PURE__ */ e.jsx(c, { onClick: o, children: "取消" })
54
+ ] }),
55
+ children: (a) => /* @__PURE__ */ e.jsx(
56
+ z,
57
+ {
58
+ parentHeight: a,
59
+ refInstance: n,
60
+ display: !0,
61
+ showSelectRadio: !0
62
+ }
63
+ )
64
+ }
65
+ );
36
66
  };
37
67
  export {
38
68
  q as default
@@ -1,20 +1,52 @@
1
1
  import { j as t } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { memo as y, useState as i, useContext as a, useMemo as E } from "react";
3
- import b from "../style.mjs";
2
+ import { memo as b, useState as i, useContext as a, useMemo as g } from "react";
3
+ import E from "../style.mjs";
4
4
  import B from "../../../BitzButton/index.mjs";
5
5
  import { BitzTableContext as m } from "../../Store/index.mjs";
6
- import { exportConfigTitle as F } from "../ColConfigIcon/ColumnConfigModal.mjs";
7
- import I from "./ExportModal.mjs";
8
- import h from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
9
- const z = ({ show: f = !0, order: p, onClick: o, icon: u = t.jsx(h, {}) }) => {
10
- const { toolbarItemClassName: c } = b(), [x, n] = i(!1), [d, r] = i(!1);
6
+ import { exportConfigTitle as I } from "../ColConfigIcon/ColumnConfigModal.mjs";
7
+ import h from "./ExportModal.mjs";
8
+ import z from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
9
+ const D = ({
10
+ show: f = !0,
11
+ order: p,
12
+ onClick: o,
13
+ icon: c = /* @__PURE__ */ t.jsx(z, {})
14
+ }) => {
15
+ const { toolbarItemClassName: u } = E(), [x, s] = i(!1), [d, r] = i(!1);
11
16
  a(m).exportConfig;
12
- const { loading: C, fullscreen: s } = a(m), g = E(() => s ? !1 : void 0, [s]), j = async (e) => {
17
+ const { loading: j, fullscreen: n } = a(m), y = g(() => n ? !1 : void 0, [n]), C = async (e) => {
13
18
  var l;
14
19
  if (o)
15
- return r(!0), o(e.config.key, e.fields, (l = e.config) == null ? void 0 : l.info).finally(() => r(!1));
20
+ return r(!0), o(
21
+ e.config.key,
22
+ e.fields,
23
+ (l = e.config) == null ? void 0 : l.info
24
+ ).finally(() => r(!1));
16
25
  };
17
- return f ? t.jsxs(t.Fragment, { children: [t.jsx(I, { open: x, title: F, getContainer: g, onExport: j, close: () => n(!1) }), t.jsx(B, { type: "text", className: c, icon: u, style: { order: p }, disabled: C || d, onClick: () => n(!0), children: "导出" })] }) : (
26
+ return f ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
27
+ /* @__PURE__ */ t.jsx(
28
+ h,
29
+ {
30
+ open: x,
31
+ title: I,
32
+ getContainer: y,
33
+ onExport: C,
34
+ close: () => s(!1)
35
+ }
36
+ ),
37
+ /* @__PURE__ */ t.jsx(
38
+ B,
39
+ {
40
+ type: "text",
41
+ className: u,
42
+ icon: c,
43
+ style: { order: p },
44
+ disabled: j || d,
45
+ onClick: () => s(!0),
46
+ children: "导出"
47
+ }
48
+ )
49
+ ] }) : (
18
50
  // <Dropdown
19
51
  // open={open}
20
52
  // onOpenChange={setOpen}
@@ -41,7 +73,7 @@ const z = ({ show: f = !0, order: p, onClick: o, icon: u = t.jsx(h, {}) }) => {
41
73
  // </Dropdown>
42
74
  null
43
75
  );
44
- }, A = y(z);
76
+ }, F = b(D);
45
77
  export {
46
- A as default
78
+ F as default
47
79
  };
@@ -9,13 +9,16 @@ import { findParentFirstNodeByClass as z } from "../../../../utils/findNode.mjs"
9
9
  import { BitzTableContext as T } from "../../Store/index.mjs";
10
10
  import h from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs";
11
11
  import C from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs";
12
- const g = ({ order: m, show: u = !0 }) => {
12
+ const g = ({
13
+ order: m,
14
+ show: u = !0
15
+ }) => {
13
16
  const { toolbarItemClassName: a } = E(), { fullscreen: n, setFullscreen: s } = p(T), o = x(() => n ? {
14
17
  title: "退出全屏",
15
- icon: t.jsx(h, {})
18
+ icon: /* @__PURE__ */ t.jsx(h, {})
16
19
  } : {
17
20
  title: "全屏",
18
- icon: t.jsx(C, {})
21
+ icon: /* @__PURE__ */ t.jsx(C, {})
19
22
  }, [n]), f = (l) => {
20
23
  r.isEnabled || j.error("您的浏览器不支持全屏");
21
24
  const e = z(l.target, "bitzTableBlock");
@@ -25,7 +28,17 @@ const g = ({ order: m, show: u = !0 }) => {
25
28
  var e, i, c;
26
29
  (e = l.target) != null && e.classList.contains("bitzTableBlock") && (s(!!document.fullscreenElement), (c = (i = document.fullscreenElement) == null ? void 0 : i.classList) != null && c.contains("bitzTableBlock") || s(!1));
27
30
  }), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
28
- })), []), u ? t.jsx(B, { title: o.title, open: !1, children: t.jsx(F, { type: "text", className: a, onClick: f, icon: o.icon, style: { order: m }, children: o.title }) }) : null;
31
+ })), []), u ? /* @__PURE__ */ t.jsx(B, { title: o.title, open: !1, children: /* @__PURE__ */ t.jsx(
32
+ F,
33
+ {
34
+ type: "text",
35
+ className: a,
36
+ onClick: f,
37
+ icon: o.icon,
38
+ style: { order: m },
39
+ children: o.title
40
+ }
41
+ ) }) : null;
29
42
  }, P = d(g);
30
43
  export {
31
44
  P as default