@zat-design/sisyphus-react 4.5.10-beta.1 → 4.5.10-beta.2

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 (266) hide show
  1. package/es/FormsProvider/index.js +14 -21
  2. package/es/ProAction/components/CheckModalContent/index.js +12 -26
  3. package/es/ProAction/index.js +79 -83
  4. package/es/ProAction/propsType.js +0 -1
  5. package/es/ProConfigProvider/index.js +63 -110
  6. package/es/ProConfigProvider/propsType.js +0 -1
  7. package/es/ProDownload/index.js +55 -65
  8. package/es/ProDownload/propsType.js +0 -1
  9. package/es/ProDownload/utils.js +61 -95
  10. package/es/ProDrawerForm/components/ProDrawer/index.js +83 -113
  11. package/es/ProDrawerForm/components/ProModal/index.js +77 -108
  12. package/es/ProDrawerForm/components/index.js +6 -2
  13. package/es/ProDrawerForm/hooks/useConfirmClose.js +20 -39
  14. package/es/ProDrawerForm/index.js +29 -38
  15. package/es/ProDrawerForm/propsType.js +0 -1
  16. package/es/ProDrawerForm/utils/index.js +18 -36
  17. package/es/ProEditLabel/components/RenderProForm.js +45 -49
  18. package/es/ProEditLabel/index.js +126 -163
  19. package/es/ProEditLabel/propsType.js +0 -1
  20. package/es/ProEditLabel/utils/index.js +5 -8
  21. package/es/ProEditTable/components/ActionButton/index.js +111 -119
  22. package/es/ProEditTable/components/RcTable/BaseTable.js +38 -51
  23. package/es/ProEditTable/components/RcTable/DraggableTable.js +97 -129
  24. package/es/ProEditTable/components/RcTable/index.js +6 -4
  25. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +77 -95
  26. package/es/ProEditTable/components/RenderField/index.js +490 -587
  27. package/es/ProEditTable/components/RenderField/propsType.js +0 -1
  28. package/es/ProEditTable/components/RenderField/tools.js +115 -112
  29. package/es/ProEditTable/components/RenderToolbar/index.js +47 -73
  30. package/es/ProEditTable/components/Summary/index.js +38 -64
  31. package/es/ProEditTable/components/Validator/index.js +46 -46
  32. package/es/ProEditTable/components/index.js +12 -5
  33. package/es/ProEditTable/index.js +456 -378
  34. package/es/ProEditTable/propsType.js +0 -1
  35. package/es/ProEditTable/utils/config.js +60 -122
  36. package/es/ProEditTable/utils/diffOriginal.js +45 -82
  37. package/es/ProEditTable/utils/getDefaultProps.js +19 -24
  38. package/es/ProEditTable/utils/index.js +150 -236
  39. package/es/ProEditTable/utils/tools.js +149 -286
  40. package/es/ProEditTable/utils/transform.js +25 -30
  41. package/es/ProEditTable/utils/useEditTableError.js +30 -43
  42. package/es/ProEditTable/utils/useShouldUpdateForTable.js +42 -72
  43. package/es/ProEditTable/utils/validateAll.js +87 -154
  44. package/es/ProEnum/components/Group.js +38 -30
  45. package/es/ProEnum/components/Tag.js +22 -26
  46. package/es/ProEnum/hooks/useEnum.js +48 -116
  47. package/es/ProEnum/hooks/useEnumRequest.js +128 -179
  48. package/es/ProEnum/hooks/useFrequentEnumRequest.js +40 -48
  49. package/es/ProEnum/index.js +162 -172
  50. package/es/ProEnum/propsType.js +0 -1
  51. package/es/ProEnum/utils/eventCenter.js +10 -12
  52. package/es/ProEnum/utils/frequentEnum.js +35 -92
  53. package/es/ProEnum/utils/getEnum.js +32 -90
  54. package/es/ProEnum/utils/getEnumLabel.js +44 -49
  55. package/es/ProEnum/utils/index.js +93 -207
  56. package/es/ProForm/components/Container.js +13 -28
  57. package/es/ProForm/components/FormFooter/index.js +36 -44
  58. package/es/ProForm/components/FormFooter/propsType.js +0 -1
  59. package/es/ProForm/components/base/Checkbox/index.js +32 -59
  60. package/es/ProForm/components/base/DatePicker/index.js +49 -71
  61. package/es/ProForm/components/base/Input/index.js +63 -97
  62. package/es/ProForm/components/base/Input/propsType.js +0 -1
  63. package/es/ProForm/components/base/InputNumber/index.js +118 -172
  64. package/es/ProForm/components/base/Radio/index.js +39 -52
  65. package/es/ProForm/components/base/RangePicker/index.js +109 -127
  66. package/es/ProForm/components/base/RangePicker/useDateRange.js +20 -17
  67. package/es/ProForm/components/base/Select/index.js +63 -89
  68. package/es/ProForm/components/base/Switch/index.js +27 -35
  69. package/es/ProForm/components/base/SwitchCheckbox/index.js +36 -54
  70. package/es/ProForm/components/base/TextArea/index.js +30 -41
  71. package/es/ProForm/components/base/TimePicker/index.js +27 -37
  72. package/es/ProForm/components/combination/Container/index.js +37 -47
  73. package/es/ProForm/components/combination/Container/propsType.js +0 -1
  74. package/es/ProForm/components/combination/FormList/components/ActionButton.js +165 -237
  75. package/es/ProForm/components/combination/FormList/components/BlockFields.js +98 -103
  76. package/es/ProForm/components/combination/FormList/components/Empty.js +27 -54
  77. package/es/ProForm/components/combination/FormList/components/LineFields.js +57 -54
  78. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +61 -109
  79. package/es/ProForm/components/combination/FormList/index.js +151 -161
  80. package/es/ProForm/components/combination/FormList/propsType.js +0 -1
  81. package/es/ProForm/components/combination/FormList/utils.js +22 -38
  82. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.js +12 -28
  83. package/es/ProForm/components/combination/Group/component/ComRender.js +50 -111
  84. package/es/ProForm/components/combination/Group/component/FlexibleGroup.js +105 -206
  85. package/es/ProForm/components/combination/Group/hooks/index.js +68 -128
  86. package/es/ProForm/components/combination/Group/index.js +87 -126
  87. package/es/ProForm/components/combination/Group/propsType.js +0 -1
  88. package/es/ProForm/components/combination/Group/utils/index.js +124 -239
  89. package/es/ProForm/components/combination/ProCascader/index.js +156 -199
  90. package/es/ProForm/components/combination/ProCascader/propsType.js +0 -1
  91. package/es/ProForm/components/combination/ProCascader/utils/index.js +12 -21
  92. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +63 -75
  93. package/es/ProForm/components/combination/ProModalSelect/index.js +290 -348
  94. package/es/ProForm/components/combination/ProModalSelect/propsType.js +0 -1
  95. package/es/ProForm/components/combination/ProModalSelect/utils/index.js +32 -39
  96. package/es/ProForm/components/combination/ProNumberRange/index.js +100 -156
  97. package/es/ProForm/components/combination/ProNumberRange/propsType.js +0 -1
  98. package/es/ProForm/components/combination/ProRangeLimit/index.js +104 -115
  99. package/es/ProForm/components/combination/ProRangeLimit/propsType.js +0 -1
  100. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +16 -16
  101. package/es/ProForm/components/combination/ProTimeLimit/index.js +75 -109
  102. package/es/ProForm/components/index.js +56 -34
  103. package/es/ProForm/components/render/ChangedWrapper.js +85 -94
  104. package/es/ProForm/components/render/ConfirmWrapper.js +27 -39
  105. package/es/ProForm/components/render/CustomComponentViewWrapper.js +65 -82
  106. package/es/ProForm/components/render/Render.js +223 -329
  107. package/es/ProForm/components/render/RenderFields.js +76 -113
  108. package/es/ProForm/components/render/propsType.js +0 -1
  109. package/es/ProForm/hooks/useControlled.js +8 -10
  110. package/es/ProForm/hooks/useDeepCompareMemo.js +11 -11
  111. package/es/ProForm/hooks/useFieldProps.js +8 -4
  112. package/es/ProForm/hooks/useForm.js +50 -110
  113. package/es/ProForm/hooks/useRules.js +17 -33
  114. package/es/ProForm/hooks/useShouldUpdate.js +77 -152
  115. package/es/ProForm/hooks/useWatch.js +58 -129
  116. package/es/ProForm/index.js +157 -194
  117. package/es/ProForm/propsType.js +15 -7
  118. package/es/ProForm/utils/buildFormItemProps.js +51 -58
  119. package/es/ProForm/utils/diffOriginal.js +43 -73
  120. package/es/ProForm/utils/getDefaultProps.js +18 -24
  121. package/es/ProForm/utils/index.js +159 -234
  122. package/es/ProForm/utils/processDependencies.js +21 -60
  123. package/es/ProForm/utils/reactiveValues.js +20 -34
  124. package/es/ProForm/utils/rulesCreator.js +42 -40
  125. package/es/ProForm/utils/transformNames.js +10 -13
  126. package/es/ProForm/utils/transformValue.js +16 -29
  127. package/es/ProForm/utils/valueType.js +96 -178
  128. package/es/ProIcon/config/index.js +340 -274
  129. package/es/ProIcon/index.js +135 -209
  130. package/es/ProIcon/propsTypes.js +0 -1
  131. package/es/ProIcon/utils/index.js +24 -39
  132. package/es/ProLayout/components/Layout/Header/index.js +108 -141
  133. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +134 -190
  134. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +111 -137
  135. package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.js +0 -1
  136. package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +23 -31
  137. package/es/ProLayout/components/Layout/Menu/index.js +92 -89
  138. package/es/ProLayout/components/Layout/Notice/index.js +13 -27
  139. package/es/ProLayout/components/Layout/index.js +8 -3
  140. package/es/ProLayout/components/ProCollapse/PropTypes.js +0 -1
  141. package/es/ProLayout/components/ProCollapse/index.js +89 -111
  142. package/es/ProLayout/components/ProFooter/PropTypes.js +0 -1
  143. package/es/ProLayout/components/ProFooter/index.js +27 -25
  144. package/es/ProLayout/components/ProHeader/PropTypes.js +0 -1
  145. package/es/ProLayout/components/ProHeader/components/Copy/index.js +23 -21
  146. package/es/ProLayout/components/ProHeader/components/Describe/index.js +67 -86
  147. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +18 -21
  148. package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.js +0 -1
  149. package/es/ProLayout/components/ProHeader/components/index.js +6 -2
  150. package/es/ProLayout/components/ProHeader/index.js +216 -356
  151. package/es/ProLayout/components/ProHeader/utils/index.js +19 -26
  152. package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +92 -85
  153. package/es/ProLayout/components/TabsManager/components/TabItem.js +53 -64
  154. package/es/ProLayout/components/TabsManager/components/TabsContext.js +5 -5
  155. package/es/ProLayout/components/TabsManager/components/TabsHeader.js +42 -52
  156. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.js +8 -9
  157. package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.js +19 -32
  158. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +6 -20
  159. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.js +25 -42
  160. package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +290 -408
  161. package/es/ProLayout/components/TabsManager/hooks/useTabsUrlSync.js +132 -95
  162. package/es/ProLayout/components/TabsManager/index.js +406 -390
  163. package/es/ProLayout/components/TabsManager/propTypes.js +7 -15
  164. package/es/ProLayout/components/TabsManager/utils/historyObserver.js +26 -23
  165. package/es/ProLayout/components/TabsManager/utils/index.js +127 -184
  166. package/es/ProLayout/components/index.js +8 -3
  167. package/es/ProLayout/index.js +171 -229
  168. package/es/ProLayout/propTypes.js +12 -52
  169. package/es/ProLayout/utils/index.js +48 -128
  170. package/es/ProSelect/components/AdaptiveTooltip.js +26 -25
  171. package/es/ProSelect/index.js +184 -229
  172. package/es/ProSelect/propsType.js +0 -1
  173. package/es/ProSelect/utils/index.js +100 -146
  174. package/es/ProStep/components/Anchor/index.js +71 -82
  175. package/es/ProStep/components/Item/index.js +49 -56
  176. package/es/ProStep/components/LazyLoad/index.js +23 -29
  177. package/es/ProStep/components/Listener/index.js +20 -33
  178. package/es/ProStep/components/Step/index.js +31 -38
  179. package/es/ProStep/constants.js +4 -1
  180. package/es/ProStep/index.js +166 -153
  181. package/es/ProStep/propsType.js +0 -1
  182. package/es/ProStep/utils/index.js +29 -55
  183. package/es/ProStepTab/index.js +83 -138
  184. package/es/ProStepTab/propsType.js +0 -1
  185. package/es/ProTable/components/EditableCell/EditIcon.js +10 -14
  186. package/es/ProTable/components/EditableCell/index.js +37 -71
  187. package/es/ProTable/components/EditableCell/propsType.js +0 -1
  188. package/es/ProTable/components/FormatColumn/index.js +209 -340
  189. package/es/ProTable/components/FormatColumn/propsType.js +0 -1
  190. package/es/ProTable/components/RcTable/components/BaseTable/index.js +35 -39
  191. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +80 -107
  192. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +54 -48
  193. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.js +0 -1
  194. package/es/ProTable/components/RcTable/components/DraggableTable/index.js +47 -54
  195. package/es/ProTable/components/RcTable/index.js +6 -4
  196. package/es/ProTable/components/RenderColumn/index.js +158 -186
  197. package/es/ProTable/components/RenderEmptyText/index.js +12 -21
  198. package/es/ProTable/components/RenderFooter/index.js +15 -15
  199. package/es/ProTable/components/RenderSummary/index.js +33 -50
  200. package/es/ProTable/components/RenderTableHeader/index.js +44 -46
  201. package/es/ProTable/components/RenderTabs/index.js +47 -51
  202. package/es/ProTable/components/TableResizable/index.js +56 -72
  203. package/es/ProTable/components/TooltipTitle/index.js +13 -21
  204. package/es/ProTable/components/index.js +16 -36
  205. package/es/ProTable/hooks/useAntdTable.js +185 -219
  206. package/es/ProTable/index.js +232 -249
  207. package/es/ProTable/propsType.js +0 -1
  208. package/es/ProTable/utils/columnStorage.js +63 -88
  209. package/es/ProTable/utils/index.js +57 -90
  210. package/es/ProTabs/components/Card/index.js +20 -48
  211. package/es/ProTabs/components/index.js +4 -1
  212. package/es/ProTabs/index.js +39 -56
  213. package/es/ProTabs/propType.js +0 -1
  214. package/es/ProThemeTools/component/ProTools/index.js +106 -158
  215. package/es/ProThemeTools/component/index.js +4 -1
  216. package/es/ProThemeTools/context/ThemeContext.js +67 -146
  217. package/es/ProThemeTools/index.js +103 -156
  218. package/es/ProThemeTools/propsType.js +0 -1
  219. package/es/ProThemeTools/utils/index.js +60 -109
  220. package/es/ProTooltip/index.js +132 -165
  221. package/es/ProTooltip/propsType.js +0 -1
  222. package/es/ProTree/components/AdaptiveTooltip.js +15 -17
  223. package/es/ProTree/components/CloseIcon.js +18 -26
  224. package/es/ProTree/components/List.js +28 -47
  225. package/es/ProTree/components/ProTree.js +152 -211
  226. package/es/ProTree/components/ProTreeSelect/index.js +254 -458
  227. package/es/ProTree/components/ProTreeSelect/propsType.js +0 -1
  228. package/es/ProTree/components/SearchTitle.js +23 -42
  229. package/es/ProTree/components/Tree.js +147 -195
  230. package/es/ProTree/components/index.js +10 -5
  231. package/es/ProTree/index.js +12 -16
  232. package/es/ProTree/propsType.js +0 -1
  233. package/es/ProTree/utils.js +46 -118
  234. package/es/ProTreeModal/components/Cascader.js +56 -64
  235. package/es/ProTreeModal/components/CloseIcon.js +18 -26
  236. package/es/ProTreeModal/components/List.js +114 -180
  237. package/es/ProTreeModal/components/SearchTitle.js +15 -18
  238. package/es/ProTreeModal/components/SortableItem.js +29 -58
  239. package/es/ProTreeModal/components/Tree.js +99 -113
  240. package/es/ProTreeModal/components/Trigger.js +87 -121
  241. package/es/ProTreeModal/components/index.js +14 -6
  242. package/es/ProTreeModal/index.js +397 -435
  243. package/es/ProTreeModal/propsType.js +0 -1
  244. package/es/ProTreeModal/utils.js +52 -95
  245. package/es/ProUpload/components/ButtonRender.js +44 -54
  246. package/es/ProUpload/components/DragRender.js +94 -134
  247. package/es/ProUpload/components/DraggableUploadListItem.js +12 -25
  248. package/es/ProUpload/components/Example.js +27 -31
  249. package/es/ProUpload/components/FileItem.js +69 -163
  250. package/es/ProUpload/components/ImageRender.js +134 -170
  251. package/es/ProUpload/index.js +68 -100
  252. package/es/ProUpload/propsType.js +0 -1
  253. package/es/ProUpload/uitls.js +8 -4
  254. package/es/ProUtils/utils/index.js +17 -13
  255. package/es/ProViewer/index.js +154 -175
  256. package/es/ProViewer/propsType.js +0 -5
  257. package/es/ProWaterMark/index.js +9 -16
  258. package/es/ProWaterMark/propsType.js +0 -1
  259. package/es/hooks/useDraggableRow.js +25 -53
  260. package/es/index.js +57 -77
  261. package/es/locale/en_US.js +153 -142
  262. package/es/locale/index.js +23 -36
  263. package/es/locale/zh_CN.js +145 -142
  264. package/es/tokens.js +84 -83
  265. package/es/utils/index.js +24 -51
  266. package/package.json +4 -3
