@zat-design/sisyphus-react 4.5.1 → 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 (276) hide show
  1. package/es/ProEditTable/components/Summary/index.js +3 -2
  2. package/es/ProEditTable/utils/tools.js +1 -1
  3. package/es/ProForm/components/combination/FormList/components/ActionButton.js +7 -6
  4. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -3
  5. package/es/ProForm/components/combination/ProModalSelect/index.js +1 -1
  6. package/es/ProForm/components/render/RenderFields.js +3 -1
  7. package/es/ProForm/hooks/useWatch.js +8 -10
  8. package/es/ProLayout/components/ProHeader/index.js +28 -15
  9. package/es/ProSelect/index.js +74 -187
  10. package/es/ProSelect/utils/index.js +174 -0
  11. package/es/ProTree/components/ProTreeSelect/index.js +17 -3
  12. package/es/ProUpload/components/DragRender.js +2 -1
  13. package/es/ProUpload/index.js +1 -1
  14. package/package.json +1 -1
  15. package/es/FormsProvider/index.d.ts +0 -18
  16. package/es/ProAction/components/CheckModalContent/index.d.ts +0 -8
  17. package/es/ProAction/index.d.ts +0 -7
  18. package/es/ProAction/propsType.d.ts +0 -45
  19. package/es/ProConfigProvider/index.d.ts +0 -9
  20. package/es/ProConfigProvider/propsType.d.ts +0 -78
  21. package/es/ProDownload/index.d.ts +0 -6
  22. package/es/ProDownload/propsType.d.ts +0 -71
  23. package/es/ProDownload/utils.d.ts +0 -60
  24. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
  25. package/es/ProDrawerForm/components/ProModal/index.d.ts +0 -7
  26. package/es/ProDrawerForm/components/index.d.ts +0 -2
  27. package/es/ProDrawerForm/hooks/useConfirmClose.d.ts +0 -25
  28. package/es/ProDrawerForm/index.d.ts +0 -6
  29. package/es/ProDrawerForm/propsType.d.ts +0 -111
  30. package/es/ProDrawerForm/utils/index.d.ts +0 -25
  31. package/es/ProEditLabel/components/RenderProForm.d.ts +0 -4
  32. package/es/ProEditLabel/index.d.ts +0 -4
  33. package/es/ProEditLabel/propsType.d.ts +0 -163
  34. package/es/ProEditLabel/utils/index.d.ts +0 -7
  35. package/es/ProEditTable/components/ActionButton/index.d.ts +0 -2
  36. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
  37. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
  38. package/es/ProEditTable/components/RcTable/index.d.ts +0 -4
  39. package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -4
  40. package/es/ProEditTable/components/RenderField/index.d.ts +0 -3
  41. package/es/ProEditTable/components/RenderField/propsType.d.ts +0 -30
  42. package/es/ProEditTable/components/RenderField/tools.d.ts +0 -22
  43. package/es/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
  44. package/es/ProEditTable/components/Summary/index.d.ts +0 -12
  45. package/es/ProEditTable/components/Validator/index.d.ts +0 -19
  46. package/es/ProEditTable/components/index.d.ts +0 -5
  47. package/es/ProEditTable/index.d.ts +0 -4
  48. package/es/ProEditTable/propsType.d.ts +0 -437
  49. package/es/ProEditTable/utils/config.d.ts +0 -25
  50. package/es/ProEditTable/utils/diffOriginal.d.ts +0 -22
  51. package/es/ProEditTable/utils/getDefaultProps.d.ts +0 -1
  52. package/es/ProEditTable/utils/index.d.ts +0 -23
  53. package/es/ProEditTable/utils/tools.d.ts +0 -128
  54. package/es/ProEditTable/utils/transform.d.ts +0 -13
  55. package/es/ProEditTable/utils/useEditTableError.d.ts +0 -7
  56. package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
  57. package/es/ProEditTable/utils/validateAll.d.ts +0 -89
  58. package/es/ProEnum/components/Group.d.ts +0 -10
  59. package/es/ProEnum/components/Tag.d.ts +0 -7
  60. package/es/ProEnum/hooks/useEnum.d.ts +0 -29
  61. package/es/ProEnum/hooks/useEnumRequest.d.ts +0 -4
  62. package/es/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
  63. package/es/ProEnum/index.d.ts +0 -10
  64. package/es/ProEnum/propsType.d.ts +0 -310
  65. package/es/ProEnum/utils/eventCenter.d.ts +0 -1
  66. package/es/ProEnum/utils/frequentEnum.d.ts +0 -39
  67. package/es/ProEnum/utils/getEnum.d.ts +0 -47
  68. package/es/ProEnum/utils/getEnumLabel.d.ts +0 -2
  69. package/es/ProEnum/utils/index.d.ts +0 -84
  70. package/es/ProForm/components/Container.d.ts +0 -9
  71. package/es/ProForm/components/FormFooter/index.d.ts +0 -5
  72. package/es/ProForm/components/FormFooter/propsType.d.ts +0 -22
  73. package/es/ProForm/components/base/Checkbox/index.d.ts +0 -14
  74. package/es/ProForm/components/base/DatePicker/index.d.ts +0 -11
  75. package/es/ProForm/components/base/Input/index.d.ts +0 -3
  76. package/es/ProForm/components/base/Input/propsType.d.ts +0 -21
  77. package/es/ProForm/components/base/InputNumber/index.d.ts +0 -11
  78. package/es/ProForm/components/base/Radio/index.d.ts +0 -15
  79. package/es/ProForm/components/base/RangePicker/index.d.ts +0 -19
  80. package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
  81. package/es/ProForm/components/base/Select/index.d.ts +0 -11
  82. package/es/ProForm/components/base/Switch/index.d.ts +0 -10
  83. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
  84. package/es/ProForm/components/base/TextArea/index.d.ts +0 -11
  85. package/es/ProForm/components/base/TimePicker/index.d.ts +0 -13
  86. package/es/ProForm/components/combination/Container/index.d.ts +0 -4
  87. package/es/ProForm/components/combination/Container/propsType.d.ts +0 -13
  88. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
  89. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
  90. package/es/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
  91. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
  92. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
  93. package/es/ProForm/components/combination/FormList/index.d.ts +0 -4
  94. package/es/ProForm/components/combination/FormList/propsType.d.ts +0 -69
  95. package/es/ProForm/components/combination/FormList/utils.d.ts +0 -18
  96. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
  97. package/es/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
  98. package/es/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
  99. package/es/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
  100. package/es/ProForm/components/combination/Group/index.d.ts +0 -9
  101. package/es/ProForm/components/combination/Group/propsType.d.ts +0 -99
  102. package/es/ProForm/components/combination/Group/utils/index.d.ts +0 -154
  103. package/es/ProForm/components/combination/ProCascader/index.d.ts +0 -4
  104. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
  105. package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
  106. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
  107. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
  108. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
  109. package/es/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
  110. package/es/ProForm/components/combination/ProModalSelect/utils/mergeSelectedRows.d.ts +0 -14
  111. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
  112. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
  113. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
  114. package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
  115. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
  116. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
  117. package/es/ProForm/components/index.d.ts +0 -29
  118. package/es/ProForm/components/render/ChangedWrapper.d.ts +0 -17
  119. package/es/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
  120. package/es/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
  121. package/es/ProForm/components/render/Render.d.ts +0 -4
  122. package/es/ProForm/components/render/RenderFields.d.ts +0 -26
  123. package/es/ProForm/components/render/propsType.d.ts +0 -279
  124. package/es/ProForm/hooks/useControlled.d.ts +0 -1
  125. package/es/ProForm/hooks/useDeepCompareMemo.d.ts +0 -2
  126. package/es/ProForm/hooks/useFieldProps.d.ts +0 -4
  127. package/es/ProForm/hooks/useForm.d.ts +0 -8
  128. package/es/ProForm/hooks/useRules.d.ts +0 -16
  129. package/es/ProForm/hooks/useShouldUpdate.d.ts +0 -31
  130. package/es/ProForm/hooks/useWatch.d.ts +0 -22
  131. package/es/ProForm/index.d.ts +0 -6
  132. package/es/ProForm/propsType.d.ts +0 -143
  133. package/es/ProForm/utils/buildFormItemProps.d.ts +0 -25
  134. package/es/ProForm/utils/diffOriginal.d.ts +0 -10
  135. package/es/ProForm/utils/getDefaultProps.d.ts +0 -1
  136. package/es/ProForm/utils/index.d.ts +0 -109
  137. package/es/ProForm/utils/processDependencies.d.ts +0 -29
  138. package/es/ProForm/utils/reactiveValues.d.ts +0 -34
  139. package/es/ProForm/utils/rulesCreator.d.ts +0 -7
  140. package/es/ProForm/utils/transformNames.d.ts +0 -10
  141. package/es/ProForm/utils/transformValue.d.ts +0 -6
  142. package/es/ProForm/utils/valueType.d.ts +0 -70
  143. package/es/ProIcon/config/index.d.ts +0 -19
  144. package/es/ProIcon/index.d.ts +0 -4
  145. package/es/ProIcon/propsTypes.d.ts +0 -175
  146. package/es/ProIcon/utils/index.d.ts +0 -6
  147. package/es/ProLayout/components/Layout/Header/index.d.ts +0 -4
  148. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
  149. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
  150. package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
  151. package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
  152. package/es/ProLayout/components/Layout/Menu/index.d.ts +0 -4
  153. package/es/ProLayout/components/Layout/Notice/index.d.ts +0 -4
  154. package/es/ProLayout/components/Layout/index.d.ts +0 -3
  155. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
  156. package/es/ProLayout/components/ProCollapse/index.d.ts +0 -3
  157. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
  158. package/es/ProLayout/components/ProFooter/index.d.ts +0 -4
  159. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
  160. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
  161. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
  162. package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
  163. package/es/ProLayout/components/ProHeader/components/index.d.ts +0 -2
  164. package/es/ProLayout/components/ProHeader/index.d.ts +0 -4
  165. package/es/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
  166. package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
  167. package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
  168. package/es/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
  169. package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -10
  170. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
  171. package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.d.ts +0 -25
  172. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
  173. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
  174. package/es/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
  175. package/es/ProLayout/components/TabsManager/index.d.ts +0 -7
  176. package/es/ProLayout/components/TabsManager/propTypes.d.ts +0 -89
  177. package/es/ProLayout/components/TabsManager/utils/index.d.ts +0 -47
  178. package/es/ProLayout/components/index.d.ts +0 -3
  179. package/es/ProLayout/index.d.ts +0 -20
  180. package/es/ProLayout/propTypes.d.ts +0 -533
  181. package/es/ProLayout/utils/index.d.ts +0 -43
  182. package/es/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
  183. package/es/ProSelect/index.d.ts +0 -5
  184. package/es/ProSelect/propsType.d.ts +0 -162
  185. package/es/ProSelect/utils/index.d.ts +0 -4
  186. package/es/ProStep/components/Anchor/index.d.ts +0 -4
  187. package/es/ProStep/components/Item/index.d.ts +0 -3
  188. package/es/ProStep/components/LazyLoad/index.d.ts +0 -19
  189. package/es/ProStep/components/Listener/index.d.ts +0 -4
  190. package/es/ProStep/components/Step/index.d.ts +0 -5
  191. package/es/ProStep/index.d.ts +0 -11
  192. package/es/ProStep/propsType.d.ts +0 -224
  193. package/es/ProStep/utils/index.d.ts +0 -22
  194. package/es/ProStepTab/index.d.ts +0 -22
  195. package/es/ProStepTab/propsType.d.ts +0 -114
  196. package/es/ProTable/components/EditableCell/EditIcon.d.ts +0 -6
  197. package/es/ProTable/components/EditableCell/index.d.ts +0 -4
  198. package/es/ProTable/components/EditableCell/propsType.d.ts +0 -24
  199. package/es/ProTable/components/FormatColumn/index.d.ts +0 -22
  200. package/es/ProTable/components/FormatColumn/propsType.d.ts +0 -29
  201. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -3
  202. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
  203. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
  204. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
  205. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -3
  206. package/es/ProTable/components/RcTable/index.d.ts +0 -4
  207. package/es/ProTable/components/RenderColumn/index.d.ts +0 -22
  208. package/es/ProTable/components/RenderEmptyText/index.d.ts +0 -3
  209. package/es/ProTable/components/RenderFooter/index.d.ts +0 -2
  210. package/es/ProTable/components/RenderSummary/index.d.ts +0 -3
  211. package/es/ProTable/components/RenderTableHeader/index.d.ts +0 -2
  212. package/es/ProTable/components/RenderTabs/index.d.ts +0 -4
  213. package/es/ProTable/components/TableResizable/index.d.ts +0 -13
  214. package/es/ProTable/components/TooltipTitle/index.d.ts +0 -11
  215. package/es/ProTable/components/index.d.ts +0 -31
  216. package/es/ProTable/hooks/useAntdTable.d.ts +0 -7
  217. package/es/ProTable/index.d.ts +0 -17
  218. package/es/ProTable/propsType.d.ts +0 -792
  219. package/es/ProTable/utils/columnStorage.d.ts +0 -35
  220. package/es/ProTable/utils/index.d.ts +0 -52
  221. package/es/ProTabs/components/Card/index.d.ts +0 -3
  222. package/es/ProTabs/components/index.d.ts +0 -1
  223. package/es/ProTabs/index.d.ts +0 -4
  224. package/es/ProTabs/propType.d.ts +0 -94
  225. package/es/ProThemeTools/component/ProTools/index.d.ts +0 -3
  226. package/es/ProThemeTools/component/index.d.ts +0 -1
  227. package/es/ProThemeTools/context/ThemeContext.d.ts +0 -43
  228. package/es/ProThemeTools/index.d.ts +0 -9
  229. package/es/ProThemeTools/propsType.d.ts +0 -170
  230. package/es/ProThemeTools/utils/index.d.ts +0 -51
  231. package/es/ProTooltip/index.d.ts +0 -3
  232. package/es/ProTooltip/propsType.d.ts +0 -57
  233. package/es/ProTree/components/AdaptiveTooltip.d.ts +0 -4
  234. package/es/ProTree/components/CloseIcon.d.ts +0 -2
  235. package/es/ProTree/components/List.d.ts +0 -17
  236. package/es/ProTree/components/ProTree.d.ts +0 -3
  237. package/es/ProTree/components/ProTreeSelect/index.d.ts +0 -5
  238. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +0 -445
  239. package/es/ProTree/components/SearchTitle.d.ts +0 -11
  240. package/es/ProTree/components/Tree.d.ts +0 -27
  241. package/es/ProTree/components/index.d.ts +0 -4
  242. package/es/ProTree/index.d.ts +0 -3
  243. package/es/ProTree/propsType.d.ts +0 -818
  244. package/es/ProTree/utils.d.ts +0 -62
  245. package/es/ProTreeModal/components/Cascader.d.ts +0 -14
  246. package/es/ProTreeModal/components/CloseIcon.d.ts +0 -2
  247. package/es/ProTreeModal/components/List.d.ts +0 -21
  248. package/es/ProTreeModal/components/SearchTitle.d.ts +0 -7
  249. package/es/ProTreeModal/components/SortableItem.d.ts +0 -12
  250. package/es/ProTreeModal/components/Tree.d.ts +0 -25
  251. package/es/ProTreeModal/components/Trigger.d.ts +0 -21
  252. package/es/ProTreeModal/components/index.d.ts +0 -6
  253. package/es/ProTreeModal/index.d.ts +0 -4
  254. package/es/ProTreeModal/propsType.d.ts +0 -298
  255. package/es/ProTreeModal/utils.d.ts +0 -39
  256. package/es/ProUpload/components/ButtonRender.d.ts +0 -20
  257. package/es/ProUpload/components/DragRender.d.ts +0 -21
  258. package/es/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
  259. package/es/ProUpload/components/Example.d.ts +0 -10
  260. package/es/ProUpload/components/FileItem.d.ts +0 -33
  261. package/es/ProUpload/components/ImageRender.d.ts +0 -19
  262. package/es/ProUpload/index.d.ts +0 -4
  263. package/es/ProUpload/propsType.d.ts +0 -264
  264. package/es/ProUpload/uitls.d.ts +0 -3
  265. package/es/ProUtils/utils/index.d.ts +0 -6
  266. package/es/ProViewer/index.d.ts +0 -4
  267. package/es/ProViewer/propsType.d.ts +0 -37
  268. package/es/ProWaterMark/index.d.ts +0 -4
  269. package/es/ProWaterMark/propsType.d.ts +0 -6
  270. package/es/hooks/useDraggableRow.d.ts +0 -34
  271. package/es/index.d.ts +0 -58
  272. package/es/locale/en_US.d.ts +0 -176
  273. package/es/locale/index.d.ts +0 -15
  274. package/es/locale/zh_CN.d.ts +0 -176
  275. package/es/tokens.d.ts +0 -83
  276. package/es/utils/index.d.ts +0 -20
