@zat-design/sisyphus-react 4.5.9 → 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 (280) hide show
  1. package/dist/index.esm.css +1 -1
  2. package/dist/less.esm.css +1 -1
  3. package/es/FormsProvider/index.js +14 -21
  4. package/es/ProAction/components/CheckModalContent/index.js +12 -26
  5. package/es/ProAction/index.js +79 -83
  6. package/es/ProAction/propsType.js +0 -1
  7. package/es/ProConfigProvider/index.js +63 -110
  8. package/es/ProConfigProvider/propsType.js +0 -1
  9. package/es/ProDownload/index.d.ts +2 -1
  10. package/es/ProDownload/index.js +74 -69
  11. package/es/ProDownload/propsType.js +0 -1
  12. package/es/ProDownload/utils.d.ts +10 -5
  13. package/es/ProDownload/utils.js +63 -95
  14. package/es/ProDrawerForm/components/ProDrawer/index.js +83 -113
  15. package/es/ProDrawerForm/components/ProModal/index.js +77 -108
  16. package/es/ProDrawerForm/components/index.js +6 -2
  17. package/es/ProDrawerForm/hooks/useConfirmClose.js +20 -39
  18. package/es/ProDrawerForm/index.js +29 -38
  19. package/es/ProDrawerForm/propsType.js +0 -1
  20. package/es/ProDrawerForm/utils/index.js +18 -36
  21. package/es/ProEditLabel/components/RenderProForm.js +45 -49
  22. package/es/ProEditLabel/index.js +126 -163
  23. package/es/ProEditLabel/propsType.js +0 -1
  24. package/es/ProEditLabel/utils/index.js +5 -8
  25. package/es/ProEditTable/components/ActionButton/index.js +111 -119
  26. package/es/ProEditTable/components/RcTable/BaseTable.js +38 -51
  27. package/es/ProEditTable/components/RcTable/DraggableTable.js +97 -129
  28. package/es/ProEditTable/components/RcTable/index.js +6 -4
  29. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +77 -95
  30. package/es/ProEditTable/components/RenderField/index.js +490 -587
  31. package/es/ProEditTable/components/RenderField/propsType.js +0 -1
  32. package/es/ProEditTable/components/RenderField/tools.js +115 -112
  33. package/es/ProEditTable/components/RenderToolbar/index.js +47 -73
  34. package/es/ProEditTable/components/Summary/index.js +38 -64
  35. package/es/ProEditTable/components/Validator/index.js +46 -46
  36. package/es/ProEditTable/components/index.js +12 -5
  37. package/es/ProEditTable/index.js +456 -378
  38. package/es/ProEditTable/propsType.js +0 -1
  39. package/es/ProEditTable/utils/config.js +60 -122
  40. package/es/ProEditTable/utils/diffOriginal.js +45 -82
  41. package/es/ProEditTable/utils/getDefaultProps.js +19 -24
  42. package/es/ProEditTable/utils/index.js +154 -235
  43. package/es/ProEditTable/utils/tools.js +149 -286
  44. package/es/ProEditTable/utils/transform.js +25 -30
  45. package/es/ProEditTable/utils/useEditTableError.js +30 -43
  46. package/es/ProEditTable/utils/useShouldUpdateForTable.js +42 -72
  47. package/es/ProEditTable/utils/validateAll.js +87 -154
  48. package/es/ProEnum/components/Group.js +38 -30
  49. package/es/ProEnum/components/Tag.js +22 -26
  50. package/es/ProEnum/hooks/useEnum.js +48 -116
  51. package/es/ProEnum/hooks/useEnumRequest.js +182 -212
  52. package/es/ProEnum/hooks/useFrequentEnumRequest.js +40 -48
  53. package/es/ProEnum/index.js +162 -172
  54. package/es/ProEnum/propsType.js +0 -1
  55. package/es/ProEnum/utils/eventCenter.js +10 -12
  56. package/es/ProEnum/utils/frequentEnum.js +35 -92
  57. package/es/ProEnum/utils/getEnum.js +32 -90
  58. package/es/ProEnum/utils/getEnumLabel.js +44 -49
  59. package/es/ProEnum/utils/index.js +93 -207
  60. package/es/ProForm/components/Container.js +13 -28
  61. package/es/ProForm/components/FormFooter/index.js +36 -44
  62. package/es/ProForm/components/FormFooter/propsType.js +0 -1
  63. package/es/ProForm/components/base/Checkbox/index.js +32 -59
  64. package/es/ProForm/components/base/DatePicker/index.js +49 -71
  65. package/es/ProForm/components/base/Input/index.js +63 -97
  66. package/es/ProForm/components/base/Input/propsType.js +0 -1
  67. package/es/ProForm/components/base/InputNumber/index.js +118 -172
  68. package/es/ProForm/components/base/Radio/index.js +39 -52
  69. package/es/ProForm/components/base/RangePicker/index.js +109 -127
  70. package/es/ProForm/components/base/RangePicker/useDateRange.js +20 -17
  71. package/es/ProForm/components/base/Select/index.js +63 -89
  72. package/es/ProForm/components/base/Switch/index.js +27 -35
  73. package/es/ProForm/components/base/SwitchCheckbox/index.js +36 -54
  74. package/es/ProForm/components/base/TextArea/index.js +30 -41
  75. package/es/ProForm/components/base/TimePicker/index.js +27 -37
  76. package/es/ProForm/components/combination/Container/index.js +37 -47
  77. package/es/ProForm/components/combination/Container/propsType.js +0 -1
  78. package/es/ProForm/components/combination/FormList/components/ActionButton.js +165 -237
  79. package/es/ProForm/components/combination/FormList/components/BlockFields.js +98 -102
  80. package/es/ProForm/components/combination/FormList/components/Empty.js +28 -55
  81. package/es/ProForm/components/combination/FormList/components/LineFields.js +57 -54
  82. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +61 -109
  83. package/es/ProForm/components/combination/FormList/index.js +151 -161
  84. package/es/ProForm/components/combination/FormList/propsType.js +0 -1
  85. package/es/ProForm/components/combination/FormList/style/index.less +6 -0
  86. package/es/ProForm/components/combination/FormList/utils.js +22 -38
  87. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.js +12 -28
  88. package/es/ProForm/components/combination/Group/component/ComRender.js +50 -111
  89. package/es/ProForm/components/combination/Group/component/FlexibleGroup.js +106 -213
  90. package/es/ProForm/components/combination/Group/hooks/index.js +69 -129
  91. package/es/ProForm/components/combination/Group/index.js +87 -126
  92. package/es/ProForm/components/combination/Group/propsType.js +0 -1
  93. package/es/ProForm/components/combination/Group/utils/index.js +124 -239
  94. package/es/ProForm/components/combination/ProCascader/index.js +156 -199
  95. package/es/ProForm/components/combination/ProCascader/propsType.js +0 -1
  96. package/es/ProForm/components/combination/ProCascader/utils/index.js +12 -21
  97. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +72 -70
  98. package/es/ProForm/components/combination/ProModalSelect/index.js +309 -347
  99. package/es/ProForm/components/combination/ProModalSelect/propsType.js +0 -1
  100. package/es/ProForm/components/combination/ProModalSelect/utils/index.js +32 -39
  101. package/es/ProForm/components/combination/ProNumberRange/index.js +100 -156
  102. package/es/ProForm/components/combination/ProNumberRange/propsType.js +0 -1
  103. package/es/ProForm/components/combination/ProRangeLimit/index.js +104 -115
  104. package/es/ProForm/components/combination/ProRangeLimit/propsType.js +0 -1
  105. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +16 -16
  106. package/es/ProForm/components/combination/ProTimeLimit/index.js +75 -109
  107. package/es/ProForm/components/index.js +56 -34
  108. package/es/ProForm/components/render/ChangedWrapper.js +85 -94
  109. package/es/ProForm/components/render/ConfirmWrapper.js +27 -39
  110. package/es/ProForm/components/render/CustomComponentViewWrapper.js +65 -82
  111. package/es/ProForm/components/render/Render.js +223 -329
  112. package/es/ProForm/components/render/RenderFields.js +76 -113
  113. package/es/ProForm/components/render/propsType.js +0 -1
  114. package/es/ProForm/hooks/useControlled.js +8 -10
  115. package/es/ProForm/hooks/useDeepCompareMemo.js +11 -11
  116. package/es/ProForm/hooks/useFieldProps.js +8 -4
  117. package/es/ProForm/hooks/useForm.js +50 -110
  118. package/es/ProForm/hooks/useRules.js +17 -33
  119. package/es/ProForm/hooks/useShouldUpdate.js +77 -152
  120. package/es/ProForm/hooks/useWatch.js +62 -134
  121. package/es/ProForm/index.js +157 -194
  122. package/es/ProForm/propsType.js +15 -7
  123. package/es/ProForm/utils/buildFormItemProps.js +51 -58
  124. package/es/ProForm/utils/diffOriginal.js +43 -73
  125. package/es/ProForm/utils/getDefaultProps.js +18 -24
  126. package/es/ProForm/utils/index.js +160 -235
  127. package/es/ProForm/utils/processDependencies.js +21 -60
  128. package/es/ProForm/utils/reactiveValues.js +20 -34
  129. package/es/ProForm/utils/rulesCreator.js +42 -40
  130. package/es/ProForm/utils/transformNames.js +10 -13
  131. package/es/ProForm/utils/transformValue.js +16 -29
  132. package/es/ProForm/utils/valueType.js +96 -178
  133. package/es/ProIcon/config/index.js +340 -274
  134. package/es/ProIcon/index.js +135 -209
  135. package/es/ProIcon/propsTypes.js +0 -1
  136. package/es/ProIcon/utils/index.js +24 -39
  137. package/es/ProLayout/components/Layout/Header/index.js +108 -141
  138. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +134 -190
  139. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +113 -139
  140. package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.js +0 -1
  141. package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +23 -31
  142. package/es/ProLayout/components/Layout/Menu/index.js +92 -89
  143. package/es/ProLayout/components/Layout/Notice/index.js +13 -27
  144. package/es/ProLayout/components/Layout/index.js +8 -3
  145. package/es/ProLayout/components/ProCollapse/PropTypes.js +0 -1
  146. package/es/ProLayout/components/ProCollapse/index.js +89 -111
  147. package/es/ProLayout/components/ProFooter/PropTypes.js +0 -1
  148. package/es/ProLayout/components/ProFooter/index.js +27 -24
  149. package/es/ProLayout/components/ProHeader/PropTypes.js +0 -1
  150. package/es/ProLayout/components/ProHeader/components/Copy/index.js +23 -21
  151. package/es/ProLayout/components/ProHeader/components/Describe/index.js +67 -84
  152. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +18 -21
  153. package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.js +0 -1
  154. package/es/ProLayout/components/ProHeader/components/index.js +6 -2
  155. package/es/ProLayout/components/ProHeader/index.js +216 -356
  156. package/es/ProLayout/components/ProHeader/utils/index.js +19 -26
  157. package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +92 -85
  158. package/es/ProLayout/components/TabsManager/components/TabItem.js +53 -63
  159. package/es/ProLayout/components/TabsManager/components/TabsContext.js +5 -5
  160. package/es/ProLayout/components/TabsManager/components/TabsHeader.js +42 -52
  161. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.js +8 -9
  162. package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.js +19 -32
  163. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +6 -20
  164. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.js +25 -42
  165. package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +320 -350
  166. package/es/ProLayout/components/TabsManager/hooks/useTabsUrlSync.d.ts +19 -0
  167. package/es/ProLayout/components/TabsManager/hooks/useTabsUrlSync.js +332 -0
  168. package/es/ProLayout/components/TabsManager/index.js +407 -351
  169. package/es/ProLayout/components/TabsManager/propTypes.d.ts +4 -0
  170. package/es/ProLayout/components/TabsManager/propTypes.js +7 -15
  171. package/es/ProLayout/components/TabsManager/style/index.less +1 -1
  172. package/es/ProLayout/components/TabsManager/utils/historyObserver.d.ts +7 -0
  173. package/es/ProLayout/components/TabsManager/utils/historyObserver.js +65 -0
  174. package/es/ProLayout/components/TabsManager/utils/index.d.ts +15 -2
  175. package/es/ProLayout/components/TabsManager/utils/index.js +156 -159
  176. package/es/ProLayout/components/index.js +8 -3
  177. package/es/ProLayout/index.js +173 -228
  178. package/es/ProLayout/propTypes.d.ts +28 -1
  179. package/es/ProLayout/propTypes.js +12 -52
  180. package/es/ProLayout/utils/index.js +48 -128
  181. package/es/ProSelect/components/AdaptiveTooltip.js +26 -25
  182. package/es/ProSelect/index.js +187 -223
  183. package/es/ProSelect/propsType.js +0 -1
  184. package/es/ProSelect/style/index.less +13 -0
  185. package/es/ProSelect/utils/index.js +100 -146
  186. package/es/ProStep/components/Anchor/index.js +71 -82
  187. package/es/ProStep/components/Item/index.js +49 -56
  188. package/es/ProStep/components/LazyLoad/index.js +23 -29
  189. package/es/ProStep/components/Listener/index.js +20 -33
  190. package/es/ProStep/components/Step/index.js +31 -38
  191. package/es/ProStep/constants.js +4 -1
  192. package/es/ProStep/index.js +166 -153
  193. package/es/ProStep/propsType.js +0 -1
  194. package/es/ProStep/style/index.less +1 -1
  195. package/es/ProStep/utils/index.js +29 -55
  196. package/es/ProStepTab/index.js +83 -138
  197. package/es/ProStepTab/propsType.js +0 -1
  198. package/es/ProTable/components/EditableCell/EditIcon.js +10 -14
  199. package/es/ProTable/components/EditableCell/index.js +37 -71
  200. package/es/ProTable/components/EditableCell/propsType.js +0 -1
  201. package/es/ProTable/components/FormatColumn/index.js +209 -340
  202. package/es/ProTable/components/FormatColumn/propsType.js +0 -1
  203. package/es/ProTable/components/RcTable/components/BaseTable/index.js +35 -39
  204. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +80 -107
  205. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +54 -48
  206. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.js +0 -1
  207. package/es/ProTable/components/RcTable/components/DraggableTable/index.js +47 -54
  208. package/es/ProTable/components/RcTable/index.js +6 -4
  209. package/es/ProTable/components/RenderColumn/index.js +158 -186
  210. package/es/ProTable/components/RenderEmptyText/index.js +12 -21
  211. package/es/ProTable/components/RenderFooter/index.js +15 -15
  212. package/es/ProTable/components/RenderSummary/index.js +33 -50
  213. package/es/ProTable/components/RenderTableHeader/index.js +44 -46
  214. package/es/ProTable/components/RenderTabs/index.js +47 -51
  215. package/es/ProTable/components/TableResizable/index.js +56 -72
  216. package/es/ProTable/components/TooltipTitle/index.js +13 -21
  217. package/es/ProTable/components/index.js +16 -36
  218. package/es/ProTable/hooks/useAntdTable.js +191 -224
  219. package/es/ProTable/index.js +232 -249
  220. package/es/ProTable/propsType.js +0 -1
  221. package/es/ProTable/utils/columnStorage.js +63 -88
  222. package/es/ProTable/utils/index.js +57 -90
  223. package/es/ProTabs/components/Card/index.js +20 -48
  224. package/es/ProTabs/components/index.js +4 -1
  225. package/es/ProTabs/index.js +41 -58
  226. package/es/ProTabs/propType.js +0 -1
  227. package/es/ProThemeTools/component/ProTools/index.js +106 -158
  228. package/es/ProThemeTools/component/index.js +4 -1
  229. package/es/ProThemeTools/context/ThemeContext.js +67 -146
  230. package/es/ProThemeTools/index.js +103 -156
  231. package/es/ProThemeTools/propsType.js +0 -1
  232. package/es/ProThemeTools/utils/index.js +60 -109
  233. package/es/ProTooltip/index.js +132 -168
  234. package/es/ProTooltip/propsType.js +0 -1
  235. package/es/ProTree/components/AdaptiveTooltip.js +15 -17
  236. package/es/ProTree/components/CloseIcon.js +18 -26
  237. package/es/ProTree/components/List.js +28 -47
  238. package/es/ProTree/components/ProTree.js +152 -211
  239. package/es/ProTree/components/ProTreeSelect/index.js +255 -459
  240. package/es/ProTree/components/ProTreeSelect/propsType.js +0 -1
  241. package/es/ProTree/components/SearchTitle.js +23 -42
  242. package/es/ProTree/components/Tree.js +147 -195
  243. package/es/ProTree/components/index.js +10 -5
  244. package/es/ProTree/index.js +12 -16
  245. package/es/ProTree/propsType.js +0 -1
  246. package/es/ProTree/utils.js +46 -118
  247. package/es/ProTreeModal/components/Cascader.js +56 -64
  248. package/es/ProTreeModal/components/CloseIcon.js +18 -26
  249. package/es/ProTreeModal/components/List.js +114 -180
  250. package/es/ProTreeModal/components/SearchTitle.js +15 -18
  251. package/es/ProTreeModal/components/SortableItem.js +29 -58
  252. package/es/ProTreeModal/components/Tree.js +99 -113
  253. package/es/ProTreeModal/components/Trigger.js +87 -121
  254. package/es/ProTreeModal/components/index.js +14 -6
  255. package/es/ProTreeModal/index.js +397 -438
  256. package/es/ProTreeModal/propsType.js +0 -1
  257. package/es/ProTreeModal/utils.js +52 -95
  258. package/es/ProUpload/components/ButtonRender.js +44 -54
  259. package/es/ProUpload/components/DragRender.js +94 -148
  260. package/es/ProUpload/components/DraggableUploadListItem.js +12 -25
  261. package/es/ProUpload/components/Example.js +27 -31
  262. package/es/ProUpload/components/FileItem.js +69 -163
  263. package/es/ProUpload/components/ImageRender.js +134 -170
  264. package/es/ProUpload/index.js +68 -100
  265. package/es/ProUpload/propsType.js +0 -1
  266. package/es/ProUpload/uitls.js +8 -4
  267. package/es/ProUtils/utils/index.js +17 -13
  268. package/es/ProViewer/index.js +154 -175
  269. package/es/ProViewer/propsType.js +0 -5
  270. package/es/ProWaterMark/index.js +9 -16
  271. package/es/ProWaterMark/propsType.js +0 -1
  272. package/es/hooks/useDraggableRow.js +25 -53
  273. package/es/index.js +57 -77
  274. package/es/locale/en_US.js +153 -142
  275. package/es/locale/index.js +23 -36
  276. package/es/locale/zh_CN.js +145 -142
  277. package/es/tokens.js +84 -83
  278. package/es/utils/index.js +24 -51
  279. package/package.json +4 -2
  280. package/es/ProConfigProvider/demo/locale.js +0 -58
@@ -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
+ };