@@ -1,10 +1,11 @@
1
- import _isObject from "lodash/isObject";
2
- import _assign from "lodash/assign";
3
- import _keyBy from "lodash/keyBy";
4
- import React, { useEffect, useMemo, useState, createContext, useRef, forwardRef } from 'react';
5
- import { useDebounceEffect, useDeepCompareEffect, useSetState } from 'ahooks';
6
- import classnames from 'classnames';
7
- import { Form } from 'antd';
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useMemo, useState, createContext, useRef, forwardRef } from "react";
3
+ import keyBy from "lodash/keyBy";
4
+ import assign from "lodash/assign";
5
+ import isObject from "lodash/isObject";
6
+ import { useDebounceEffect, useDeepCompareEffect, useSetState } from "ahooks";
7
+ import classnames from "classnames";
8
+ import { Form } from "antd";
8
9
  import { useProConfig } from "../index";
9
10
  import { RenderTableHeader, RenderFooter, RenderTabs } from "./components";
10
11
  import useAntdTable, { SELECTION_ALL, CURRENT_PAGE, UNCHECK_ALL } from "./hooks/useAntdTable";
@@ -14,27 +15,28 @@ import empty from "../assets/empty.png";
14
15
  import resetSvg from "../assets/reset.svg";
15
16
  import customColumnSvg from "../assets/customColumn.svg";
