bitz-react-admin-ui 2.5.7 → 2.5.9

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