bitz-react-admin-ui 2.8.0 → 2.8.2

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 (181) 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.mjs +16 -5
  123. package/dist/components/BitzTable/Table/index.mjs +494 -246
  124. package/dist/components/BitzTable/Table/style.mjs +10 -1
  125. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  126. package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +105 -31
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +346 -159
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +135 -38
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +18 -5
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +121 -49
  137. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +62 -18
  138. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +59 -16
  139. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
  140. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +20 -5
  141. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +46 -14
  142. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  143. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
  144. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  145. package/dist/components/BitzTableOperations/index.mjs +13 -3
  146. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  147. package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
  148. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
  149. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
  150. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
  151. package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
  152. package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
  153. package/dist/components/BitzTableSelect/index.mjs +65 -14
  154. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  155. package/dist/components/BitzTag/index.mjs +1 -1
  156. package/dist/components/BitzText/index.mjs +41 -14
  157. package/dist/components/BitzText/utils.mjs +3 -3
  158. package/dist/components/BitzTheme/index.mjs +6 -6
  159. package/dist/components/BitzTimeline/index.mjs +11 -1
  160. package/dist/components/BitzTimer/Form.mjs +32 -11
  161. package/dist/components/BitzTimer/Timer.mjs +76 -38
  162. package/dist/components/BitzTimer/index.mjs +66 -43
  163. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  164. package/dist/components/BitzToast/index.mjs +1 -1
  165. package/dist/components/BitzTooltip/index.mjs +59 -20
  166. package/dist/components/BitzTooltip/style.mjs +9 -6
  167. package/dist/components/BitzTooltip/utils.mjs +2 -2
  168. package/dist/components/BitzTree/index.mjs +4 -1
  169. package/dist/components/BitzUeEditor/index.mjs +5 -5
  170. package/dist/components/BitzUpload/index.mjs +81 -43
  171. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  172. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  173. package/dist/hooks/use-event-listener.mjs +11 -2
  174. package/dist/hooks/use-lock-fn.mjs +13 -10
  175. package/dist/hooks/use-scroll-parent.mjs +16 -14
  176. package/dist/hooks/useEvent.mjs +7 -4
  177. package/dist/hooks/useMergedState.mjs +11 -11
  178. package/dist/style.css +1 -1
  179. package/dist/utils/WithFluent.mjs +9 -3
  180. package/dist/utils/create.mjs +7 -1
  181. package/package.json +1 -1
@@ -1,35 +1,35 @@
1
1
  import { j as r } from "../../../node_modules/react/jsx-runtime.mjs";
2
- import { useRef as p, useContext as Ee, useState as _, useEffect as ye, useMemo as a, useLayoutEffect as Ge, useCallback as ce } 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 Ot, Alert as Vt, Table as _t, Spin as It } from "antd";
5
- import ie from "../../../node_modules/classnames/index.mjs";
6
- import Et from "../../BitzDrawer/index.mjs";
7
- import Gt from "../../BitzPagination/index.mjs";
8
- import Yt from "../../BitzNoData/index.mjs";
4
+ import { Typography as Ce, Skeleton as Vt, Alert as _t, Table as It, Spin as Dt } from "antd";
5
+ import ce from "../../../node_modules/classnames/index.mjs";
6
+ import Gt from "../../BitzDrawer/index.mjs";
7
+ import Yt from "../../BitzPagination/index.mjs";
8
+ import Et from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
10
  import Jt from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
12
  import Qt from "../../BitzPullRefresh/PullRefresh.mjs";
13
13
  import Ut, { BitzTableContext as Xt, toolCols as Zt } from "../Store/index.mjs";
14
- import { loopFilter as vt, columnSort as At, genColumnKey as we } from "../Store/utils/index.mjs";
14
+ import { loopFilter as vt, columnSort as At, genColumnKey as xe } from "../Store/utils/index.mjs";
15
15
  import Ft from "../../BitzTheme/index.mjs";