16
17
  import { filterVisibleColumns, getColumnDataIndex, getRowKey } from "./utils";
17
- import { baseStorage, getColumnCache, getColumnCacheSync, removeColumnCache, setColumnCache } from "./utils/columnStorage";
18
+ import {
19
+ baseStorage,
20
+ getColumnCache,
21
+ getColumnCacheSync,
22
+ removeColumnCache,
23
+ setColumnCache
24
+ } from "./utils/columnStorage";
18
25
  import locale from "../locale";
19
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
- const defaultCacheTime = 1; // columns 配置保存时间为一天
21
-
22
- // 全局上下文
23
- export const TableContext = /*#__PURE__*/createContext({});
24
- export const defaultPage = {
26
+ const defaultCacheTime = 1;
27
+ const TableContext = createContext({});
28
+ const defaultPage = {
25
29
  pageNum: 1,
26
30
  pageSize: 10
27
31
  };
28
- const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
29
- const {
30
- storage: configStorage
31
- } = useProConfig('globalConfig') || {}; // 获取全局缓存位置配置
32
-
32
+ const ProTable = forwardRef((props, tableRef) => {
33
+ var _a, _b;
34
+ const { storage: configStorage } = useProConfig("globalConfig") || {};
33
35
  const {
34
36
  resizeColumn: configResizeColumn,
35
37
  columnConfig: configTColumnConfig,
36
38
  cacheTime: configCacheTime
37
- } = useProConfig('ProTable') || {};
39
+ } = useProConfig("ProTable") || {};
38
40
  const {
39
41
  tableId,
40
42
  headerRender,
@@ -48,38 +50,26 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
48
50
  isView = false,
49
51
  rowDisabled,
50
52
  summary,
51
- emptyText = locale?.ProTable?.noData,
53
+ emptyText = (_b = (_a = locale) == null ? void 0 : _a.ProTable) == null ? void 0 : _b.noData,
52
54
  diffConfig,
53
55
  onDragStart: onDragStartGuard,
54
56
  onDragEnd: onDragEndGuard,
55
57
  tabs,
56
- editMode = 'per-cell-form',
58
+ editMode = "per-cell-form",
57
59
  ...restProps
58
60
  } = props;
59
-
60
- // shared-form 模式下顶层创建一份 Form 实例,所有 EditableCell 复用;
61
- // per-cell-form 默认模式下不消费此实例(antd 的 useForm 必须无条件调用以满足 hooks rule)
62
61
  const [sharedForm] = Form.useForm();
63
- const {
64
- scrollFollowParent = true
65
- } = props;
66
- let _scroll = props?.scroll ?? {
67
- x: 'max-content'
68
- };
62
+ const { scrollFollowParent = true } = props;
63
+ let _scroll = (props == null ? void 0 : props.scroll) ?? { x: "max-content" };
69
64
  const wrapToolTipProps = {
70
- getPopupContainer: scrollFollowParent ? triggerNode => triggerNode.parentNode : () => document.body
65
+ getPopupContainer: scrollFollowParent ? (triggerNode) => triggerNode.parentNode : () => document.body
71
66
  };
72
- const {
73
- originalDataSource,
74
- changeTipColor,
75
- addTipColor,
76
- toolTip
77
- } = diffConfig || {};
67
+ const { originalDataSource, changeTipColor, addTipColor, toolTip } = diffConfig || {};
78
68
  const quickTableConfig = quickConfig ? {
79
69
  columnConfig: true,
80
70
  cacheTime: true,
81
71
  ...restProps
82
- } : restProps?.columnConfig ? {
72
+ } : (restProps == null ? void 0 : restProps.columnConfig) ? {
83
73
  cacheTime: true,
84
74
  ...restProps
85
75
  } : restProps;
@@ -90,20 +80,14 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
90
80
  storage = configStorage,
91
81
  ...tableProps
92
82
  } = quickTableConfig;
93
- const {
94
- pagination,
95
- dataSource,
96
- rowKey
97
- } = tableProps || {};
98
- const initDataSource = dataSource?.map(item => {
83
+ const { pagination, dataSource, rowKey } = tableProps || {};
84
+ const initDataSource = dataSource == null ? void 0 : dataSource.map((item) => {
99
85
  return {
100
86
  ...item,
101
87
  rowKey: getRowKey(rowKey, item)
102
88
  };
103
89
  });
104
- const [{
105
- dataSource: _dataSource
106
- }, setState] = useSetState({
90
+ const [{ dataSource: _dataSource }, setState] = useSetState({
107
91
  dataSource: initDataSource
108
92
  });
109
93
  useDeepCompareEffect(() => {
@@ -111,57 +95,58 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
111
95
  dataSource: initDataSource
112
96
  });
113
97
  }, [initDataSource]);
114
- const _originalDataSource = originalDataSource?.map(item => {
98
+ const _originalDataSource = originalDataSource == null ? void 0 : originalDataSource.map((item) => {
115
99
  return {
116
100
  ...item,
117
101
  rowKey: getRowKey(props.rowKey, item)
118
102
  };
119
103
  });
120
- const originalObj = _originalDataSource ? _keyBy(_originalDataSource, 'rowKey') : undefined;
121
- const propsColumnObj = useMemo(() => propsColumns.reduce((acc, cur) => {
122
- // @ts-ignore
123
- acc[getColumnDataIndex(cur.dataIndex)] = {
124
- ...cur
125
- };
126
- return acc;
127
- }, {}), [propsColumns]);
128
- const {
129
- pathname
130
- } = window.location;
131
- // pathname + tableId作为缓存配置key
132
- const pathKey = `${pathname}/${tableId || ''}`;
133
-
134
- // 默认 storage 为 'indexedDB'(baseStorage),与 ProEnum 一致
104
+ const originalObj = _originalDataSource ? keyBy(_originalDataSource, "rowKey") : void 0;
105
+ const propsColumnObj = useMemo(
106
+ () => propsColumns.reduce((acc, cur) => {
107
+ acc[getColumnDataIndex(cur.dataIndex)] = {
108
+ ...cur
109
+ };
110
+ return acc;
111
+ }, {}),
112
+ [propsColumns]
113
+ );
114
+ const { pathname } = window.location;
115
+ const pathKey = `${pathname}/${tableId || ""}`;
135
116
  const effectiveStorage = storage ?? baseStorage;
136
-
137
- // 同步首读:localStorage / sessionStorage 命中即返回;indexedDB 未命中内存时返回 undefined(异步兜底)
138
- const [columnEntry, setColumnEntry] = useState(() => getColumnCacheSync(effectiveStorage, pathKey));
139
-
140
- // indexedDB 模式:异步加载 + setState 平滑替换(不闪烁)
117
+ const [columnEntry, setColumnEntry] = useState(
118
+ () => getColumnCacheSync(effectiveStorage, pathKey)
119
+ );
141
120
  useEffect(() => {
142
- if (effectiveStorage !== 'indexedDB') return;
121
+ if (effectiveStorage !== "indexedDB")
122
+ return;
143
123
  let cancelled = false;
144
- Promise.resolve(getColumnCache(effectiveStorage, pathKey)).then(entry => {
145
- if (cancelled) return;
146
- if (entry) setColumnEntry(entry);
124
+ Promise.resolve(getColumnCache(effectiveStorage, pathKey)).then((entry) => {
125
+ if (cancelled)
126
+ return;
127
+ if (entry)
128
+ setColumnEntry(entry);
147
129
  });
148
130
  return () => {
149
131
  cancelled = true;
150
132
  };
151
133
  }, [effectiveStorage, pathKey]);
152
- const startTime = columnEntry?.startTime;
134
+ const startTime = columnEntry == null ? void 0 : columnEntry.startTime;
153
135
  const [curColumns, setCurColumns] = useState(propsColumns);
154
136
  useDeepCompareEffect(() => {
137
+ var _a2;
155
138
  let localColumns;
156
- const duration = (typeof cacheTime === 'number' ? cacheTime : defaultCacheTime) * 86400000;
157
- // 开启缓存配置功能且缓存存在时,从缓存中获取缓存配置
158
- if (cacheTime && startTime && new Date().getTime() - startTime < duration) {
159
- localColumns = columnEntry?.columns?.map(item => ({
160
- ...propsColumnObj[getColumnDataIndex(item.dataIndex)],
161
- dataIndex: item.dataIndex,
162
- width: resizeColumn ? item?.width : propsColumnObj[getColumnDataIndex(item.dataIndex)]?.width
163
- }));
164
- localColumns = localColumns?.length === 0 ? undefined : localColumns;
139
+ const duration = (typeof cacheTime === "number" ? cacheTime : defaultCacheTime) * 864e5;
140
+ if (cacheTime && startTime && (/* @__PURE__ */ new Date()).getTime() - startTime < duration) {
141
+ localColumns = (_a2 = columnEntry == null ? void 0 : columnEntry.columns) == null ? void 0 : _a2.map((item) => {
142
+ var _a3;
143
+ return {
144
+ ...propsColumnObj[getColumnDataIndex(item.dataIndex)],
145
+ dataIndex: item.dataIndex,
146
+ width: resizeColumn ? item == null ? void 0 : item.width : (_a3 = propsColumnObj[getColumnDataIndex(item.dataIndex)]) == null ? void 0 : _a3.width
147
+ };
148
+ });
149
+ localColumns = (localColumns == null ? void 0 : localColumns.length) === 0 ? void 0 : localColumns;
165
150
  setCurColumns(localColumns || propsColumns);
166
151
  } else {
167
152
  setCurColumns(propsColumns);
@@ -169,28 +154,22 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
169
154
  }, [pathKey, cacheTime, propsColumns, columnEntry]);
170
155
  useEffect(() => {
171
156
  if (!cacheTime && columnEntry) {
172
- // 关闭缓存时,清理对应 table 缓存
173
157
  removeColumnCache(effectiveStorage, pathKey);
174
158
  }
175
159
  }, [cacheTime, columnEntry, effectiveStorage, pathKey]);
176
-
177
- // 重置列宽,恢复至props的columns列宽
178
160
  const resetColumnWidth = () => {
179
161
  const nextColumns = [...curColumns];
180
- nextColumns?.forEach(item => {
181
- if (propsColumnObj[item.dataIndex]?.width) {
182
- item.width = propsColumnObj[item.dataIndex]?.width;
162
+ nextColumns == null ? void 0 : nextColumns.forEach((item) => {
163
+ var _a2, _b2;
164
+ if ((_a2 = propsColumnObj[item.dataIndex]) == null ? void 0 : _a2.width) {
165
+ item.width = (_b2 = propsColumnObj[item.dataIndex]) == null ? void 0 : _b2.width;
183
166
  } else {
184
167
  delete item.width;
185
168
  }
186
169
  });
187
170
  setCurColumns(nextColumns);
188
171
  };
189
-
190
- // 列宽resize函数
191
- const handleResize = index => (e, {
192
- size
193
- }) => {
172
+ const handleResize = (index) => (e, { size }) => {
194
173
  const nextColumns = [...curColumns];
195
174
  nextColumns[index] = {
196
175
  ...nextColumns[index],
@@ -198,17 +177,17 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
198
177
  };
199
178
  setCurColumns(nextColumns);
200
179
  };
201
- const _isInNewRow = record => {
180
+ const _isInNewRow = (record) => {
202
181
  const recordKey = getRowKey(props.rowKey, record);
203
182
  return !!(originalDataSource && !originalObj.hasOwnProperty(recordKey));
204
183
  };
205
184
  const _rowClassName = (record, index) => {
206
185
  if (_isInNewRow(record)) {
207
- return 'new-cell';
186
+ return "new-cell";
208
187
  }
209
188
  };
210
- const formatColumns = nextColumns => {
211
- nextColumns?.forEach(item => {
189
+ const formatColumns = (nextColumns) => {
190
+ nextColumns == null ? void 0 : nextColumns.forEach((item) => {
212
191
  formatColumn({
213
192
  column: item,
214
193
  originalObj,
@@ -218,7 +197,7 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
218
197
  scroll: _scroll,
219
198
  isInNewRow: _isInNewRow,
220
199
  editMode,
221
- sharedForm: editMode === 'shared-form' ? sharedForm : undefined
200
+ sharedForm: editMode === "shared-form" ? sharedForm : void 0
222
201
  });
223
202
  if (item.children && Array.isArray(item.children)) {
224
203
  formatColumns(item.children);
@@ -227,102 +206,111 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
227
206
  return nextColumns;
228
207
  };
229
208
  const columns = useMemo(() => {
230
- const newColumns = curColumns?.map((item, index) => {
231
- if (propsColumnObj[getColumnDataIndex(item.dataIndex)]?.render) {
209
+ const newColumns = curColumns == null ? void 0 : curColumns.map((item, index) => {
210
+ var _a2;
211
+ if ((_a2 = propsColumnObj[getColumnDataIndex(item.dataIndex)]) == null ? void 0 : _a2.render) {
232
212
  item.render = propsColumnObj[getColumnDataIndex(item.dataIndex)].render;
233
213
  }
234
214
  return {
235
215
  ellipsis: resizeColumn,
236
216
  ...item,
237
217
  width: item.width,
238
- onHeaderCell: column => ({
218
+ onHeaderCell: (column) => ({
239
219
  width: column.width,
240
220
  minwidth: column.minWidth,
241
221
  onDrag: handleResize(index)
242
222
  })
243
223
  };
244
- }).filter(item => !item?.delete);
224
+ }).filter((item) => !(item == null ? void 0 : item.delete));
245
225
  const nextColumns = formatColumns(newColumns);
246
226
  return nextColumns;
247
227
  }, [curColumns, handleResize, _scroll, originalDataSource, originalObj, _isInNewRow]);
248
-
249
- // 仅在 dev 环境针对 column.show 提示一次(按实例去重)
250
228
  const showDeprecationWarnedRef = useRef(false);
251
229
  const _columns = useMemo(() => {
252
- const {
253
- columns: filtered,
254
- usedShow
255
- } = filterVisibleColumns(columns || []);
256
- if (usedShow && process.env.NODE_ENV !== 'production' && !showDeprecationWarnedRef.current) {
230
+ const { columns: filtered, usedShow } = filterVisibleColumns(
231
+ columns || []
232
+ );
233
+ if (usedShow && true && !showDeprecationWarnedRef.current) {
257
234
  showDeprecationWarnedRef.current = true;
258
- // eslint-disable-next-line no-console
259
- console.warn('[ProTable] column.show is deprecated, please use column.hidden (antd 5.13+ native) instead. column.show 已废弃,请改用 column.hidden(antd 5.13+ 原生支持)。');
235
+ console.warn(
236
+ "[ProTable] column.show is deprecated, please use column.hidden (antd 5.13+ native) instead. column.show 已废弃,请改用 column.hidden(antd 5.13+ 原生支持)。"
237
+ );
260
238
  }
261
239
  return filtered;
262
240
  }, [columns]);
263
- const isExistPercentWidth = !!_columns?.find(item => item?.width && typeof item?.width === 'string' && item?.width?.endsWith('%'));
264
-
265
- // shared-form 模式下,仅当存在 editConfig 列时才需要包共享 Form Provider;
266
- // 否则不挂载 Form,避免给纯展示型表格注入无意义的 Form Context
241
+ const isExistPercentWidth = !!(_columns == null ? void 0 : _columns.find(
242
+ (item) => {
243
+ var _a2;
244
+ return (item == null ? void 0 : item.width) && typeof (item == null ? void 0 : item.width) === "string" && ((_a2 = item == null ? void 0 : item.width) == null ? void 0 : _a2.endsWith("%"));
245
+ }
246
+ ));
267
247
  const hasEditConfigColumn = useMemo(() => {
268
- const walk = (cols = []) => cols.some(c => Boolean(c?.editConfig) || Array.isArray(c?.children) && walk(c.children));
248
+ const walk = (cols = []) => cols.some(
249
+ (c) => Boolean(c == null ? void 0 : c.editConfig) || Array.isArray(c == null ? void 0 : c.children) && walk(c.children)
250
+ );
269
251
  return walk(propsColumns);
270
252
  }, [propsColumns]);
271
- const shouldWrapSharedForm = editMode === 'shared-form' && hasEditConfigColumn;
253
+ const shouldWrapSharedForm = editMode === "shared-form" && hasEditConfigColumn;
272
254
  if (isExistPercentWidth) {
273
- _scroll = props?.scroll;
255
+ _scroll = props == null ? void 0 : props.scroll;
274
256
  }
275
- const handleColumnConfig = async checkList => {
257
+ const handleColumnConfig = async (checkList) => {
258
+ var _a2;
276
259
  let newColumns = [];
277
- if (checkList === 'all') {
260
+ if (checkList === "all") {
278
261
  newColumns = propsColumns;
279
262
  } else {
280
- newColumns = checkList?.map(item => ({
281
- ...propsColumnObj?.[item]
263
+ newColumns = checkList == null ? void 0 : checkList.map((item) => ({
264
+ ...propsColumnObj == null ? void 0 : propsColumnObj[item]
282
265
  }));
283
266
  }
284
- if (_isObject(columnConfig)) {
267
+ if (isObject(columnConfig)) {
285
268
  const catchColumns = {
286
269
  [pathKey]: {
287
- columns: newColumns.map(item => ({
270
+ columns: newColumns.map((item) => ({
288
271
  dataIndex: item.dataIndex,
289
- width: typeof item.width === 'number' ? Math.round(Number(item.width)) : item.width
272
+ width: typeof item.width === "number" ? Math.round(Number(item.width)) : item.width
290
273
  }))
291
274
  }
292
275
  };
293
- await columnConfig?.onColumnOk?.(catchColumns, newColumns);
276
+ await ((_a2 = columnConfig == null ? void 0 : columnConfig.onColumnOk) == null ? void 0 : _a2.call(columnConfig, catchColumns, newColumns));
294
277
  }
295
278
  setCurColumns(newColumns);
296
279
  };
297
- useDebounceEffect(() => {
298
- if (cacheTime) {
299
- const newEntry = {
300
- startTime: new Date().getTime(),
301
- columns: curColumns?.map(item => ({
302
- dataIndex: item.dataIndex,
303
- width: typeof item.width === 'number' ? Math.round(Number(item.width)) : item.width
304
- }))
305
- };
306
- setColumnCache(effectiveStorage, pathKey, newEntry);
280
+ useDebounceEffect(
281
+ () => {
282
+ if (cacheTime) {
283
+ const newEntry = {
284
+ startTime: (/* @__PURE__ */ new Date()).getTime(),
285
+ columns: curColumns == null ? void 0 : curColumns.map((item) => ({
286
+ dataIndex: item.dataIndex,
287
+ width: typeof item.width === "number" ? Math.round(Number(item.width)) : item.width
288
+ }))
289
+ };
290
+ setColumnCache(effectiveStorage, pathKey, newEntry);
291
+ }
292
+ },
293
+ [cacheTime, effectiveStorage, pathKey, curColumns],
294
+ {
295
+ wait: 100
307
296
  }
308
- }, [cacheTime, effectiveStorage, pathKey, curColumns], {
309
- wait: 100
310
- });
311
- const customColumns = useMemo(() => propsColumns.map(item => ({
312
- label: item?.title,
313
- value: item?.dataIndex,
314
- disabled: item.fixed,
315
- fixed: item.fixed
316
- })), [propsColumns]);
317
- const checkColumns = useMemo(() => curColumns?.map(item => item?.dataIndex), [curColumns]);
297
+ );
298
+ const customColumns = useMemo(
299
+ () => propsColumns.map((item) => ({
300
+ label: item == null ? void 0 : item.title,
301
+ value: item == null ? void 0 : item.dataIndex,
302
+ disabled: item.fixed,
303
+ fixed: item.fixed
304
+ })),
305
+ [propsColumns]
306
+ );
307
+ const checkColumns = useMemo(() => curColumns == null ? void 0 : curColumns.map((item) => item == null ? void 0 : item.dataIndex), [curColumns]);
318
308
  const cls = classnames({
319
- 'pro-table': true,
320
- 'pro-table-no-stripe': !stripe,
321
- 'pro-table-draggable-only': draggable && !tableProps?.rowSelection,
309
+ "pro-table": true,
310
+ "pro-table-no-stripe": !stripe,
311
+ "pro-table-draggable-only": draggable && !(tableProps == null ? void 0 : tableProps.rowSelection),
322
312
  [className]: className
323
313
  });
324
-
325
- // 复选框
326
314
  const _rowSelection = tableProps.rowSelection ? {
327
315
  fixed: draggable,
328
316
  getCheckboxProps(record) {
@@ -336,12 +324,7 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
336
324
  },
337
325
  hideSelectAll: disabled || isView,
338
326
  ...tableProps.rowSelection
339
- } : undefined;
340
-
341
- /**
342
- * 渲染表格选择器
343
- * @returns rowSelection
344
- */
327
+ } : void 0;
345
328
  const renderRowSelection = () => {
346
329
  if (disabled || isView) {
347
330
  return null;
@@ -351,115 +334,115 @@ const ProTable = /*#__PURE__*/forwardRef((props, tableRef) => {
351
334
  fixed: true,
352
335
  hideSelectAll: true,
353
336
  renderCell: () => {
354
- return /*#__PURE__*/_jsx(_Fragment, {});
337
+ return /* @__PURE__ */ jsx(Fragment, {});
355
338
  }
356
339
  };
357
340
  }
358
341
  return _rowSelection;
359
342
  };
360
- const onDataSourceChange = async nextDataSource => {
343
+ const onDataSourceChange = async (nextDataSource) => {
361
344
  setState({
362
345
  dataSource: nextDataSource
363
346
  });
364
- // 覆盖引用值
365
- _assign(dataSource, nextDataSource);
347
+ assign(dataSource, nextDataSource);
366
348
  };
367
349
  const TableComponent = draggable ? DraggableTable : BaseTable;
368
-
369
- // 标记样式
370
350
  const tagStyle = {
371
- '--zaui-contract-bg': changeTipColor,
372
- '--zaui-contract-bg-add': addTipColor
351
+ "--zaui-contract-bg": changeTipColor,
352
+ "--zaui-contract-bg-add": addTipColor
373
353
  };
374
- const tableContent = /*#__PURE__*/_jsxs("div", {
375
- className: cls,
376
- children: [tabs && /*#__PURE__*/_jsx(RenderTabs, {
377
- ...tabs,
378
- formTableProps: restProps?.formTableProps
379
- }), /*#__PURE__*/_jsx(RenderTableHeader, {
380
- dataSource: {
381
- headerRender,
382
- columnConfig,
383
- resizeColumn,
384
- resetSvg,
385
- resetColumnWidth,
386
- locale,
387
- customColumns,
388
- checkColumns,
389
- handleColumnConfig,
390
- customColumnSvg
391
- }
392
- }), /*#__PURE__*/_jsxs("div", {
393
- className: "pro-table-container",
394
- style: tagStyle,
395
- children: [/*#__PURE__*/_jsx(TableComponent, {
396
- ref: tableRef,
397
- ...restProps,
398
- draggableProps: {
399
- onChange: onDataSourceChange,
400
- draggable,
401
- rowKey,
402
- onDragStartGuard,
403
- onDragEndGuard
404
- },
405
- tableProps: {
406
- value: _dataSource,
354
+ const tableContent = /* @__PURE__ */ jsxs("div", { className: cls, children: [
355
+ tabs && /* @__PURE__ */ jsx(RenderTabs, { ...tabs, formTableProps: restProps == null ? void 0 : restProps.formTableProps }),
356
+ /* @__PURE__ */ jsx(
357
+ RenderTableHeader,
358
+ {
359
+ dataSource: {
407
360
  headerRender,
408
- columns: _columns,
409
- renderRowSelection,
410
- rowClassName: _rowClassName,
411
- disabled,
412
- resizeColumn
413
- },
414
- emptyTextProps: {
415
- empty,
361
+ columnConfig,
362
+ resizeColumn,
363
+ resetSvg,
364
+ resetColumnWidth,
416
365
  locale,
417
- emptyText
418
- },
419
- summaryProps: {
420
- summary,
421
- dataSource: _dataSource
422
- },
423
- dataSource: _dataSource,
424
- scroll: _scroll
425
- }), /*#__PURE__*/_jsx("span", {
426
- className: "pro-table-resizable-line",
427
- style: {
428
- display: 'none'
366
+ customColumns,
367
+ checkColumns,
368
+ handleColumnConfig,
369
+ customColumnSvg
429
370
  }
430
- })]
431
- }), /*#__PURE__*/_jsx(RenderFooter, {
432
- dataSource: {
433
- footerRender,
434
- pagination,
435
- _dataSource
436
371
  }
437
- })]
438
- });
439
-
440
- // 向后兼容:旧 Context 字段映射到新 columnStorage 语义
441
- // - tableConfig 之前是 { [pathKey]: entry } 的 JSON map;现仍按此结构包一层
442
- // - Storage 之前是 Storage 实例;indexedDB 模式下不可同步访问,返回 null
443
- const legacyTableConfig = columnEntry ? {
444
- [pathKey]: columnEntry
445
- } : {};
446
- const legacyStorage = effectiveStorage === 'localStorage' ? window.localStorage : effectiveStorage === 'sessionStorage' ? window.sessionStorage : null;
447
- return /*#__PURE__*/_jsx(TableContext.Provider, {
448
- value: {
449
- pathKey,
450
- tableConfig: legacyTableConfig,
451
- Storage: legacyStorage
452
- },
453
- children: shouldWrapSharedForm ? /*#__PURE__*/_jsx(Form, {
454
- form: sharedForm,
455
- component: false,
456
- children: tableContent
457
- }) : tableContent
458
- });
372
+ ),
373
+ /* @__PURE__ */ jsxs("div", { className: "pro-table-container", style: tagStyle, children: [
374
+ /* @__PURE__ */ jsx(
375
+ TableComponent,
376
+ {
377
+ ref: tableRef,
378
+ ...restProps,
379
+ draggableProps: {
380
+ onChange: onDataSourceChange,
381
+ draggable,
382
+ rowKey,
383
+ onDragStartGuard,
384
+ onDragEndGuard
385
+ },
386
+ tableProps: {
387
+ value: _dataSource,
388
+ headerRender,
389
+ columns: _columns,
390
+ renderRowSelection,
391
+ rowClassName: _rowClassName,
392
+ disabled,
393
+ resizeColumn
394
+ },
395
+ emptyTextProps: {
396
+ empty,
397
+ locale,
398
+ emptyText
399
+ },
400
+ summaryProps: {
401
+ summary,
402
+ dataSource: _dataSource
403
+ },
404
+ dataSource: _dataSource,
405
+ scroll: _scroll
406
+ }
407
+ ),
408
+ /* @__PURE__ */ jsx("span", { className: "pro-table-resizable-line", style: { display: "none" } })
409
+ ] }),
410
+ /* @__PURE__ */ jsx(
411
+ RenderFooter,
412
+ {
413
+ dataSource: {
414
+ footerRender,
415
+ pagination,
416
+ _dataSource
417
+ }
418
+ }
419
+ )
420
+ ] });
421
+ const legacyTableConfig = columnEntry ? { [pathKey]: columnEntry } : {};
422
+ const legacyStorage = effectiveStorage === "localStorage" ? window.localStorage : effectiveStorage === "sessionStorage" ? window.sessionStorage : null;
423
+ return /* @__PURE__ */ jsx(
424
+ TableContext.Provider,
425
+ {
426
+ value: {
427
+ pathKey,
428
+ tableConfig: legacyTableConfig,
429
+ Storage: legacyStorage
430
+ },
431
+ children: shouldWrapSharedForm ? /* @__PURE__ */ jsx(Form, { form: sharedForm, component: false, children: tableContent }) : tableContent
432
+ }
433
+ );
459
434
  });
460
435
  ProTable.useAntdTable = useAntdTable;
461
436
  ProTable.SELECTION_ALL = SELECTION_ALL;
462
437
  ProTable.CURRENT_PAGE = CURRENT_PAGE;
463
438
  ProTable.UNCHECK_ALL = UNCHECK_ALL;
464
- export { getColumnCache, setColumnCache, removeColumnCache } from "./utils/columnStorage";
465
- export default ProTable;
439
+ import { getColumnCache as getColumnCache2, setColumnCache as setColumnCache2, removeColumnCache as removeColumnCache2 } from "./utils/columnStorage";
440
+ var ProTable_default = ProTable;
441
+ export {
442
+ TableContext,
443
+ ProTable_default as default,
444
+ defaultPage,
445
+ getColumnCache2 as getColumnCache,
446
+ removeColumnCache2 as removeColumnCache,
447
+ setColumnCache2 as setColumnCache
448
+ };