bitz-react-admin-ui 2.2.6 → 2.2.8

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 (210) hide show
  1. package/dist/_virtual/Draggable.mjs +4 -0
  2. package/dist/_virtual/DraggableCore.mjs +4 -0
  3. package/dist/_virtual/Resizable.mjs +4 -0
  4. package/dist/_virtual/ResizableBox.mjs +4 -0
  5. package/dist/_virtual/_commonjsHelpers.mjs +26 -4
  6. package/dist/_virtual/cjs.mjs +4 -0
  7. package/dist/_virtual/clsx.m.mjs +6 -0
  8. package/dist/_virtual/domFns.mjs +4 -0
  9. package/dist/_virtual/getPrefix.mjs +4 -0
  10. package/dist/_virtual/index6.mjs +4 -0
  11. package/dist/_virtual/log.mjs +4 -0
  12. package/dist/_virtual/positionFns.mjs +4 -0
  13. package/dist/_virtual/propTypes.mjs +4 -0
  14. package/dist/_virtual/shims.mjs +4 -0
  15. package/dist/_virtual/utils.mjs +4 -0
  16. package/dist/assets/iconfont/IconChenggong.mjs +4 -10
  17. package/dist/assets/iconfont/IconClose.mjs +1 -7
  18. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
  19. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
  20. package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
  21. package/dist/assets/iconfont/IconCuowu.mjs +2 -8
  22. package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
  23. package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
  24. package/dist/assets/iconfont/IconFabu.mjs +3 -18
  25. package/dist/assets/iconfont/IconFanhui.mjs +5 -11
  26. package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
  27. package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
  28. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
  29. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
  30. package/dist/assets/iconfont/IconIcon21.mjs +2 -8
  31. package/dist/assets/iconfont/IconJincoude.mjs +3 -9
  32. package/dist/assets/iconfont/IconJinggao.mjs +2 -8
  33. package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
  34. package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
  35. package/dist/assets/iconfont/IconMore.mjs +4 -26
  36. package/dist/assets/iconfont/IconShanchu.mjs +5 -11
  37. package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
  38. package/dist/assets/iconfont/IconSousuo.mjs +4 -10
  39. package/dist/assets/iconfont/IconTejincou.mjs +1 -7
  40. package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
  41. package/dist/assets/iconfont/IconTishi1.mjs +6 -12
  42. package/dist/assets/iconfont/IconTuodong.mjs +6 -12
  43. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
  44. package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
  45. package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
  46. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
  47. package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
  48. package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
  49. package/dist/assets/iconfont/index.mjs +33 -33
  50. package/dist/components/BitzAddTag/index.mjs +8 -41
  51. package/dist/components/BitzAddressBook/index.mjs +35 -122
  52. package/dist/components/BitzAppPage/index.mjs +4 -18
  53. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  54. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  55. package/dist/components/BitzButton/index.mjs +9 -23
  56. package/dist/components/BitzCalendar/index.mjs +19 -52
  57. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  58. package/dist/components/BitzCascader/index.mjs +2 -6
  59. package/dist/components/BitzCollapse/index.mjs +4 -4
  60. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  61. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  62. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  63. package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
  64. package/dist/components/BitzConvert/index.mjs +1 -1
  65. package/dist/components/BitzDescriptions/index.mjs +1 -11
  66. package/dist/components/BitzDrawer/index.mjs +2 -17
  67. package/dist/components/BitzEmpty/index.mjs +2 -6
  68. package/dist/components/BitzException/index.mjs +1 -6
  69. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  70. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  71. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  72. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  73. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  74. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  75. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  76. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +19 -51
  77. package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
  78. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
  79. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  80. package/dist/components/BitzFullScreen/index.mjs +6 -9
  81. package/dist/components/BitzHighlight/Child.mjs +9 -23
  82. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  83. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  84. package/dist/components/BitzHighlight/style.mjs +1 -4
  85. package/dist/components/BitzImage/index.mjs +1 -1
  86. package/dist/components/BitzImage/previewImage.mjs +5 -12
  87. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  88. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  89. package/dist/components/BitzList/List.mjs +3 -17
  90. package/dist/components/BitzList/LoadMore.mjs +20 -29
  91. package/dist/components/BitzLoadMore/index.mjs +14 -34
  92. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  93. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  94. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  95. package/dist/components/BitzModal/index.mjs +11 -24
  96. package/dist/components/BitzNoData/index.mjs +1 -4
  97. package/dist/components/BitzNoMore/index.mjs +1 -1
  98. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  99. package/dist/components/BitzPageContainer/index.mjs +46 -107
  100. package/dist/components/BitzPageHeader/index.mjs +21 -89
  101. package/dist/components/BitzPagination/index.mjs +22 -71
  102. package/dist/components/BitzPopover/index.mjs +4 -4
  103. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  104. package/dist/components/BitzQRCode/index.mjs +1 -6
  105. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  106. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  107. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  108. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  109. package/dist/components/BitzRefresh/index.mjs +1 -5
  110. package/dist/components/BitzRemark/index.mjs +4 -4
  111. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  112. package/dist/components/BitzSearch/index.mjs +1 -1
  113. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  114. package/dist/components/BitzSelect/index.mjs +1 -1
  115. package/dist/components/BitzSkeleton/index.mjs +1 -31
  116. package/dist/components/BitzSwitch/index.mjs +2 -7
  117. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  118. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  119. package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +21 -9
  120. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
  121. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  122. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  123. package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
  124. package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
  125. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  126. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  127. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  128. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  129. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +2 -8
  130. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  131. package/dist/components/BitzTable/Store/index.d.ts +5 -1
  132. package/dist/components/BitzTable/Store/index.mjs +189 -199
  133. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
  134. package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
  135. package/dist/components/BitzTable/SubTable/index.mjs +76 -119
  136. package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
  137. package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
  138. package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
  139. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  140. package/dist/components/BitzTable/Table/index.d.ts +1 -1
  141. package/dist/components/BitzTable/Table/index.mjs +257 -446
  142. package/dist/components/BitzTable/Table/style.mjs +1 -11
  143. package/dist/components/BitzTable/Table/utils.d.ts +2 -2
  144. package/dist/components/BitzTable/Table/utils.mjs +30 -31
  145. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
  146. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
  147. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  148. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +147 -255
  149. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
  150. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  151. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
  152. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  153. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
  154. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
  155. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
  156. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
  157. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  158. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +12 -49
  159. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
  160. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  161. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
  162. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  163. package/dist/components/BitzTable/index.d.ts +3 -2
  164. package/dist/components/BitzTable/index.mjs +17 -15
  165. package/dist/components/BitzTableOperations/index.mjs +3 -13
  166. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  167. package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
  168. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
  169. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
  170. package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
  171. package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
  172. package/dist/components/BitzTableSelect/index.mjs +13 -61
  173. package/dist/components/BitzTag/index.mjs +1 -1
  174. package/dist/components/BitzTheme/index.mjs +6 -6
  175. package/dist/components/BitzTimeline/index.mjs +1 -11
  176. package/dist/components/BitzTimer/Form.mjs +11 -32
  177. package/dist/components/BitzTimer/Timer.mjs +38 -76
  178. package/dist/components/BitzTimer/index.mjs +43 -66
  179. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  180. package/dist/components/BitzToast/index.mjs +1 -1
  181. package/dist/components/BitzTree/index.mjs +1 -4
  182. package/dist/components/BitzUeEditor/index.mjs +5 -5
  183. package/dist/components/BitzUpload/index.mjs +43 -81
  184. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  185. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  186. package/dist/hooks/use-event-listener.mjs +2 -11
  187. package/dist/hooks/use-lock-fn.mjs +10 -13
  188. package/dist/hooks/use-scroll-parent.mjs +14 -16
  189. package/dist/hooks/useEvent.mjs +4 -7
  190. package/dist/hooks/useMergedState.mjs +11 -11
  191. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
  192. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
  193. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
  194. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
  195. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
  196. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
  197. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
  198. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
  199. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
  200. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
  201. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
  202. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
  203. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
  204. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
  205. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
  206. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  207. package/dist/style.css +1 -1
  208. package/dist/utils/WithFluent.mjs +12 -27
  209. package/dist/utils/create.mjs +1 -7
  210. package/package.json +1 -1
