bitz-react-admin-ui 2.7.11 → 2.8.1

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 (184) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +25 -4
  2. package/dist/assets/iconfont/IconClose.mjs +24 -3
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
  6. package/dist/assets/iconfont/IconCuowu.mjs +23 -2
  7. package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
  8. package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
  9. package/dist/assets/iconfont/IconFabu.mjs +35 -5
  10. package/dist/assets/iconfont/IconFanhui.mjs +25 -4
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
  15. package/dist/assets/iconfont/IconIcon21.mjs +25 -4
  16. package/dist/assets/iconfont/IconJincoude.mjs +25 -4
  17. package/dist/assets/iconfont/IconJinggao.mjs +25 -4
  18. package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
  20. package/dist/assets/iconfont/IconMore.mjs +41 -4
  21. package/dist/assets/iconfont/IconShanchu.mjs +27 -6
  22. package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
  23. package/dist/assets/iconfont/IconSousuo.mjs +27 -6
  24. package/dist/assets/iconfont/IconTejincou.mjs +25 -4
  25. package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
  26. package/dist/assets/iconfont/IconTishi1.mjs +27 -6
  27. package/dist/assets/iconfont/IconTuodong.mjs +28 -7
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
  29. package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
  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/BitzDescriptions/index.mjs +11 -1
  49. package/dist/components/BitzDrawer/index.mjs +17 -2
  50. package/dist/components/BitzEmpty/index.mjs +6 -2
  51. package/dist/components/BitzException/index.mjs +6 -1
  52. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  53. package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
  54. package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
  55. package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
  56. package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
  57. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  58. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  59. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  60. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
  61. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  62. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  63. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +47 -15
  64. package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
  65. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
  66. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  67. package/dist/components/BitzFullScreen/index.mjs +9 -6
  68. package/dist/components/BitzHighlight/Child.mjs +23 -9
  69. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  70. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  71. package/dist/components/BitzHighlight/style.mjs +4 -1
  72. package/dist/components/BitzImage/index.mjs +1 -1
  73. package/dist/components/BitzImage/previewImage.mjs +12 -5
  74. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  75. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  76. package/dist/components/BitzList/List.mjs +17 -3
  77. package/dist/components/BitzList/LoadMore.mjs +29 -20
  78. package/dist/components/BitzLoadMore/index.mjs +34 -14
  79. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  80. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  81. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  82. package/dist/components/BitzModal/index.mjs +24 -11
  83. package/dist/components/BitzNoData/index.mjs +4 -1
  84. package/dist/components/BitzNoMore/index.mjs +1 -1
  85. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  86. package/dist/components/BitzPageContainer/index.mjs +107 -46
  87. package/dist/components/BitzPageHeader/index.mjs +89 -21
  88. package/dist/components/BitzPagination/index.mjs +71 -22
  89. package/dist/components/BitzPopover/index.mjs +4 -4
  90. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  91. package/dist/components/BitzQRCode/index.mjs +6 -1
  92. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  93. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  94. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  95. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  96. package/dist/components/BitzRefresh/index.mjs +5 -1
  97. package/dist/components/BitzRemark/index.mjs +4 -4
  98. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  99. package/dist/components/BitzSearch/index.mjs +1 -1
  100. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  101. package/dist/components/BitzSelect/index.mjs +1 -1
  102. package/dist/components/BitzSkeleton/index.mjs +31 -1
  103. package/dist/components/BitzSwitch/index.mjs +7 -2
  104. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  105. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  106. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
  107. package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
  108. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  109. package/dist/components/BitzTable/ActionCol/index.mjs +182 -44
  110. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  111. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  112. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  113. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
  114. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -4
  115. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  116. package/dist/components/BitzTable/Store/index.mjs +103 -62
  117. package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
  118. package/dist/components/BitzTable/SubTable/index.mjs +122 -73
  119. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +43 -21
  120. package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
  121. package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
  122. package/dist/components/BitzTable/Table/TdCell.d.ts +1 -0
  123. package/dist/components/BitzTable/Table/TdCell.mjs +9 -0
  124. package/dist/components/BitzTable/Table/index.d.ts +6 -0
  125. package/dist/components/BitzTable/Table/index.mjs +515 -264
  126. package/dist/components/BitzTable/Table/style.mjs +10 -1
  127. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  128. package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +105 -31
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +346 -159
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +135 -38
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  137. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +18 -5
  138. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +121 -49
  139. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +62 -18
  140. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +59 -16
  141. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
  142. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +20 -5
  143. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +46 -14
  144. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  145. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
  146. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  147. package/dist/components/BitzTableOperations/index.mjs +13 -3
  148. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  149. package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
  150. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
  151. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
  152. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
  153. package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
  154. package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
  155. package/dist/components/BitzTableSelect/index.mjs +65 -14
  156. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  157. package/dist/components/BitzTag/index.mjs +1 -1
  158. package/dist/components/BitzText/index.mjs +41 -14
  159. package/dist/components/BitzText/utils.mjs +3 -3
  160. package/dist/components/BitzTheme/index.mjs +6 -6
  161. package/dist/components/BitzTimeline/index.mjs +11 -1
  162. package/dist/components/BitzTimer/Form.mjs +32 -11
  163. package/dist/components/BitzTimer/Timer.mjs +76 -38
  164. package/dist/components/BitzTimer/index.mjs +66 -43
  165. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  166. package/dist/components/BitzToast/index.mjs +1 -1
  167. package/dist/components/BitzTooltip/index.mjs +59 -20
  168. package/dist/components/BitzTooltip/style.mjs +9 -6
  169. package/dist/components/BitzTooltip/utils.mjs +2 -2
  170. package/dist/components/BitzTree/index.mjs +4 -1
  171. package/dist/components/BitzUeEditor/index.mjs +5 -5
  172. package/dist/components/BitzUpload/index.mjs +81 -43
  173. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  174. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  175. package/dist/hooks/use-event-listener.mjs +11 -2
  176. package/dist/hooks/use-lock-fn.mjs +13 -10
  177. package/dist/hooks/use-scroll-parent.mjs +16 -14
  178. package/dist/hooks/useEvent.mjs +7 -4
  179. package/dist/hooks/useMergedState.mjs +11 -11
  180. package/dist/node_modules/react-intersection-observer/dist/index.mjs +123 -0
  181. package/dist/style.css +1 -1
  182. package/dist/utils/WithFluent.mjs +9 -3
  183. package/dist/utils/create.mjs +7 -1
  184. package/package.json +2 -1
@@ -1,147 +1,162 @@
1
1
  import { j as r } from "../../../node_modules/react/jsx-runtime.mjs";
2
- import { useRef as q, useContext as Ie, useState as _, useEffect as ye, useMemo as a, useLayoutEffect as Ee, useCallback as ie } from "react";
2
+ import { useRef as p, useContext as Ge, useState as I, useEffect as ye, useMemo as a, useLayoutEffect as Ye, useCallback as ie } from "react";
3
3
  import { isMobile as j } from "../../../node_modules/react-device-detect/dist/lib.mjs";
4
- import { Typography as Ce, Skeleton as Kt, Alert as qt, Table as Ot, Spin as Vt } from "antd";
4
+ import { Typography as Ce, Skeleton as Vt, Alert as _t, Table as It, Spin as Dt } from "antd";
5
5
  import ce from "../../../node_modules/classnames/index.mjs";
