bitz-react-admin-ui 2.2.7 → 2.2.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 (209) hide show
  1. package/dist/_virtual/Draggable.mjs +4 -0
  2. package/dist/_virtual/DraggableCore.mjs +4 -0
  3. package/dist/_virtual/Resizable.mjs +4 -0
  4. package/dist/_virtual/ResizableBox.mjs +4 -0
  5. package/dist/_virtual/_commonjsHelpers.mjs +26 -4
  6. package/dist/_virtual/cjs.mjs +4 -0
  7. package/dist/_virtual/clsx.m.mjs +6 -0
  8. package/dist/_virtual/domFns.mjs +4 -0
  9. package/dist/_virtual/getPrefix.mjs +4 -0
  10. package/dist/_virtual/index.mjs +2 -2
  11. package/dist/_virtual/index2.mjs +2 -2
  12. package/dist/_virtual/index6.mjs +4 -0
  13. package/dist/_virtual/log.mjs +4 -0
  14. package/dist/_virtual/positionFns.mjs +4 -0
  15. package/dist/_virtual/propTypes.mjs +4 -0
  16. package/dist/_virtual/shims.mjs +4 -0
  17. package/dist/_virtual/utils.mjs +4 -0
  18. package/dist/assets/iconfont/IconChenggong.mjs +4 -10
  19. package/dist/assets/iconfont/IconClose.mjs +1 -7
  20. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
  21. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
  22. package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
  23. package/dist/assets/iconfont/IconCuowu.mjs +2 -8
  24. package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
  25. package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
  26. package/dist/assets/iconfont/IconFabu.mjs +3 -18
  27. package/dist/assets/iconfont/IconFanhui.mjs +5 -11
  28. package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
  29. package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
  30. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
  31. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
  32. package/dist/assets/iconfont/IconIcon21.mjs +2 -8
  33. package/dist/assets/iconfont/IconJincoude.mjs +3 -9
  34. package/dist/assets/iconfont/IconJinggao.mjs +2 -8
  35. package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
  36. package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
  37. package/dist/assets/iconfont/IconMore.mjs +4 -26
  38. package/dist/assets/iconfont/IconShanchu.mjs +5 -11
  39. package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
  40. package/dist/assets/iconfont/IconSousuo.mjs +4 -10
  41. package/dist/assets/iconfont/IconTejincou.mjs +1 -7
  42. package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
  43. package/dist/assets/iconfont/IconTishi1.mjs +6 -12
  44. package/dist/assets/iconfont/IconTuodong.mjs +6 -12
  45. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
  46. package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
  47. package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
  48. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
  49. package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
  50. package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
  51. package/dist/assets/iconfont/index.mjs +33 -33
  52. package/dist/components/BitzAddTag/index.mjs +8 -41
  53. package/dist/components/BitzAddressBook/index.mjs +35 -122
  54. package/dist/components/BitzAppPage/index.mjs +4 -18
  55. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  56. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  57. package/dist/components/BitzButton/index.mjs +9 -23
  58. package/dist/components/BitzCalendar/index.mjs +19 -52
  59. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  60. package/dist/components/BitzCascader/index.mjs +2 -6
  61. package/dist/components/BitzCollapse/index.mjs +4 -4
  62. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  63. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  64. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  65. package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
  66. package/dist/components/BitzConvert/index.mjs +1 -1
  67. package/dist/components/BitzDescriptions/index.mjs +1 -11
  68. package/dist/components/BitzDrawer/index.mjs +2 -17
  69. package/dist/components/BitzEmpty/index.mjs +2 -6
  70. package/dist/components/BitzException/index.mjs +1 -6
  71. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  72. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  73. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  74. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  75. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  76. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  77. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  78. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +19 -51
  79. package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
  80. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
  81. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  82. package/dist/components/BitzFullScreen/index.mjs +6 -9
  83. package/dist/components/BitzHighlight/Child.mjs +9 -23
  84. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  85. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  86. package/dist/components/BitzHighlight/style.mjs +1 -4
  87. package/dist/components/BitzImage/index.mjs +1 -1
  88. package/dist/components/BitzImage/previewImage.mjs +5 -12
  89. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  90. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  91. package/dist/components/BitzList/List.mjs +3 -17
  92. package/dist/components/BitzList/LoadMore.mjs +20 -29
  93. package/dist/components/BitzLoadMore/index.mjs +14 -34
  94. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  95. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  96. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  97. package/dist/components/BitzModal/index.mjs +11 -24
  98. package/dist/components/BitzNoData/index.mjs +1 -4
  99. package/dist/components/BitzNoMore/index.mjs +1 -1
  100. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  101. package/dist/components/BitzPageContainer/index.mjs +46 -107
  102. package/dist/components/BitzPageHeader/index.mjs +21 -89
  103. package/dist/components/BitzPagination/index.mjs +22 -71
  104. package/dist/components/BitzPopover/index.mjs +4 -4
  105. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  106. package/dist/components/BitzQRCode/index.mjs +1 -6
  107. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  108. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  109. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  110. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  111. package/dist/components/BitzRefresh/index.mjs +1 -5
  112. package/dist/components/BitzRemark/index.mjs +4 -4
  113. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  114. package/dist/components/BitzSearch/index.mjs +1 -1
  115. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  116. package/dist/components/BitzSelect/index.mjs +1 -1
  117. package/dist/components/BitzSkeleton/index.mjs +1 -31
  118. package/dist/components/BitzSwitch/index.mjs +2 -7
  119. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  120. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  121. package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +21 -9
  122. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
  123. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  124. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  125. package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
  126. package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
  127. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  128. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  129. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  130. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  131. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +2 -8
  132. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  133. package/dist/components/BitzTable/Store/index.mjs +89 -121
  134. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
  135. package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
  136. package/dist/components/BitzTable/SubTable/index.mjs +52 -94
  137. package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
  138. package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
  139. package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
  140. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  141. package/dist/components/BitzTable/Table/index.d.ts +1 -1
  142. package/dist/components/BitzTable/Table/index.mjs +248 -436
  143. package/dist/components/BitzTable/Table/style.mjs +1 -11
  144. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  145. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
  146. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
  147. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  148. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +145 -253
  149. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
  150. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  151. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
  152. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  153. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
  154. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
  155. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
  156. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
  157. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  158. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +12 -49
  159. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
  160. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  161. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
  162. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  163. package/dist/components/BitzTableOperations/index.mjs +3 -13
  164. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  165. package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
  166. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
  167. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
  168. package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
  169. package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
  170. package/dist/components/BitzTableSelect/index.mjs +13 -61
  171. package/dist/components/BitzTag/index.mjs +1 -1
  172. package/dist/components/BitzTheme/index.mjs +6 -6
  173. package/dist/components/BitzTimeline/index.mjs +1 -11
  174. package/dist/components/BitzTimer/Form.mjs +11 -32
  175. package/dist/components/BitzTimer/Timer.mjs +38 -76
  176. package/dist/components/BitzTimer/index.mjs +43 -66
  177. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  178. package/dist/components/BitzToast/index.mjs +1 -1
  179. package/dist/components/BitzTree/index.mjs +1 -4
  180. package/dist/components/BitzUeEditor/index.mjs +5 -5
  181. package/dist/components/BitzUpload/index.mjs +43 -81
  182. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  183. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  184. package/dist/hooks/use-event-listener.mjs +2 -11
  185. package/dist/hooks/use-lock-fn.mjs +10 -13
  186. package/dist/hooks/use-scroll-parent.mjs +14 -16
  187. package/dist/hooks/useEvent.mjs +4 -7
  188. package/dist/hooks/useMergedState.mjs +11 -11
  189. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  190. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
  191. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +9 -8
  192. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
  193. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
  194. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
  195. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
  196. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
  197. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
  198. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
  199. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
  200. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
  201. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
  202. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
  203. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
  204. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
  205. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  206. package/dist/style.css +1 -1
  207. package/dist/utils/WithFluent.mjs +12 -27
  208. package/dist/utils/create.mjs +1 -7
  209. package/package.json +1 -1