@@ -1,502 +1,313 @@
1
- import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as Ne, useRef as P, useState as K, useEffect as mr, useMemo as i, useCallback as re } from "react";
3
- import { isMobile as _ } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
- import { Table as se, Skeleton as br, Typography as Se } from "antd";
5
- import te from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
- import Cr from "../../BitzDrawer/index.mjs";
7
- import yr from "../../BitzPagination/index.mjs";
8
- import xr from "../../BitzNoData/index.mjs";
1
+ import { j as n } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as Se, useRef as K, useState as S, useEffect as Me, useMemo as l, useCallback as oe } from "react";
3
+ import { isMobile as V } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
+ import { Skeleton as wt, Typography as Le, Table as Bt } from "antd";
5
+ import E from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
+ import jt from "../../BitzDrawer/index.mjs";
7
+ import zt from "../../BitzPagination/index.mjs";
8
+ import Tt from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
- import gr from "../../BitzList/List.mjs";
10
+ import pt from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
- import wr from "../../BitzPullRefresh/PullRefresh.mjs";
13
- import Br, { BitzTableContext as jr } from "../Store/index.mjs";
14
- import { loopFilter as zr, columnSort as Nr } from "../Store/utils/index.mjs";
15
- import oe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
16
- import Sr from "../ActionCol/style.mjs";
17
- import Tr from "../../BitzTheme/index.mjs";
18
- import Te from "../../BitzHighlight/index.mjs";
19
- import kr from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
12
+ import Wt from "../../BitzPullRefresh/PullRefresh.mjs";
13
+ import Nt, { BitzTableContext as kt, toolCols as St } from "../Store/index.mjs";
14
+ import { loopFilter as Mt, columnSort as Lt } from "../Store/utils/index.mjs";
15
+ import ne from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
16
+ import Rt from "../ActionCol/style.mjs";
17
+ import Ht from "../../BitzTheme/index.mjs";
18
+ import Re from "../../BitzHighlight/index.mjs";
19
+ import Pt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
20
20
  import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
21
- import pr from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
22
- import { getColumnsWithTool as Wr, loopBuildSkeleton as Mr } from "./utils.mjs";
23
- import { getCssVar as Lr } from "./style.mjs";
24
- import Pr from "./SortableRow.mjs";
25
- import Hr from "./SortTableContext.mjs";
21
+ import Dt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
22
+ import { getColumnsWithTool as $t, loopBuildSkeleton as vt } from "./utils.mjs";
23
+ import { getCssVar as Ft } from "./style.mjs";
24
+ import Ot from "./SortableRow.mjs";
25
+ import Kt from "./SortTableContext.mjs";
26
+ import Vt from "./ResizableTitle.mjs";
26
27
  import "./index.less.mjs";
