@zat-design/sisyphus-react 4.5.0 → 4.5.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 (290) hide show
  1. package/dist/index.esm.css +1 -1
  2. package/dist/less.esm.css +1 -1
  3. package/es/ProDrawerForm/components/ProDrawer/index.js +58 -86
  4. package/es/ProDrawerForm/components/ProModal/index.js +44 -20
  5. package/es/ProDrawerForm/hooks/useConfirmClose.js +70 -0
  6. package/es/ProDrawerForm/index.js +7 -11
  7. package/es/ProDrawerForm/utils/index.js +36 -0
  8. package/es/ProEditTable/components/RcTable/BaseTable.js +10 -0
  9. package/es/ProEditTable/components/Summary/index.js +3 -2
  10. package/es/ProEditTable/utils/tools.js +1 -1
  11. package/es/ProEnum/index.js +6 -3
  12. package/es/ProForm/components/combination/FormList/components/ActionButton.js +7 -6
  13. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -3
  14. package/es/ProForm/components/combination/ProModalSelect/index.js +7 -2
  15. package/es/ProForm/components/combination/ProModalSelect/utils/mergeSelectedRows.js +26 -0
  16. package/es/ProForm/components/render/RenderFields.js +3 -1
  17. package/es/ProForm/hooks/useWatch.js +8 -10
  18. package/es/ProLayout/components/ProHeader/index.js +28 -15
  19. package/es/ProSelect/index.js +77 -178
  20. package/es/ProSelect/utils/index.js +174 -0
  21. package/es/ProTree/components/ProTreeSelect/index.js +41 -14
  22. package/es/ProTree/components/ProTreeSelect/style/index.less +13 -4
  23. package/es/ProTree/style/index.less +20 -9
  24. package/es/ProTree/utils.js +26 -0
  25. package/es/ProTreeModal/style/index.less +1 -1
  26. package/es/ProUpload/components/DragRender.js +2 -1
  27. package/es/ProUpload/index.js +1 -1
  28. package/es/ProViewer/propsType.js +3 -1
  29. package/es/index.js +10 -0
  30. package/package.json +7 -13
  31. package/es/FormsProvider/index.d.ts +0 -18
  32. package/es/ProAction/components/CheckModalContent/index.d.ts +0 -8
  33. package/es/ProAction/index.d.ts +0 -7
  34. package/es/ProAction/propsType.d.ts +0 -45
  35. package/es/ProConfigProvider/index.d.ts +0 -9
  36. package/es/ProConfigProvider/propsType.d.ts +0 -78
  37. package/es/ProDownload/index.d.ts +0 -6
  38. package/es/ProDownload/propsType.d.ts +0 -71
  39. package/es/ProDownload/utils.d.ts +0 -60
  40. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
  41. package/es/ProDrawerForm/components/ProModal/index.d.ts +0 -7
  42. package/es/ProDrawerForm/components/index.d.ts +0 -2
  43. package/es/ProDrawerForm/index.d.ts +0 -6
  44. package/es/ProDrawerForm/propsType.d.ts +0 -100
  45. package/es/ProDrawerForm/utils/index.d.ts +0 -6
  46. package/es/ProEditLabel/components/RenderProForm.d.ts +0 -4
  47. package/es/ProEditLabel/index.d.ts +0 -4
  48. package/es/ProEditLabel/propsType.d.ts +0 -163
  49. package/es/ProEditLabel/utils/index.d.ts +0 -7
  50. package/es/ProEditTable/components/ActionButton/index.d.ts +0 -2
  51. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
  52. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
  53. package/es/ProEditTable/components/RcTable/index.d.ts +0 -4
  54. package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -4
  55. package/es/ProEditTable/components/RenderField/index.d.ts +0 -3
  56. package/es/ProEditTable/components/RenderField/propsType.d.ts +0 -30
  57. package/es/ProEditTable/components/RenderField/tools.d.ts +0 -22
  58. package/es/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
  59. package/es/ProEditTable/components/Summary/index.d.ts +0 -12
  60. package/es/ProEditTable/components/Validator/index.d.ts +0 -19
  61. package/es/ProEditTable/components/index.d.ts +0 -5
  62. package/es/ProEditTable/index.d.ts +0 -4
  63. package/es/ProEditTable/propsType.d.ts +0 -437
  64. package/es/ProEditTable/utils/config.d.ts +0 -25
  65. package/es/ProEditTable/utils/diffOriginal.d.ts +0 -22
  66. package/es/ProEditTable/utils/getDefaultProps.d.ts +0 -1
  67. package/es/ProEditTable/utils/index.d.ts +0 -23
  68. package/es/ProEditTable/utils/tools.d.ts +0 -128
  69. package/es/ProEditTable/utils/transform.d.ts +0 -13
  70. package/es/ProEditTable/utils/useEditTableError.d.ts +0 -7
  71. package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
  72. package/es/ProEditTable/utils/validateAll.d.ts +0 -89
  73. package/es/ProEnum/components/Group.d.ts +0 -10
  74. package/es/ProEnum/components/Tag.d.ts +0 -7
  75. package/es/ProEnum/hooks/useEnum.d.ts +0 -29
  76. package/es/ProEnum/hooks/useEnumRequest.d.ts +0 -4
  77. package/es/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
  78. package/es/ProEnum/index.d.ts +0 -10
  79. package/es/ProEnum/propsType.d.ts +0 -310
  80. package/es/ProEnum/utils/eventCenter.d.ts +0 -1
  81. package/es/ProEnum/utils/frequentEnum.d.ts +0 -39
  82. package/es/ProEnum/utils/getEnum.d.ts +0 -47
  83. package/es/ProEnum/utils/getEnumLabel.d.ts +0 -2
  84. package/es/ProEnum/utils/index.d.ts +0 -84
  85. package/es/ProForm/components/Container.d.ts +0 -9
  86. package/es/ProForm/components/FormFooter/index.d.ts +0 -5
  87. package/es/ProForm/components/FormFooter/propsType.d.ts +0 -22
  88. package/es/ProForm/components/base/Checkbox/index.d.ts +0 -14
  89. package/es/ProForm/components/base/DatePicker/index.d.ts +0 -11
  90. package/es/ProForm/components/base/Input/index.d.ts +0 -3
  91. package/es/ProForm/components/base/Input/propsType.d.ts +0 -21
  92. package/es/ProForm/components/base/InputNumber/index.d.ts +0 -11
  93. package/es/ProForm/components/base/Radio/index.d.ts +0 -15
  94. package/es/ProForm/components/base/RangePicker/index.d.ts +0 -19
  95. package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
  96. package/es/ProForm/components/base/Select/index.d.ts +0 -11
  97. package/es/ProForm/components/base/Switch/index.d.ts +0 -10
  98. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
  99. package/es/ProForm/components/base/TextArea/index.d.ts +0 -11
  100. package/es/ProForm/components/base/TimePicker/index.d.ts +0 -13
  101. package/es/ProForm/components/combination/Container/index.d.ts +0 -4
  102. package/es/ProForm/components/combination/Container/propsType.d.ts +0 -13
  103. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
  104. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
  105. package/es/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
  106. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
  107. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
  108. package/es/ProForm/components/combination/FormList/index.d.ts +0 -4
  109. package/es/ProForm/components/combination/FormList/propsType.d.ts +0 -69
  110. package/es/ProForm/components/combination/FormList/utils.d.ts +0 -18
  111. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
  112. package/es/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
  113. package/es/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
  114. package/es/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
  115. package/es/ProForm/components/combination/Group/index.d.ts +0 -9
  116. package/es/ProForm/components/combination/Group/propsType.d.ts +0 -99
  117. package/es/ProForm/components/combination/Group/utils/index.d.ts +0 -154
  118. package/es/ProForm/components/combination/ProCascader/index.d.ts +0 -4
  119. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
  120. package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
  121. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
  122. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
  123. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
  124. package/es/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
  125. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
  126. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
  127. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
  128. package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
  129. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
  130. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
  131. package/es/ProForm/components/index.d.ts +0 -29
  132. package/es/ProForm/components/render/ChangedWrapper.d.ts +0 -17
  133. package/es/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
  134. package/es/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
  135. package/es/ProForm/components/render/Render.d.ts +0 -4
  136. package/es/ProForm/components/render/RenderFields.d.ts +0 -26
  137. package/es/ProForm/components/render/propsType.d.ts +0 -279
  138. package/es/ProForm/hooks/useControlled.d.ts +0 -1
  139. package/es/ProForm/hooks/useDeepCompareMemo.d.ts +0 -2
  140. package/es/ProForm/hooks/useFieldProps.d.ts +0 -4
  141. package/es/ProForm/hooks/useForm.d.ts +0 -8
  142. package/es/ProForm/hooks/useRules.d.ts +0 -16
  143. package/es/ProForm/hooks/useShouldUpdate.d.ts +0 -31
  144. package/es/ProForm/hooks/useWatch.d.ts +0 -22
  145. package/es/ProForm/index.d.ts +0 -6
  146. package/es/ProForm/propsType.d.ts +0 -143
  147. package/es/ProForm/utils/buildFormItemProps.d.ts +0 -25
  148. package/es/ProForm/utils/diffOriginal.d.ts +0 -10
  149. package/es/ProForm/utils/getDefaultProps.d.ts +0 -1
  150. package/es/ProForm/utils/index.d.ts +0 -109
  151. package/es/ProForm/utils/processDependencies.d.ts +0 -29
  152. package/es/ProForm/utils/reactiveValues.d.ts +0 -34
  153. package/es/ProForm/utils/rulesCreator.d.ts +0 -7
  154. package/es/ProForm/utils/transformNames.d.ts +0 -10
  155. package/es/ProForm/utils/transformValue.d.ts +0 -6
  156. package/es/ProForm/utils/valueType.d.ts +0 -70
  157. package/es/ProIcon/config/index.d.ts +0 -19
  158. package/es/ProIcon/index.d.ts +0 -4
  159. package/es/ProIcon/propsTypes.d.ts +0 -175
  160. package/es/ProIcon/utils/index.d.ts +0 -6
  161. package/es/ProLayout/components/Layout/Header/index.d.ts +0 -4
  162. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
  163. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
  164. package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
  165. package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
  166. package/es/ProLayout/components/Layout/Menu/index.d.ts +0 -4
  167. package/es/ProLayout/components/Layout/Notice/index.d.ts +0 -4
  168. package/es/ProLayout/components/Layout/index.d.ts +0 -3
  169. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
  170. package/es/ProLayout/components/ProCollapse/index.d.ts +0 -3
  171. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
  172. package/es/ProLayout/components/ProFooter/index.d.ts +0 -4
  173. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
  174. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
  175. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
  176. package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
  177. package/es/ProLayout/components/ProHeader/components/index.d.ts +0 -2
  178. package/es/ProLayout/components/ProHeader/index.d.ts +0 -4
  179. package/es/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
  180. package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
  181. package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
  182. package/es/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
  183. package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -10
  184. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
  185. package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.d.ts +0 -25
  186. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
  187. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
  188. package/es/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
  189. package/es/ProLayout/components/TabsManager/index.d.ts +0 -7
  190. package/es/ProLayout/components/TabsManager/propTypes.d.ts +0 -89
  191. package/es/ProLayout/components/TabsManager/utils/index.d.ts +0 -47
  192. package/es/ProLayout/components/index.d.ts +0 -3
  193. package/es/ProLayout/index.d.ts +0 -20
  194. package/es/ProLayout/propTypes.d.ts +0 -533
  195. package/es/ProLayout/utils/index.d.ts +0 -43
  196. package/es/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
  197. package/es/ProSelect/index.d.ts +0 -5
  198. package/es/ProSelect/propsType.d.ts +0 -160
  199. package/es/ProSelect/utils/index.d.ts +0 -4
  200. package/es/ProStep/components/Anchor/index.d.ts +0 -4
  201. package/es/ProStep/components/Item/index.d.ts +0 -3
  202. package/es/ProStep/components/LazyLoad/index.d.ts +0 -19
  203. package/es/ProStep/components/Listener/index.d.ts +0 -4
  204. package/es/ProStep/components/Step/index.d.ts +0 -5
  205. package/es/ProStep/index.d.ts +0 -11
  206. package/es/ProStep/propsType.d.ts +0 -224
  207. package/es/ProStep/utils/index.d.ts +0 -22
  208. package/es/ProStepTab/index.d.ts +0 -22
  209. package/es/ProStepTab/propsType.d.ts +0 -114
  210. package/es/ProTable/components/EditableCell/EditIcon.d.ts +0 -6
  211. package/es/ProTable/components/EditableCell/index.d.ts +0 -4
  212. package/es/ProTable/components/EditableCell/propsType.d.ts +0 -24
  213. package/es/ProTable/components/FormatColumn/index.d.ts +0 -22
  214. package/es/ProTable/components/FormatColumn/propsType.d.ts +0 -29
  215. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -3
  216. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
  217. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
  218. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
  219. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -3
  220. package/es/ProTable/components/RcTable/index.d.ts +0 -4
  221. package/es/ProTable/components/RenderColumn/index.d.ts +0 -22
  222. package/es/ProTable/components/RenderEmptyText/index.d.ts +0 -3
  223. package/es/ProTable/components/RenderFooter/index.d.ts +0 -2
  224. package/es/ProTable/components/RenderSummary/index.d.ts +0 -3
  225. package/es/ProTable/components/RenderTableHeader/index.d.ts +0 -2
  226. package/es/ProTable/components/RenderTabs/index.d.ts +0 -4
  227. package/es/ProTable/components/TableResizable/index.d.ts +0 -13
  228. package/es/ProTable/components/TooltipTitle/index.d.ts +0 -11
  229. package/es/ProTable/components/index.d.ts +0 -31
  230. package/es/ProTable/hooks/useAntdTable.d.ts +0 -7
  231. package/es/ProTable/index.d.ts +0 -17
  232. package/es/ProTable/propsType.d.ts +0 -792
  233. package/es/ProTable/utils/columnStorage.d.ts +0 -35
  234. package/es/ProTable/utils/index.d.ts +0 -52
  235. package/es/ProTabs/components/Card/index.d.ts +0 -3
  236. package/es/ProTabs/components/index.d.ts +0 -1
  237. package/es/ProTabs/index.d.ts +0 -4
  238. package/es/ProTabs/propType.d.ts +0 -94
  239. package/es/ProThemeTools/component/ProTools/index.d.ts +0 -3
  240. package/es/ProThemeTools/component/index.d.ts +0 -1
  241. package/es/ProThemeTools/context/ThemeContext.d.ts +0 -43
  242. package/es/ProThemeTools/index.d.ts +0 -9
  243. package/es/ProThemeTools/propsType.d.ts +0 -170
  244. package/es/ProThemeTools/utils/index.d.ts +0 -51
  245. package/es/ProTooltip/index.d.ts +0 -3
  246. package/es/ProTooltip/propsType.d.ts +0 -57
  247. package/es/ProTree/components/AdaptiveTooltip.d.ts +0 -4
  248. package/es/ProTree/components/CloseIcon.d.ts +0 -2
  249. package/es/ProTree/components/List.d.ts +0 -17
  250. package/es/ProTree/components/ProTree.d.ts +0 -3
  251. package/es/ProTree/components/ProTreeSelect/index.d.ts +0 -5
  252. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
  253. package/es/ProTree/components/SearchTitle.d.ts +0 -11
  254. package/es/ProTree/components/Tree.d.ts +0 -27
  255. package/es/ProTree/components/index.d.ts +0 -4
  256. package/es/ProTree/index.d.ts +0 -3
  257. package/es/ProTree/propsType.d.ts +0 -812
  258. package/es/ProTree/utils.d.ts +0 -52
  259. package/es/ProTreeModal/components/Cascader.d.ts +0 -14
  260. package/es/ProTreeModal/components/CloseIcon.d.ts +0 -2
  261. package/es/ProTreeModal/components/List.d.ts +0 -21
  262. package/es/ProTreeModal/components/SearchTitle.d.ts +0 -7
  263. package/es/ProTreeModal/components/SortableItem.d.ts +0 -12
  264. package/es/ProTreeModal/components/Tree.d.ts +0 -25
  265. package/es/ProTreeModal/components/Trigger.d.ts +0 -21
  266. package/es/ProTreeModal/components/index.d.ts +0 -6
  267. package/es/ProTreeModal/index.d.ts +0 -4
  268. package/es/ProTreeModal/propsType.d.ts +0 -298
  269. package/es/ProTreeModal/utils.d.ts +0 -39
  270. package/es/ProUpload/components/ButtonRender.d.ts +0 -20
  271. package/es/ProUpload/components/DragRender.d.ts +0 -21
  272. package/es/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
  273. package/es/ProUpload/components/Example.d.ts +0 -10
  274. package/es/ProUpload/components/FileItem.d.ts +0 -33
  275. package/es/ProUpload/components/ImageRender.d.ts +0 -19
  276. package/es/ProUpload/index.d.ts +0 -4
  277. package/es/ProUpload/propsType.d.ts +0 -264
  278. package/es/ProUpload/uitls.d.ts +0 -3
  279. package/es/ProUtils/utils/index.d.ts +0 -6
  280. package/es/ProViewer/index.d.ts +0 -4
  281. package/es/ProViewer/propsType.d.ts +0 -35
  282. package/es/ProWaterMark/index.d.ts +0 -4
  283. package/es/ProWaterMark/propsType.d.ts +0 -6
  284. package/es/hooks/useDraggableRow.d.ts +0 -34
  285. package/es/index.d.ts +0 -47
  286. package/es/locale/en_US.d.ts +0 -176
  287. package/es/locale/index.d.ts +0 -15
  288. package/es/locale/zh_CN.d.ts +0 -176
  289. package/es/tokens.d.ts +0 -83
  290. package/es/utils/index.d.ts +0 -20