16
- import { tablePaddingInline as en } from "../../BitzConfigProvider/context.mjs";
17
- import Ye from "../../BitzHighlight/index.mjs";
18
- import tn from "../../../node_modules/antd/es/table/ExpandIcon.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 nn from "../../../node_modules/antd/locale/en_US.mjs";
21
- import { getColumnsWithTool as sn, loopBuildSkeleton as rn, resetScroll as Je } from "./utils.mjs";
22
- import { getCssVar as on } from "./style.mjs";
23
- import ln from "./SortableRow.mjs";
24
- import cn from "./SortTableContext.mjs";
25
- import an from "./ResizableTitle copy.mjs";
26
- import un 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 dn, querySelector as fn } from "../../../utils/select-query.mjs";
29
- import { TdCell as hn } from "./TdCell.mjs";
30
- import { ConfigContext as mn } from "../../../node_modules/antd/es/config-provider/context.mjs";
31
- import bn from "../../../node_modules/lodash-es/at.mjs";
32
- function yn({
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({
33
33
  showPagination: J = !0,
34
34
  height: H,
35
35
  minHeight: Z,
@@ -47,14 +47,14 @@ function yn({
47
47
  skeletonRowNum: Xe = 4,
48
48
  skeletonRowsWidth: Ze = ["35%", "100%", "100%", "60%"],
49
49
  // mobileLoadEmit,
50
- mobileRefreshEmit: xe,
50
+ mobileRefreshEmit: we,
51
51
  operationFilter: d,
52
52
  enableControlPage: ve,
53
- pagination: z,
54
- paginationEmit: I = () => {
53
+ pagination: N,
54
+ paginationEmit: D = () => {
55
55
  },
56
56
  onChange: de,
57
- enabledRowDragSort: E,
57
+ enabledRowDragSort: G,
58
58
  onRowDragEnd: fe,
59
59
  resizableColumns: A,
60
60
  // mobilePageHeight = 500,
@@ -64,126 +64,141 @@ function yn({
64
64
  // color,
65
65
  size: ge,
66
66
  showTableTool: tt = !0,
67
- tableAction: nt,
68
- tableToolbar: st,
67
+ tableAction: st,
68
+ tableToolbar: nt,
69
69
  selectionBar: rt,
70
70
  scroll: f,
71
- components: D,
71
+ components: $,
72
72
  expandable: B,
73
- rowSelection: O,
73
+ rowSelection: V,
74
74
  selectionAlert: b,
75
75
  resetPage: ot,
76
76
  inview: Te = !0,
77
- ...i
77
+ ...c
78
78
  }) {
79
- var _e;
80
- const { token: S } = Ft.useToken(), je = p([]), { Table: h } = S, lt = h.tableSpaceBetweenPage ?? 10, ct = h.cellPaddingInline ?? en, F = h.minHeight ?? 500, { showColumnBorder: ee, hideRowBorder: ke, rowHoverable: it, ...c } = Ee(Xt), [at, te] = _(!1), [k, ut] = _([]);
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([]);
81
81
  ye(() => {
82
82
  let e = [...g ?? []];
83
- (z == null ? void 0 : z.page) !== 1 && (e = [...k, ...e]), ut(e);
83
+ (N == null ? void 0 : N.page) !== 1 && (e = [...k, ...e]), ut(e);
84
84
  }, [j ? g : 0]);
85
- const Ne = a(() => !!(k != null && k.length) && (k == null ? void 0 : k.length) >= L, [k, L]), [ne, dt] = _([]), [ft, ze] = _(!1), ht = async (e, t) => {
86
- var o, l, w;
87
- let n, s = !1;
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;
87
+ let s, n = !1;
88
88
  if (typeof d == "function")
89
- n = (o = d == null ? void 0 : d(e, t)) == null ? void 0 : o.filter((m) => m.type !== "divider");
90
- else if (n = (l = d == null ? void 0 : d.custom) == null ? void 0 : l.call(d, e, t), d != null && d.request) {
91
- ze(!0), te(!0), s = !0;
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) {
93
+ Ne(!0), te(!0), n = !0;
92
94
  try {
93
95
  const m = await (d == null ? void 0 : d.request(e, t));
94
- (w = d.fieldsName) != null && w.label ? n = m == null ? void 0 : m.map((y) => {
95
- var N;
96
+ (x = d.fieldsName) != null && x.label ? s = m == null ? void 0 : m.map((y) => {
97
+ var z;
96
98
  return {
97
99
  ...y,
98
- label: y == null ? void 0 : y[((N = d.fieldsName) == null ? void 0 : N.label) ?? "label"]
100
+ label: y == null ? void 0 : y[((z = d.fieldsName) == null ? void 0 : z.label) ?? "label"]
99
101
  };
100
- }) : n = m ?? [];
102
+ }) : s = m ?? [];
101
103
  } finally {
102
- ze(!1);
104
+ Ne(!1);
103
105
  }
104
106
  }
105
- n != null && n.length && (dt(n), s || te(!0));
107
+ s != null && s.length && (dt(s), n || te(!0));
106
108
  }, We = () => {
107
109
  te(!1);
108
110
  }, mt = (e, t) => {
109
- var n, s;
110
- te(!1), (n = e.onClick) == null || n.call(e), !(e != null && e.onClick) && typeof d != "function" && (d != null && d.onClick) && d.onClick((s = ne == null ? void 0 : ne[t]) == null ? void 0 : s.key);
111
- }, he = p(null), Be = p(null), P = p(null), $ = p(null), Se = p(null), bt = (...e) => {
111
+ var s, n;
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) => {
112
114
  Je(he), de == null || de(...e);
113
115
  }, yt = (...e) => {
114
- Je(he), I == null || I(...e);
115
- }, G = a(() => !(f != null && f.auto) && A, [f == null ? void 0 : f.auto, A]), Ct = () => {
116
- var n;
117
- const e = dn("& > .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)", (n = P.current) == null ? void 0 : n.querySelectorAll), t = [];
118
- if (e == null || e.forEach((s) => {
116
+ Je(he), D == null || D(...e);
117
+ }, Y = a(() => !(f != null && f.auto) && A, [f == null ? void 0 : f.auto, A]), Ct = () => {
118
+ var s;
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 = [];
123
+ if (e == null || e.forEach((n) => {
119
124
  var o;
120
- t.push(((o = fn("& > .operationCol .actionGroup", s.querySelector)) == null ? void 0 : o.clientWidth) || 0);
125
+ t.push(
126
+ ((o = ds("& > .operationCol .actionGroup", n.querySelector)) == null ? void 0 : o.clientWidth) || 0
127
+ );
121
128
  }), t.length)
122
129
  return Math.ceil(Math.max(...t));
123
- }, wt = () => {
124
- var o, l, w, m;
125
- let e = (o = P.current) == null ? void 0 : o.querySelector(".ant-table-content");
126
- e || (e = (l = P.current) == null ? void 0 : l.querySelector(".ant-table-body"));
127
- let t = 0, n = !1, s = 0;
128
- return e && (t = e.clientWidth - (ee ? 1 : 0), n = e.offsetWidth - e.clientWidth > 0, s = (m = (w = P.current) == null ? void 0 : w.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : m.offsetWidth), { hasScrollBar: n, scrollbarSize: s, tbodyWidth: t };
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
+ ));
138
+ let t = 0, s = !1, n = 0;
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 };
129
142
  }, Me = a(() => {
130
143
  const e = (g ?? []).length, t = e > (v.pc ?? 10) ? e >= 15 ? 15 : e : v.pc ?? 10;
131
- return Array.from({ length: t }).map((s, o) => ({
144
+ return Array.from({ length: t }).map((n, o) => ({
132
145
  key: `${Date.now()}${o}`
133
146
  }));
134
- }, [g]), se = a(() => Qe === "normal" ? u ? je.current : (je.current = g, g) : u ? Me : g ?? [], [u, g, Me]), { hasScrollBar: M, scrollbarSize: W, tbodyWidth: Q } = a(() => wt(), [se, c.fullscreen]), me = a(() => {
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(() => {
135
148
  if (typeof H > "u")
136
149
  return;
137
150
  let e = 40, t = 40;
138
- if (P.current) {
139
- const N = window.getComputedStyle(P.current);
140
- e = parseInt(N.getPropertyValue("--cell-height")), t = parseInt(N.getPropertyValue("--toolbar-height"));
151
+ if (R.current) {
152
+ const z = window.getComputedStyle(R.current);
153
+ e = parseInt(z.getPropertyValue("--cell-height")), t = parseInt(z.getPropertyValue("--toolbar-height"));
141
154
  }
142
- const n = 0, s = 0, o = Z ?? F, l = H >= o ? H : o;
143
- return (c.fullscreen ? window.innerHeight : l) - n - s - t - e;
155
+ const s = 0, n = 0, o = Z ?? F, l = H >= o ? H : o;
156
+ return (i.fullscreen ? window.innerHeight : l) - s - n - t - e;
144
157
  }, [
145
- c.fullscreen,
158
+ i.fullscreen,
146
159
  H,
147
160
  Z,
148
161
  F,
149
162
  // paginationRect?.height,
150
- se,
163
+ ne,
151
164
  // containerBodyRect?.height,
152
- c.tableSize
153
- ]), xt = () => {
165
+ i.tableSize
166
+ ]), wt = () => {
154
167
  let e = 0;
155
- if (P.current) {
156
- const n = window.getComputedStyle(P.current), s = parseInt(n.getPropertyValue("--toolCell-paddingInline"));
157
- e = parseInt(n.getPropertyValue("--fontSize")) + 4 + 2 * s;
168
+ if (R.current) {
169
+ const s = window.getComputedStyle(R.current), n = parseInt(
170
+ s.getPropertyValue("--toolCell-paddingInline")
171
+ );
172
+ e = parseInt(s.getPropertyValue("--fontSize")) + 4 + 2 * n;
158
173
  }
159
174
  let t = 0;
160
- return O && (t += e), B && (t += e), E && (t += e), t;
161
- }, [T, gt] = _([]), [U, Tt] = _(0);
162
- Ge(() => {
175
+ return V && (t += e), B && (t += e), G && (t += e), t;
176
+ }, [T, gt] = I([]), [U, Tt] = I(0);
177
+ Ye(() => {
163
178
  var m;
164
- const e = ae ?? [], t = (m = e.find((y) => y.isOperationCol)) == null ? void 0 : m.width, n = e.filter((y) => !Zt.includes(y)), o = vt(n, c.columnsMap).sort(At(c.columnsMap)), l = o.findIndex((y) => y.isOperationCol);
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);
165
180
  l >= 0 && (o[l].width = t);
166
- let w = 0;
167
- j || (w = xt()), gt(o), Tt(w);
168
- }, [c.columnsMap, ae]);
169
- const [C, jt] = _([]);
181
+ let x = 0;
182
+ j || (x = wt()), gt(o), Tt(x);
183
+ }, [i.columnsMap, ae]);
184
+ const [C, jt] = I([]);
170
185
  ye(() => {
171
- if (G) {
172
- const e = T.map((t, n) => {
173
- let s = t.width;
186
+ if (Y) {
187
+ const e = T.map((t, s) => {
188
+ let n = t.width;
174
189
  if (t != null && t.isOperationCol && (t != null && t.useMaxWidth)) {
175
190
  const l = Ct();
176
- l && (s = l + ct * 2);
191
+ l && (n = l + it * 2);
177
192
  }
178
193
  return {
179
- key: we(t, n),
180
- width: s ?? 0
194
+ key: xe(t, s),
195
+ width: n ?? 0
181
196
  };
182
197
  });
183
198
  jt(e);
184
199
  }
185
- }, [T, G]);
186
- const Re = p(!1), Pe = p(!1), re = a(() => {
200
+ }, [T, Y]);
201
+ const Pe = p(!1), Re = p(!1), re = a(() => {
187
202
  let e;
188
203
  if (typeof me == "number" && (e = me - 1), typeof (f == null ? void 0 : f.y) == "number" && (e = f.y - 2), f != null && f.auto)
189
204
  return {
@@ -191,7 +206,7 @@ function yn({
191
206
  y: e
192
207
  };
193
208
  let t = f == null ? void 0 : f.x;
194
- return A && C.length && (t = C.reduce((o, l) => o + l.width, 0) + U, Q && t < Q - (M ? W : 0) && (Re.current = !0, t = Q)), f != null && f.y ? { x: t, y: f.y } : { x: t, y: e };
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 };
195
210
  }, [
196
211
  f,
197
212
  me,
@@ -203,31 +218,36 @@ function yn({
203
218
  W
204
219
  ]);
205
220
  ye(() => {
206
- if (G && C.length) {
207
- const t = C.reduce((o, l) => o + l.width, 0) + U, s = Q - (M ? W : 0);
208
- if (t < s || Re.current && t > s && !Pe.current) {
209
- const o = /* @__PURE__ */ new Map(), l = T.findIndex((x) => x == null ? void 0 : x.isOperationCol);
210
- let w = "";
211
- l >= 0 && (w = we(T[l], l)), C.forEach((x) => o.set(x.key, x.width));
212
- let m = s - t, y = T.length;
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;
213
233
  if (l >= 0 && y--, m >= y) {
214
- const x = Math.floor(m / y);
234
+ const w = Math.floor(m / y);
215
235
  o.forEach((oe, le) => {
216
- o.set(le, oe + (w === le ? 0 : x));
217
- }), m = m - x * y;
236
+ o.set(le, oe + (x === le ? 0 : w));
237
+ }), m = m - w * y;
218
238
  }
219
- let N = 0;
220
- l === 0 && T.length > 1 && N++;
221
- const V = we(T[N]);
222
- o.set(V, o.get(V) + m);
223
- const R = { ...c.columnsMap };
224
- for (const x in R)
225
- R[x].show && (R[x].width = o.get(x));
226
- c.setColumnsMap(R);
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);
227
247
  }
228
248
  }
229
249
  }, [
230
- G,
250
+ Y,
231
251
  C,
232
252
  U,
233
253
  ee,
@@ -236,75 +256,90 @@ function yn({
236
256
  ]);
237
257
  const kt = a(() => {
238
258
  var e;
239
- if (c.fullscreen) {
240
- const t = document.body.clientHeight, n = (e = document.fullscreenElement) != null && e.classList.contains("bz-fullscreen") ? 50 : 0;
241
- return { y: t - 80 - n };
259
+ if (i.fullscreen) {
260
+ const t = document.body.clientHeight, s = (e = document.fullscreenElement) != null && e.classList.contains(
261
+ "bz-fullscreen"
262
+ ) ? 50 : 0;
263
+ return { y: t - 80 - s };
242
264
  }
243
265
  return {};
244
- }, [c.fullscreen]), K = a(() => {
266
+ }, [i.fullscreen]), K = a(() => {
245
267
  if (j)
246
268
  return T;
247
- const e = T.length - 1, t = T.map((n, s) => {
269
+ const e = T.length - 1, t = T.map((s, n) => {
248
270
  var o;
249
271
  return {
250
- ...n,
251
- ...typeof n.title == "string" && {
252
- title: r.jsx(Ce.Paragraph, { className: "bitzTableTitle", ellipsis: { rows: 2 }, children: n.title })
272
+ ...s,
273
+ ...typeof s.title == "string" && {
274
+ title: /* @__PURE__ */ r.jsx(
275
+ Ce.Paragraph,
276
+ {
277
+ className: "bitzTableTitle",
278
+ ellipsis: { rows: 2 },
279
+ children: s.title
280
+ }
281
+ )
253
282
  },
254
- ...e === s && {
255
- className: ie(n.className, "lastColumn")
283
+ ...e === n && {
284
+ className: ce(s.className, "lastColumn")
256
285
  },
257
- width: C.length ? (o = C[s]) == null ? void 0 : o.width : (n == null ? void 0 : n.width) || void 0,
286
+ width: C.length ? (o = C[n]) == null ? void 0 : o.width : (s == null ? void 0 : s.width) || void 0,
258
287
  ...re.x !== void 0 ? {
259
288
  onHeaderCell: (l) => {
260
- var w;
289
+ var x;
261
290
  return {
262
- ...(w = n.onHeaderCell) == null ? void 0 : w.call(n),
291
+ ...(x = s.onHeaderCell) == null ? void 0 : x.call(s),
263
292
  width: l.width,
264
293
  stretchref: Be,
265
- datagridref: $,
266
- onResize: Nt(s)
294
+ datagridref: q,
295
+ onResize: zt(n)
267
296
  };
268
297
  }
269
298
  } : {},
270
- ...!(n != null && n.render) && n.copyable ? {
271
- render: (l) => ["number", "bigint"].includes(typeof l) ? l : r.jsx(un, { value: l })
299
+ ...!(s != null && s.render) && s.copyable ? {
300
+ render: (l) => ["number", "bigint"].includes(typeof l) ? l : /* @__PURE__ */ r.jsx(as, { value: l })
272
301
  } : {}
273
302
  };
274
303
  });
275
- return sn(ae, t, E, !!O, !!B);
276
- }, [T, C]), Nt = (e) => (t, { size: n, minWidth: s }) => {
277
- const l = (n.width > s ? n.width : s) - C[e].width;
304
+ return ns(
305
+ ae,
306
+ t,
307
+ G,
308
+ !!V,
309
+ !!B
310
+ );
311
+ }, [T, C]), zt = (e) => (t, { size: s, minWidth: n }) => {
312
+ const l = (s.width > n ? s.width : n) - C[e].width;
278
313
  if (l === 0)
279
314
  return;
280
- const m = C.reduce((X, q) => X + q.width, 0) + l + U, N = Q - (M ? W : 0);
281
- let V = "", R = -1, x = 0;
282
- if (l < 0 && m < N) {
283
- R = e + 1;
284
- const X = T.length - 1, q = T[X];
285
- (e === X - 1 && (q != null && q.isOperationCol) || e === X && !(q != null && q.isOperationCol)) && (R = e - 1);
286
- let Ie = 0;
287
- re.x > N && (Ie = re.x - N), V = `${C[R].key}`, x = C[R].width - l - Ie;
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;
288
323
  }
289
324
  const oe = `${C[e].key}`, le = {
290
- ...c.columnsMap,
325
+ ...i.columnsMap,
291
326
  [oe]: {
292
- ...c.columnsMap[oe],
327
+ ...i.columnsMap[oe],
293
328
  width: C[e].width + l
294
329
  },
295
- ...V && R >= 0 && {
296
- [V]: {
297
- ...c.columnsMap[V],
298
- width: x
330
+ ..._ && P >= 0 && {
331
+ [_]: {
332
+ ...i.columnsMap[_],
333
+ width: w
299
334
  }
300
335
  }
301
336
  };
302
- c.setColumnsMap(le), Pe.current = !0, c.persistenceType === "online" && c.persistenceKey && c.startAutoSaveCountdown();
303
- }, He = a(() => rn(K), [K]), Y = a(() => u ? He : K, [u, K, He]), { table: be, locale: zt = nn } = Ee(mn), Wt = { ...zt.Table }, Bt = ((_e = be == null ? void 0 : be.expandable) == null ? void 0 : _e.expandIcon) || (B == null ? void 0 : B.expandIcon) || tn(Wt), Le = 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(() => {
304
339
  if (B)
305
340
  return {
306
341
  ...B,
307
- expandedRowRender: () => r.jsx(r.Fragment, {}),
342
+ expandedRowRender: () => /* @__PURE__ */ r.jsx(r.Fragment, {}),
308
343
  expandIcon: (e) => {
309
344
  const t = Bt(e);
310
345
  return {
@@ -320,146 +355,359 @@ function yn({
320
355
  };
321
356
  }
322
357
  };
323
- }, [B]), St = a(() => u ? Le : B, [u, B, Le]), De = a(() => {
324
- if (O)
358
+ }, [B]), St = a(() => u ? Le : B, [u, B, Le]), $e = a(() => {
359
+ if (V)
325
360
  return {
326
- ...O,
361
+ ...V,
327
362
  selectedRowKeys: [],
328
363
  getCheckboxProps: () => ({ disabled: !0 })
329
364
  };
330
- }, [O]), Mt = a(() => u ? De : O, [u, O, De]), $e = a(() => u ? "key" : i.rowKey, [u, i.rowKey]), Ke = a(() => `${ge ?? c.stylesConfig.size}BitzTable`, [ge, c.stylesConfig.size]), Rt = ce((e, t) => {
331
- var s;
332
- if (!i.onRow || u)
333
- return {};
334
- const n = (s = i.onRow) == null ? void 0 : s.call(i, e, t);
335
- return n.onClick && (n.className = "rowPointerCursor"), n;
336
- }, [i.onRow, u]), Pt = a(() => ie("bitzTableContainer", { hideBorder: ke }, { hasScrollBar: M }, { stickyTable: !!(i != null && i.sticky) }, Ke, i.className), [
337
- i.className,
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,
338
383
  Ke,
339
384
  M,
340
- c.fullscreen,
385
+ i.fullscreen,
341
386
  ke,
342
- i.sticky
387
+ c.sticky
343
388
  ]), Ht = a(() => ({
344
389
  "--container-bgColor": S.colorBgContainer
345
390
  }), [S.colorBgContainer]), Lt = a(() => {
346
391
  const e = Z ?? F;
347
392
  let t;
348
393
  H && (t = H >= e ? H : e);
349
- const n = c.fullscreen ? "100%" : t;
350
- let s;
351
- return (W ?? 0) > 0 && (s = W), on({
352
- height: n ?? "auto",
394
+ const s = i.fullscreen ? "100%" : t;
395
+ let n;
396
+ return (W ?? 0) > 0 && (n = W), os({
397
+ height: s ?? "auto",
353
398
  token: S,
354
- evenRowBgColor: c.zebra ? h == null ? void 0 : h.evenRowBgColor : S.colorBgContainer,
399
+ evenRowBgColor: i.zebra ? h == null ? void 0 : h.evenRowBgColor : S.colorBgContainer,
355
400
  table: h,
356
401
  gap: lt,
357
402
  borderColor: (h == null ? void 0 : h.borderColor) || S.colorBorderSecondary,
358
- scrollbarWidth: s,
359
- other: i.style
403
+ scrollbarWidth: n,
404
+ other: c.style
360
405
  });
361
406
  }, [
362
- i.style,
363
- c.fullscreen,
407
+ c.style,
408
+ i.fullscreen,
364
409
  H,
365
410
  Z,
366
411
  F,
367
412
  h,
368
- c == null ? void 0 : c.zebra,
413
+ i == null ? void 0 : i.zebra,
369
414
  W
370
- ]), Dt = ce((e, t, n) => {
371
- const s = t % 2 === 0 ? "oddRow" : "evenRow";
372
- if (i.rowClassName) {
373
- const o = i.rowClassName(e, t, n);
374
- return ie(s, 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
+ )
375
499
  }
376
- return s;
377
- }, [i.rowClassName]), qe = a(() => r.jsx(Jt, { finished: Ne, onLoad: async () => (
378
- // @ts-ignore
379
- !u && (I == null ? void 0 : I((z == null ? void 0 : z.page) + 1, z == null ? void 0 : z.size))
380
- ), loadingText: "加载中...", finishedText: "没有更多了", errorText: "加载失败", children: r.jsxs("div", { className: "mobileList", style: { backgroundColor: h == null ? void 0 : h.mobileListBgColor }, children: [k == null ? void 0 : k.map((e, t) => r.jsx("div", { className: "listItem", style: { backgroundColor: h == null ? void 0 : h.listItemBgColor }, onClick: () => ht(e, t), children: K == null ? void 0 : K.map((n, s) => {
381
- var o;
382
- return !(n != null && n.mobileHide) && r.jsxs("div", { className: "row", style: { color: S.colorText }, children: [!n.mobileHideLabel && r.jsxs("div", { className: "label", children: [`${n.title}`, ":"] }), r.jsx("div", { className: "value", children: ((o = n == null ? void 0 : n.render) == null ? void 0 : o.call(n, bn(e, (n == null ? void 0 : n.dataIndex) || ""), e, t)) || (e == null ? void 0 : e[n.dataIndex]) })] }, s);
383
- }) }, t)), Array.from({ length: v.mobile ?? 2 }).map((e, t) => r.jsx("div", { className: "listItem", style: {
384
- display: u ? "block" : "none",
385
- backgroundColor: h == null ? void 0 : h.listItemBgColor
386
- }, children: r.jsx("div", { className: "row", children: ue ? ue() : r.jsx(Ot, { title: !1, paragraph: {
387
- rows: Xe,
388
- width: Ze
389
- }, active: !0 }) }) }, `${Date.now()}${t}`))] }) }), [
390
- j ? Ne : 0,
500
+ ), [
501
+ j ? ze : 0,
391
502
  j ? u : 0,
392
- j ? z : 0,
503
+ j ? N : 0,
393
504
  j ? h : 0,
394
505
  j ? k : 0,
395
506
  j ? K : 0,
396
507
  j ? v : 0,
397
508
  j ? ue : 0
398
509
  ]);
399
- Ge(() => {
400
- c.setSelected(!!(b != null && b.num));
510
+ Ye(() => {
511
+ i.setSelected(!!(b != null && b.num));
401
512
  }, [b]);
402
- const pe = a(() => r.jsxs("div", { className: "alert", children: [r.jsx(Ye, { highlightTag: "strong", keywords: `${L}`, sourceString: `共 ${L} 条`, tagClass: "totalText" }), !!b && r.jsxs(r.Fragment, { children: [r.jsx(Ce.Text, { className: "splitBorder", children: "/" }), r.jsx(Ye, { highlightTag: "strong", keywords: `${(b == null ? void 0 : b.num) ?? 0}`, sourceString: `已选中 ${(b == null ? void 0 : b.num) ?? 0} 条` }), !!(b != null && b.num) && r.jsx(Ce.Link, { className: "cleanSelected", onClick: b == null ? void 0 : b.onClear, children: "取消选中" })] })] }), [L, b]), $t = (e) => {
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) => {
403
543
  u || fe == null || fe(e);
404
- }, Oe = ce(() => E ? {
405
- row: (e) => ln({ ...e, loading: u == null ? void 0 : u.toString() })
406
- } : {}, [E, E ? u : !1]), Ve = ce((e) => {
407
- var s, o;
408
- if (G)
409
- return an({ ...e, hasScrollBar: M, scrollbarSize: W });
410
- const t = { ...e };
411
- return ((s = t.className) == null ? void 0 : s.includes("ant-table-cell-fix-right")) && !M && ((o = t.style) != null && o.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (W || 0)), r.jsx("th", { ...t });
412
- }, [M, W, G]), Kt = a(() => i != null && i.virtual ? {} : Te ? { cell: hn } : {}, [Te, i == null ? void 0 : i.virtual]), qt = a(() => ({
413
- ...D,
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
+ ...$,
414
559
  header: {
415
- ...D == null ? void 0 : D.header,
416
- cell: Ve
560
+ ...$ == null ? void 0 : $.header,
561
+ cell: _e
417
562
  },
418
563
  body: {
419
564
  ...Kt,
420
- ...D == null ? void 0 : D.body,
421
- ...Oe()
565
+ ...$ == null ? void 0 : $.body,
566
+ ...Ve()
422
567
  }
423
- }), [D, Ve, Oe]), pt = a(() => {
568
+ }), [$, _e, Ve]), pt = a(() => {
424
569
  var e;
425
- if ((Y == null ? void 0 : Y.length) > 5 && ($ != null && $.current)) {
426
- const t = Y.reduce((s, o) => (o.fixed && (s += o.width), s), 0), n = (e = $ == null ? void 0 : $.current) == null ? void 0 : e.clientWidth;
427
- return t > n - 300;
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;
575
+ return t > s - 300;
428
576
  }
429
577
  return !1;
430
- }, [Y]);
431
- return r.jsxs("div", { className: ie("bitzTableBlock", {
432
- fullscreen: c.fullscreen
433
- }), style: Ht, ...Ue, children: [!j && r.jsxs("div", { ref: P, className: Pt, style: Lt, children: [r.jsxs("div", { className: "bitzTableContainerBody", ref: $, children: [tt && r.jsxs("div", { className: "bitzTableToolbarBlock", children: [nt || r.jsx("div", {}), st, rt] }), r.jsx("div", { className: "stretchLine", ref: Be, style: {
434
- background: S.colorPrimary,
435
- bottom: 0
436
- } }), r.jsxs(cn, { enabledRowDragSort: E, dataSource: se, mergeRowKey: $e, onDragEnd: $t, children: [pt && r.jsx(Vt, { closable: !0, type: "error", message: "表格固定列的宽度超过表格宽度,影响表格显示效果;请重新拖拽列宽度或点击表格设置调整固定列配置。" }), r.jsx(_t, {
437
- ...i,
438
- bordered: ee,
439
- columns: Y,
440
- dataSource: se,
441
- loading: !1,
442
- pagination: !1,
443
- scroll: { ...re, ...kt },
444
- expandable: St,
445
- rowSelection: Mt,
446
- // style={tableStyle}
447
- onRow: Rt,
448
- rowHoverable: it,
449
- rowClassName: Dt,
450
- className: "bitzTable",
451
- components: qt,
452
- rowKey: $e,
453
- onChange: bt,
454
- ref: he
455
- })] })] }), J && !!L && r.jsxs("div", { className: "bitzTablePagination", ref: Se, children: [pe, r.jsx(Gt, { size: "small", enableControl: ve, pagination: z, total: L, dataSource: g, resetPage: ot, hideTotalText: !0, paginationEmit: yt })] }), !J && !!b && !!L && r.jsx("div", { className: "bitzTablePagination", ref: Se, children: pe })] }), j && r.jsxs(r.Fragment, { children: [(u || !!(g != null && g.length)) && r.jsx(r.Fragment, { children: xe ? (
456
- // @ts-ignore
457
- r.jsx(Qt, { onRefresh: async () => !u && xe(), children: qe })
458
- ) : qe }), !u && r.jsx(Yt, { data: g, title: Fe, img: et }), r.jsx(Et, { className: "tableMobileDrawer", open: at, placement: "bottom", height: "auto", closable: !1, onClose: We, children: r.jsxs("div", { className: "drawerBox", children: [r.jsx("div", { className: "boxBody", children: ft ? r.jsx("div", { className: "operaList", children: r.jsx(It, {}) }) : ne.map((e, t) => r.jsx("div", { className: "operaList", onClick: () => mt(e, t), ...e.danger && {
459
- style: { color: S.colorError }
460
- }, children: e.label }, t)) }), r.jsx("div", { className: "boxLine" }), r.jsx("div", { className: "boxFooter", onClick: We, children: Ae })] }) })] })] });
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
+ );
461
709
  }
462
- const Un = (J) => r.jsx(Ut, { initValue: J, children: r.jsx(yn, { ...J }) });
710
+ const Qs = (J) => /* @__PURE__ */ r.jsx(Ut, { initValue: J, children: /* @__PURE__ */ r.jsx(bs, { ...J }) });
463
711
  export {
464
- Un as default
712
+ Qs as default
465
713
  };