27
- import { ConfigContext as Rr } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
28
- import $r from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
29
- const ke = [se.SELECTION_COLUMN, se.EXPAND_COLUMN];
30
- function Dr({
31
- showPagination: p = !0,
32
- height: W,
33
- dataSource: b,
34
- total: B = 0,
35
- columns: N,
36
- loading: l,
28
+ import { ConfigContext as Et } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
29
+ import qt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
30
+ function _t({
31
+ showPagination: H = !0,
32
+ height: P,
33
+ dataSource: m,
34
+ total: z = 0,
35
+ columns: D,
36
+ loading: i,
37
37
  skeletonNum: q = {
38
38
  pc: 10,
39
39
  mobile: 10
40
40
  },
41
- skeletonRender: ne,
42
- skeletonRowNum: pe = 4,
43
- skeletonRowsWidth: We = ["35%", "100%", "100%", "60%"],
41
+ skeletonRender: se,
42
+ skeletonRowNum: He = 4,
43
+ skeletonRowsWidth: Pe = ["35%", "100%", "100%", "60%"],
44
44
  // mobileLoadEmit,
45
- mobileRefreshEmit: le,
46
- operationFilter: F,
47
- enableControlPage: Me,
48
- pagination: y,
49
- paginationEmit: H = () => {
45
+ mobileRefreshEmit: ie,
46
+ operationFilter: _,
47
+ enableControlPage: De,
48
+ pagination: C,
49
+ paginationEmit: v = () => {
50
50
  },
51
- enabledRowDragSort: R,
51
+ enabledRowDragSort: M,
52
52
  onRowDragEnd: G,
53
- mobilePageHeight: Or = 500,
54
- mobileCancelText: Le = "取消",
55
- noDataTitle: Pe,
56
- noDataImg: He,
57
- color: Vr,
58
- size: ie,
59
- showTableTool: Re = !0,
60
- tableAction: $e,
61
- tableToolbar: De,
62
- selectionBar: Oe,
53
+ mobilePageHeight: Gt = 500,
54
+ mobileCancelText: $e = "取消",
55
+ noDataTitle: ve,
56
+ noDataImg: Fe,
57
+ color: Jt,
58
+ size: le,
59
+ showTableTool: Oe = !0,
60
+ tableAction: Ke,
61
+ tableToolbar: Ve,
62
+ selectionBar: Ee,
63
63
  scroll: a,
64
- components: j,
64
+ components: T,
65
65
  expandable: x,
66
- rowSelection: S,
67
- selelctionAlert: d,
68
- resetPage: Ve,
69
- ...h
66
+ rowSelection: W,
67
+ selectionAlert: u,
68
+ resetPage: qe,
69
+ ...f
70
70
  }) {
71
- var ze;
72
- const { token: g } = Tr.useToken(), { Table: c } = g, { tableSpaceBetweenPage: ce = 10 } = c, { gap: Ke } = Sr(), { showColumnBorder: _e, hideRowBorder: ae, rowHoverable: qe, ...u } = Ne(jr), $ = P(void 0), E = P(0), [U, Fe] = K(0), [Ge, v] = K(!1), [C, Ee] = K([]);
73
- mr(() => {
74
- let e = [...b ?? []];
75
- (y == null ? void 0 : y.page) !== 1 && (e = [...C, ...e]), Ee(e);
76
- }, [b]);
77
- const Ue = i(() => !!(C != null && C.length) && (C == null ? void 0 : C.length) >= B, [C, B]), [ve, Ie] = K([]), Xe = (e, r) => {
78
- var n;
79
- const o = (n = F == null ? void 0 : F(e, r)) == null ? void 0 : n.filter(
80
- (t) => t.type !== "divider"
81
- );
82
- o != null && o.length && (Ie(o), v(!0));
71
+ var Ne;
72
+ const { token: y } = Ht.useToken(), { Table: c } = y, { tableSpaceBetweenPage: ae = 10 } = c, { gap: _e } = Rt(), { showColumnBorder: Ge, hideRowBorder: ce, rowHoverable: Je, ...h } = Se(kt), w = K(void 0), [J, Qe] = S(0), [Q, Ue] = S(0), [U, Xe] = S(0), [Ye, X] = S(!1), [b, Ze] = S([]);
73
+ Me(() => {
74
+ let e = [...m ?? []];
75
+ (C == null ? void 0 : C.page) !== 1 && (e = [...b, ...e]), Ze(e);
76
+ }, [m]);
77
+ const Ie = l(() => !!(b != null && b.length) && (b == null ? void 0 : b.length) >= z, [b, z]), [Ae, et] = S([]), tt = (e, t) => {
78
+ var o;
79
+ const r = (o = _ == null ? void 0 : _(e, t)) == null ? void 0 : o.filter((s) => s.type !== "divider");
80
+ r != null && r.length && (et(r), X(!0));
83
81
  }, de = () => {
84
- v(!1);
85
- }, Je = (e) => {
82
+ X(!1);
83
+ }, rt = (e) => {
84
+ var t;
85
+ X(!1), (t = e.onClick) == null || t.call(e);
86
+ }, B = K(null), Y = ne(B), he = K(null), Z = ne(he), I = K(null), L = ne(I), ot = () => {
86
87
  var r;
87
- v(!1), (r = e.onClick) == null || r.call(e);
88
- }, w = P(null), I = oe(w), he = P(null), X = oe(he), J = P(null), k = oe(J), Qe = () => {
89
- var o;
90
- const e = (o = w.current) == null ? void 0 : o.querySelectorAll(
91
- "& > .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)"
92
- ), r = [];
93
- if (e == null || e.forEach((n) => {
94
- var t;
95
- r.push(
96
- ((t = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : t.clientWidth) || 0
97
- );
98
- }), r.length)
99
- return Math.ceil(Math.max(...r)) + Ke * 2;
88
+ const e = (r = B.current) == null ? void 0 : r.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 = [];
89
+ if (e == null || e.forEach((o) => {
90
+ var s;
91
+ t.push(((s = o.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : s.clientWidth) || 0);
92
+ }), t.length)
93
+ return Math.ceil(Math.max(...t)) + _e * 2;
100
94
  }, ue = () => {
101
- var m, f, L;
102
- const e = (m = w.current) == null ? void 0 : m.querySelector(
103
- ".ant-table-body"
104
- ), r = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - r > 0, t = (L = (f = w.current) == null ? void 0 : f.querySelector(
105
- ".ant-table-cell-scrollbar"
106
- )) == null ? void 0 : L.offsetWidth;
107
- return { tbodyWidth: r, hasScrollBar: n, scrollbarSize: t };
108
- }, { y: Q, tbodyWidth: Y, hasScrollBar: D, scrollbarSize: M } = i(() => {
109
- const { tbodyWidth: e, hasScrollBar: r, scrollbarSize: o } = ue();
110
- if (typeof W > "u")
95
+ var d, g, O;
96
+ const e = (d = B.current) == null ? void 0 : d.querySelector(".ant-table-body"), t = e == null ? void 0 : e.clientWidth, o = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, s = (O = (g = B.current) == null ? void 0 : g.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : O.offsetWidth;
97
+ return { tbodyWidth: t, hasScrollBar: o, scrollbarSize: s };
98
+ }, { y: A, tbodyWidth: R, hasScrollBar: F, scrollbarSize: $ } = l(() => {
99
+ const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
100
+ if (typeof P > "u")
111
101
  return {
112
102
  tbodyWidth: e,
113
- hasScrollBar: r,
114
- scrollbarSize: o
103
+ hasScrollBar: t,
104
+ scrollbarSize: r
115
105
  };
116
- let n = 40, t = 40;
117
- if (w.current) {
118
- const V = window.getComputedStyle(w.current);
119
- n = parseInt(V.getPropertyValue("--cell-height")), t = parseInt(V.getPropertyValue("--toolbar-height"));
106
+ let o = 40, s = 40;
107
+ if (B.current) {
108
+ const p = window.getComputedStyle(B.current);
109
+ o = parseInt(p.getPropertyValue("--cell-height")), s = parseInt(p.getPropertyValue("--toolbar-height"));
120
110
  }
121
- const m = (k == null ? void 0 : k.height) || 0, f = m ? ce : 0;
122
- return { y: (u.fullscreen ? window.innerHeight : W) - m - f - t - n, tbodyWidth: e, hasScrollBar: r, scrollbarSize: o };
111
+ const d = (L == null ? void 0 : L.height) || 0, g = d ? ae : 0;
112
+ return { y: (h.fullscreen ? window.innerHeight : P) - d - g - s - o, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
123
113
  }, [
124
- u.fullscreen,
125
- W,
126
- k == null ? void 0 : k.height,
127
- I == null ? void 0 : I.height,
128
- X == null ? void 0 : X.height
129
- ]), Ye = i(() => {
114
+ h.fullscreen,
115
+ P,
116
+ L == null ? void 0 : L.height,
117
+ Y == null ? void 0 : Y.height,
118
+ Z == null ? void 0 : Z.height
119
+ ]), ee = l(() => {
130
120
  let e = (a == null ? void 0 : a.x) ?? 1e3;
131
- return E.current && (e -= E.current), U && $.current && (e -= U * $.current), Y && (e = Math.max(e, Y)), a != null && a.x ? { x: e, y: a.y || Q } : a != null && a.y ? { x: e, y: a.y } : { x: e, y: Q };
132
- }, [a, Q, Y, U]), Ze = (e) => {
133
- const r = e.length, o = e.filter((z) => z.width), t = o.map((z) => z.width).reduce((z, ee) => z + ee, 0);
134
- let m = 0;
135
- if (w.current) {
136
- const z = window.getComputedStyle(w.current), ee = parseInt(
137
- z.getPropertyValue("--toolCell-paddingInline")
138
- );
139
- m = parseInt(z.getPropertyValue("--fontSize")) + 4 + 2 * ee;
121
+ return J && (e -= J), Q && w.current && (e -= Q * w.current), R && (a != null && a.x && e < R && (a == null ? void 0 : a.x) > R && Xe(R - e), e = Math.max(e, R)), a != null && a.x ? { x: e, y: a.y || A } : a != null && a.y ? { x: e, y: a.y } : { x: e, y: A };
122
+ }, [a, A, R, J, Q]), fe = () => {
123
+ let e = 0;
124
+ if (B.current) {
125
+ const r = window.getComputedStyle(B.current), o = parseInt(r.getPropertyValue("--toolCell-paddingInline"));
126
+ e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * o;
140
127
  }
141
- let f = 0;
142
- S && (f += m), x && (f += m);
143
- const { tbodyWidth: L } = ue(), A = Math.max((a == null ? void 0 : a.x) ?? 0, L ?? 0) - t - f, V = r - o.length;
144
- return A >= 0 ? A / V : void 0;
145
- }, O = i(() => {
146
- const r = (N ?? []).filter((f) => !ke.includes(f)), { filterColumns: o, width: n, autoWidthColLength: t } = zr(
147
- r,
148
- u.columnsMap
149
- ), m = o.sort(Nr(u.columnsMap));
150
- if (!_) {
151
- const f = Ze(r);
152
- $.current = Math.ceil(f ?? 0), E.current = Math.ceil(n), Fe(t);
128
+ let t = 0;
129
+ return W && (t += e), x && (t += e), M && (t += e), t;
130
+ }, nt = (e, t) => {
131
+ const r = e.length, o = e.filter((p) => p.width), d = o.map((p) => p.width).reduce((p, gt) => p + gt, 0), { tbodyWidth: g } = ue(), re = Math.max((a == null ? void 0 : a.x) ?? 0, g ?? 0) - d - t, ke = r - o.length;
132
+ return re >= 0 ? Math.floor(re / ke) : 0;
133
+ }, me = l(() => {
134
+ var e;
135
+ return ((e = (D ?? []).find((t) => t.isOperationCol)) == null ? void 0 : e.width) ?? 0;
136
+ }, [D]), j = l(() => {
137
+ const t = (D ?? []).filter((g) => !St.includes(g)), { filterColumns: r, hiddenTotalWidth: o, autoWidthColLength: s } = Mt(t, h.columnsMap), d = r.sort(Lt(h.columnsMap));
138
+ if (!V) {
139
+ const g = fe();
140
+ w.current = nt(t, g), Qe(o), Ue(s);
153
141
  }
154
- return m;
155
- }, [u.columnsMap]), T = i(() => {
156
- if (_)
157
- return O;
158
- const e = O.findIndex((t) => t == null ? void 0 : t.isOperationCol), r = (N ?? []).findIndex((t) => t == null ? void 0 : t.isOperationCol), o = O.slice();
159
- o.splice(e, 1, N == null ? void 0 : N[r]);
160
- const n = o.map((t) => ({
161
- ...t,
162
- ...t != null && t.isDragSortCol ? {
163
- onCell: (...m) => {
164
- var f;
165
- return {
166
- ...(f = t == null ? void 0 : t.onCell) == null ? void 0 : f.call(t, m),
167
- "data-column-name": "dragSortCell"
168
- };
169
- }
170
- } : {},
171
- ...t != null && t.width ? {
172
- width: t != null && t.useMaxWidth ? Qe() ?? t.width : t.width
173
- } : {
174
- // 给未设置width的列设置平均数
175
- width: $
176
- }
177
- }));
178
- return Wr(N, n, !!S, x);
179
- }, [N, O]), fe = i(() => Mr(T, ke), [T]), Ae = i(() => l ? fe : T, [l, T, fe]), me = i(() => {
180
- const e = (b ?? []).length, r = e > (q.pc ?? 10) ? e >= 20 ? 20 : e : q.pc ?? 10;
181
- return Array.from({ length: r }).map((n, t) => ({
182
- key: `${Date.now()}${t}`
142
+ return d;
143
+ }, [h.columnsMap, me]), be = l(() => fe(), [h.columnsMap, me]), [N, Ce] = S([]);
144
+ Me(() => {
145
+ let e = 0;
146
+ if (U) {
147
+ const o = j == null ? void 0 : j.filter((s) => !s.width && !(s != null && s.isOperationCol)).length;
148
+ e = Math.floor(U / o);
149
+ }
150
+ let t = 0;
151
+ const r = j.map((o, s) => {
152
+ let d = o.width;
153
+ return o != null && o.useMaxWidth && (o != null && o.isOperationCol) && (d = ot() ?? o.width), d || (d = ((w == null ? void 0 : w.current) || 0) + e), t += d, d;
154
+ });
155
+ if (t < ee.x - be) {
156
+ const o = ee.x - be - t;
157
+ r[0] = r[0] + o;
158
+ }
159
+ Ce(r);
160
+ }, [j, U]);
161
+ const k = l(() => {
162
+ if (V)
163
+ return j;
164
+ const e = j.map((t, r) => {
165
+ var o;
166
+ return {
167
+ ...t,
168
+ ...((o = j[r + 1]) == null ? void 0 : o.isOperationCol) && {
169
+ className: E(t.className, "disabledResize")
170
+ },
171
+ width: N.length ? N[r] : (w == null ? void 0 : w.current) ?? void 0,
172
+ onHeaderCell: (s) => ({
173
+ width: s.width,
174
+ onResize: st(r)
175
+ })
176
+ };
177
+ });
178
+ return $t(D, e, M, !!W, !!x);
179
+ }, [D, j, N]), st = (e) => (t, { size: r }) => {
180
+ const o = [...N], s = e + 1, d = r.width - N[e];
181
+ o[e] = N[e] + d, o[s] = N[s] - d, o[e] > 48 && o[s] > 48 && Ce(o);
182
+ }, xe = l(() => vt(k), [k]), it = l(() => i ? xe : k, [i, k, xe]), ye = l(() => {
183
+ const e = (m ?? []).length, t = e > (q.pc ?? 10) ? e >= 20 ? 20 : e : q.pc ?? 10;
184
+ return Array.from({ length: t }).map((o, s) => ({
185
+ key: `${Date.now()}${s}`
183
186
  }));
184
- }, [b]), be = i(() => l ? me : b ?? [], [l, b, me]), { table: Z, locale: er = pr } = Ne(Rr), rr = { ...er.Table }, tr = ((ze = Z == null ? void 0 : Z.expandable) == null ? void 0 : ze.expandIcon) || (x == null ? void 0 : x.expandIcon) || kr(rr), Ce = i(() => {
187
+ }, [m]), ge = l(() => i ? ye : m ?? [], [i, m, ye]), { table: te, locale: lt = Dt } = Se(Et), at = { ...lt.Table }, ct = ((Ne = te == null ? void 0 : te.expandable) == null ? void 0 : Ne.expandIcon) || (x == null ? void 0 : x.expandIcon) || Pt(at), we = l(() => {
185
188
  if (x)
186
189
  return {
187
190
  ...x,
188
- expandedRowRender: () => /* @__PURE__ */ s.jsx(s.Fragment, {}),
191
+ expandedRowRender: () => n.jsx(n.Fragment, {}),
189
192
  expandIcon: (e) => {
190
- const r = tr(e);
193
+ const t = ct(e);
191
194
  return {
192
- ...r,
195
+ ...t,
193
196
  props: {
194
- ...r.props,
197
+ ...t.props,
195
198
  disabled: !0,
196
199
  style: {
197
- ...r.props.style,
198
- backgroundColor: g.colorBgContainerDisabled
200
+ ...t.props.style,
201
+ backgroundColor: y.colorBgContainerDisabled
199
202
  }
200
203
  }
201
204
  };
202
205
  }
203
206
  };
204
- }, [x]), or = i(() => l ? Ce : x, [l, x, Ce]), ye = i(() => {
205
- if (S)
207
+ }, [x]), dt = l(() => i ? we : x, [i, x, we]), Be = l(() => {
208
+ if (W)
206
209
  return {
207
- ...S,
210
+ ...W,
208
211
  selectedRowKeys: [],
209
212
  getCheckboxProps: () => ({ disabled: !0 })
210
213
  };
211
- }, [S]), sr = i(() => l ? ye : S, [l, S, ye]), xe = i(() => l ? "key" : h.rowKey, [l, h.rowKey]), ge = i(() => `${ie ?? u.stylesConfig.size}BitzTable`, [ie, u.stylesConfig.size]), nr = re(
212
- (e, r) => {
213
- var n;
214
- if (!h.onRow || l)
215
- return {};
216
- const o = (n = h.onRow) == null ? void 0 : n.call(h, e, r);
217
- return o.onClick && (o.className = "rowPointerCursor"), o;
218
- },
219
- [h.onRow, l]
220
- ), lr = i(() => te(
221
- "bitzTableContainer",
222
- { hideBorder: ae },
223
- { hasScrollBar: D },
224
- ge,
225
- h.className
226
- ), [
227
- h.className,
228
- ge,
229
- D,
230
- u.fullscreen,
231
- ae
232
- ]), ir = i(() => ({
233
- "--container-bgColor": g.colorBgContainer
234
- }), [g.colorBgContainer]), cr = i(() => {
235
- const e = u.fullscreen ? "100%" : W;
236
- let r;
237
- return (M ?? 0) > 0 && (r = M), Lr({
214
+ }, [W]), ht = l(() => i ? Be : W, [i, W, Be]), je = l(() => i ? "key" : f.rowKey, [i, f.rowKey]), ze = l(() => `${le ?? h.stylesConfig.size}BitzTable`, [le, h.stylesConfig.size]), ut = oe((e, t) => {
215
+ var o;
216
+ if (!f.onRow || i)
217
+ return {};
218
+ const r = (o = f.onRow) == null ? void 0 : o.call(f, e, t);
219
+ return r.onClick && (r.className = "rowPointerCursor"), r;
220
+ }, [f.onRow, i]), ft = l(() => E("bitzTableContainer", { hideBorder: ce }, { hasScrollBar: F }, ze, f.className), [
221
+ f.className,
222
+ ze,
223
+ F,
224
+ h.fullscreen,
225
+ ce
226
+ ]), mt = l(() => ({
227
+ "--container-bgColor": y.colorBgContainer
228
+ }), [y.colorBgContainer]), bt = l(() => {
229
+ const e = h.fullscreen ? "100%" : P;
230
+ let t;
231
+ return ($ ?? 0) > 0 && (t = $), Ft({
238
232
  height: e,
239
- fontFamily: g.fontFamily,
240
- evenRowBgColor: u.zebra ? c == null ? void 0 : c.evenRowBgColor : g.colorBgContainer,
241
- colorBgContainer: g.colorBgContainer,
233
+ fontFamily: y.fontFamily,
234
+ evenRowBgColor: h.zebra ? c == null ? void 0 : c.evenRowBgColor : y.colorBgContainer,
235
+ colorBgContainer: y.colorBgContainer,
242
236
  table: c,
243
- gap: ce,
244
- borderColor: (c == null ? void 0 : c.borderColor) || g.colorBorderSecondary,
245
- scrollbarWidth: r,
246
- other: h.style
237
+ gap: ae,
238
+ borderColor: (c == null ? void 0 : c.borderColor) || y.colorBorderSecondary,
239
+ scrollbarWidth: t,
240
+ other: f.style
247
241
  });
248
242
  }, [
249
- h.style,
250
- u.fullscreen,
251
- W,
243
+ f.style,
244
+ h.fullscreen,
245
+ P,
252
246
  c,
253
- u == null ? void 0 : u.zebra,
254
- M
255
- ]), ar = re(
256
- (e, r, o) => {
257
- const n = r % 2 === 0 ? "oddRow" : "evenRow";
258
- if (h.rowClassName) {
259
- const t = h.rowClassName(e, r, o);
260
- return te(n, t);
261
- }
262
- return n;
263
- },
264
- [h.rowClassName]
265
- ), we = /* @__PURE__ */ s.jsx(
266
- gr,
267
- {
268
- finished: Ue,
269
- onLoad: async () => (
270
- // @ts-ignore
271
- !l && (H == null ? void 0 : H((y == null ? void 0 : y.page) + 1, y == null ? void 0 : y.size))
272
- ),
273
- loadingText: "加载中...",
274
- finishedText: "没有更多了",
275
- errorText: "加载失败",
276
- children: /* @__PURE__ */ s.jsxs(
277
- "div",
278
- {
279
- className: "mobileList",
280
- style: { backgroundColor: c == null ? void 0 : c.mobileListBgColor },
281
- children: [
282
- C == null ? void 0 : C.map((e, r) => /* @__PURE__ */ s.jsx(
283
- "div",
284
- {
285
- className: "listItem",
286
- style: { backgroundColor: c == null ? void 0 : c.listItemBgColor },
287
- onClick: () => Xe(e, r),
288
- children: T == null ? void 0 : T.map((o, n) => {
289
- var t;
290
- return !(o != null && o.mobileHide) && /* @__PURE__ */ s.jsxs(
291
- "div",
292
- {
293
- className: "row",
294
- style: { color: g.colorText },
295
- children: [
296
- !o.mobileHideLabel && /* @__PURE__ */ s.jsxs("div", { className: "label", children: [
297
- `${o.title}`,
298
- ":"
299
- ] }),
300
- /* @__PURE__ */ s.jsx("div", { className: "value", children: ((t = o == null ? void 0 : o.render) == null ? void 0 : t.call(
301
- o,
302
- $r(e, (o == null ? void 0 : o.dataIndex) || ""),
303
- e,
304
- r
305
- )) || (e == null ? void 0 : e[o.dataIndex]) })
306
- ]
307
- },
308
- n
309
- );
310
- })
311
- },
312
- r
313
- )),
314
- Array.from({ length: q.mobile ?? 2 }).map((e, r) => /* @__PURE__ */ s.jsx(
315
- "div",
316
- {
317
- className: "listItem",
318
- style: {
319
- display: l ? "block" : "none",
320
- backgroundColor: c == null ? void 0 : c.listItemBgColor
321
- },
322
- children: /* @__PURE__ */ s.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ s.jsx(
323
- br,
324
- {
325
- title: !1,
326
- paragraph: {
327
- rows: pe,
328
- width: We
329
- },
330
- active: !0
331
- }
332
- ) })
333
- },
334
- `${Date.now()}${r}`
335
- ))
336
- ]
337
- }
338
- )
247
+ h == null ? void 0 : h.zebra,
248
+ $
249
+ ]), Ct = oe((e, t, r) => {
250
+ const o = t % 2 === 0 ? "oddRow" : "evenRow";
251
+ if (f.rowClassName) {
252
+ const s = f.rowClassName(e, t, r);
253
+ return E(o, s);
339
254
  }
340
- ), Be = i(() => /* @__PURE__ */ s.jsxs("div", { className: "alert", children: [
341
- /* @__PURE__ */ s.jsx(
342
- Te,
343
- {
344
- highlightTag: "strong",
345
- keywords: `${B}`,
346
- sourceString: `共 ${B} 条`,
347
- tagClass: "totalText"
348
- }
349
- ),
350
- !!d && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
351
- /* @__PURE__ */ s.jsx(Se.Text, { className: "splitBorder", children: "/" }),
352
- /* @__PURE__ */ s.jsx(
353
- Te,
354
- {
355
- highlightTag: "strong",
356
- keywords: `${(d == null ? void 0 : d.num) ?? 0}`,
357
- sourceString: `已选中 ${(d == null ? void 0 : d.num) ?? 0} 条`
358
- }
359
- ),
360
- !!(d != null && d.num) && /* @__PURE__ */ s.jsx(
361
- Se.Link,
362
- {
363
- className: "cleanSelected",
364
- onClick: d == null ? void 0 : d.onClear,
365
- children: "取消选中"
366
- }
367
- )
368
- ] })
369
- ] }), [B, d]), dr = (e) => {
370
- var o;
371
- const r = { ...e };
372
- return r.className.includes("ant-table-cell-fix-right") && !D && ((o = r.style) != null && o.right) && (r.style = {
373
- ...r.style,
374
- right: r.style.right - (M || 0)
375
- }), /* @__PURE__ */ s.jsx("th", { ...r });
376
- }, hr = (e) => {
377
- var r;
378
- l || e.active.id !== ((r = e.over) == null ? void 0 : r.id) && (G == null || G(e));
379
- }, je = re(() => R ? {
380
- row: (e) => Pr({ ...e, loading: l == null ? void 0 : l.toString() })
381
- } : {}, [R, R ? l : !1]), ur = i(() => ({
382
- ...j,
255
+ return o;
256
+ }, [f.rowClassName]), Te = n.jsx(pt, { finished: Ie, onLoad: async () => (
257
+ // @ts-ignore
258
+ !i && (v == null ? void 0 : v((C == null ? void 0 : C.page) + 1, C == null ? void 0 : C.size))
259
+ ), loadingText: "加载中...", finishedText: "没有更多了", errorText: "加载失败", children: n.jsxs("div", { className: "mobileList", style: { backgroundColor: c == null ? void 0 : c.mobileListBgColor }, children: [b == null ? void 0 : b.map((e, t) => n.jsx("div", { className: "listItem", style: { backgroundColor: c == null ? void 0 : c.listItemBgColor }, onClick: () => tt(e, t), children: k == null ? void 0 : k.map((r, o) => {
260
+ var s;
261
+ return !(r != null && r.mobileHide) && n.jsxs("div", { className: "row", style: { color: y.colorText }, children: [!r.mobileHideLabel && n.jsxs("div", { className: "label", children: [`${r.title}`, ":"] }), n.jsx("div", { className: "value", children: ((s = r == null ? void 0 : r.render) == null ? void 0 : s.call(r, qt(e, (r == null ? void 0 : r.dataIndex) || ""), e, t)) || (e == null ? void 0 : e[r.dataIndex]) })] }, o);
262
+ }) }, t)), Array.from({ length: q.mobile ?? 2 }).map((e, t) => n.jsx("div", { className: "listItem", style: {
263
+ display: i ? "block" : "none",
264
+ backgroundColor: c == null ? void 0 : c.listItemBgColor
265
+ }, children: n.jsx("div", { className: "row", children: se ? se() : n.jsx(wt, { title: !1, paragraph: {
266
+ rows: He,
267
+ width: Pe
268
+ }, active: !0 }) }) }, `${Date.now()}${t}`))] }) }), pe = l(() => n.jsxs("div", { className: "alert", children: [n.jsx(Re, { highlightTag: "strong", keywords: `${z}`, sourceString: `共 ${z} 条`, tagClass: "totalText" }), !!u && n.jsxs(n.Fragment, { children: [n.jsx(Le.Text, { className: "splitBorder", children: "/" }), n.jsx(Re, { highlightTag: "strong", keywords: `${(u == null ? void 0 : u.num) ?? 0}`, sourceString: `已选中 ${(u == null ? void 0 : u.num) ?? 0} 条` }), !!(u != null && u.num) && n.jsx(Le.Link, { className: "cleanSelected", onClick: u == null ? void 0 : u.onClear, children: "取消选中" })] })] }), [z, u]), xt = (e) => {
269
+ var t;
270
+ i || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (G == null || G(e));
271
+ }, We = oe(() => M ? {
272
+ row: (e) => Ot({ ...e, loading: i == null ? void 0 : i.toString() })
273
+ } : {}, [M, M ? i : !1]), yt = l(() => ({
274
+ ...T,
383
275
  header: {
384
- ...j == null ? void 0 : j.header,
385
- cell: dr
276
+ ...T == null ? void 0 : T.header,
277
+ cell: (e) => Vt({ ...e, hasScrollBar: F, scrollbarSize: $ })
386
278
  },
387
279
  body: {
388
- ...j == null ? void 0 : j.body,
389
- ...je()
390
- }
391
- }), [j, D, M, je]);
392
- return /* @__PURE__ */ s.jsxs(
393
- "div",
394
- {
395
- className: te("bitzTableBlock", {
396
- fullscreen: u.fullscreen
397
- }),
398
- style: ir,
399
- children: [
400
- !_ && /* @__PURE__ */ s.jsxs("div", { ref: w, className: lr, style: cr, children: [
401
- /* @__PURE__ */ s.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [
402
- Re && /* @__PURE__ */ s.jsxs("div", { className: "bitzTableToolbarBlock", children: [
403
- $e || /* @__PURE__ */ s.jsx("div", {}),
404
- De,
405
- Oe
406
- ] }),
407
- /* @__PURE__ */ s.jsx(
408
- Hr,
409
- {
410
- enabledRowDragSort: R,
411
- dataSource: be,
412
- mergeRowKey: xe,
413
- onDragEnd: hr,
414
- children: /* @__PURE__ */ s.jsx(
415
- se,
416
- {
417
- ...h,
418
- bordered: _e,
419
- columns: Ae,
420
- dataSource: be,
421
- loading: !1,
422
- pagination: !1,
423
- scroll: Ye,
424
- expandable: or,
425
- rowSelection: sr,
426
- onRow: nr,
427
- rowHoverable: qe,
428
- rowClassName: ar,
429
- className: "bitzTable",
430
- components: ur,
431
- rowKey: xe
432
- }
433
- )
434
- }
435
- )
436
- ] }),
437
- p && !!B && /* @__PURE__ */ s.jsxs("div", { className: "bitzTablePagination", ref: J, children: [
438
- Be,
439
- /* @__PURE__ */ s.jsx(
440
- yr,
441
- {
442
- size: "small",
443
- enableControl: Me,
444
- pagination: y,
445
- total: B,
446
- dataSource: b,
447
- resetPage: Ve,
448
- hideTotalText: !0,
449
- paginationEmit: H
450
- }
451
- )
452
- ] }),
453
- !p && !!d && !!B && /* @__PURE__ */ s.jsx("div", { className: "bitzTablePagination", ref: J, children: Be })
454
- ] }),
455
- _ && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
456
- (l || !!(b != null && b.length)) && /* @__PURE__ */ s.jsx(s.Fragment, { children: le ? (
457
- // @ts-ignore
458
- /* @__PURE__ */ s.jsx(
459
- wr,
460
- {
461
- onRefresh: async () => !l && le(),
462
- children: we
463
- }
464
- )
465
- ) : we }),
466
- !l && /* @__PURE__ */ s.jsx(xr, { data: b, title: Pe, img: He }),
467
- /* @__PURE__ */ s.jsx(
468
- Cr,
469
- {
470
- className: "tableMobileDrawer",
471
- open: Ge,
472
- placement: "bottom",
473
- height: "auto",
474
- closable: !1,
475
- onClose: de,
476
- children: /* @__PURE__ */ s.jsxs("div", { className: "drawerBox", children: [
477
- /* @__PURE__ */ s.jsx("div", { className: "boxBody", children: ve.map((e, r) => /* @__PURE__ */ s.jsx(
478
- "div",
479
- {
480
- className: "operaList",
481
- onClick: () => Je(e),
482
- ...e.danger && {
483
- style: { color: g.colorError }
484
- },
485
- children: e.label
486
- },
487
- r
488
- )) }),
489
- /* @__PURE__ */ s.jsx("div", { className: "boxLine" }),
490
- /* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: de, children: Le })
491
- ] })
492
- }
493
- )
494
- ] })
495
- ]
280
+ ...T == null ? void 0 : T.body,
281
+ ...We()
496
282
  }
497
- );
283
+ }), [T, F, $, We]);
284
+ return n.jsxs("div", { className: E("bitzTableBlock", {
285
+ fullscreen: h.fullscreen
286
+ }), style: mt, children: [!V && n.jsxs("div", { ref: B, className: ft, style: bt, children: [n.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [Oe && n.jsxs("div", { className: "bitzTableToolbarBlock", children: [Ke || n.jsx("div", {}), Ve, Ee] }), n.jsx(Kt, { enabledRowDragSort: M, dataSource: ge, mergeRowKey: je, onDragEnd: xt, children: n.jsx(Bt, {
287
+ ...f,
288
+ bordered: Ge,
289
+ columns: it,
290
+ dataSource: ge,
291
+ loading: !1,
292
+ pagination: !1,
293
+ scroll: ee,
294
+ expandable: dt,
295
+ rowSelection: ht,
296
+ // style={style}
297
+ onRow: ut,
298
+ rowHoverable: Je,
299
+ rowClassName: Ct,
300
+ className: "bitzTable",
301
+ components: yt,
302
+ rowKey: je
303
+ }) })] }), H && !!z && n.jsxs("div", { className: "bitzTablePagination", ref: I, children: [pe, n.jsx(zt, { size: "small", enableControl: De, pagination: C, total: z, dataSource: m, resetPage: qe, hideTotalText: !0, paginationEmit: v })] }), !H && !!u && !!z && n.jsx("div", { className: "bitzTablePagination", ref: I, children: pe })] }), V && n.jsxs(n.Fragment, { children: [(i || !!(m != null && m.length)) && n.jsx(n.Fragment, { children: ie ? (
304
+ // @ts-ignore
305
+ n.jsx(Wt, { onRefresh: async () => !i && ie(), children: Te })
306
+ ) : Te }), !i && n.jsx(Tt, { data: m, title: ve, img: Fe }), n.jsx(jt, { className: "tableMobileDrawer", open: Ye, placement: "bottom", height: "auto", closable: !1, onClose: de, children: n.jsxs("div", { className: "drawerBox", children: [n.jsx("div", { className: "boxBody", children: Ae.map((e, t) => n.jsx("div", { className: "operaList", onClick: () => rt(e), ...e.danger && {
307
+ style: { color: y.colorError }
308
+ }, children: e.label }, t)) }), n.jsx("div", { className: "boxLine" }), n.jsx("div", { className: "boxFooter", onClick: de, children: $e })] }) })] })] });
498
309
  }
499
- const mt = (p) => /* @__PURE__ */ s.jsx(Br, { initValue: p, children: /* @__PURE__ */ s.jsx(Dr, { ...p }) });
310
+ const jr = (H) => n.jsx(Nt, { initValue: H, children: n.jsx(_t, { ...H }) });
500
311
  export {
501
- mt as default
312
+ jr as default
502
313
  };