6
- import _t from "../../BitzDrawer/index.mjs";
7
- import It from "../../BitzPagination/index.mjs";
6
+ import Gt from "../../BitzDrawer/index.mjs";
7
+ import Yt from "../../BitzPagination/index.mjs";
8
8
  import Et from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
- import Gt from "../../BitzList/List.mjs";
10
+ import Jt from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
- import Yt from "../../BitzPullRefresh/PullRefresh.mjs";
13
- import Jt, { BitzTableContext as Qt, toolCols as Ut } from "../Store/index.mjs";
14
- import { loopFilter as Xt, columnSort as Zt, genColumnKey as we } from "../Store/utils/index.mjs";
15
- import vt from "../../BitzTheme/index.mjs";
16
- import { tablePaddingInline as At } from "../../BitzConfigProvider/context.mjs";
17
- import Ge from "../../BitzHighlight/index.mjs";
18
- import Ft from "../../../node_modules/antd/es/table/ExpandIcon.mjs";
12
+ import Qt from "../../BitzPullRefresh/PullRefresh.mjs";
13
+ import Ut, { BitzTableContext as Xt, toolCols as Zt } from "../Store/index.mjs";
14
+ import { loopFilter as vt, columnSort as At, genColumnKey as xe } from "../Store/utils/index.mjs";
15
+ import Ft from "../../BitzTheme/index.mjs";
16
+ import { tablePaddingInline as es } from "../../BitzConfigProvider/context.mjs";
17
+ import Ee from "../../BitzHighlight/index.mjs";
18
+ import ts from "../../../node_modules/antd/es/table/ExpandIcon.mjs";
19
19
  import "../../../node_modules/antd/es/config-provider/index.mjs";
20
- import es from "../../../node_modules/antd/locale/en_US.mjs";
21
- import { getColumnsWithTool as ts, loopBuildSkeleton as ss, resetScroll as Ye } from "./utils.mjs";
22
- import { getCssVar as ns } from "./style.mjs";
23
- import rs from "./SortableRow.mjs";
24
- import os from "./SortTableContext.mjs";
25
- import ls from "./ResizableTitle copy.mjs";
26
- import is from "../TextOverflow/index.mjs";
20
+ import ss from "../../../node_modules/antd/locale/en_US.mjs";
21
+ import { getColumnsWithTool as ns, loopBuildSkeleton as rs, resetScroll as Je } from "./utils.mjs";
22
+ import { getCssVar as os } from "./style.mjs";
23
+ import ls from "./SortableRow.mjs";
24
+ import is from "./SortTableContext.mjs";
25
+ import cs from "./ResizableTitle copy.mjs";
26
+ import as from "../TextOverflow/index.mjs";
27
27
  import "./index.less.mjs";
