bitz-react-admin-ui 2.5.4 → 2.5.5

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