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