28
- import { querySelectorAll as cs, querySelector as as } from "../../../utils/select-query.mjs";
29
- import { ConfigContext as us } from "../../../node_modules/antd/es/config-provider/context.mjs";
30
- import ds from "../../../node_modules/lodash-es/at.mjs";
31
- function fs({
28
+ import { querySelectorAll as us, querySelector as ds } from "../../../utils/select-query.mjs";
29
+ import { TdCell as fs } from "./TdCell.mjs";
30
+ import { ConfigContext as hs } from "../../../node_modules/antd/es/config-provider/context.mjs";
31
+ import ms from "../../../node_modules/lodash-es/at.mjs";
32
+ function bs({
32
33
  showPagination: J = !0,
33
- height: P,
34
+ height: H,
34
35
  minHeight: Z,
35
36
  dataSource: g,
36
- total: H = 0,
37
+ total: L = 0,
37
38
  columns: ae,
38
- loading: c,
39
- loadingType: Je,
40
- dataProps: Qe = {},
39
+ loading: u,
40
+ loadingType: Qe,
41
+ dataProps: Ue = {},
41
42
  skeletonNum: v = {
42
43
  pc: 10,
43
44
  mobile: 10
44
45
  },
45
46
  skeletonRender: ue,
46
- skeletonRowNum: Ue = 4,
47
- skeletonRowsWidth: Xe = ["35%", "100%", "100%", "60%"],
47
+ skeletonRowNum: Xe = 4,
48
+ skeletonRowsWidth: Ze = ["35%", "100%", "100%", "60%"],
48
49
  // mobileLoadEmit,
49
- mobileRefreshEmit: xe,
50
- operationFilter: u,
51
- enableControlPage: Ze,
52
- pagination: z,
53
- paginationEmit: I = () => {
50
+ mobileRefreshEmit: we,
51
+ operationFilter: d,
52
+ enableControlPage: ve,
53
+ pagination: N,
54
+ paginationEmit: D = () => {
54
55
  },
55
56
  onChange: de,
56
- enabledRowDragSort: E,
57
+ enabledRowDragSort: G,
57
58
  onRowDragEnd: fe,
58
59
  resizableColumns: A,
59
60
  // mobilePageHeight = 500,
60
- mobileCancelText: ve = "取消",
61
- noDataTitle: Ae,
62
- noDataImg: Fe,
61
+ mobileCancelText: Ae = "取消",
62
+ noDataTitle: Fe,
63
+ noDataImg: et,
63
64
  // color,
64
65
  size: ge,
65
- showTableTool: et = !0,
66
- tableAction: tt,
67
- tableToolbar: st,
68
- selectionBar: nt,
69
- scroll: d,
70
- components: L,
66
+ showTableTool: tt = !0,
67
+ tableAction: st,
68
+ tableToolbar: nt,
69
+ selectionBar: rt,
70
+ scroll: f,
71
+ components: $,
71
72
  expandable: B,
72
- rowSelection: O,
73
- selectionAlert: m,
74
- resetPage: rt,
75
- ...b
73
+ rowSelection: V,
74
+ selectionAlert: b,
75
+ resetPage: ot,
76
+ inview: Te = !0,
77
+ ...c
76
78
  }) {
77
- var Ve;
78
- const { token: p } = vt.useToken(), Te = q([]), { Table: f } = p, ot = f.tableSpaceBetweenPage ?? 10, lt = f.cellPaddingInline ?? At, F = f.minHeight ?? 500, { showColumnBorder: ee, hideRowBorder: je, rowHoverable: it, ...i } = Ie(Qt), [ct, te] = _(!1), [k, at] = _([]);
79
+ var Ie;
80
+ const { token: S } = Ft.useToken(), je = p([]), { Table: h } = S, lt = h.tableSpaceBetweenPage ?? 10, it = h.cellPaddingInline ?? es, F = h.minHeight ?? 500, { showColumnBorder: ee, hideRowBorder: ke, rowHoverable: ct, ...i } = Ge(Xt), [at, te] = I(!1), [k, ut] = I([]);
79
81
  ye(() => {
80
82
  let e = [...g ?? []];
81
- (z == null ? void 0 : z.page) !== 1 && (e = [...k, ...e]), at(e);
83
+ (N == null ? void 0 : N.page) !== 1 && (e = [...k, ...e]), ut(e);
82
84
  }, [j ? g : 0]);
83
- const ke = a(() => !!(k != null && k.length) && (k == null ? void 0 : k.length) >= H, [k, H]), [se, ut] = _([]), [dt, Ne] = _(!1), ft = async (e, t) => {
84
- var o, l, w;
85
+ const ze = a(() => !!(k != null && k.length) && (k == null ? void 0 : k.length) >= L, [k, L]), [se, dt] = I([]), [ft, Ne] = I(!1), ht = async (e, t) => {
86
+ var o, l, x;
85
87
  let s, n = !1;
86
- if (typeof u == "function")
87
- s = (o = u == null ? void 0 : u(e, t)) == null ? void 0 : o.filter((h) => h.type !== "divider");
88
- else if (s = (l = u == null ? void 0 : u.custom) == null ? void 0 : l.call(u, e, t), u != null && u.request) {
88
+ if (typeof d == "function")
89
+ s = (o = d == null ? void 0 : d(e, t)) == null ? void 0 : o.filter(
90
+ (m) => m.type !== "divider"
91
+ );
92
+ else if (s = (l = d == null ? void 0 : d.custom) == null ? void 0 : l.call(d, e, t), d != null && d.request) {
89
93
  Ne(!0), te(!0), n = !0;
90
94
  try {
91
- const h = await (u == null ? void 0 : u.request(e, t));
92
- (w = u.fieldsName) != null && w.label ? s = h == null ? void 0 : h.map((y) => {
93
- var N;
95
+ const m = await (d == null ? void 0 : d.request(e, t));
96
+ (x = d.fieldsName) != null && x.label ? s = m == null ? void 0 : m.map((y) => {
97
+ var z;
94
98
  return {
95
99
  ...y,
96
- label: y == null ? void 0 : y[((N = u.fieldsName) == null ? void 0 : N.label) ?? "label"]
100
+ label: y == null ? void 0 : y[((z = d.fieldsName) == null ? void 0 : z.label) ?? "label"]
97
101
  };
98
- }) : s = h ?? [];
102
+ }) : s = m ?? [];
99
103
  } finally {
100
104
  Ne(!1);
101
105
  }
102
106
  }
103
- s != null && s.length && (ut(s), n || te(!0));
104
- }, ze = () => {
107
+ s != null && s.length && (dt(s), n || te(!0));
108
+ }, We = () => {
105
109
  te(!1);
106
- }, ht = (e, t) => {
110
+ }, mt = (e, t) => {
107
111
  var s, n;
108
- te(!1), (s = e.onClick) == null || s.call(e), !(e != null && e.onClick) && typeof u != "function" && (u != null && u.onClick) && u.onClick((n = se == null ? void 0 : se[t]) == null ? void 0 : n.key);
109
- }, he = q(null), We = q(null), R = q(null), D = q(null), Be = q(null), mt = (...e) => {
110
- Ye(he), de == null || de(...e);
111
- }, bt = (...e) => {
112
- Ye(he), I == null || I(...e);
113
- }, G = a(() => !(d != null && d.auto) && A, [d == null ? void 0 : d.auto, A]), yt = () => {
112
+ te(!1), (s = e.onClick) == null || s.call(e), !(e != null && e.onClick) && typeof d != "function" && (d != null && d.onClick) && d.onClick((n = se == null ? void 0 : se[t]) == null ? void 0 : n.key);
113
+ }, he = p(null), Be = p(null), R = p(null), q = p(null), Se = p(null), bt = (...e) => {
114
+ Je(he), de == null || de(...e);
115
+ }, yt = (...e) => {
116
+ Je(he), D == null || D(...e);
117
+ }, Y = a(() => !(f != null && f.auto) && A, [f == null ? void 0 : f.auto, A]), Ct = () => {
114
118
  var s;
115
- const e = cs("& > .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)", (s = R.current) == null ? void 0 : s.querySelectorAll), t = [];
119
+ const e = us(
120
+ "& > .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)",
121
+ (s = R.current) == null ? void 0 : s.querySelectorAll
122
+ ), t = [];
116
123
  if (e == null || e.forEach((n) => {
117
124
  var o;
118
- t.push(((o = as("& > .operationCol .actionGroup", n.querySelector)) == null ? void 0 : o.clientWidth) || 0);
125
+ t.push(
126
+ ((o = ds("& > .operationCol .actionGroup", n.querySelector)) == null ? void 0 : o.clientWidth) || 0
127
+ );
119
128
  }), t.length)
120
129
  return Math.ceil(Math.max(...t));
121
- }, Ct = () => {
122
- var o, l, w, h;
123
- let e = (o = R.current) == null ? void 0 : o.querySelector(".ant-table-content");
124
- e || (e = (l = R.current) == null ? void 0 : l.querySelector(".ant-table-body"));
130
+ }, xt = () => {
131
+ var o, l, x, m;
132
+ let e = (o = R.current) == null ? void 0 : o.querySelector(
133
+ ".ant-table-content"
134
+ );
135
+ e || (e = (l = R.current) == null ? void 0 : l.querySelector(
136
+ ".ant-table-body"
137
+ ));
125
138
  let t = 0, s = !1, n = 0;
126
- return e && (t = e.clientWidth - (ee ? 1 : 0), s = e.offsetWidth - e.clientWidth > 0, n = (h = (w = R.current) == null ? void 0 : w.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : h.offsetWidth), { hasScrollBar: s, scrollbarSize: n, tbodyWidth: t };
127
- }, pe = a(() => {
139
+ return e && (t = e.clientWidth - (ee ? 1 : 0), s = e.offsetWidth - e.clientWidth > 0, n = (m = (x = R.current) == null ? void 0 : x.querySelector(
140
+ ".ant-table-cell-scrollbar"
141
+ )) == null ? void 0 : m.offsetWidth), { hasScrollBar: s, scrollbarSize: n, tbodyWidth: t };
142
+ }, Me = a(() => {
128
143
  const e = (g ?? []).length, t = e > (v.pc ?? 10) ? e >= 15 ? 15 : e : v.pc ?? 10;
129
144
  return Array.from({ length: t }).map((n, o) => ({
130
145
  key: `${Date.now()}${o}`
131
146
  }));
132
- }, [g]), ne = a(() => Je === "normal" ? c ? Te.current : (Te.current = g, g) : c ? pe : g ?? [], [c, g, pe]), { hasScrollBar: S, scrollbarSize: W, tbodyWidth: Q } = a(() => Ct(), [ne, i.fullscreen]), me = a(() => {
133
- if (typeof P > "u")
147
+ }, [g]), ne = a(() => Qe === "normal" ? u ? je.current : (je.current = g, g) : u ? Me : g ?? [], [u, g, Me]), { hasScrollBar: M, scrollbarSize: W, tbodyWidth: Q } = a(() => xt(), [ne, i.fullscreen]), me = a(() => {
148
+ if (typeof H > "u")
134
149
  return;
135
150
  let e = 40, t = 40;
136
151
  if (R.current) {
137
- const N = window.getComputedStyle(R.current);
138
- e = parseInt(N.getPropertyValue("--cell-height")), t = parseInt(N.getPropertyValue("--toolbar-height"));
152
+ const z = window.getComputedStyle(R.current);
153
+ e = parseInt(z.getPropertyValue("--cell-height")), t = parseInt(z.getPropertyValue("--toolbar-height"));
139
154
  }
140
- const s = 0, n = 0, o = Z ?? F, l = P >= o ? P : o;
155
+ const s = 0, n = 0, o = Z ?? F, l = H >= o ? H : o;
141
156
  return (i.fullscreen ? window.innerHeight : l) - s - n - t - e;
142
157
  }, [
143
158
  i.fullscreen,
144
- P,
159
+ H,
145
160
  Z,
146
161
  F,
147
162
  // paginationRect?.height,
@@ -151,95 +166,104 @@ function fs({
151
166
  ]), wt = () => {
152
167
  let e = 0;
153
168
  if (R.current) {
154
- const s = window.getComputedStyle(R.current), n = parseInt(s.getPropertyValue("--toolCell-paddingInline"));
169
+ const s = window.getComputedStyle(R.current), n = parseInt(
170
+ s.getPropertyValue("--toolCell-paddingInline")
171
+ );
155
172
  e = parseInt(s.getPropertyValue("--fontSize")) + 4 + 2 * n;
156
173
  }
157
174
  let t = 0;
158
- return O && (t += e), B && (t += e), E && (t += e), t;
159
- }, [T, xt] = _([]), [U, gt] = _(0);
160
- Ee(() => {
161
- var h;
162
- const e = ae ?? [], t = (h = e.find((y) => y.isOperationCol)) == null ? void 0 : h.width, s = e.filter((y) => !Ut.includes(y)), o = Xt(s, i.columnsMap).sort(Zt(i.columnsMap)), l = o.findIndex((y) => y.isOperationCol);
175
+ return V && (t += e), B && (t += e), G && (t += e), t;
176
+ }, [T, gt] = I([]), [U, Tt] = I(0);
177
+ Ye(() => {
178
+ var m;
179
+ const e = ae ?? [], t = (m = e.find((y) => y.isOperationCol)) == null ? void 0 : m.width, s = e.filter((y) => !Zt.includes(y)), o = vt(s, i.columnsMap).sort(At(i.columnsMap)), l = o.findIndex((y) => y.isOperationCol);
163
180
  l >= 0 && (o[l].width = t);
164
- let w = 0;
165
- j || (w = wt()), xt(o), gt(w);
181
+ let x = 0;
182
+ j || (x = wt()), gt(o), Tt(x);
166
183
  }, [i.columnsMap, ae]);
167
- const [C, Tt] = _([]);
184
+ const [C, jt] = I([]);
168
185
  ye(() => {
169
- if (G) {
186
+ if (Y) {
170
187
  const e = T.map((t, s) => {
171
188
  let n = t.width;
172
189
  if (t != null && t.isOperationCol && (t != null && t.useMaxWidth)) {
173
- const l = yt();
174
- l && (n = l + lt * 2);
190
+ const l = Ct();
191
+ l && (n = l + it * 2);
175
192
  }
176
193
  return {
177
- key: we(t, s),
194
+ key: xe(t, s),
178
195
  width: n ?? 0
179
196
  };
180
197
  });
181
- Tt(e);
198
+ jt(e);
182
199
  }
183
- }, [T, G]);
184
- const Se = q(!1), Me = q(!1), re = a(() => {
200
+ }, [T, Y]);
201
+ const Pe = p(!1), Re = p(!1), re = a(() => {
185
202
  let e;
186
- if (typeof me == "number" && (e = me - 1), typeof (d == null ? void 0 : d.y) == "number" && (e = d.y - 2), d != null && d.auto)
203
+ if (typeof me == "number" && (e = me - 1), typeof (f == null ? void 0 : f.y) == "number" && (e = f.y - 2), f != null && f.auto)
187
204
  return {
188
205
  x: void 0,
189
206
  y: e
190
207
  };
191
- let t = d == null ? void 0 : d.x;
192
- return A && C.length && (t = C.reduce((o, l) => o + l.width, 0) + U, Q && t < Q - (S ? W : 0) && (Se.current = !0, t = Q)), d != null && d.y ? { x: t, y: d.y } : { x: t, y: e };
208
+ let t = f == null ? void 0 : f.x;
209
+ return A && C.length && (t = C.reduce((o, l) => o + l.width, 0) + U, Q && t < Q - (M ? W : 0) && (Pe.current = !0, t = Q)), f != null && f.y ? { x: t, y: f.y } : { x: t, y: e };
193
210
  }, [
194
- d,
211
+ f,
195
212
  me,
196
213
  A,
197
214
  C,
198
215
  U,
199
216
  ee,
200
- S,
217
+ M,
201
218
  W
202
219
  ]);
203
220
  ye(() => {
204
- if (G && C.length) {
205
- const t = C.reduce((o, l) => o + l.width, 0) + U, n = Q - (S ? W : 0);
206
- if (t < n || Se.current && t > n && !Me.current) {
207
- const o = /* @__PURE__ */ new Map(), l = T.findIndex((x) => x == null ? void 0 : x.isOperationCol);
208
- let w = "";
209
- l >= 0 && (w = we(T[l], l)), C.forEach((x) => o.set(x.key, x.width));
210
- let h = n - t, y = T.length;
211
- if (l >= 0 && y--, h >= y) {
212
- const x = Math.floor(h / y);
221
+ if (Y && C.length) {
222
+ const t = C.reduce((o, l) => o + l.width, 0) + U, n = Q - (M ? W : 0);
223
+ if (t < n || Pe.current && t > n && !Re.current) {
224
+ const o = /* @__PURE__ */ new Map(), l = T.findIndex(
225
+ (w) => w == null ? void 0 : w.isOperationCol
226
+ );
227
+ let x = "";
228
+ l >= 0 && (x = xe(
229
+ T[l],
230
+ l
231
+ )), C.forEach((w) => o.set(w.key, w.width));
232
+ let m = n - t, y = T.length;
233
+ if (l >= 0 && y--, m >= y) {
234
+ const w = Math.floor(m / y);
213
235
  o.forEach((oe, le) => {
214
- o.set(le, oe + (w === le ? 0 : x));
215
- }), h = h - x * y;
236
+ o.set(le, oe + (x === le ? 0 : w));
237
+ }), m = m - w * y;
216
238
  }
217
- let N = 0;
218
- l === 0 && T.length > 1 && N++;
219
- const V = we(T[N]);
220
- o.set(V, o.get(V) + h);
221
- const M = { ...i.columnsMap };
222
- for (const x in M)
223
- M[x].show && (M[x].width = o.get(x));
224
- i.setColumnsMap(M);
239
+ let z = 0;
240
+ l === 0 && T.length > 1 && z++;
241
+ const _ = xe(T[z]);
242
+ o.set(_, o.get(_) + m);
243
+ const P = { ...i.columnsMap };
244
+ for (const w in P)
245
+ P[w].show && (P[w].width = o.get(w));
246
+ i.setColumnsMap(P);
225
247
  }
226
248
  }
227
249
  }, [
228
- G,
250
+ Y,
229
251
  C,
230
252
  U,
231
253
  ee,
232
- S,
254
+ M,
233
255
  W
234
256
  ]);
235
- const jt = a(() => {
257
+ const kt = a(() => {
236
258
  var e;
237
259
  if (i.fullscreen) {
238
- const t = document.body.clientHeight, s = (e = document.fullscreenElement) != null && e.classList.contains("bz-fullscreen") ? 50 : 0;
260
+ const t = document.body.clientHeight, s = (e = document.fullscreenElement) != null && e.classList.contains(
261
+ "bz-fullscreen"
262
+ ) ? 50 : 0;
239
263
  return { y: t - 80 - s };
240
264
  }
241
265
  return {};
242
- }, [i.fullscreen]), $ = a(() => {
266
+ }, [i.fullscreen]), K = a(() => {
243
267
  if (j)
244
268
  return T;
245
269
  const e = T.length - 1, t = T.map((s, n) => {
@@ -247,7 +271,14 @@ function fs({
247
271
  return {
248
272
  ...s,
249
273
  ...typeof s.title == "string" && {
250
- title: r.jsx(Ce.Paragraph, { className: "bitzTableTitle", ellipsis: { rows: 2 }, children: s.title })
274
+ title: /* @__PURE__ */ r.jsx(
275
+ Ce.Paragraph,
276
+ {
277
+ className: "bitzTableTitle",
278
+ ellipsis: { rows: 2 },
279
+ children: s.title
280
+ }
281
+ )
251
282
  },
252
283
  ...e === n && {
253
284
  className: ce(s.className, "lastColumn")
@@ -255,34 +286,40 @@ function fs({
255
286
  width: C.length ? (o = C[n]) == null ? void 0 : o.width : (s == null ? void 0 : s.width) || void 0,
256
287
  ...re.x !== void 0 ? {
257
288
  onHeaderCell: (l) => {
258
- var w;
289
+ var x;
259
290
  return {
260
- ...(w = s.onHeaderCell) == null ? void 0 : w.call(s),
291
+ ...(x = s.onHeaderCell) == null ? void 0 : x.call(s),
261
292
  width: l.width,
262
- stretchref: We,
263
- datagridref: D,
264
- onResize: kt(n)
293
+ stretchref: Be,
294
+ datagridref: q,
295
+ onResize: zt(n)
265
296
  };
266
297
  }
267
298
  } : {},
268
299
  ...!(s != null && s.render) && s.copyable ? {
269
- render: (l) => ["number", "bigint"].includes(typeof l) ? l : r.jsx(is, { value: l })
300
+ render: (l) => ["number", "bigint"].includes(typeof l) ? l : /* @__PURE__ */ r.jsx(as, { value: l })
270
301
  } : {}
271
302
  };
272
303
  });
273
- return ts(ae, t, E, !!O, !!B);
274
- }, [T, C]), kt = (e) => (t, { size: s, minWidth: n }) => {
304
+ return ns(
305
+ ae,
306
+ t,
307
+ G,
308
+ !!V,
309
+ !!B
310
+ );
311
+ }, [T, C]), zt = (e) => (t, { size: s, minWidth: n }) => {
275
312
  const l = (s.width > n ? s.width : n) - C[e].width;
276
313
  if (l === 0)
277
314
  return;
278
- const h = C.reduce((X, K) => X + K.width, 0) + l + U, N = Q - (S ? W : 0);
279
- let V = "", M = -1, x = 0;
280
- if (l < 0 && h < N) {
281
- M = e + 1;
282
- const X = T.length - 1, K = T[X];
283
- (e === X - 1 && (K != null && K.isOperationCol) || e === X && !(K != null && K.isOperationCol)) && (M = e - 1);
284
- let _e = 0;
285
- re.x > N && (_e = re.x - N), V = `${C[M].key}`, x = C[M].width - l - _e;
315
+ const m = C.reduce((X, O) => X + O.width, 0) + l + U, z = Q - (M ? W : 0);
316
+ let _ = "", P = -1, w = 0;
317
+ if (l < 0 && m < z) {
318
+ P = e + 1;
319
+ const X = T.length - 1, O = T[X];
320
+ (e === X - 1 && (O != null && O.isOperationCol) || e === X && !(O != null && O.isOperationCol)) && (P = e - 1);
321
+ let De = 0;
322
+ re.x > z && (De = re.x - z), _ = `${C[P].key}`, w = C[P].width - l - De;
286
323
  }
287
324
  const oe = `${C[e].key}`, le = {
288
325
  ...i.columnsMap,
@@ -290,21 +327,21 @@ function fs({
290
327
  ...i.columnsMap[oe],
291
328
  width: C[e].width + l
292
329
  },
293
- ...V && M >= 0 && {
294
- [V]: {
295
- ...i.columnsMap[V],
296
- width: x
330
+ ..._ && P >= 0 && {
331
+ [_]: {
332
+ ...i.columnsMap[_],
333
+ width: w
297
334
  }
298
335
  }
299
336
  };
300
- i.setColumnsMap(le), Me.current = !0, i.persistenceType === "online" && i.persistenceKey && i.startAutoSaveCountdown();
301
- }, Re = a(() => ss($), [$]), Y = a(() => c ? Re : $, [c, $, Re]), { table: be, locale: Nt = es } = Ie(us), zt = { ...Nt.Table }, Wt = ((Ve = be == null ? void 0 : be.expandable) == null ? void 0 : Ve.expandIcon) || (B == null ? void 0 : B.expandIcon) || Ft(zt), Pe = a(() => {
337
+ i.setColumnsMap(le), Re.current = !0, i.persistenceType === "online" && i.persistenceKey && i.startAutoSaveCountdown();
338
+ }, He = a(() => rs(K), [K]), E = a(() => u ? He : K, [u, K, He]), { table: be, locale: Nt = ss } = Ge(hs), Wt = { ...Nt.Table }, Bt = ((Ie = be == null ? void 0 : be.expandable) == null ? void 0 : Ie.expandIcon) || (B == null ? void 0 : B.expandIcon) || ts(Wt), Le = a(() => {
302
339
  if (B)
303
340
  return {
304
341
  ...B,
305
- expandedRowRender: () => r.jsx(r.Fragment, {}),
342
+ expandedRowRender: () => /* @__PURE__ */ r.jsx(r.Fragment, {}),
306
343
  expandIcon: (e) => {
307
- const t = Wt(e);
344
+ const t = Bt(e);
308
345
  return {
309
346
  ...t,
310
347
  props: {
@@ -312,151 +349,365 @@ function fs({
312
349
  disabled: !0,
313
350
  style: {
314
351
  ...t.props.style,
315
- backgroundColor: p.colorBgContainerDisabled
352
+ backgroundColor: S.colorBgContainerDisabled
316
353
  }
317
354
  }
318
355
  };
319
356
  }
320
357
  };
321
- }, [B]), Bt = a(() => c ? Pe : B, [c, B, Pe]), He = a(() => {
322
- if (O)
358
+ }, [B]), St = a(() => u ? Le : B, [u, B, Le]), $e = a(() => {
359
+ if (V)
323
360
  return {
324
- ...O,
361
+ ...V,
325
362
  selectedRowKeys: [],
326
363
  getCheckboxProps: () => ({ disabled: !0 })
327
364
  };
328
- }, [O]), pt = a(() => c ? He : O, [c, O, He]), Le = a(() => c ? "key" : b.rowKey, [c, b.rowKey]), De = a(() => `${ge ?? i.stylesConfig.size}BitzTable`, [ge, i.stylesConfig.size]), St = ie((e, t) => {
329
- var n;
330
- if (!b.onRow || c)
331
- return {};
332
- const s = (n = b.onRow) == null ? void 0 : n.call(b, e, t);
333
- return s.onClick && (s.className = "rowPointerCursor"), s;
334
- }, [b.onRow, c]), Mt = a(() => ce("bitzTableContainer", { hideBorder: je }, { hasScrollBar: S }, { stickyTable: !!(b != null && b.sticky) }, De, b.className), [
335
- b.className,
336
- De,
337
- S,
365
+ }, [V]), Mt = a(() => u ? $e : V, [u, V, $e]), qe = a(() => u ? "key" : c.rowKey, [u, c.rowKey]), Ke = a(() => `${ge ?? i.stylesConfig.size}BitzTable`, [ge, i.stylesConfig.size]), Pt = ie(
366
+ (e, t) => {
367
+ var n;
368
+ if (!c.onRow || u)
369
+ return {};
370
+ const s = (n = c.onRow) == null ? void 0 : n.call(c, e, t);
371
+ return s.onClick && (s.className = "rowPointerCursor"), s;
372
+ },
373
+ [c.onRow, u]
374
+ ), Rt = a(() => ce(
375
+ "bitzTableContainer",
376
+ { hideBorder: ke },
377
+ { hasScrollBar: M },
378
+ { stickyTable: !!(c != null && c.sticky) },
379
+ Ke,
380
+ c.className
381
+ ), [
382
+ c.className,
383
+ Ke,
384
+ M,
338
385
  i.fullscreen,
339
- je,
340
- b.sticky
341
- ]), Rt = a(() => ({
342
- "--container-bgColor": p.colorBgContainer
343
- }), [p.colorBgContainer]), Pt = a(() => {
386
+ ke,
387
+ c.sticky
388
+ ]), Ht = a(() => ({
389
+ "--container-bgColor": S.colorBgContainer
390
+ }), [S.colorBgContainer]), Lt = a(() => {
344
391
  const e = Z ?? F;
345
392
  let t;
346
- P && (t = P >= e ? P : e);
393
+ H && (t = H >= e ? H : e);
347
394
  const s = i.fullscreen ? "100%" : t;
348
395
  let n;
349
- return (W ?? 0) > 0 && (n = W), ns({
396
+ return (W ?? 0) > 0 && (n = W), os({
350
397
  height: s ?? "auto",
351
- token: p,
352
- evenRowBgColor: i.zebra ? f == null ? void 0 : f.evenRowBgColor : p.colorBgContainer,
353
- table: f,
354
- gap: ot,
355
- borderColor: (f == null ? void 0 : f.borderColor) || p.colorBorderSecondary,
398
+ token: S,
399
+ evenRowBgColor: i.zebra ? h == null ? void 0 : h.evenRowBgColor : S.colorBgContainer,
400
+ table: h,
401
+ gap: lt,
402
+ borderColor: (h == null ? void 0 : h.borderColor) || S.colorBorderSecondary,
356
403
  scrollbarWidth: n,
357
- other: b.style
404
+ other: c.style
358
405
  });
359
406
  }, [
360
- b.style,
407
+ c.style,
361
408
  i.fullscreen,
362
- P,
409
+ H,
363
410
  Z,
364
411
  F,
365
- f,
412
+ h,
366
413
  i == null ? void 0 : i.zebra,
367
414
  W
368
- ]), Ht = ie((e, t, s) => {
369
- const n = t % 2 === 0 ? "oddRow" : "evenRow";
370
- if (b.rowClassName) {
371
- const o = b.rowClassName(e, t, s);
372
- return ce(n, o);
415
+ ]), $t = ie(
416
+ (e, t, s) => {
417
+ const n = t % 2 === 0 ? "oddRow" : "evenRow";
418
+ if (c.rowClassName) {
419
+ const o = c.rowClassName(e, t, s);
420
+ return ce(n, o);
421
+ }
422
+ return n;
423
+ },
424
+ [c.rowClassName]
425
+ ), Oe = a(() => /* @__PURE__ */ r.jsx(
426
+ Jt,
427
+ {
428
+ finished: ze,
429
+ onLoad: async () => (
430
+ // @ts-ignore
431
+ !u && (D == null ? void 0 : D((N == null ? void 0 : N.page) + 1, N == null ? void 0 : N.size))
432
+ ),
433
+ loadingText: "加载中...",
434
+ finishedText: "没有更多了",
435
+ errorText: "加载失败",
436
+ children: /* @__PURE__ */ r.jsxs(
437
+ "div",
438
+ {
439
+ className: "mobileList",
440
+ style: { backgroundColor: h == null ? void 0 : h.mobileListBgColor },
441
+ children: [
442
+ k == null ? void 0 : k.map((e, t) => /* @__PURE__ */ r.jsx(
443
+ "div",
444
+ {
445
+ className: "listItem",
446
+ style: { backgroundColor: h == null ? void 0 : h.listItemBgColor },
447
+ onClick: () => ht(e, t),
448
+ children: K == null ? void 0 : K.map((s, n) => {
449
+ var o;
450
+ return !(s != null && s.mobileHide) && /* @__PURE__ */ r.jsxs(
451
+ "div",
452
+ {
453
+ className: "row",
454
+ style: { color: S.colorText },
455
+ children: [
456
+ !s.mobileHideLabel && /* @__PURE__ */ r.jsxs("div", { className: "label", children: [
457
+ `${s.title}`,
458
+ ":"
459
+ ] }),
460
+ /* @__PURE__ */ r.jsx("div", { className: "value", children: ((o = s == null ? void 0 : s.render) == null ? void 0 : o.call(
461
+ s,
462
+ ms(e, (s == null ? void 0 : s.dataIndex) || ""),
463
+ e,
464
+ t
465
+ )) || (e == null ? void 0 : e[s.dataIndex]) })
466
+ ]
467
+ },
468
+ n
469
+ );
470
+ })
471
+ },
472
+ t
473
+ )),
474
+ Array.from({ length: v.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ r.jsx(
475
+ "div",
476
+ {
477
+ className: "listItem",
478
+ style: {
479
+ display: u ? "block" : "none",
480
+ backgroundColor: h == null ? void 0 : h.listItemBgColor
481
+ },
482
+ children: /* @__PURE__ */ r.jsx("div", { className: "row", children: ue ? ue() : /* @__PURE__ */ r.jsx(
483
+ Vt,
484
+ {
485
+ title: !1,
486
+ paragraph: {
487
+ rows: Xe,
488
+ width: Ze
489
+ },
490
+ active: !0
491
+ }
492
+ ) })
493
+ },
494
+ `${Date.now()}${t}`
495
+ ))
496
+ ]
497
+ }
498
+ )
373
499
  }
374
- return n;
375
- }, [b.rowClassName]), $e = a(() => r.jsx(Gt, { finished: ke, onLoad: async () => (
376
- // @ts-ignore
377
- !c && (I == null ? void 0 : I((z == null ? void 0 : z.page) + 1, z == null ? void 0 : z.size))
378
- ), loadingText: "加载中...", finishedText: "没有更多了", errorText: "加载失败", children: r.jsxs("div", { className: "mobileList", style: { backgroundColor: f == null ? void 0 : f.mobileListBgColor }, children: [k == null ? void 0 : k.map((e, t) => r.jsx("div", { className: "listItem", style: { backgroundColor: f == null ? void 0 : f.listItemBgColor }, onClick: () => ft(e, t), children: $ == null ? void 0 : $.map((s, n) => {
379
- var o;
380
- return !(s != null && s.mobileHide) && r.jsxs("div", { className: "row", style: { color: p.colorText }, children: [!s.mobileHideLabel && r.jsxs("div", { className: "label", children: [`${s.title}`, ":"] }), r.jsx("div", { className: "value", children: ((o = s == null ? void 0 : s.render) == null ? void 0 : o.call(s, ds(e, (s == null ? void 0 : s.dataIndex) || ""), e, t)) || (e == null ? void 0 : e[s.dataIndex]) })] }, n);
381
- }) }, t)), Array.from({ length: v.mobile ?? 2 }).map((e, t) => r.jsx("div", { className: "listItem", style: {
382
- display: c ? "block" : "none",
383
- backgroundColor: f == null ? void 0 : f.listItemBgColor
384
- }, children: r.jsx("div", { className: "row", children: ue ? ue() : r.jsx(Kt, { title: !1, paragraph: {
385
- rows: Ue,
386
- width: Xe
387
- }, active: !0 }) }) }, `${Date.now()}${t}`))] }) }), [
388
- j ? ke : 0,
389
- j ? c : 0,
390
- j ? z : 0,
391
- j ? f : 0,
500
+ ), [
501
+ j ? ze : 0,
502
+ j ? u : 0,
503
+ j ? N : 0,
504
+ j ? h : 0,
392
505
  j ? k : 0,
393
- j ? $ : 0,
506
+ j ? K : 0,
394
507
  j ? v : 0,
395
508
  j ? ue : 0
396
509
  ]);
397
- Ee(() => {
398
- i.setSelected(!!(m != null && m.num));
399
- }, [m]);
400
- const Ke = a(() => r.jsxs("div", { className: "alert", children: [r.jsx(Ge, { highlightTag: "strong", keywords: `${H}`, sourceString: `共 ${H} 条`, tagClass: "totalText" }), !!m && r.jsxs(r.Fragment, { children: [r.jsx(Ce.Text, { className: "splitBorder", children: "/" }), r.jsx(Ge, { highlightTag: "strong", keywords: `${(m == null ? void 0 : m.num) ?? 0}`, sourceString: `已选中 ${(m == null ? void 0 : m.num) ?? 0} 条` }), !!(m != null && m.num) && r.jsx(Ce.Link, { className: "cleanSelected", onClick: m == null ? void 0 : m.onClear, children: "取消选中" })] })] }), [H, m]), Lt = (e) => {
401
- c || fe == null || fe(e);
402
- }, qe = ie(() => E ? {
403
- row: (e) => rs({ ...e, loading: c == null ? void 0 : c.toString() })
404
- } : {}, [E, E ? c : !1]), Oe = ie((e) => {
405
- var n, o;
406
- if (G)
407
- return ls({ ...e, hasScrollBar: S, scrollbarSize: W });
408
- const t = { ...e };
409
- return ((n = t.className) == null ? void 0 : n.includes("ant-table-cell-fix-right")) && !S && ((o = t.style) != null && o.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (W || 0)), r.jsx("th", { ...t });
410
- }, [S, W, G]), Dt = a(() => ({
411
- ...L,
510
+ Ye(() => {
511
+ i.setSelected(!!(b != null && b.num));
512
+ }, [b]);
513
+ const pe = a(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
514
+ /* @__PURE__ */ r.jsx(
515
+ Ee,
516
+ {
517
+ highlightTag: "strong",
518
+ keywords: `${L}`,
519
+ sourceString: `共 ${L} 条`,
520
+ tagClass: "totalText"
521
+ }
522
+ ),
523
+ !!b && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
524
+ /* @__PURE__ */ r.jsx(Ce.Text, { className: "splitBorder", children: "/" }),
525
+ /* @__PURE__ */ r.jsx(
526
+ Ee,
527
+ {
528
+ highlightTag: "strong",
529
+ keywords: `${(b == null ? void 0 : b.num) ?? 0}`,
530
+ sourceString: `已选中 ${(b == null ? void 0 : b.num) ?? 0} 条`
531
+ }
532
+ ),
533
+ !!(b != null && b.num) && /* @__PURE__ */ r.jsx(
534
+ Ce.Link,
535
+ {
536
+ className: "cleanSelected",
537
+ onClick: b == null ? void 0 : b.onClear,
538
+ children: "取消选中"
539
+ }
540
+ )
541
+ ] })
542
+ ] }), [L, b]), qt = (e) => {
543
+ u || fe == null || fe(e);
544
+ }, Ve = ie(() => G ? {
545
+ row: (e) => ls({ ...e, loading: u == null ? void 0 : u.toString() })
546
+ } : {}, [G, G ? u : !1]), _e = ie(
547
+ (e) => {
548
+ var n, o;
549
+ if (Y)
550
+ return cs({ ...e, hasScrollBar: M, scrollbarSize: W });
551
+ const t = { ...e };
552
+ return ((n = t.className) == null ? void 0 : n.includes(
553
+ "ant-table-cell-fix-right"
554
+ )) && !M && ((o = t.style) != null && o.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (W || 0)), /* @__PURE__ */ r.jsx("th", { ...t });
555
+ },
556
+ [M, W, Y]
557
+ ), Kt = a(() => c != null && c.virtual ? {} : Te ? { cell: fs } : {}, [Te, c == null ? void 0 : c.virtual]), Ot = a(() => ({
558
+ ...$,
412
559
  header: {
413
- ...L == null ? void 0 : L.header,
414
- cell: Oe
560
+ ...$ == null ? void 0 : $.header,
561
+ cell: _e
415
562
  },
416
563
  body: {
417
- ...L == null ? void 0 : L.body,
418
- ...qe()
564
+ ...Kt,
565
+ ...$ == null ? void 0 : $.body,
566
+ ...Ve()
419
567
  }
420
- }), [L, Oe, qe]), $t = a(() => {
568
+ }), [$, _e, Ve]), pt = a(() => {
421
569
  var e;
422
- if ((Y == null ? void 0 : Y.length) > 5 && (D != null && D.current)) {
423
- const t = Y.reduce((n, o) => (o.fixed && (n += o.width), n), 0), s = (e = D == null ? void 0 : D.current) == null ? void 0 : e.clientWidth;
570
+ if ((E == null ? void 0 : E.length) > 5 && (q != null && q.current)) {
571
+ const t = E.reduce(
572
+ (n, o) => (o.fixed && (n += o.width), n),
573
+ 0
574
+ ), s = (e = q == null ? void 0 : q.current) == null ? void 0 : e.clientWidth;
424
575
  return t > s - 300;
425
576
  }
426
577
  return !1;
427
- }, [Y]);
428
- return r.jsxs("div", { className: ce("bitzTableBlock", {
429
- fullscreen: i.fullscreen
430
- }), style: Rt, ...Qe, children: [!j && r.jsxs("div", { ref: R, className: Mt, style: Pt, children: [r.jsxs("div", { className: "bitzTableContainerBody", ref: D, children: [et && r.jsxs("div", { className: "bitzTableToolbarBlock", children: [tt || r.jsx("div", {}), st, nt] }), r.jsx("div", { className: "stretchLine", ref: We, style: {
431
- background: p.colorPrimary,
432
- bottom: 0
433
- } }), r.jsxs(os, { enabledRowDragSort: E, dataSource: ne, mergeRowKey: Le, onDragEnd: Lt, children: [$t && r.jsx(qt, { closable: !0, type: "error", message: "表格固定列的宽度超过表格宽度,影响表格显示效果;请重新拖拽列宽度或点击表格设置调整固定列配置。" }), r.jsx(Ot, {
434
- ...b,
435
- bordered: ee,
436
- columns: Y,
437
- dataSource: ne,
438
- loading: !1,
439
- pagination: !1,
440
- scroll: { ...re, ...jt },
441
- expandable: Bt,
442
- rowSelection: pt,
443
- // style={tableStyle}
444
- onRow: St,
445
- rowHoverable: it,
446
- rowClassName: Ht,
447
- className: "bitzTable",
448
- components: Dt,
449
- rowKey: Le,
450
- onChange: mt,
451
- ref: he
452
- })] })] }), J && !!H && r.jsxs("div", { className: "bitzTablePagination", ref: Be, children: [Ke, r.jsx(It, { size: "small", enableControl: Ze, pagination: z, total: H, dataSource: g, resetPage: rt, hideTotalText: !0, paginationEmit: bt })] }), !J && !!m && !!H && r.jsx("div", { className: "bitzTablePagination", ref: Be, children: Ke })] }), j && r.jsxs(r.Fragment, { children: [(c || !!(g != null && g.length)) && r.jsx(r.Fragment, { children: xe ? (
453
- // @ts-ignore
454
- r.jsx(Yt, { onRefresh: async () => !c && xe(), children: $e })
455
- ) : $e }), !c && r.jsx(Et, { data: g, title: Ae, img: Fe }), r.jsx(_t, { className: "tableMobileDrawer", open: ct, placement: "bottom", height: "auto", closable: !1, onClose: ze, children: r.jsxs("div", { className: "drawerBox", children: [r.jsx("div", { className: "boxBody", children: dt ? r.jsx("div", { className: "operaList", children: r.jsx(Vt, {}) }) : se.map((e, t) => r.jsx("div", { className: "operaList", onClick: () => ht(e, t), ...e.danger && {
456
- style: { color: p.colorError }
457
- }, children: e.label }, t)) }), r.jsx("div", { className: "boxLine" }), r.jsx("div", { className: "boxFooter", onClick: ze, children: ve })] }) })] })] });
578
+ }, [E]);
579
+ return /* @__PURE__ */ r.jsxs(
580
+ "div",
581
+ {
582
+ className: ce("bitzTableBlock", {
583
+ fullscreen: i.fullscreen
584
+ }),
585
+ style: Ht,
586
+ ...Ue,
587
+ children: [
588
+ !j && /* @__PURE__ */ r.jsxs("div", { ref: R, className: Rt, style: Lt, children: [
589
+ /* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: q, children: [
590
+ tt && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
591
+ st || /* @__PURE__ */ r.jsx("div", {}),
592
+ nt,
593
+ rt
594
+ ] }),
595
+ /* @__PURE__ */ r.jsx(
596
+ "div",
597
+ {
598
+ className: "stretchLine",
599
+ ref: Be,
600
+ style: {
601
+ background: S.colorPrimary,
602
+ bottom: 0
603
+ }
604
+ }
605
+ ),
606
+ /* @__PURE__ */ r.jsxs(
607
+ is,
608
+ {
609
+ enabledRowDragSort: G,
610
+ dataSource: ne,
611
+ mergeRowKey: qe,
612
+ onDragEnd: qt,
613
+ children: [
614
+ pt && /* @__PURE__ */ r.jsx(
615
+ _t,
616
+ {
617
+ closable: !0,
618
+ type: "error",
619
+ message: "表格固定列的宽度超过表格宽度,影响表格显示效果;请重新拖拽列宽度或点击表格设置调整固定列配置。"
620
+ }
621
+ ),
622
+ /* @__PURE__ */ r.jsx(
623
+ It,
624
+ {
625
+ ...c,
626
+ bordered: ee,
627
+ columns: E,
628
+ dataSource: ne,
629
+ loading: !1,
630
+ pagination: !1,
631
+ scroll: { ...re, ...kt },
632
+ expandable: St,
633
+ rowSelection: Mt,
634
+ onRow: Pt,
635
+ rowHoverable: ct,
636
+ rowClassName: $t,
637
+ className: "bitzTable",
638
+ components: Ot,
639
+ rowKey: qe,
640
+ onChange: bt,
641
+ ref: he
642
+ }
643
+ )
644
+ ]
645
+ }
646
+ )
647
+ ] }),
648
+ J && !!L && /* @__PURE__ */ r.jsxs("div", { className: "bitzTablePagination", ref: Se, children: [
649
+ pe,
650
+ /* @__PURE__ */ r.jsx(
651
+ Yt,
652
+ {
653
+ size: "small",
654
+ enableControl: ve,
655
+ pagination: N,
656
+ total: L,
657
+ dataSource: g,
658
+ resetPage: ot,
659
+ hideTotalText: !0,
660
+ paginationEmit: yt
661
+ }
662
+ )
663
+ ] }),
664
+ !J && !!b && !!L && /* @__PURE__ */ r.jsx("div", { className: "bitzTablePagination", ref: Se, children: pe })
665
+ ] }),
666
+ j && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
667
+ (u || !!(g != null && g.length)) && /* @__PURE__ */ r.jsx(r.Fragment, { children: we ? (
668
+ // @ts-ignore
669
+ /* @__PURE__ */ r.jsx(
670
+ Qt,
671
+ {
672
+ onRefresh: async () => !u && we(),
673
+ children: Oe
674
+ }
675
+ )
676
+ ) : Oe }),
677
+ !u && /* @__PURE__ */ r.jsx(Et, { data: g, title: Fe, img: et }),
678
+ /* @__PURE__ */ r.jsx(
679
+ Gt,
680
+ {
681
+ className: "tableMobileDrawer",
682
+ open: at,
683
+ placement: "bottom",
684
+ height: "auto",
685
+ closable: !1,
686
+ onClose: We,
687
+ children: /* @__PURE__ */ r.jsxs("div", { className: "drawerBox", children: [
688
+ /* @__PURE__ */ r.jsx("div", { className: "boxBody", children: ft ? /* @__PURE__ */ r.jsx("div", { className: "operaList", children: /* @__PURE__ */ r.jsx(Dt, {}) }) : se.map((e, t) => /* @__PURE__ */ r.jsx(
689
+ "div",
690
+ {
691
+ className: "operaList",
692
+ onClick: () => mt(e, t),
693
+ ...e.danger && {
694
+ style: { color: S.colorError }
695
+ },
696
+ children: e.label
697
+ },
698
+ t
699
+ )) }),
700
+ /* @__PURE__ */ r.jsx("div", { className: "boxLine" }),
701
+ /* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick: We, children: Ae })
702
+ ] })
703
+ }
704
+ )
705
+ ] })
706
+ ]
707
+ }
708
+ );
458
709
  }
459
- const Es = (J) => r.jsx(Jt, { initValue: J, children: r.jsx(fs, { ...J }) });
710
+ const Qs = (J) => /* @__PURE__ */ r.jsx(Ut, { initValue: J, children: /* @__PURE__ */ r.jsx(bs, { ...J }) });
460
711
  export {
461
- Es as default
712
+ Qs as default
462
713
  };