@@ -1,19 +1,14 @@
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";
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";
8
8
  import R from "./DndList.mjs";
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(() => ({
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(() => ({
17
12
  // display: display ? 'flex' : 'none'
18
13
  width: r ? "100%" : 0,
19
14
  height: "100%",
@@ -25,19 +20,17 @@ function U({
25
20
  left: 0,
26
21
  right: 0
27
22
  }
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);
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);
29
24
  J(() => {
30
25
  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);
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);
34
27
  }, [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 }) => {
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 }) => {
36
29
  p(a.map((s) => ({ ...s, show: e.checked })));
37
- }, K = (e, s) => {
30
+ }, z = (e, s) => {
38
31
  p(e), w(s);
39
32
  };
40
- return Q(I, () => ({
33
+ return Q(S, () => ({
41
34
  getExportConfig: () => {
42
35
  const e = {
43
36
  fields: [],
@@ -50,84 +43,15 @@ function U({
50
43
  let d = !1;
51
44
  o.includes(s.field) && (d = !0), e.fields.push({ ...s, show: d });
52
45
  }), m === "any" && (e.config.info = {
53
- type: k,
54
- value: (j || 0) < 1 ? 1 : j || 1
46
+ type: E,
47
+ value: (C || 0) < 1 ? 1 : C || 1
55
48
  }), e;
56
49
  },
57
50
  hasOne: () => o.length > 0
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
- );
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: "导出全部数据" }) })] }) }) })] });
131
55
  }
132
56
  const te = $(U);
133
57
  export {
@@ -1,13 +1,6 @@
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 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
- ] }) });
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 })] }) });
11
4
  export {
12
- d as default
5
+ x as default
13
6
  };
