bitz-react-admin-ui 2.2.8 → 2.2.9

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 (169) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +10 -4
  2. package/dist/assets/iconfont/IconClose.mjs +7 -1
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
  6. package/dist/assets/iconfont/IconCuowu.mjs +8 -2
  7. package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
  8. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  9. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  10. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  15. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  16. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  17. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  18. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  20. package/dist/assets/iconfont/IconMore.mjs +26 -4
  21. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  22. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  23. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  24. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  25. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  26. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  27. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  29. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  34. package/dist/assets/iconfont/index.mjs +33 -33
  35. package/dist/components/BitzAddTag/index.mjs +41 -8
  36. package/dist/components/BitzAddressBook/index.mjs +122 -35
  37. package/dist/components/BitzAppPage/index.mjs +18 -4
  38. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  39. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  40. package/dist/components/BitzButton/index.mjs +23 -9
  41. package/dist/components/BitzCalendar/index.mjs +52 -19
  42. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  43. package/dist/components/BitzCascader/index.mjs +6 -2
  44. package/dist/components/BitzCollapse/index.mjs +4 -4
  45. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  46. package/dist/components/BitzConfigProvider/index.mjs +12 -8
  47. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  48. package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
  49. package/dist/components/BitzConvert/index.mjs +1 -1
  50. package/dist/components/BitzDescriptions/index.mjs +11 -1
  51. package/dist/components/BitzDrawer/index.mjs +17 -2
  52. package/dist/components/BitzEmpty/index.mjs +6 -2
  53. package/dist/components/BitzException/index.mjs +6 -1
  54. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  55. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  56. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  57. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  58. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
  59. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  60. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  61. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +51 -19
  62. package/dist/components/BitzFuiCalendar/ColumnData.mjs +30 -14
  63. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  64. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  65. package/dist/components/BitzFullScreen/index.mjs +9 -6
  66. package/dist/components/BitzHighlight/Child.mjs +23 -9
  67. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  68. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  69. package/dist/components/BitzHighlight/style.mjs +4 -1
  70. package/dist/components/BitzImage/index.mjs +1 -1
  71. package/dist/components/BitzImage/previewImage.mjs +12 -5
  72. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  73. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  74. package/dist/components/BitzList/List.mjs +17 -3
  75. package/dist/components/BitzList/LoadMore.mjs +29 -20
  76. package/dist/components/BitzLoadMore/index.mjs +34 -14
  77. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  78. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  79. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  80. package/dist/components/BitzModal/index.mjs +24 -11
  81. package/dist/components/BitzNoData/index.mjs +4 -1
  82. package/dist/components/BitzNoMore/index.mjs +1 -1
  83. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  84. package/dist/components/BitzPageContainer/index.mjs +107 -46
  85. package/dist/components/BitzPageHeader/index.mjs +89 -21
  86. package/dist/components/BitzPagination/index.mjs +71 -22
  87. package/dist/components/BitzPopover/index.mjs +4 -4
  88. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  89. package/dist/components/BitzQRCode/index.mjs +6 -1
  90. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  91. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  92. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  93. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  94. package/dist/components/BitzRefresh/index.mjs +5 -1
  95. package/dist/components/BitzRemark/index.mjs +4 -4
  96. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  97. package/dist/components/BitzSearch/index.mjs +1 -1
  98. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  99. package/dist/components/BitzSelect/index.mjs +1 -1
  100. package/dist/components/BitzSkeleton/index.mjs +31 -1
  101. package/dist/components/BitzSwitch/index.mjs +7 -2
  102. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  103. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  104. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
  105. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  106. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  107. package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
  108. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  109. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  110. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  111. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
  112. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
  113. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  114. package/dist/components/BitzTable/Store/index.mjs +121 -89
  115. package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
  116. package/dist/components/BitzTable/SubTable/index.mjs +100 -52
  117. package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
  118. package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
  119. package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
  120. package/dist/components/BitzTable/Table/index.mjs +395 -187
  121. package/dist/components/BitzTable/Table/style.mjs +11 -1
  122. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
  133. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
  134. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
  135. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  136. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
  137. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  138. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
  139. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  140. package/dist/components/BitzTableOperations/index.mjs +13 -3
  141. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  142. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  143. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
  144. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
  145. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  146. package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
  147. package/dist/components/BitzTableSelect/index.mjs +61 -13
  148. package/dist/components/BitzTag/index.mjs +1 -1
  149. package/dist/components/BitzTheme/index.mjs +6 -6
  150. package/dist/components/BitzTimeline/index.mjs +11 -1
  151. package/dist/components/BitzTimer/Form.mjs +32 -11
  152. package/dist/components/BitzTimer/Timer.mjs +76 -38
  153. package/dist/components/BitzTimer/index.mjs +66 -43
  154. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  155. package/dist/components/BitzToast/index.mjs +1 -1
  156. package/dist/components/BitzTree/index.mjs +4 -1
  157. package/dist/components/BitzUeEditor/index.mjs +5 -5
  158. package/dist/components/BitzUpload/index.mjs +81 -43
  159. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  160. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  161. package/dist/hooks/use-event-listener.mjs +11 -2
  162. package/dist/hooks/use-lock-fn.mjs +13 -10
  163. package/dist/hooks/use-scroll-parent.mjs +16 -14
  164. package/dist/hooks/useEvent.mjs +7 -4
  165. package/dist/hooks/useMergedState.mjs +11 -11
  166. package/dist/style.css +1 -1
  167. package/dist/utils/WithFluent.mjs +27 -12
  168. package/dist/utils/create.mjs +7 -1
  169. package/package.json +1 -1