@@ -1,111 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import type { ModalProps, DrawerProps, FormInstance, ModalFuncProps } from 'antd';
3
- import type { ProFormType } from '../ProForm/propsType';
4
- /**
5
- * 抽屉尺寸类型定义
6
- */
7
- export type DrawerSizePropsType = 'small' | 'middle' | 'large';
8
- export type DrawerSizeType = DrawerSizePropsType;
9
- /**
10
- * 显示类型定义
11
- */
12
- export type ShowTypePropsType = 'Modal' | 'Drawer';
13
- export type ShowType = ShowTypePropsType;
14
- export interface ProDrawerFormType {
15
- /** @name 内部form实例 */
16
- form?: FormInstance<any>;
17
- /** @name 自定义className */
18
- className?: string;
19
- /** @name 控制显示隐藏 */
20
- open: ModalProps['open'] | DrawerProps['open'];
21
- /** @name 标题 */
22
- title?: ModalProps['title'] | DrawerProps['title'];
23
- /** @name 点击蒙层是否允许关闭 */
24
- maskClosable?: ModalProps['maskClosable'] | DrawerProps['maskClosable'];
25
- /** @name 禁止选项 */
26
- disabled?: boolean | undefined;
27
- /** @name 是否查看模式 */
28
- isView?: boolean | undefined;
29
- /**
30
- * @name 宽度
31
- * @deprecated 请改用 `size`,`width` 仅作向后兼容保留,后续版本将移除
32
- */
33
- width?: string | number;
34
- /** @name 取消按钮文字 */
35
- cancelText?: ModalProps['cancelText'];
36
- /** @name 确认按钮文字 */
37
- okText?: ModalProps['okText'];
38
- /** @name 确认按钮loading状态 */
39
- okLoading?: boolean;
40
- /** @name 确认按钮禁用状态 */
41
- okDisabled?: boolean;
42
- /** @name 显示方式 */
43
- mode?: ShowType;
44
- /**
45
- * @name 尺寸
46
- * @description 设计规范三档枚举(small/middle/large),亦支持自定义数字 / 像素 / 百分比
47
- */
48
- size?: DrawerSizeType | number | string;
49
- /**
50
- * @name 自动选中第一项
51
- * @description 只对有input的类型有效
52
- */
53
- autoFocusFirstInput?: boolean;
54
- /**
55
- * @name 关闭时是否开启二次确认弹框
56
- * @description 只对Drawer的类型有效
57
- */
58
- isConfirmClose?: boolean;
59
- /**
60
- * @name 关闭时二次确认弹框的属性
61
- * @description 只对Drawer的类型有效
62
- */
63
- isConfirmCloseModalProps?: Omit<ModalFuncProps, 'content' | 'onOk' | 'onCancel'>;
64
- /**
65
- * @name 底部默认取消按钮事件
66
- * @returns 返回Promise或布尔值可控制弹窗关闭行为
67
- */
68
- onCancel?: () => Promise<boolean | void | unknown> | boolean | void | unknown;
69
- /**
70
- * @name 底部默认确定按钮事件
71
- * @param values 表单值
72
- * @param form 表单实例
73
- * @returns 返回Promise或布尔值可控制弹窗关闭行为
74
- */
75
- onOk?: (values?: any, form?: FormInstance) => Promise<boolean | void | unknown> | boolean | void | unknown;
76
- /**
77
- * @name 底部自定义按钮配置
78
- */
79
- footer?: ReactNode | ReactNode[];
80
- /**
81
- * @name 底部左侧自定义渲染
82
- */
83
- extraLeft?: ReactNode;
84
- /**
85
- * @name proForm的属性
86
- * @description 配置后children不展示
87
- */
88
- proFormProps?: Omit<ProFormType, 'form'>;
89
- /**
90
- * @name 弹框的属性
91
- */
92
- modalProps?: ModalProps;
93
- /**
94
- * @name 抽屉的属性
95
- */
96
- drawerProps?: DrawerProps;
97
- /**
98
- * @name 关闭时弹框或者抽屉是否清空formValues
99
- */
100
- onCloseClean?: boolean;
101
- /**
102
- * @name 隐藏时销毁内容
103
- * @description 透传给底层 antd Drawer/Modal
104
- */
105
- destroyOnHidden?: ModalProps['destroyOnHidden'] | DrawerProps['destroyOnHidden'];
106
- /** @name 子组件 */
107
- children?: React.ReactNode;
108
- /** @name z轴层级 */
109
- zIndex?: number;
110
- }
111
- export type ProDrawerFormPropsType = ProDrawerFormType;
@@ -1,25 +0,0 @@
1
- import { DrawerSizeType } from '../propsType';
2
- /**
3
- * 将枚举值转成数值px,暴露枚举,隐藏真实数值,暂时不让用户自定义
4
- * @param size 设计规范的三个尺寸 460 960 1200 对应 'small' | 'middle' | 'large'
5
- */
6
- export declare const transformBySize: (size: DrawerSizeType) => number;
7
- /**
8
- * 解析最终尺寸
9
- *
10
- * - 显式传入(已废弃的)`width` 时打印警告并优先生效,保证向后兼容。
11
- * - `size` 命中三档枚举走 `transformBySize`;否则视为自定义数字 / 像素 / 百分比直接返回。
12
- */
13
- export declare const resolveDrawerSize: (size: DrawerSizeType | number | string | undefined, width: number | string | undefined) => number | string | undefined;
14
- /**
15
- * 关闭抽屉时是否需要弹出二次确认
16
- *
17
- * 判定「用户是否真实改动过」依据 userInteracted —— 它由抽屉内容容器上监听到的
18
- * 真实用户输入事件(input / change)置位。打开后通过 setFieldsValue 异步回填
19
- * 详情数据属于程序行为,不会派发这些用户事件,因此不会误触发二次确认。
20
- */
21
- export declare const shouldConfirmClose: (params: {
22
- isView?: boolean;
23
- isConfirmClose?: boolean;
24
- userInteracted: boolean;
25
- }) => boolean;
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import type { PopupType } from '../propsType';
3
- declare const RenderProForm: FC<PopupType>;
4
- export default RenderProForm;
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import type { ContainerType, LabelType, ProEditLabelType } from './propsType';
3
- declare const ProEditLabel: FC<LabelType & ProEditLabelType & ContainerType>;
4
- export default ProEditLabel;
@@ -1,163 +0,0 @@
1
- import { InputProps } from 'antd/es/input';
2
- import { PopconfirmProps } from 'antd/es/popconfirm';
3
- import { FormInstance } from 'antd/es/form';
4
- import React from 'react';
5
- import type { ProFormColumnType } from '../ProForm/propsType';
6
- export interface ContainerType {
7
- /**
8
- * @description 触发方式
9
- * @default "click"
10
- */
11
- trigger?: 'click' | 'hover';
12
- /**
13
- * @description 尺寸
14
- * @default "middle"
15
- */
16
- size?: 'small' | 'middle' | 'large';
17
- /**
18
- * @description 显示模式
19
- * @default "popup"
20
- */
21
- mode?: 'popup' | 'current';
22
- /**
23
- * @description 类型
24
- * @default "input"
25
- */
26
- type?: 'input' | 'select';
27
- }
28
- export interface StateType {
29
- /**
30
- * @description 弹出值
31
- * @default ""
32
- */
33
- popValue?: string;
34
- /**
35
- * @description 确认值
36
- * @default ""
37
- */
38
- confirmValue?: string;
39
- }
40
- export interface PopupType {
41
- /**
42
- * @description 类型
43
- * @default -
44
- */
45
- type?: string;
46
- /**
47
- * @description 标签
48
- * @default -
49
- */
50
- label?: string | React.ReactNode;
51
- /**
52
- * @description 标题
53
- * @default -
54
- */
55
- title?: string | React.ReactNode;
56
- /**
57
- * @description 提示
58
- * @default -
59
- */
60
- tip?: string | React.ReactNode;
61
- /**
62
- * @description 是否去除空格
63
- * @default false
64
- */
65
- trim?: boolean;
66
- /**
67
- * @description 标签宽度
68
- * @default -
69
- */
70
- labelWidth?: string | number;
71
- /**
72
- * @description 字段属性
73
- * @default -
74
- */
75
- fieldProps?: any;
76
- /**
77
- * @description 列配置
78
- * @default -
79
- */
80
- columns?: ProFormColumnType[];
81
- /**
82
- * @description 允许扩展字段
83
- */
84
- [key: string]: any;
85
- }
86
- export interface LabelType extends Omit<InputProps, 'onChange'> {
87
- /**
88
- * @description 是否打开
89
- * @default false
90
- */
91
- open?: boolean;
92
- /**
93
- * @description 可见性变化回调
94
- * @default -
95
- */
96
- onOpenChange?: (open: boolean) => void;
97
- /**
98
- * @description 值变化回调
99
- * @default -
100
- */
101
- onChange?: (value: any) => void;
102
- /**
103
- * @description 是否可编辑
104
- * @default false
105
- */
106
- editable?: boolean;
107
- /**
108
- * @description 编辑回调
109
- * @default -
110
- */
111
- onEdit?: () => void;
112
- }
113
- export interface ProEditLabelType extends Partial<PopconfirmProps> {
114
- /**
115
- * @description 弹出属性
116
- * @default -
117
- */
118
- popupProps?: PopupType;
119
- /**
120
- * @description 空值显示
121
- * @default "-"
122
- */
123
- viewEmpty?: '-';
124
- /**
125
- * @description 确认回调
126
- * @default -
127
- */
128
- onConfirm?: (e?: any) => void;
129
- /**
130
- * @description 完成回调
131
- * @default -
132
- */
133
- onFinish?: (e?: any) => void;
134
- /**
135
- * @description 打开状态变化回调
136
- * @default -
137
- */
138
- onOpenChange?: (e?: any) => void;
139
- /**
140
- * @description 触发方式
141
- * @default "click"
142
- */
143
- trigger?: 'click' | 'hover';
144
- /**
145
- * @description 值
146
- * @default -
147
- */
148
- value?: any;
149
- /**
150
- * @description 表单实例
151
- * @default -
152
- */
153
- form?: FormInstance;
154
- /**
155
- * @description 是否禁用
156
- * @default false
157
- */
158
- disabled?: boolean;
159
- /**
160
- * @description 允许扩展字段
161
- */
162
- [key: string]: any;
163
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * 判断columns的length是否为1,给表单赋值,默认匹配到value上
3
- * @param value 表单值
4
- * @param columns 表单配置项
5
- * @returns value
6
- */
7
- export declare const matchFormValue: (value: any, columns: any) => any;
@@ -1,2 +0,0 @@
1
- declare const ActionButton: ({ record, index, config, btnConfig }: any) => import("react/jsx-runtime").JSX.Element;
2
- export default ActionButton;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("react").MemoExoticComponent<({ tableProps, ...resetProps }: {
3
- [x: string]: any;
4
- tableProps: any;
5
- }) => import("react/jsx-runtime").JSX.Element>;
6
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<({ tableProps, draggableProps, ...resetProps }: {
3
- [x: string]: any;
4
- tableProps: any;
5
- draggableProps: any;
6
- }) => import("react/jsx-runtime").JSX.Element>;
7
- export default _default;
@@ -1,4 +0,0 @@
1
- /** 基础表格 */
2
- export { default as BaseTable } from './BaseTable';
3
- /** 拖拽表格 */
4
- export { default as DraggableTable } from './DraggableTable';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { Props } from './propsType';
3
- declare const ListChangedWrapper: React.FC<Props>;
4
- export default ListChangedWrapper;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element>;
3
- export default _default;
@@ -1,30 +0,0 @@
1
- import { FormInstance } from 'antd';
2
- import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
3
- import { DiffOriginalParams } from '../../utils/diffOriginal';
4
- export interface GetOriginalValueParams {
5
- namePath: InternalNamePath;
6
- originalName: InternalNamePath;
7
- originalNames?: InternalNamePath[];
8
- originalValues?: any;
9
- rowKeyPath?: InternalNamePath;
10
- form: FormInstance;
11
- }
12
- export interface Props {
13
- name?: NamePath;
14
- names?: NamePath[];
15
- originalName?: NamePath;
16
- originalNames?: NamePath[];
17
- namesStr?: NamePath;
18
- originalValues?: any;
19
- form: FormInstance;
20
- onDiff?: DiffOriginalParams['onDiff'];
21
- [name: string]: any;
22
- }
23
- /** RenderField 的 props 多为表格运行期动态结构(column/config/record),保留显式 any */
24
- export interface RenderFieldComparableProps {
25
- text?: any;
26
- record?: any;
27
- index: number;
28
- column?: any;
29
- config?: any;
30
- }
@@ -1,22 +0,0 @@
1
- import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
2
- import { GetOriginalValueParams, RenderFieldComparableProps } from './propsType';
3
- /** 列配置中不应透传到 Form.Item 或 DOM 的字段(与 ProForm Render 保持一致) */
4
- export declare const OMIT_FORM_ITEM_AND_DOM_KEYS: string[];
5
- /** 克隆子元素时需从 props 中剔除,避免透传到 div 等 DOM 导致 React 警告 */
6
- export declare const OMIT_FROM_DOM_KEYS: string[];
7
- export declare const toNamePath: (name: NamePath) => InternalNamePath;
8
- export declare const toNamePaths: (names: NamePath[]) => InternalNamePath[];
9
- export declare const getOriginalValue: ({ namePath, originalName, originalNames, originalValues, rowKeyPath, form, }: GetOriginalValueParams) => {
10
- originalValue: any;
11
- originRecord: any;
12
- record: any;
13
- } | {
14
- originalValue: any;
15
- originRecord: any;
16
- record?: undefined;
17
- };
18
- /**
19
- * memo 自定义比较函数:只有关键 props 变化时才重新渲染。
20
- * 从 RenderField 拆出,行为与原内联实现保持一致。
21
- */
22
- export declare const arePropsEqual: (prevProps: RenderFieldComparableProps, nextProps: RenderFieldComparableProps) => boolean;
@@ -1,2 +0,0 @@
1
- declare const RenderToolbar: (config: any) => import("react/jsx-runtime").JSX.Element;
2
- export default RenderToolbar;
@@ -1,12 +0,0 @@
1
- import { ProEditTableSummaryColumnType } from '../../propsType';
2
- interface SummaryProps<T = any> {
3
- data: T[];
4
- summary: {
5
- columns: ProEditTableSummaryColumnType[];
6
- total?: boolean;
7
- fixed?: boolean | 'top' | 'bottom';
8
- };
9
- rowSelection: any;
10
- }
11
- declare const Summary: ({ data, summary, rowSelection }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
12
- export default Summary;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import type { NamePath } from 'antd/es/form/interface';
3
- import { type ErrorStore } from '../../utils/validateAll';
4
- interface ValidatorProps {
5
- name?: NamePath;
6
- virtualKey?: string;
7
- editingKeys?: string[];
8
- onlyOneLineMsg?: string;
9
- /** antd6 虚拟表格开关:开启时注册聚合校验字段,覆盖视口外未挂载的行 */
10
- virtual?: boolean;
11
- /** 原始列配置(含 name/names/rules/required/label 等),用于全量真实规则校验 */
12
- columns?: any[];
13
- /** 表格内部 config(提供 form/name/disabled/isView/otherProps 等) */
14
- config?: any;
15
- /** 外部错误存储,承载「报错常驻」的真实文案来源 */
16
- errorStore?: ErrorStore;
17
- }
18
- declare const _default: import("react").NamedExoticComponent<ValidatorProps>;
19
- export default _default;
@@ -1,5 +0,0 @@
1
- export { default as RenderField } from './RenderField';
2
- export { default as Validator } from './Validator';
3
- export { default as Summary } from './Summary';
4
- export { default as RenderToolbar } from './RenderToolbar';
5
- export { default as ActionButton } from './ActionButton';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ProEditTableType } from './propsType';
3
- declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableType, "ref"> & React.RefAttributes<import("./propsType").ProEditTableRefProps>>;
4
- export default ForwardProEditTable;