@@ -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 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";
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";
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 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";
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";
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,129 +45,75 @@ 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 } = $.useToken(), j = K(() => ({
48
+ const { token: e } = W.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 = 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) => {
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) => {
55
55
  var y, h;
56
56
  let n = m;
57
- return (y = r == null ? void 0 : r[i]) != null && y.disabled && (n = D(m, "disabledControl")), {
57
+ return (y = r == null ? void 0 : r[i]) != null && y.disabled && (n = $(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
- ...I,
64
+ ...P,
65
65
  stylesScope: g === "global"
66
66
  });
67
67
  }, []);
68
- const v = Z({
69
- defaultSize: P,
68
+ const I = Z({
69
+ defaultSize: C,
70
70
  items: [
71
71
  {
72
72
  key: "xs",
73
73
  label: "特紧凑",
74
- icon: w
74
+ icon: S
75
75
  },
76
76
  {
77
77
  key: "sm",
78
78
  label: "紧凑",
79
- icon: S
79
+ icon: E
80
80
  },
81
81
  {
82
82
  key: "md",
83
83
  label: "中等",
84
- icon: k
84
+ icon: H
85
85
  },
86
86
  {
87
87
  key: "lg",
88
88
  label: "宽松",
89
- icon: H
89
+ icon: v
90
90
  },
91
91
  {
92
92
  key: "xl",
93
93
  label: "特宽松",
94
- icon: C
94
+ icon: B
95
95
  }
96
96
  ]
97
97
  });
98
98
  return M(a, () => ({
99
99
  getFormInstance: () => c
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);
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);
171
117
  export {
172
- $o as default
118
+ Wo as default
173
119
  };
@@ -1,40 +1,18 @@
1
1
  import { j as t } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as x, useState as C, useMemo as d } from "react";
2
+ import { useContext as C, useState as x, 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 = "表格设置", 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;
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;
37
15
  };
38
16
  export {
39
- v as default
17
+ w as default
40
18
  };
@@ -1,20 +1,14 @@
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 E, useRef as b, useMemo as B } from "react";
3
+ import { useState as m, useContext as B, useRef as E, 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 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 () => {
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 () => {
18
12
  var f, l;
19
13
  if (g)
20
14
  return;
@@ -22,47 +16,23 @@ const q = ({
22
16
  y.error("导出设置至少需要一个字段"), t(!1);
23
17
  return;
24
18
  }
25
- const k = ((l = n.current) == null ? void 0 : l.getExportConfig()) ?? h;
19
+ const k = ((l = n.current) == null ? void 0 : l.getExportConfig()) ?? C;
26
20
  s && (t(!1), r(!0), s(k).finally(() => {
27
21
  r(!1), o();
28
22
  }));
29
23
  };
30
- B(() => i.mode === "dark", [i.mode]);
24
+ b(() => i.mode === "dark", [i.mode]);
31
25
  const j = () => {
32
26
  r(!1), t(!1);
33
27
  };
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
- );
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 }) });
66
36
  };
67
37
  export {
68
38
  q as default
@@ -1,52 +1,20 @@
1
1
  import { j as t } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { memo as b, useState as i, useContext as a, useMemo as g } from "react";
3
- import E from "../style.mjs";
2
+ import { memo as y, useState as i, useContext as a, useMemo as E } from "react";
3
+ import b 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 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);
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);
16
11
  a(m).exportConfig;
17
- const { loading: j, fullscreen: n } = a(m), y = g(() => n ? !1 : void 0, [n]), C = async (e) => {
12
+ const { loading: C, fullscreen: s } = a(m), g = E(() => s ? !1 : void 0, [s]), j = async (e) => {
18
13
  var l;
19
14
  if (o)
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));
15
+ return r(!0), o(e.config.key, e.fields, (l = e.config) == null ? void 0 : l.info).finally(() => r(!1));
25
16
  };
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
- ] }) : (
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: "导出" })] }) : (
50
18
  // <Dropdown
51
19
  // open={open}
52
20
  // onOpenChange={setOpen}
@@ -73,7 +41,7 @@ const D = ({
73
41
  // </Dropdown>
74
42
  null
75
43
  );
76
- }, F = b(D);
44
+ }, A = y(z);
77
45
  export {
78
- F as default
46
+ A as default
79
47
  };
@@ -9,16 +9,13 @@ 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 = ({
13
- order: m,
14
- show: u = !0
15
- }) => {
12
+ const g = ({ order: m, show: u = !0 }) => {
16
13
  const { toolbarItemClassName: a } = E(), { fullscreen: n, setFullscreen: s } = p(T), o = x(() => n ? {
17
14
  title: "退出全屏",
18
- icon: /* @__PURE__ */ t.jsx(h, {})
15
+ icon: t.jsx(h, {})
19
16
  } : {
20
17
  title: "全屏",
21
- icon: /* @__PURE__ */ t.jsx(C, {})
18
+ icon: t.jsx(C, {})
22
19
  }, [n]), f = (l) => {
23
20
  r.isEnabled || j.error("您的浏览器不支持全屏");
24
21
  const e = z(l.target, "bitzTableBlock");
@@ -28,17 +25,7 @@ const g = ({
28
25
  var e, i, c;
29
26
  (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));
30
27
  }), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
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;
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;
42
29
  }, P = d(g);
43
30
  export {
44
31
  P as default