@@ -1,194 +1,217 @@
1
- import { j as n } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as Se, useRef as K, useState as S, useEffect as Me, useMemo as l, useCallback as oe } from "react";
3
- import { isMobile as V } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
- import { Skeleton as wt, Typography as Le, Table as Bt } from "antd";
5
- import E from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
- import jt from "../../BitzDrawer/index.mjs";
7
- import zt from "../../BitzPagination/index.mjs";
8
- import Tt from "../../BitzNoData/index.mjs";
1
+ import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as Se, useRef as q, useState as S, useEffect as Me, useMemo as l, useCallback as oe } from "react";
3
+ import { isMobile as D } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
+ import { Skeleton as wt, Typography as Le, Table as zt } from "antd";
5
+ import F from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
+ import Bt from "../../BitzDrawer/index.mjs";
7
+ import jt from "../../BitzPagination/index.mjs";
8
+ import Wt from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
- import pt from "../../BitzList/List.mjs";
10
+ import Tt from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
- import Wt from "../../BitzPullRefresh/PullRefresh.mjs";
12
+ import pt from "../../BitzPullRefresh/PullRefresh.mjs";
13
13
  import Nt, { BitzTableContext as kt, toolCols as St } from "../Store/index.mjs";
14
14
  import { loopFilter as Mt, columnSort as Lt } from "../Store/utils/index.mjs";
15
- import ne from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
16
- import Rt from "../ActionCol/style.mjs";
15
+ import se from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
16
+ import vt from "../ActionCol/style.mjs";
17
17
  import Ht from "../../BitzTheme/index.mjs";
18
- import Re from "../../BitzHighlight/index.mjs";
19
- import Pt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
18
+ import ve from "../../BitzHighlight/index.mjs";
19
+ import Rt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
20
20
  import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
21
- import Dt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
22
- import { getColumnsWithTool as $t, loopBuildSkeleton as vt } from "./utils.mjs";
23
- import { getCssVar as Ft } from "./style.mjs";
24
- import Ot from "./SortableRow.mjs";
25
- import Kt from "./SortTableContext.mjs";
26
- import Vt from "./ResizableTitle.mjs";
21
+ import Pt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
22
+ import { getColumnsWithTool as $t, loopBuildSkeleton as Ot } from "./utils.mjs";
23
+ import { getCssVar as Vt } from "./style.mjs";
24
+ import Kt from "./SortableRow.mjs";
25
+ import qt from "./SortTableContext.mjs";
26
+ import Dt from "./ResizableTitle.mjs";
27
27
  import "./index.less.mjs";
