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