@@ -1,437 +0,0 @@
1
- import { AffixProps, ModalFuncProps } from 'antd';
2
- import { Key, ReactNode } from 'react';
3
- import { DragEndEvent } from '@dnd-kit/core';
4
- import type { ButtonProps } from 'antd/es/button';
5
- import type { TooltipProps } from 'antd/es/tooltip';
6
- import type { NamePath } from 'antd/es/form/interface';
7
- import type { ColumnType, TableProps } from 'antd/es/table';
8
- import type { FormInstance, FormItemProps } from 'antd/es/form';
9
- import type { ProFormValueType, FunctionArgs, ProRule, ReactiveFunction } from '../ProForm/components/render/propsType';
10
- import type { DiffOriginalParams } from './utils/diffOriginal';
11
- /**
12
- * 操作类型定义
13
- */
14
- export type ActionType = 'edit' | 'delete' | 'save' | 'cancel' | 'add' | 'mulDelete' | 'custom';
15
- /**
16
- * 操作按钮展示控制函数类型
17
- * @template T 记录类型
18
- */
19
- export type ShowFunction<T = any> = (record?: T, options?: {
20
- index: number;
21
- form: FormInstance;
22
- name: NamePath;
23
- namePath: NamePath;
24
- tableLength: number;
25
- selectedRows: T[];
26
- }) => Promise<boolean> | boolean | void;
27
- /**
28
- * 选项属性接口
29
- */
30
- export interface OptionsProps {
31
- /** 索引 */
32
- index: number;
33
- /** 表单实例 */
34
- form: FormInstance;
35
- /** 名称路径 */
36
- namePath: NamePath;
37
- /** 名称 */
38
- name: NamePath;
39
- }
40
- /**
41
- * 选项属性类型(基于接口)
42
- */
43
- export type OptionsType = OptionsProps;
44
- /**
45
- * 汇总列属性
46
- */
47
- export interface SummaryColumnProps {
48
- /** 列唯一标识 */
49
- key: string;
50
- /** 列索引 */
51
- index: number;
52
- /** 列标题 */
53
- title?: string;
54
- /** 跨列数 */
55
- colSpan?: number;
56
- /** 值类型 */
57
- valueType?: string;
58
- /** 精度 */
59
- precision?: number;
60
- /** 前缀 */
61
- prefix?: ReactNode | string;
62
- }
63
- /**
64
- * 基础操作按钮属性
65
- * @template T 记录类型
66
- */
67
- export interface BaseActionProps<T = any> {
68
- /**
69
- * 按钮类型
70
- */
71
- type?: ActionType;
72
- /**
73
- * 按钮名称
74
- */
75
- label?: string | ReactNode;
76
- /**
77
- * 是否显示按钮
78
- * @default true
79
- */
80
- show?: boolean | ShowFunction<T>;
81
- /**
82
- * 是否持久化(一直显示)操作按钮
83
- * @default true
84
- */
85
- persistence?: boolean;
86
- /**
87
- * 是否禁止操作
88
- * @default true
89
- */
90
- disabled?: boolean | ShowFunction<T>;
91
- /**
92
- * 添加是否自定义打开弹框
93
- * @default false
94
- */
95
- isSelectModal?: boolean;
96
- /**
97
- * 删除是否开启二次确认
98
- * @default true
99
- */
100
- needConfirm?: boolean;
101
- /**
102
- * 按钮是否禁止操作
103
- */
104
- isEditable?: boolean;
105
- /**
106
- * 按钮前置校验事件
107
- */
108
- onClick?: (record?: T, index?: number) => any;
109
- /**
110
- * 按钮前置校验事件
111
- */
112
- onHandle?: (record?: T, index?: number) => any;
113
- /**
114
- * 支持antd的Button属性
115
- */
116
- buttonProps?: Omit<ButtonProps, 'type' | 'onClick'>;
117
- }
118
- /**
119
- * 规则函数类型(与 ProForm 保持一致)
120
- * @template T 记录类型
121
- */
122
- export type RulesFn<T = any> = ReactiveFunction<T, ProRule[]>;
123
- /**
124
- * 必填函数类型(与 ProForm 保持一致)
125
- * @template T 记录类型
126
- */
127
- export type RequiredFn<T = any> = ReactiveFunction<T, boolean | boolean[]>;
128
- /**
129
- * 视图渲染函数类型
130
- * @template T 记录类型
131
- */
132
- export type viewRenderFn<T = any> = (text?: any, record?: T, options?: OptionsProps) => string | number | ReactNode | void;
133
- /**
134
- * 组件渲染函数类型(与 ReactiveFunction 保持一致)
135
- * @template T 记录类型
136
- */
137
- export type ComponentRenderFn<T = any> = ReactiveFunction<T, string | number | ReactNode | void>;
138
- /**
139
- * 表格列属性接口
140
- * @template Values 值类型
141
- * @template T 记录类型
142
- */
143
- export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemProps<Values>, 'rules' | 'required' | 'tooltip'>, ColumnType<Values> {
144
- /** 是否必填 */
145
- required?: boolean | boolean[] | RequiredFn<T>;
146
- /** 标签是否必填 */
147
- labelRequired?: boolean;
148
- /** 字段名 */
149
- name?: NamePath;
150
- /** 多字段名 */
151
- names?: NamePath[];
152
- /** 是否可编辑 */
153
- isEditable?: boolean | RequiredFn<T>;
154
- /** 值类型 */
155
- valueType?: ProFormValueType | ((text?: any, record?: T, options?: OptionsProps) => ProFormValueType);
156
- /** 提示信息 */
157
- tooltip?: string | ({
158
- icon?: string | ReactNode;
159
- } & TooltipProps);
160
- /** 组件 */
161
- component?: string | number | ReactNode | ComponentRenderFn<T>;
162
- /** 视图渲染 */
163
- viewRender?: string | number | ReactNode | viewRenderFn<T>;
164
- /** 隐藏的字段名 */
165
- hiddenNames?: NamePath[] | NamePath[][];
166
- /** 校验规则 */
167
- rules?: ProRule[] | RulesFn<T>;
168
- /** 单元格渲染组件的 Props */
169
- fieldProps?: object | ReactiveFunction<T, object>;
170
- /** 开启数据脱敏功能(仅限查看场景) */
171
- desensitization?: [number, number] | ReactiveFunction<T, [number, number]>;
172
- /** 控制表单元素禁用 */
173
- disabled?: boolean | boolean[] | ReactiveFunction<T, boolean | boolean[]>;
174
- /** 确认操作 */
175
- confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps | void>;
176
- /** 依赖项 */
177
- dependencies?: NamePath[];
178
- /** 差异处理 */
179
- onDiff?: DiffOriginalParams['onDiff'];
180
- [key: string]: any;
181
- }
182
- /**
183
- * 表格列属性类型(基于接口)
184
- * @template Values 值类型
185
- * @template T 记录类型
186
- */
187
- export type ProColumnsType<Values = any, T = any> = ProColumnsProps<Values, T>;
188
- /**
189
- * 可编辑表格列属性
190
- * @template K 键类型
191
- */
192
- export type ProEditTableColumnsProps<K = any> = ProColumnsProps<K, 'ProEditTable'>;
193
- /**
194
- * 状态接口
195
- */
196
- export interface StateProps {
197
- /** 表格内部强制刷新开关 */
198
- forceUpdate: Record<string, any>;
199
- /** 正在编辑行的row-key集合 */
200
- editingKeys: string[];
201
- /** 当前选中行的row-key集合 */
202
- selectedRowKeys: Key[];
203
- /** 当前选中行数据集合 */
204
- selectedRows: any[];
205
- /** 虚拟键 */
206
- virtualKey: string;
207
- /** 分页信息 */
208
- page: {
209
- pageNum: number;
210
- pageSize: number;
211
- };
212
- }
213
- /**
214
- * 状态类型(基于接口)
215
- */
216
- export type StateType = StateProps;
217
- /**
218
- * 可编辑表格引用属性
219
- */
220
- export interface ProEditTableRefProps {
221
- /** 获取内部状态 */
222
- getInternalState: () => StateProps;
223
- /** 设置内部状态 */
224
- setInternalState: (state: Partial<StateProps>) => void;
225
- }
226
- /**
227
- * 可编辑表格引用属性类型(基于接口)
228
- */
229
- export type ProEditTableRefType = ProEditTableRefProps;
230
- /**
231
- * 可编辑表格模式类型
232
- */
233
- export type ProEditTableMode = 'single' | 'multiple';
234
- export type ProEditTableModeType = ProEditTableMode;
235
- /**
236
- * 表格插入类型
237
- */
238
- export type InsertType = 'before' | 'after';
239
- /**
240
- * 操作按钮方向
241
- */
242
- export type ActionDirection = 'vertical' | 'horizontal';
243
- export type ActionDirectionType = ActionDirection;
244
- /**
245
- * 汇总信息配置
246
- * @template T 记录类型
247
- */
248
- export type SummaryProps<T = any> = {
249
- columns: ProEditTableSummaryColumnType[];
250
- total?: boolean;
251
- fixed?: boolean | 'top' | 'bottom';
252
- } | TableProps<T>['summary'];
253
- /**
254
- * 可编辑表格属性接口
255
- * @template T 记录类型
256
- */
257
- export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChange' | 'summary'> {
258
- /**
259
- * 可编辑表格的 form 实例,使用 Form.useForm 生成后使用
260
- */
261
- form?: FormInstance;
262
- /**
263
- * 原始数据源,设置后可以对比更新后的数值
264
- */
265
- originalValues?: Record<string, any>;
266
- /**
267
- * 可编辑表格的模式
268
- * @default multiple
269
- */
270
- mode?: ProEditTableMode;
271
- /**
272
- * 必填对齐方式, 默认右对齐
273
- * @default right
274
- */
275
- requiredAlign?: 'left' | 'right';
276
- /**
277
- * 同 dataSource,传入一个数组,是 table 渲染的元数据
278
- * @default undefined
279
- */
280
- value?: T[];
281
- /**
282
- * dataSource 修改时触发,删除和修改都会触发,如果设置了 value,ProEditTable 会成为一个受控组件
283
- */
284
- onChange?: (list: T[]) => void;
285
- /**
286
- * 表格列的配置描述,扩展了FormItemProps属性
287
- * @default []
288
- */
289
- columns: ProEditTableColumnType<T>[];
290
- /**
291
- * 是否禁止编辑
292
- * @default false
293
- */
294
- disabled?: boolean;
295
- /**
296
- * 是否开启斑马纹
297
- * @default true
298
- */
299
- stripe?: boolean;
300
- /**
301
- * 可编辑表格新增时数据插入方式,头部插入或者尾部插入
302
- * @default after
303
- */
304
- insertType?: InsertType;
305
- /**
306
- * 字段名,支持数组
307
- */
308
- name?: string | number | (string | number)[];
309
- /**
310
- * 是否可拖拽排序
311
- */
312
- draggable?: boolean;
313
- /**
314
- * 是否开启虚拟列表(scroll,x,y必须为固定值)
315
- */
316
- virtual?: boolean;
317
- /**
318
- * 空列表状态时,自定义添加按钮
319
- * @default 点击添加
320
- */
321
- emptyBtnText?: string;
322
- /**
323
- * 只能编辑一行的的提示
324
- * @default 请先保存数据
325
- */
326
- onlyOneLineMsg?: string;
327
- /**
328
- * 单行删除时弹出的确认框提示消息
329
- * @default 您确定要删除该行数据吗?
330
- */
331
- deletePoConfirmMsg?: string;
332
- /**
333
- * 多行删除时弹出的确认框提示消息
334
- * @default 您确定要删除选中的数据吗?
335
- */
336
- mulDeletePoConfirmMsg?: string;
337
- /**
338
- * 自定义编辑模式的操作栏宽度
339
- */
340
- actionWidth?: ColumnType<T>['width'];
341
- /**
342
- * 自定义编辑模式的操作栏 单行编辑默认为编辑、删除、保存、取消;多行编辑为删除
343
- */
344
- actionProps?: BaseActionProps<T>[] | boolean;
345
- /**
346
- * 自定义 table footer 左侧渲染, 配置后toolbarProps会失效
347
- */
348
- footerRender?: ReactNode;
349
- /**
350
- * 自定义底部操作栏 默认为添加、删除(批量)
351
- */
352
- toolbarProps?: BaseActionProps<T>[] | boolean;
353
- /**
354
- * 自定义底部操作栏跟随页面滚动
355
- */
356
- toolbarSticky?: boolean | Omit<AffixProps, 'children'>;
357
- /**
358
- * 最大可添加数量
359
- */
360
- max?: number;
361
- /**
362
- * formItem的props
363
- */
364
- otherProps?: Record<string, any>;
365
- /**
366
- * 底部合计配置
367
- */
368
- summary?: ProEditTableSummaryConfigType<T>;
369
- /**
370
- * 自定义头部渲染
371
- */
372
- headerRender?: ReactNode;
373
- /**
374
- * 行是否禁用
375
- */
376
- rowDisabled?: (record?: T) => string | boolean;
377
- /**
378
- * 行是否可拖拽
379
- */
380
- rowDraggable?: (record?: T) => string | boolean;
381
- /**
382
- * 拖拽事件处理
383
- * @param event 拖拽事件
384
- * @param dataSource 当前数据源
385
- * @param nextDataSource 拖拽后的数据源
386
- */
387
- onDrag?: (event: DragEndEvent, dataSource: T[], nextDataSource: T[]) => T[];
388
- /**
389
- * 拖拽结束事件处理
390
- * @param event 拖拽事件
391
- * @param dataSource 当前数据源
392
- * @param nextDataSource 拖拽后的数据源
393
- */
394
- onDragEnd?: (event: DragEndEvent, dataSource: T[], nextDataSource: T[]) => T[];
395
- /**
396
- * 引用对象
397
- */
398
- ref?: any;
399
- /**
400
- * 操作按钮方向
401
- */
402
- actionDirection?: ActionDirection;
403
- /**
404
- * 校验触发方式
405
- */
406
- validateTrigger?: string | string[];
407
- /**
408
- * 差异配置
409
- */
410
- diffConfig?: {
411
- /** 是否跟随父元素滚动 */
412
- scrollFollowParent?: boolean;
413
- };
414
- /**
415
- * 动态属性更新防抖时间(毫秒)
416
- * 用于优化表格编辑时的性能,对 fieldProps、desensitization, required、rules、isEditable, valueType 等属性进行防抖处理, 当设置为 0 时禁用防抖,所有属性立即响应
417
- * @default 200
418
- */
419
- shouldUpdateDebounce?: number;
420
- }
421
- /**
422
- * 基础操作按钮类型(基于接口)
423
- * @template T 记录类型
424
- */
425
- export type ProEditTableActionType<T = any> = BaseActionProps<T>;
426
- export type ProEditTableSummaryConfigType<T = any> = SummaryProps<T>;
427
- export type ProEditTableSummaryColumnType = SummaryColumnProps;
428
- /**
429
- * 可编辑表格列属性类型(基于类型)
430
- * @template K 键类型
431
- */
432
- export type ProEditTableColumnType<K = any> = ProEditTableColumnsProps<K>;
433
- /**
434
- * 可编辑表格属性类型(基于接口)
435
- * @template T 记录类型
436
- */
437
- export type ProEditTableType<T = any> = ProEditTableProps<T>;
@@ -1,25 +0,0 @@
1
- export declare const defaultBtnNameMap: {
2
- add: any;
3
- edit: any;
4
- copy: any;
5
- delete: any;
6
- mulDelete: any;
7
- save: any;
8
- cancel: any;
9
- custom: any;
10
- };
11
- export declare const iconMap: {
12
- add: import("react/jsx-runtime").JSX.Element;
13
- };
14
- export declare const defaultSingleActionKeys: string[];
15
- export declare const defaultMultipleActionKeys: string[];
16
- export declare const defaultEditingActionKeys: string[];
17
- export declare const defaultToolbarKeys: string[];
18
- export declare const actions: {
19
- edit: ({ record, editingKeys, setState, form, virtualRowName, virtualKey, onlyOneLineMsg, }: any) => boolean;
20
- save: ({ record, editingKeys, setState, form, rowName, virtualRowName, result }: any) => Promise<void>;
21
- cancel: ({ name, record, editingKeys, setState, form, virtualRowName, virtualKey, rowName, }: any) => void;
22
- delete: ({ name, record, editingKeys, setState, form, virtualKey, onlyOneLineMsg }: any) => boolean;
23
- add: ({ result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, prefixCls, page, handlePageChange, virtual, }: any) => Promise<boolean>;
24
- mulDelete: ({ form, name, virtualKey, setState, selectedRowKeys, editingKeys }: any) => void;
25
- };
@@ -1,22 +0,0 @@
1
- import { FormInstance } from 'antd';
2
- export type DiffType = 'same' | 'add' | 'changed';
3
- export interface DiffOriginalParams {
4
- originalValue: any;
5
- value: any;
6
- form: FormInstance;
7
- type?: string;
8
- onDiff?: ({ originValue, originRecord, value, record, index, }: {
9
- originValue: any;
10
- originRecord: any;
11
- value: any;
12
- record: any;
13
- index: number;
14
- }) => DiffType | undefined;
15
- /** 原始行数据 */
16
- originRecord: any;
17
- /** 当前行数据 */
18
- record: any;
19
- /** 当前行索引 */
20
- index: number;
21
- }
22
- export declare const diffOriginal: (params: DiffOriginalParams) => DiffType;
@@ -1 +0,0 @@
1
- export declare const getDefaultProps: (props: any) => any;
@@ -1,23 +0,0 @@
1
- /**
2
- * shouldCellUpdate 缓存容器:跟踪 dataSource/component 引用与 filterInList 列表长度。
3
- * 调用方(ProEditTable 顶层)通过 useRef 持有按实例隔离的容器,避免 module-level Map
4
- * 在多实例场景下交叉污染;实例卸载后缓存随宿主一起释放。
5
- * 未传 caches 时退化为单次内联 Map(不缓存历史,shouldCellUpdate 始终首次比较)。
6
- */
7
- export interface CellCacheRefs {
8
- /** 跟踪 fieldProps.dataSource 引用变化 */
9
- dataSourceRef: Map<string, any>;
10
- /** 跟踪 column.component 函数引用变化(外部 list 异步加载时闭包刷新) */
11
- componentRef: Map<string, any>;
12
- /** 跟踪 filterInList 列长度变化(行增删导致索引偏移) */
13
- listLength: Map<string, number>;
14
- }
15
- /**
16
- * 编辑模式分为 多行和单行两种
17
- * 单行模式下,render 分为component和viewRender两种,对应编辑和非编辑状态下,edit状态不对外
18
- * 多行模式下component设置即可
19
- * render不对外暴露formItem,能自定渲染的尽是输入组件或者显示组件本身
20
- * @param columns 表格配置数据
21
- * @param config
22
- */
23
- export declare const transformColumns: (columns: any[], config: any, caches?: CellCacheRefs) => any[];
@@ -1,128 +0,0 @@
1
- import React, { Key } from 'react';
2
- import { FormInstance } from 'antd/es/form';
3
- import { NamePath } from 'antd/es/form/interface';
4
- /**
5
- * 生成随机字符串
6
- * @returns 随机字符串
7
- */
8
- export declare const getRandom: () => string;
9
- /**
10
- * 构建 AntD Table 的 rowKey 函数,支持字符串/函数两种形式,
11
- * 当用户指定字段值无效时(新增行尚未填写业务 key),自动降级到内部 record.rowKey。
12
- * @param rowKey 用户传入的 rowKey prop
13
- * @returns AntD Table 可用的 rowKey 字符串或函数
14
- */
15
- export declare const buildTableRowKey: (rowKey?: string | number | symbol | ((record: any) => any)) => (record: any) => string;
16
- /**
17
- * 深层次对比两个对象且取出来差异值
18
- * @param object 比较对象
19
- * @param base 基准对象
20
- * @returns 差异对象
21
- */
22
- export declare const difference: <T extends Record<string, any>, U extends Record<string, any>>(object: T, base: U) => Record<string, any>;
23
- /**
24
- * 数组字段循环校验,解决validateFields无法批量校验的问题
25
- * @param validateKeys 校验键数组
26
- * @param form 表单实例
27
- * @param rowName 行名称路径
28
- * @returns 校验结果Promise
29
- */
30
- export declare const customValidate: (validateKeys: string[], form: FormInstance, rowName: NamePath) => Promise<any>;
31
- /**
32
- * 拆解数组names
33
- * @param names 名称数组
34
- * @returns 拆解后的字符串
35
- */
36
- export declare const splitNames: (names: any[]) => string;
37
- /**
38
- * 把行内变更的子键映射回「所属列的字段标识」,并去重。
39
- * - names 组合列:任一子键命中 → 该列合并名(splitNames(names)),与 Form.Item 注册名/dataIndex 对齐
40
- * - 普通列:原键本身
41
- *
42
- * 用于行数据被联动改写(兄弟列 onFieldChange 回填)后,按真实字段名重校验与清理常驻报错,
43
- * 修复 group 列旧报错不清的问题。
44
- */
45
- export declare const resolveChangedFields: (changedKeys: string[], columns?: any[]) => string[];
46
- /**
47
- * 把联动回填后的子键,重新组合并写回 names 组合列的合并字段(store)。
48
- *
49
- * 背景:names 组合列真正被校验的是合并字段(splitNames(names),如 certType-certNo),
50
- * 其值仅在渲染期由 getValueProps 从子键组合后写回 store。联动回填(兄弟列 onFieldChange)
51
- * 只直接写入子键,不经过该字段的 normalize/渲染,导致合并字段 store 值未更新 →
52
- * 按合并名校验时读到旧空值、红字不清。这里按当前行子键即时组合并写回,确保 validateFields 读到最新值。
53
- */
54
- export declare const syncGroupCombinedValues: (form: FormInstance, rowPath: (string | number)[], changedKeys: string[], columns?: any[]) => void;
55
- /**
56
- * 获取中间formItem的name
57
- * @param name 名称路径
58
- * @param virtualKey 虚拟键
59
- * @returns 完整名称路径数组
60
- */
61
- export declare const getNamePath: (name: NamePath, virtualKey?: string) => (string | number)[];
62
- /**
63
- * 删除操作
64
- * @param params 删除参数
65
- */
66
- export declare const onDelete: ({ name, form, virtualKey, selectedRowKeys, }: {
67
- name: NamePath;
68
- form: FormInstance;
69
- virtualKey?: string;
70
- selectedRowKeys: Key[];
71
- }) => void;
72
- /**
73
- * 获取最终的disabled, 两种模式【子级优先,全局优先】
74
- * 全局优先:globalControl为true时,全局控制
75
- * 子级优先:globalControl为false时,子级控制
76
- * @param params 禁用参数
77
- * @returns 是否禁用
78
- */
79
- export declare const getDisabled: ({ globalControl, formDisabled, column, tabledDisabled, columnFieldProps, params, rowDisabled, }: {
80
- globalControl: boolean;
81
- formDisabled?: boolean | ((record: any) => boolean);
82
- column: any;
83
- tabledDisabled?: boolean;
84
- columnFieldProps?: any;
85
- params: any[];
86
- rowDisabled?: any;
87
- }) => boolean;
88
- /**
89
- * 表格自动滚动到报错位置
90
- */
91
- export declare const handleScrollToError: () => void;
92
- /**
93
- * 把「首个报错列的 cellKey」映射成它在表头 th 中的可见列索引。
94
- * 列序 = [选择列?(hasSelection 时占位 1), ...用户列];names 列的 cellKey 用 splitNames 结果。
95
- * @returns 表头 th 下标;未命中返回 -1
96
- */
97
- export declare const resolveErrorColumnIndex: (columns: any[], cellKey: string, hasSelection: boolean) => number;
98
- /**
99
- * 虚拟表格:横向滚动定位到「首个报错列」。
100
- *
101
- * 背景:rc-table 虚拟表格对「列」也做了虚拟化(BodyGrid 仅渲染横向视口内的列),
102
- * 保存校验失败时报错列可能根本未渲染进 body DOM,无法用单元格测量定位(旧实现据此失效)。
103
- * 而表头(thead)不被列虚拟化——渲染全部列且为真实测量宽度,故改以表头为列宽来源:
104
- * 累加报错列之前各列宽、减去 fixed-left 列宽(固定列悬浮,不占滚动偏移)得目标 scrollLeft。
105
- *
106
- * 注意:ref.nativeElement 仅为 body 滚动容器,表头在其外层 table-container 内,需向上查找。
107
- */
108
- export declare const scrollVirtualToErrorColumn: (tableRef: React.MutableRefObject<any>, columns: any[], cellKey?: string | null) => void;
109
- /**
110
- * 深copy一个对象,并过滤掉其中的React节点
111
- * @param value 需要深拷贝的对象
112
- * @returns 深拷贝后的对象,其中的React节点会被保留
113
- */
114
- export declare function cloneDeepFilterNode<T>(value: T): T;
115
- /**
116
- * 分页校验
117
- */
118
- export declare const onPageCheck: ({ form, name, value, columns, setState, page, pagination, isView, disabled, }: {
119
- form: any;
120
- name: any;
121
- value: any;
122
- columns: any;
123
- setState: any;
124
- page: any;
125
- pagination: any;
126
- isView: any;
127
- disabled: any;
128
- }) => Promise<void>;
@@ -1,13 +0,0 @@
1
- import { DatePickerProps } from 'antd';
2
- declare const _default: {
3
- RangePicker: () => import("@zat-design/utils/dist/esm/transforms/propTypes").Transform<any>;
4
- DatePicker: (fieldProps?: {
5
- format?: string;
6
- picker?: DatePickerProps['picker'];
7
- }) => {
8
- normalize: (value: any, prevValue?: any, allValues?: any) => any;
9
- getValueProps?: (value: any) => Record<string, unknown>;
10
- shouldUpdate?: import("rc-field-form/es/Field").ShouldUpdate<any>;
11
- };
12
- };
13
- export default _default;
@@ -1,7 +0,0 @@
1
- interface UseEditTableErrorProps {
2
- containerNode: HTMLElement | null;
3
- className: string;
4
- isEnabled: boolean;
5
- }
6
- declare const useEditTableError: ({ containerNode, className, isEnabled, }: UseEditTableErrorProps) => [number];
7
- export default useEditTableError;
@@ -1,16 +0,0 @@
1
- interface UseShouldUpdateForTableProps {
2
- rowParams: any[];
3
- column: any;
4
- shouldUpdateDebounce: number;
5
- }
6
- interface Result {
7
- isEditable: any;
8
- required: any;
9
- rules: any;
10
- fieldProps: any;
11
- desensitization: any;
12
- valueType: any;
13
- component: any;
14
- }
15
- declare const useShouldUpdateForTable: (props: UseShouldUpdateForTableProps) => Result;
16
- export default useShouldUpdateForTable;