28
- import { ConfigContext as Et } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
29
- import qt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
30
- function _t({
28
+ import { ConfigContext as Ft } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
29
+ import _t from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
30
+ function Gt({
31
31
  showPagination: H = !0,
32
- height: P,
32
+ height: R,
33
33
  dataSource: m,
34
- total: z = 0,
35
- columns: D,
34
+ total: j = 0,
35
+ columns: P,
36
36
  loading: i,
37
- skeletonNum: q = {
37
+ skeletonNum: _ = {
38
38
  pc: 10,
39
39
  mobile: 10
40
40
  },
41
- skeletonRender: se,
41
+ skeletonRender: ne,
42
42
  skeletonRowNum: He = 4,
43
- skeletonRowsWidth: Pe = ["35%", "100%", "100%", "60%"],
43
+ skeletonRowsWidth: Re = ["35%", "100%", "100%", "60%"],
44
44
  // mobileLoadEmit,
45
45
  mobileRefreshEmit: ie,
46
- operationFilter: _,
47
- enableControlPage: De,
46
+ operationFilter: G,
47
+ enableControlPage: Pe,
48
48
  pagination: C,
49
- paginationEmit: v = () => {
49
+ paginationEmit: O = () => {
50
50
  },
51
51
  enabledRowDragSort: M,
52
- onRowDragEnd: G,
53
- mobilePageHeight: Gt = 500,
52
+ onRowDragEnd: E,
53
+ mobilePageHeight: Et = 500,
54
54
  mobileCancelText: $e = "取消",
55
- noDataTitle: ve,
56
- noDataImg: Fe,
55
+ noDataTitle: Oe,
56
+ noDataImg: Ve,
57
57
  color: Jt,
58
58
  size: le,
59
- showTableTool: Oe = !0,
60
- tableAction: Ke,
61
- tableToolbar: Ve,
62
- selectionBar: Ee,
59
+ showTableTool: Ke = !0,
60
+ tableAction: qe,
61
+ tableToolbar: De,
62
+ selectionBar: Fe,
63
63
  scroll: a,
64
- components: T,
65
- expandable: x,
66
- rowSelection: W,
64
+ components: W,
65
+ expandable: y,
66
+ rowSelection: p,
67
67
  selectionAlert: u,
68
- resetPage: qe,
68
+ resetPage: _e,
69
69
  ...f
70
70
  }) {
71
71
  var Ne;
72
- const { token: y } = Ht.useToken(), { Table: c } = y, { tableSpaceBetweenPage: ae = 10 } = c, { gap: _e } = Rt(), { showColumnBorder: Ge, hideRowBorder: ce, rowHoverable: Je, ...h } = Se(kt), w = K(void 0), [J, Qe] = S(0), [Q, Ue] = S(0), [U, Xe] = S(0), [Ye, X] = S(!1), [b, Ze] = S([]);
72
+ const { token: x } = Ht.useToken(), { Table: c } = x, { tableSpaceBetweenPage: ae = 10 } = c, { gap: Ge } = vt(), { showColumnBorder: Ee, hideRowBorder: ce, rowHoverable: Je, ...d } = Se(kt), w = q(void 0), [J, Qe] = S(0), [Q, Ue] = S(0), [U, Xe] = S(0), [Ye, X] = S(!1), [b, Ze] = S([]);
73
73
  Me(() => {
74
74
  let e = [...m ?? []];
75
75
  (C == null ? void 0 : C.page) !== 1 && (e = [...b, ...e]), Ze(e);
76
76
  }, [m]);
77
- const Ie = l(() => !!(b != null && b.length) && (b == null ? void 0 : b.length) >= z, [b, z]), [Ae, et] = S([]), tt = (e, t) => {
77
+ const Ie = l(() => !!(b != null && b.length) && (b == null ? void 0 : b.length) >= j, [b, j]), [Ae, et] = S([]), tt = (e, t) => {
78
78
  var o;
79
- const r = (o = _ == null ? void 0 : _(e, t)) == null ? void 0 : o.filter((s) => s.type !== "divider");
79
+ const r = (o = G == null ? void 0 : G(e, t)) == null ? void 0 : o.filter(
80
+ (n) => n.type !== "divider"
81
+ );
80
82
  r != null && r.length && (et(r), X(!0));
81
- }, de = () => {
83
+ }, he = () => {
82
84
  X(!1);
83
85
  }, rt = (e) => {
84
86
  var t;
85
87
  X(!1), (t = e.onClick) == null || t.call(e);
86
- }, B = K(null), Y = ne(B), he = K(null), Z = ne(he), I = K(null), L = ne(I), ot = () => {
88
+ }, z = q(null), Y = se(z), de = q(null), Z = se(de), I = q(null), L = se(I), ot = () => {
87
89
  var r;
88
- const e = (r = B.current) == null ? void 0 : r.querySelectorAll("& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-body > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)"), t = [];
90
+ const e = (r = z.current) == null ? void 0 : r.querySelectorAll(
91
+ "& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-body > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)"
92
+ ), t = [];
89
93
  if (e == null || e.forEach((o) => {
90
- var s;
91
- t.push(((s = o.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : s.clientWidth) || 0);
94
+ var n;
95
+ t.push(
96
+ ((n = o.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : n.clientWidth) || 0
97
+ );
92
98
  }), t.length)
93
- return Math.ceil(Math.max(...t)) + _e * 2;
99
+ return Math.ceil(Math.max(...t)) + Ge * 2;
94
100
  }, ue = () => {
95
- var d, g, O;
96
- const e = (d = B.current) == null ? void 0 : d.querySelector(".ant-table-body"), t = e == null ? void 0 : e.clientWidth, o = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, s = (O = (g = B.current) == null ? void 0 : g.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : O.offsetWidth;
97
- return { tbodyWidth: t, hasScrollBar: o, scrollbarSize: s };
98
- }, { y: A, tbodyWidth: R, hasScrollBar: F, scrollbarSize: $ } = l(() => {
101
+ var h, g, K;
102
+ const e = (h = z.current) == null ? void 0 : h.querySelector(
103
+ ".ant-table-body"
104
+ ), t = e == null ? void 0 : e.clientWidth, o = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, n = (K = (g = z.current) == null ? void 0 : g.querySelector(
105
+ ".ant-table-cell-scrollbar"
106
+ )) == null ? void 0 : K.offsetWidth;
107
+ return { tbodyWidth: t, hasScrollBar: o, scrollbarSize: n };
108
+ }, { y: A, tbodyWidth: v, hasScrollBar: V, scrollbarSize: $ } = l(() => {
99
109
  const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
100
- if (typeof P > "u")
110
+ if (typeof R > "u")
101
111
  return {
102
112
  tbodyWidth: e,
103
113
  hasScrollBar: t,
104
114
  scrollbarSize: r
105
115
  };
106
- let o = 40, s = 40;
107
- if (B.current) {
108
- const p = window.getComputedStyle(B.current);
109
- o = parseInt(p.getPropertyValue("--cell-height")), s = parseInt(p.getPropertyValue("--toolbar-height"));
116
+ let o = 40, n = 40;
117
+ if (z.current) {
118
+ const T = window.getComputedStyle(z.current);
119
+ o = parseInt(T.getPropertyValue("--cell-height")), n = parseInt(T.getPropertyValue("--toolbar-height"));
110
120
  }
111
- const d = (L == null ? void 0 : L.height) || 0, g = d ? ae : 0;
112
- return { y: (h.fullscreen ? window.innerHeight : P) - d - g - s - o, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
121
+ const h = (L == null ? void 0 : L.height) || 0, g = h ? ae : 0;
122
+ return { y: (d.fullscreen ? window.innerHeight : R) - h - g - n - o, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
113
123
  }, [
114
- h.fullscreen,
115
- P,
124
+ d.fullscreen,
125
+ R,
116
126
  L == null ? void 0 : L.height,
117
127
  Y == null ? void 0 : Y.height,
118
128
  Z == null ? void 0 : Z.height
119
129
  ]), ee = l(() => {
120
130
  let e = (a == null ? void 0 : a.x) ?? 1e3;
121
- return J && (e -= J), Q && w.current && (e -= Q * w.current), R && (a != null && a.x && e < R && (a == null ? void 0 : a.x) > R && Xe(R - e), e = Math.max(e, R)), a != null && a.x ? { x: e, y: a.y || A } : a != null && a.y ? { x: e, y: a.y } : { x: e, y: A };
122
- }, [a, A, R, J, Q]), fe = () => {
131
+ return J && (e -= J), Q && w.current && (e -= Q * w.current), v && (a != null && a.x && e < v && (a == null ? void 0 : a.x) > v && Xe(v - e), e = Math.max(e, v)), a != null && a.x ? { x: e, y: a.y || A } : a != null && a.y ? { x: e, y: a.y } : { x: e, y: A };
132
+ }, [a, A, v, J, Q]), fe = () => {
123
133
  let e = 0;
124
- if (B.current) {
125
- const r = window.getComputedStyle(B.current), o = parseInt(r.getPropertyValue("--toolCell-paddingInline"));
134
+ if (z.current) {
135
+ const r = window.getComputedStyle(z.current), o = parseInt(
136
+ r.getPropertyValue("--toolCell-paddingInline")
137
+ );
126
138
  e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * o;
127
139
  }
128
140
  let t = 0;
129
- return W && (t += e), x && (t += e), M && (t += e), t;
130
- }, nt = (e, t) => {
131
- const r = e.length, o = e.filter((p) => p.width), d = o.map((p) => p.width).reduce((p, gt) => p + gt, 0), { tbodyWidth: g } = ue(), re = Math.max((a == null ? void 0 : a.x) ?? 0, g ?? 0) - d - t, ke = r - o.length;
132
- return re >= 0 ? Math.floor(re / ke) : 0;
141
+ return p && (t += e), y && (t += e), M && (t += e), t;
142
+ }, st = (e, t) => {
143
+ const r = e.length, o = e.filter((T) => T.width), h = o.map((T) => T.width).reduce((T, gt) => T + gt, 0), { tbodyWidth: g } = ue(), re = Math.max((a == null ? void 0 : a.x) ?? 0, g ?? 0) - h - t, ke = r - o.length;
144
+ return re >= 0 ? Math.floor(re / ke) : void 0;
133
145
  }, me = l(() => {
134
146
  var e;
135
- return ((e = (D ?? []).find((t) => t.isOperationCol)) == null ? void 0 : e.width) ?? 0;
136
- }, [D]), j = l(() => {
137
- const t = (D ?? []).filter((g) => !St.includes(g)), { filterColumns: r, hiddenTotalWidth: o, autoWidthColLength: s } = Mt(t, h.columnsMap), d = r.sort(Lt(h.columnsMap));
138
- if (!V) {
147
+ return ((e = (P ?? []).find((t) => t.isOperationCol)) == null ? void 0 : e.width) ?? 0;
148
+ }, [P]), B = l(() => {
149
+ const t = (P ?? []).filter((g) => !St.includes(g)), { filterColumns: r, hiddenTotalWidth: o, autoWidthColLength: n } = Mt(
150
+ t,
151
+ d.columnsMap
152
+ ), h = r.sort(Lt(d.columnsMap));
153
+ if (!D) {
139
154
  const g = fe();
140
- w.current = nt(t, g), Qe(o), Ue(s);
155
+ w.current = st(t, g), Qe(o), Ue(n);
141
156
  }
142
- return d;
143
- }, [h.columnsMap, me]), be = l(() => fe(), [h.columnsMap, me]), [N, Ce] = S([]);
157
+ return h;
158
+ }, [d.columnsMap, me]), be = l(() => fe(), [d.columnsMap, me]), [N, Ce] = S([]);
144
159
  Me(() => {
145
160
  let e = 0;
146
161
  if (U) {
147
- const o = j == null ? void 0 : j.filter((s) => !s.width && !(s != null && s.isOperationCol)).length;
162
+ const o = B == null ? void 0 : B.filter(
163
+ (n) => !n.width && !(n != null && n.isOperationCol)
164
+ ).length;
148
165
  e = Math.floor(U / o);
149
166
  }
150
167
  let t = 0;
151
- const r = j.map((o, s) => {
152
- let d = o.width;
153
- return o != null && o.useMaxWidth && (o != null && o.isOperationCol) && (d = ot() ?? o.width), d || (d = ((w == null ? void 0 : w.current) || 0) + e), t += d, d;
168
+ const r = B.map((o, n) => {
169
+ let h = o.width;
170
+ return o != null && o.useMaxWidth && (o != null && o.isOperationCol) && (h = ot() ?? o.width), h || (h = ((w == null ? void 0 : w.current) || 0) + e), t += h, h;
154
171
  });
155
172
  if (t < ee.x - be) {
156
173
  const o = ee.x - be - t;
157
174
  r[0] = r[0] + o;
158
175
  }
159
176
  Ce(r);
160
- }, [j, U]);
177
+ }, [B, U]);
161
178
  const k = l(() => {
162
- if (V)
163
- return j;
164
- const e = j.map((t, r) => {
179
+ if (D)
180
+ return B;
181
+ const e = B.map((t, r) => {
165
182
  var o;
166
183
  return {
167
184
  ...t,
168
- ...((o = j[r + 1]) == null ? void 0 : o.isOperationCol) && {
169
- className: E(t.className, "disabledResize")
185
+ ...((o = B[r + 1]) == null ? void 0 : o.isOperationCol) && {
186
+ className: F(t.className, "disabledResize")
170
187
  },
171
188
  width: N.length ? N[r] : (w == null ? void 0 : w.current) ?? void 0,
172
- onHeaderCell: (s) => ({
173
- width: s.width,
174
- onResize: st(r)
189
+ onHeaderCell: (n) => ({
190
+ width: n.width,
191
+ onResize: nt(r)
175
192
  })
176
193
  };
177
194
  });
178
- return $t(D, e, M, !!W, !!x);
179
- }, [D, j, N]), st = (e) => (t, { size: r }) => {
180
- const o = [...N], s = e + 1, d = r.width - N[e];
181
- o[e] = N[e] + d, o[s] = N[s] - d, o[e] > 48 && o[s] > 48 && Ce(o);
182
- }, xe = l(() => vt(k), [k]), it = l(() => i ? xe : k, [i, k, xe]), ye = l(() => {
183
- const e = (m ?? []).length, t = e > (q.pc ?? 10) ? e >= 20 ? 20 : e : q.pc ?? 10;
184
- return Array.from({ length: t }).map((o, s) => ({
185
- key: `${Date.now()}${s}`
195
+ return $t(
196
+ P,
197
+ e,
198
+ M,
199
+ !!p,
200
+ !!y
201
+ );
202
+ }, [P, B, N]), nt = (e) => (t, { size: r }) => {
203
+ const o = [...N], n = e + 1, h = r.width - N[e];
204
+ o[e] = N[e] + h, o[n] = N[n] - h, o[e] > 48 && o[n] > 48 && Ce(o);
205
+ }, ye = l(() => Ot(k), [k]), it = l(() => i ? ye : k, [i, k, ye]), xe = l(() => {
206
+ const e = (m ?? []).length, t = e > (_.pc ?? 10) ? e >= 20 ? 20 : e : _.pc ?? 10;
207
+ return Array.from({ length: t }).map((o, n) => ({
208
+ key: `${Date.now()}${n}`
186
209
  }));
187
- }, [m]), ge = l(() => i ? ye : m ?? [], [i, m, ye]), { table: te, locale: lt = Dt } = Se(Et), at = { ...lt.Table }, ct = ((Ne = te == null ? void 0 : te.expandable) == null ? void 0 : Ne.expandIcon) || (x == null ? void 0 : x.expandIcon) || Pt(at), we = l(() => {
188
- if (x)
210
+ }, [m]), ge = l(() => i ? xe : m ?? [], [i, m, xe]), { table: te, locale: lt = Pt } = Se(Ft), at = { ...lt.Table }, ct = ((Ne = te == null ? void 0 : te.expandable) == null ? void 0 : Ne.expandIcon) || (y == null ? void 0 : y.expandIcon) || Rt(at), we = l(() => {
211
+ if (y)
189
212
  return {
190
- ...x,
191
- expandedRowRender: () => n.jsx(n.Fragment, {}),
213
+ ...y,
214
+ expandedRowRender: () => /* @__PURE__ */ s.jsx(s.Fragment, {}),
192
215
  expandIcon: (e) => {
193
216
  const t = ct(e);
194
217
  return {
@@ -198,116 +221,301 @@ function _t({
198
221
  disabled: !0,
199
222
  style: {
200
223
  ...t.props.style,
201
- backgroundColor: y.colorBgContainerDisabled
224
+ backgroundColor: x.colorBgContainerDisabled
202
225
  }
203
226
  }
204
227
  };
205
228
  }
206
229
  };
207
- }, [x]), dt = l(() => i ? we : x, [i, x, we]), Be = l(() => {
208
- if (W)
230
+ }, [y]), ht = l(() => i ? we : y, [i, y, we]), ze = l(() => {
231
+ if (p)
209
232
  return {
210
- ...W,
233
+ ...p,
211
234
  selectedRowKeys: [],
212
235
  getCheckboxProps: () => ({ disabled: !0 })
213
236
  };
214
- }, [W]), ht = l(() => i ? Be : W, [i, W, Be]), je = l(() => i ? "key" : f.rowKey, [i, f.rowKey]), ze = l(() => `${le ?? h.stylesConfig.size}BitzTable`, [le, h.stylesConfig.size]), ut = oe((e, t) => {
215
- var o;
216
- if (!f.onRow || i)
217
- return {};
218
- const r = (o = f.onRow) == null ? void 0 : o.call(f, e, t);
219
- return r.onClick && (r.className = "rowPointerCursor"), r;
220
- }, [f.onRow, i]), ft = l(() => E("bitzTableContainer", { hideBorder: ce }, { hasScrollBar: F }, ze, f.className), [
237
+ }, [p]), dt = l(() => i ? ze : p, [i, p, ze]), Be = l(() => i ? "key" : f.rowKey, [i, f.rowKey]), je = l(() => `${le ?? d.stylesConfig.size}BitzTable`, [le, d.stylesConfig.size]), ut = oe(
238
+ (e, t) => {
239
+ var o;
240
+ if (!f.onRow || i)
241
+ return {};
242
+ const r = (o = f.onRow) == null ? void 0 : o.call(f, e, t);
243
+ return r.onClick && (r.className = "rowPointerCursor"), r;
244
+ },
245
+ [f.onRow, i]
246
+ ), ft = l(() => F(
247
+ "bitzTableContainer",
248
+ { hideBorder: ce },
249
+ { hasScrollBar: V },
250
+ je,
251
+ f.className
252
+ ), [
221
253
  f.className,
222
- ze,
223
- F,
224
- h.fullscreen,
254
+ je,
255
+ V,
256
+ d.fullscreen,
225
257
  ce
226
258
  ]), mt = l(() => ({
227
- "--container-bgColor": y.colorBgContainer
228
- }), [y.colorBgContainer]), bt = l(() => {
229
- const e = h.fullscreen ? "100%" : P;
259
+ "--container-bgColor": x.colorBgContainer
260
+ }), [x.colorBgContainer]), bt = l(() => {
261
+ const e = d.fullscreen ? "100%" : R;
230
262
  let t;
231
- return ($ ?? 0) > 0 && (t = $), Ft({
263
+ return ($ ?? 0) > 0 && (t = $), Vt({
232
264
  height: e,
233
- fontFamily: y.fontFamily,
234
- evenRowBgColor: h.zebra ? c == null ? void 0 : c.evenRowBgColor : y.colorBgContainer,
235
- colorBgContainer: y.colorBgContainer,
265
+ fontFamily: x.fontFamily,
266
+ evenRowBgColor: d.zebra ? c == null ? void 0 : c.evenRowBgColor : x.colorBgContainer,
267
+ colorBgContainer: x.colorBgContainer,
236
268
  table: c,
237
269
  gap: ae,
238
- borderColor: (c == null ? void 0 : c.borderColor) || y.colorBorderSecondary,
270
+ borderColor: (c == null ? void 0 : c.borderColor) || x.colorBorderSecondary,
239
271
  scrollbarWidth: t,
240
272
  other: f.style
241
273
  });
242
274
  }, [
243
275
  f.style,
244
- h.fullscreen,
245
- P,
276
+ d.fullscreen,
277
+ R,
246
278
  c,
247
- h == null ? void 0 : h.zebra,
279
+ d == null ? void 0 : d.zebra,
248
280
  $
249
- ]), Ct = oe((e, t, r) => {
250
- const o = t % 2 === 0 ? "oddRow" : "evenRow";
251
- if (f.rowClassName) {
252
- const s = f.rowClassName(e, t, r);
253
- return E(o, s);
281
+ ]), Ct = oe(
282
+ (e, t, r) => {
283
+ const o = t % 2 === 0 ? "oddRow" : "evenRow";
284
+ if (f.rowClassName) {
285
+ const n = f.rowClassName(e, t, r);
286
+ return F(o, n);
287
+ }
288
+ return o;
289
+ },
290
+ [f.rowClassName]
291
+ ), We = /* @__PURE__ */ s.jsx(
292
+ Tt,
293
+ {
294
+ finished: Ie,
295
+ onLoad: async () => (
296
+ // @ts-ignore
297
+ !i && (O == null ? void 0 : O((C == null ? void 0 : C.page) + 1, C == null ? void 0 : C.size))
298
+ ),
299
+ loadingText: "加载中...",
300
+ finishedText: "没有更多了",
301
+ errorText: "加载失败",
302
+ children: /* @__PURE__ */ s.jsxs(
303
+ "div",
304
+ {
305
+ className: "mobileList",
306
+ style: { backgroundColor: c == null ? void 0 : c.mobileListBgColor },
307
+ children: [
308
+ b == null ? void 0 : b.map((e, t) => /* @__PURE__ */ s.jsx(
309
+ "div",
310
+ {
311
+ className: "listItem",
312
+ style: { backgroundColor: c == null ? void 0 : c.listItemBgColor },
313
+ onClick: () => tt(e, t),
314
+ children: k == null ? void 0 : k.map((r, o) => {
315
+ var n;
316
+ return !(r != null && r.mobileHide) && /* @__PURE__ */ s.jsxs(
317
+ "div",
318
+ {
319
+ className: "row",
320
+ style: { color: x.colorText },
321
+ children: [
322
+ !r.mobileHideLabel && /* @__PURE__ */ s.jsxs("div", { className: "label", children: [
323
+ `${r.title}`,
324
+ ":"
325
+ ] }),
326
+ /* @__PURE__ */ s.jsx("div", { className: "value", children: ((n = r == null ? void 0 : r.render) == null ? void 0 : n.call(
327
+ r,
328
+ _t(e, (r == null ? void 0 : r.dataIndex) || ""),
329
+ e,
330
+ t
331
+ )) || (e == null ? void 0 : e[r.dataIndex]) })
332
+ ]
333
+ },
334
+ o
335
+ );
336
+ })
337
+ },
338
+ t
339
+ )),
340
+ Array.from({ length: _.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ s.jsx(
341
+ "div",
342
+ {
343
+ className: "listItem",
344
+ style: {
345
+ display: i ? "block" : "none",
346
+ backgroundColor: c == null ? void 0 : c.listItemBgColor
347
+ },
348
+ children: /* @__PURE__ */ s.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ s.jsx(
349
+ wt,
350
+ {
351
+ title: !1,
352
+ paragraph: {
353
+ rows: He,
354
+ width: Re
355
+ },
356
+ active: !0
357
+ }
358
+ ) })
359
+ },
360
+ `${Date.now()}${t}`
361
+ ))
362
+ ]
363
+ }
364
+ )
254
365
  }
255
- return o;
256
- }, [f.rowClassName]), Te = n.jsx(pt, { finished: Ie, onLoad: async () => (
257
- // @ts-ignore
258
- !i && (v == null ? void 0 : v((C == null ? void 0 : C.page) + 1, C == null ? void 0 : C.size))
259
- ), loadingText: "加载中...", finishedText: "没有更多了", errorText: "加载失败", children: n.jsxs("div", { className: "mobileList", style: { backgroundColor: c == null ? void 0 : c.mobileListBgColor }, children: [b == null ? void 0 : b.map((e, t) => n.jsx("div", { className: "listItem", style: { backgroundColor: c == null ? void 0 : c.listItemBgColor }, onClick: () => tt(e, t), children: k == null ? void 0 : k.map((r, o) => {
260
- var s;
261
- return !(r != null && r.mobileHide) && n.jsxs("div", { className: "row", style: { color: y.colorText }, children: [!r.mobileHideLabel && n.jsxs("div", { className: "label", children: [`${r.title}`, ":"] }), n.jsx("div", { className: "value", children: ((s = r == null ? void 0 : r.render) == null ? void 0 : s.call(r, qt(e, (r == null ? void 0 : r.dataIndex) || ""), e, t)) || (e == null ? void 0 : e[r.dataIndex]) })] }, o);
262
- }) }, t)), Array.from({ length: q.mobile ?? 2 }).map((e, t) => n.jsx("div", { className: "listItem", style: {
263
- display: i ? "block" : "none",
264
- backgroundColor: c == null ? void 0 : c.listItemBgColor
265
- }, children: n.jsx("div", { className: "row", children: se ? se() : n.jsx(wt, { title: !1, paragraph: {
266
- rows: He,
267
- width: Pe
268
- }, active: !0 }) }) }, `${Date.now()}${t}`))] }) }), pe = l(() => n.jsxs("div", { className: "alert", children: [n.jsx(Re, { highlightTag: "strong", keywords: `${z}`, sourceString: `共 ${z} 条`, tagClass: "totalText" }), !!u && n.jsxs(n.Fragment, { children: [n.jsx(Le.Text, { className: "splitBorder", children: "/" }), n.jsx(Re, { highlightTag: "strong", keywords: `${(u == null ? void 0 : u.num) ?? 0}`, sourceString: `已选中 ${(u == null ? void 0 : u.num) ?? 0} 条` }), !!(u != null && u.num) && n.jsx(Le.Link, { className: "cleanSelected", onClick: u == null ? void 0 : u.onClear, children: "取消选中" })] })] }), [z, u]), xt = (e) => {
366
+ ), Te = l(() => /* @__PURE__ */ s.jsxs("div", { className: "alert", children: [
367
+ /* @__PURE__ */ s.jsx(
368
+ ve,
369
+ {
370
+ highlightTag: "strong",
371
+ keywords: `${j}`,
372
+ sourceString: `共 ${j} 条`,
373
+ tagClass: "totalText"
374
+ }
375
+ ),
376
+ !!u && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
377
+ /* @__PURE__ */ s.jsx(Le.Text, { className: "splitBorder", children: "/" }),
378
+ /* @__PURE__ */ s.jsx(
379
+ ve,
380
+ {
381
+ highlightTag: "strong",
382
+ keywords: `${(u == null ? void 0 : u.num) ?? 0}`,
383
+ sourceString: `已选中 ${(u == null ? void 0 : u.num) ?? 0} 条`
384
+ }
385
+ ),
386
+ !!(u != null && u.num) && /* @__PURE__ */ s.jsx(
387
+ Le.Link,
388
+ {
389
+ className: "cleanSelected",
390
+ onClick: u == null ? void 0 : u.onClear,
391
+ children: "取消选中"
392
+ }
393
+ )
394
+ ] })
395
+ ] }), [j, u]), yt = (e) => {
269
396
  var t;
270
- i || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (G == null || G(e));
271
- }, We = oe(() => M ? {
272
- row: (e) => Ot({ ...e, loading: i == null ? void 0 : i.toString() })
273
- } : {}, [M, M ? i : !1]), yt = l(() => ({
274
- ...T,
397
+ i || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (E == null || E(e));
398
+ }, pe = oe(() => M ? {
399
+ row: (e) => Kt({ ...e, loading: i == null ? void 0 : i.toString() })
400
+ } : {}, [M, M ? i : !1]), xt = l(() => ({
401
+ ...W,
275
402
  header: {
276
- ...T == null ? void 0 : T.header,
277
- cell: (e) => Vt({ ...e, hasScrollBar: F, scrollbarSize: $ })
403
+ ...W == null ? void 0 : W.header,
404
+ cell: (e) => Dt({ ...e, hasScrollBar: V, scrollbarSize: $ })
278
405
  },
279
406
  body: {
280
- ...T == null ? void 0 : T.body,
281
- ...We()
407
+ ...W == null ? void 0 : W.body,
408
+ ...pe()
409
+ }
410
+ }), [W, V, $, pe]);
411
+ return /* @__PURE__ */ s.jsxs(
412
+ "div",
413
+ {
414
+ className: F("bitzTableBlock", {
415
+ fullscreen: d.fullscreen
416
+ }),
417
+ style: mt,
418
+ children: [
419
+ !D && /* @__PURE__ */ s.jsxs("div", { ref: z, className: ft, style: bt, children: [
420
+ /* @__PURE__ */ s.jsxs("div", { className: "bitzTableContainerBody", ref: de, children: [
421
+ Ke && /* @__PURE__ */ s.jsxs("div", { className: "bitzTableToolbarBlock", children: [
422
+ qe || /* @__PURE__ */ s.jsx("div", {}),
423
+ De,
424
+ Fe
425
+ ] }),
426
+ /* @__PURE__ */ s.jsx(
427
+ qt,
428
+ {
429
+ enabledRowDragSort: M,
430
+ dataSource: ge,
431
+ mergeRowKey: Be,
432
+ onDragEnd: yt,
433
+ children: /* @__PURE__ */ s.jsx(
434
+ zt,
435
+ {
436
+ ...f,
437
+ bordered: Ee,
438
+ columns: it,
439
+ dataSource: ge,
440
+ loading: !1,
441
+ pagination: !1,
442
+ scroll: ee,
443
+ expandable: ht,
444
+ rowSelection: dt,
445
+ onRow: ut,
446
+ rowHoverable: Je,
447
+ rowClassName: Ct,
448
+ className: "bitzTable",
449
+ components: xt,
450
+ rowKey: Be
451
+ }
452
+ )
453
+ }
454
+ )
455
+ ] }),
456
+ H && !!j && /* @__PURE__ */ s.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
457
+ Te,
458
+ /* @__PURE__ */ s.jsx(
459
+ jt,
460
+ {
461
+ size: "small",
462
+ enableControl: Pe,
463
+ pagination: C,
464
+ total: j,
465
+ dataSource: m,
466
+ resetPage: _e,
467
+ hideTotalText: !0,
468
+ paginationEmit: O
469
+ }
470
+ )
471
+ ] }),
472
+ !H && !!u && !!j && /* @__PURE__ */ s.jsx("div", { className: "bitzTablePagination", ref: I, children: Te })
473
+ ] }),
474
+ D && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
475
+ (i || !!(m != null && m.length)) && /* @__PURE__ */ s.jsx(s.Fragment, { children: ie ? (
476
+ // @ts-ignore
477
+ /* @__PURE__ */ s.jsx(
478
+ pt,
479
+ {
480
+ onRefresh: async () => !i && ie(),
481
+ children: We
482
+ }
483
+ )
484
+ ) : We }),
485
+ !i && /* @__PURE__ */ s.jsx(Wt, { data: m, title: Oe, img: Ve }),
486
+ /* @__PURE__ */ s.jsx(
487
+ Bt,
488
+ {
489
+ className: "tableMobileDrawer",
490
+ open: Ye,
491
+ placement: "bottom",
492
+ height: "auto",
493
+ closable: !1,
494
+ onClose: he,
495
+ children: /* @__PURE__ */ s.jsxs("div", { className: "drawerBox", children: [
496
+ /* @__PURE__ */ s.jsx("div", { className: "boxBody", children: Ae.map((e, t) => /* @__PURE__ */ s.jsx(
497
+ "div",
498
+ {
499
+ className: "operaList",
500
+ onClick: () => rt(e),
501
+ ...e.danger && {
502
+ style: { color: x.colorError }
503
+ },
504
+ children: e.label
505
+ },
506
+ t
507
+ )) }),
508
+ /* @__PURE__ */ s.jsx("div", { className: "boxLine" }),
509
+ /* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: he, children: $e })
510
+ ] })
511
+ }
512
+ )
513
+ ] })
514
+ ]
282
515
  }
283
- }), [T, F, $, We]);
284
- return n.jsxs("div", { className: E("bitzTableBlock", {
285
- fullscreen: h.fullscreen
286
- }), style: mt, children: [!V && n.jsxs("div", { ref: B, className: ft, style: bt, children: [n.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [Oe && n.jsxs("div", { className: "bitzTableToolbarBlock", children: [Ke || n.jsx("div", {}), Ve, Ee] }), n.jsx(Kt, { enabledRowDragSort: M, dataSource: ge, mergeRowKey: je, onDragEnd: xt, children: n.jsx(Bt, {
287
- ...f,
288
- bordered: Ge,
289
- columns: it,
290
- dataSource: ge,
291
- loading: !1,
292
- pagination: !1,
293
- scroll: ee,
294
- expandable: dt,
295
- rowSelection: ht,
296
- // style={style}
297
- onRow: ut,
298
- rowHoverable: Je,
299
- rowClassName: Ct,
300
- className: "bitzTable",
301
- components: yt,
302
- rowKey: je
303
- }) })] }), H && !!z && n.jsxs("div", { className: "bitzTablePagination", ref: I, children: [pe, n.jsx(zt, { size: "small", enableControl: De, pagination: C, total: z, dataSource: m, resetPage: qe, hideTotalText: !0, paginationEmit: v })] }), !H && !!u && !!z && n.jsx("div", { className: "bitzTablePagination", ref: I, children: pe })] }), V && n.jsxs(n.Fragment, { children: [(i || !!(m != null && m.length)) && n.jsx(n.Fragment, { children: ie ? (
304
- // @ts-ignore
305
- n.jsx(Wt, { onRefresh: async () => !i && ie(), children: Te })
306
- ) : Te }), !i && n.jsx(Tt, { data: m, title: ve, img: Fe }), n.jsx(jt, { className: "tableMobileDrawer", open: Ye, placement: "bottom", height: "auto", closable: !1, onClose: de, children: n.jsxs("div", { className: "drawerBox", children: [n.jsx("div", { className: "boxBody", children: Ae.map((e, t) => n.jsx("div", { className: "operaList", onClick: () => rt(e), ...e.danger && {
307
- style: { color: y.colorError }
308
- }, children: e.label }, t)) }), n.jsx("div", { className: "boxLine" }), n.jsx("div", { className: "boxFooter", onClick: de, children: $e })] }) })] })] });
516
+ );
309
517
  }
310
- const jr = (H) => n.jsx(Nt, { initValue: H, children: n.jsx(_t, { ...H }) });
518
+ const Br = (H) => /* @__PURE__ */ s.jsx(Nt, { initValue: H, children: /* @__PURE__ */ s.jsx(Gt, { ...H }) });
311
519
  export {
312
- jr as default
520
+ Br as default
313
521
  };