@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,162 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import type { SelectProps } from 'antd';
3
- import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
4
- import type { ProFormOtherType } from '../ProForm/propsType';
5
- /**
6
- * @description 数据选项类型
7
- */
8
- export interface DataOptionType {
9
- /**
10
- * @description 展示标签
11
- * @default -
12
- */
13
- label?: ReactNode;
14
- /**
15
- * @description 选项值
16
- * @default -
17
- */
18
- value?: string | number;
19
- /**
20
- * @description 允许扩展字段
21
- */
22
- [key: string]: any;
23
- }
24
- /**
25
- * @description 选择框属性类型
26
- */
27
- export interface PropSelectType extends Omit<SelectProps, 'onSearch'> {
28
- /**
29
- * @description 是否查看模式
30
- * @default false
31
- */
32
- isView?: boolean;
33
- /**
34
- * @description 是否开启组件在可视区域中才发起useRequest请求
35
- * @default false
36
- */
37
- viewportReady?: boolean;
38
- /**
39
- * @description 默认数组第一项
40
- * @default false
41
- */
42
- defaultOne?: boolean;
43
- /**
44
- * @description 数据源
45
- * @default -
46
- */
47
- dataSource?: DataOptionType[];
48
- /**
49
- * @description list场景中过滤掉已选择的值
50
- * @default false
51
- */
52
- filterInList?: boolean;
53
- /**
54
- * @description 是否展示 tooltip、当 label 特别长的时候使用
55
- * @default false
56
- */
57
- tooltip?: boolean;
58
- /**
59
- * @description 是否展示 code-label 形式
60
- * @default false
61
- */
62
- showCodeName?: boolean;
63
- /**
64
- * @description 集成表单 form 的属性
65
- * @default -
66
- */
67
- otherProps?: ProFormOtherType;
68
- /**
69
- * @description 下拉框滚动是否跟随父级
70
- * @default false
71
- */
72
- scrollFollowParent?: boolean;
73
- /**
74
- * @description 远程请求接口
75
- * @default -
76
- */
77
- useRequest?: {
78
- /**
79
- * @description 请求服务函数
80
- */
81
- service?: Service<any, any>;
82
- /**
83
- * @description 请求选项
84
- */
85
- options?: Options<any, any>;
86
- };
87
- /**
88
- * @description 格式化数据
89
- * @param data 后台返回的数据
90
- * @returns 格式化后的数据选项
91
- */
92
- transformResponse?: (data: any) => DataOptionType[];
93
- /**
94
- * @description 点击搜索执行
95
- * @param value 搜索值
96
- * @param useRequest 请求实例
97
- */
98
- onSearch?: (value: string, useRequest: Result<any, any>) => void;
99
- /**
100
- * @description 自定义展示
101
- * @param value 数据选项
102
- * @returns 自定义渲染内容
103
- */
104
- optionRender?: (value: DataOptionType) => string | ReactNode;
105
- /**
106
- * @description 用来转换修改value值 和 getValueProps配合使用
107
- * @param value 数据选项
108
- * @returns 转换后的值
109
- */
110
- getChangeValue?: (value: DataOptionType) => any;
111
- /**
112
- * @description 用来转换传入的value值 getChangeValue配合使用
113
- * @param value 数据选项
114
- * @returns 转换后的值属性
115
- */
116
- getValueProps?: (value: DataOptionType) => any;
117
- }
118
- /** 对外公开类型别名(PropSelectType 为历史拼写,保留内部命名) */
119
- export type ProSelectType = PropSelectType;
120
- /**
121
- * @description ProSelect操作接口类型
122
- */
123
- export interface ProSelectActionType {
124
- /**
125
- * @description 实例方法、根据 code | code[] 批量获取数据
126
- * @param code 代码或代码数组
127
- * @param key 可选键名
128
- * @returns 获取的数据
129
- */
130
- getValueObject: (code: string | string[], key?: string) => any;
131
- /**
132
- * @description 获取发生请求的 useRequest 的 ref
133
- */
134
- useRequestRef: Result<any, any>;
135
- }
136
- /**
137
- * @description 响应数据接口类型
138
- */
139
- export interface ResponseDataType {
140
- /**
141
- * @description 状态码
142
- */
143
- status: number;
144
- /**
145
- * @description 消息
146
- */
147
- message: string;
148
- /**
149
- * @description 数据
150
- */
151
- data: any;
152
- /**
153
- * @description 是否成功
154
- * @default -
155
- */
156
- success?: boolean;
157
- /**
158
- * @description 代码
159
- * @default -
160
- */
161
- code?: number;
162
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * 返回当前组件可以显示的数据源
3
- */
4
- export declare const getSelectList: ({ otherProps, value, dataSource, labelInValue, fieldNames, mode, }: any) => any;
@@ -1,4 +0,0 @@
1
- import type { JSX } from 'react';
2
- import { MenuItemProps } from '../../propsType';
3
- export declare const MenuItem: (props: MenuItemProps) => JSX.Element;
4
- export default MenuItem;
@@ -1,3 +0,0 @@
1
- import { ProStepItemType } from '../../propsType';
2
- declare const ProStepItem: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: ProStepItemType) => JSX.Element;
3
- export default ProStepItem;
@@ -1,19 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export interface LazyLoadProps {
3
- /** 占位高度,未进入视口时显示 */
4
- height?: number;
5
- /** 提前触发距离(px),等同于 rootMargin */
6
- offset?: number;
7
- /** 进入视口后只加载一次 */
8
- once?: boolean;
9
- /** CSS className 前缀 */
10
- classNamePrefix?: string;
11
- children: ReactNode;
12
- [key: string]: any;
13
- }
14
- /** 强制所有懒加载组件立即显示内容(替代 react-lazyload 的 forceVisible) */
15
- export declare const forceVisible: () => void;
16
- /** 重新检查懒加载状态(替代 react-lazyload 的 forceCheck) */
17
- export declare const forceCheck: () => void;
18
- declare const LazyLoad: ({ height, offset, once, classNamePrefix, children, }: LazyLoadProps) => React.JSX.Element;
19
- export default LazyLoad;
@@ -1,4 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import type { ListenerProps } from '../../propsType';
3
- declare const Listener: ({ children, delayTime, excludes, ...props }: ListenerProps) => ReactElement;
4
- export default Listener;
@@ -1,5 +0,0 @@
1
- import { ProStepType } from '../../propsType';
2
- export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: import("../../propsType").ProStepPropsType & {
3
- errorCollection: object;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default Step;
@@ -1,11 +0,0 @@
1
- import type { JSX } from 'react';
2
- import { ProStepType, ProStepContextType } from './propsType';
3
- export declare const ProStepContext: import("react").Context<ProStepContextType>;
4
- export declare const useStep: () => Partial<ProStepContextType>;
5
- declare const ProStep: {
6
- ({ children, ...resetProps }: ProStepType): JSX.Element;
7
- useStep: () => Partial<ProStepContextType>;
8
- Item: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: import("./propsType").ProStepItemPropsType) => JSX.Element;
9
- Listener: ({ children, delayTime, excludes, ...props }: import("./propsType").ListenerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
10
- };
11
- export default ProStep;
@@ -1,224 +0,0 @@
1
- import { ReactNode, CSSProperties } from 'react';
2
- import type { LazyLoadProps } from './components/LazyLoad';
3
- /**
4
- * 步骤项基础类型定义
5
- * @interface ItemType
6
- */
7
- export interface ItemType {
8
- /** 步骤名称 */
9
- name: string;
10
- /** 步骤唯一标识码 */
11
- code: string;
12
- /** 步骤排序值,越小越靠前 */
13
- order?: number;
14
- }
15
- /**
16
- * 已加载地图项属性类型
17
- * @interface LoadedMapPropsType
18
- */
19
- export interface LoadedMapPropsType {
20
- /** 唯一标识符 */
21
- id: string;
22
- /** 排序值 */
23
- order: number;
24
- /** 标题文本 */
25
- title: string;
26
- /** 是否已加载 */
27
- loaded: boolean;
28
- }
29
- /**
30
- * @type LoadedMapType
31
- */
32
- export type LoadedMapType = LoadedMapPropsType;
33
- /**
34
- * ProStep 组件属性类型
35
- * @interface ProStepPropsType
36
- */
37
- export interface ProStepPropsType {
38
- /** 步骤条配置项 */
39
- dataSource?: ItemType[];
40
- /** 距离顶部的偏移量(单位:像素) */
41
- fixedTop: number;
42
- /** 当前激活的步骤标识 */
43
- activeKey?: string;
44
- /** 子组件内容 */
45
- children?: ReactNode;
46
- /** 组件自定义样式 */
47
- style?: CSSProperties;
48
- /** 滚动偏移量(单位:像素) */
49
- targetOffset?: number;
50
- /** 是否使用折叠标题 */
51
- collapse?: boolean;
52
- /** 是否自动滚动到第一个报错的步骤 */
53
- scrollToError?: boolean;
54
- /**
55
- * 模块可视区域懒加载
56
- * @description 为true时使用默认配置,或传入自定义懒加载配置
57
- */
58
- lazyLoad?: boolean | LazyLoadProps;
59
- }
60
- /**
61
- * ProStep 子项组件属性类型
62
- * @interface ProStepItemPropsType
63
- */
64
- export interface ProStepItemPropsType {
65
- /** 唯一标识符 */
66
- id: string;
67
- /** 步骤标题 */
68
- title?: string;
69
- /** 是否使用折叠模式 */
70
- collapse?: boolean;
71
- /** 排序值,越小越靠前 */
72
- order?: number;
73
- /**
74
- * 模块可视区域懒加载
75
- * @description 为true时使用默认配置,或传入自定义懒加载配置
76
- */
77
- lazyLoad?: boolean | LazyLoadProps;
78
- /** 允许其他任意属性 */
79
- [key: string]: any;
80
- }
81
- /**
82
- * ProStep 子项组件基础类型
83
- * @type ProStepItemType
84
- */
85
- export type ProStepItemType = ProStepItemPropsType;
86
- /**
87
- * ProStep组件上下文类型
88
- * @interface ProStepContextType
89
- */
90
- export interface ProStepContextType {
91
- /** 注册映射引用 */
92
- registerMap: React.MutableRefObject<Record<string, RegisterMapItem>>;
93
- /** 是否折叠 */
94
- collapse?: boolean;
95
- /** 注册函数 */
96
- register: (params: RegisterParams) => void;
97
- /** 通知函数 */
98
- notify: (params?: NotifyParams) => Promise<any[]>;
99
- /** 触发特定项的函数 */
100
- triggerTo: (keys: string[]) => Promise<any[]>;
101
- /** 处理滚动的函数 */
102
- handleScroll: (id: string, options?: ScrollOptions) => void;
103
- /** 懒加载配置 */
104
- lazyLoad?: boolean | any;
105
- /** 滚动偏移量 */
106
- targetOffset?: number;
107
- /** 取消注册函数 */
108
- unNotify: (keys: string | string[]) => void;
109
- /** 来源 */
110
- source?: string;
111
- }
112
- /**
113
- * 注册参数类型
114
- * @interface RegisterParams
115
- */
116
- export interface RegisterParams {
117
- /** 唯一标识符 */
118
- id: string;
119
- /** 表单实例 */
120
- form?: any;
121
- /** 标题 */
122
- title: string;
123
- /** 自定义验证器 */
124
- validator?: () => Promise<any>;
125
- /** 排序值 */
126
- order: number;
127
- /** 是否禁用 */
128
- disabled?: boolean;
129
- /** 懒加载配置 */
130
- lazyLoad?: boolean | any;
131
- /** 允许其他任意属性 */
132
- [key: string]: any;
133
- }
134
- /**
135
- * 注册映射项类型
136
- * @interface RegisterMapItem
137
- */
138
- export interface RegisterMapItem {
139
- /** 唯一标识符 */
140
- id: string;
141
- /** 标题 */
142
- title: string;
143
- /** 排序值 */
144
- order: number;
145
- /** 提交事件 */
146
- subEvent?: () => Promise<any>;
147
- /** 允许其他任意属性 */
148
- [key: string]: any;
149
- }
150
- /**
151
- * 通知参数类型
152
- * @interface NotifyParams
153
- */
154
- export interface NotifyParams {
155
- /** 排除项 */
156
- excludes?: string[];
157
- }
158
- /**
159
- * 滚动选项类型
160
- * @interface ScrollOptions
161
- */
162
- export interface ScrollOptions {
163
- /** 目标偏移量 */
164
- targetOffset?: number;
165
- /** 是否滚动到错误位置 */
166
- scrollToError?: boolean;
167
- }
168
- /**
169
- * ProStep监听器属性类型
170
- * @interface ListenerProps
171
- */
172
- export interface ListenerProps {
173
- /** 子元素 */
174
- children: React.ReactElement;
175
- /** 延迟时间 */
176
- delayTime?: number;
177
- /** 排除项 */
178
- excludes?: string[];
179
- /** 允许其他任意属性 */
180
- [key: string]: any;
181
- }
182
- /**
183
- * 锚点SVG属性类型
184
- * @interface AnchorSvgProps
185
- */
186
- export interface AnchorSvgProps {
187
- /** 颜色 */
188
- color?: string;
189
- }
190
- /**
191
- * 菜单项属性类型
192
- * @interface MenuItemProps
193
- */
194
- export interface MenuItemProps {
195
- /** 名称 */
196
- name: string;
197
- /** 编码 */
198
- code: string;
199
- /** 是否开启 */
200
- onOff: boolean;
201
- /** 是否是开始项 */
202
- isStart?: boolean;
203
- /** 是否是结束项 */
204
- isEnd?: boolean;
205
- /** 是否禁用 */
206
- isDisabled?: boolean;
207
- /** 是否是当前步骤 */
208
- isCurrentStep?: boolean;
209
- /** 是否已检查 */
210
- isChecked?: boolean;
211
- /** 错误数量 */
212
- errorNum?: number;
213
- /** 当前数量 */
214
- currentNum?: number;
215
- /** 目标偏移量 */
216
- targetOffset?: number;
217
- /** 是否滚动到错误位置 */
218
- scrollToError?: boolean;
219
- }
220
- /**
221
- * ProStep 组件基础类型
222
- * @type ProStepType
223
- */
224
- export type ProStepType = ProStepPropsType;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import type { LoadedMapType } from '../propsType';
3
- /**
4
- * 滚动到错误位置, 延迟200ms解决ProForm错误还未生成
5
- */
6
- export declare const handleScrollError: (dom?: HTMLElement) => void;
7
- /**
8
- * 处理滚动到指定元素位置, 如发现有错误, 则优先滚动到错误位置
9
- * @param id 目标元素的ID
10
- * @param options 滚动选项
11
- */
12
- export declare const handleScroll: (id: string, options?: {
13
- targetOffset?: number;
14
- scrollToError?: boolean;
15
- }) => void;
16
- /**
17
- * 获取加载模块数据信息
18
- * @param registerMap 注册映射对象
19
- * @returns 模块加载状态列表
20
- */
21
- export declare const getLoadedMap: (registerMap: React.MutableRefObject<Record<string, any>>) => LoadedMapType[];
22
- export default handleScroll;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import type { ProStepTabType, ProStepTabResultType } from './propsType';
3
- /**
4
- * 步骤化Tab管理钩子,用于管理多步骤表单或流程的切换和验证
5
- *
6
- * @param {ProStepTabType} props 配置参数
7
- * @returns {ProStepTabResultType} 返回步骤Tab相关方法和状态
8
- */
9
- export declare function useStepTab(props?: ProStepTabType): ProStepTabResultType;
10
- /**
11
- * 在子组件中获取父级 StepTab 实例的钩子
12
- * @returns {ProStepTabResultType} 步骤Tab实例
13
- */
14
- export declare function useStepTabInstance(): ProStepTabResultType;
15
- interface ProStepTabComponent extends React.FC<React.PropsWithChildren<ProStepTabType>> {
16
- useStepTabInstance: typeof useStepTabInstance;
17
- }
18
- /**
19
- * ProStepTab 组件
20
- */
21
- declare const ProStepTab: ProStepTabComponent;
22
- export default ProStepTab;
@@ -1,114 +0,0 @@
1
- /**
2
- * HandleFunction 类型定义 - 步骤处理函数
3
- */
4
- export type HandleFunctionType = () => Promise<boolean>;
5
- /**
6
- * ProStepTab钩子参数接口
7
- */
8
- export interface ProStepTabType {
9
- /**
10
- * 是否将当前tab状态保存在URL中
11
- * @default false
12
- */
13
- routerKeep?: boolean;
14
- /**
15
- * URL参数名称
16
- * @default 'tab'
17
- */
18
- routerSearchKey?: string;
19
- /**
20
- * 切换tab前是否需要验证
21
- * @default false
22
- */
23
- validate?: boolean;
24
- /**
25
- * 切换tab前的回调
26
- * @param current 当前tabKey
27
- * @param target 目标tabKey
28
- * @returns 是否允许切换
29
- */
30
- onBeforeChange?: (current: string, target: string) => Promise<boolean>;
31
- /**
32
- * 切换tab后的回调
33
- * @param key 切换后的tabKey
34
- */
35
- onAfterChange?: (key: string) => void;
36
- /**
37
- * 默认选中的tab key
38
- * @default '1'
39
- */
40
- defaultActiveKey?: string;
41
- /**
42
- * 需要按顺序完成的步骤数量
43
- * 与defaultStep必须同时存在或同时不存在
44
- * @default -
45
- */
46
- queueSteps?: number;
47
- /**
48
- * 当前初始激活步骤
49
- * 与queueSteps必须同时存在或同时不存在
50
- * @default 1
51
- */
52
- defaultStep?: number;
53
- /**
54
- * 是否自动跳转下一步
55
- * @default false
56
- */
57
- autoNext?: boolean;
58
- }
59
- /**
60
- * ProStepTab钩子返回值接口
61
- */
62
- export interface ProStepTabResultType {
63
- /**
64
- * 当前激活的tabKey
65
- */
66
- activeKey: string;
67
- /**
68
- * 设置激活的tabKey
69
- * @param key 目标tabKey
70
- * @param validate 是否需要验证
71
- */
72
- setCheckActiveKey: (key: string, validate?: boolean) => Promise<boolean>;
73
- /**
74
- * 加载状态
75
- */
76
- loading: boolean;
77
- /**
78
- * 注册步骤处理函数
79
- * @param key 步骤Key
80
- * @param handler 处理函数
81
- */
82
- registerHandle: (key: string, handler: HandleFunctionType) => void;
83
- /**
84
- * 获取步骤处理函数
85
- * @param key 步骤Key
86
- */
87
- getHandle: (key: string) => HandleFunctionType | undefined;
88
- /**
89
- * 执行当前步骤处理函数
90
- * @returns 处理结果
91
- */
92
- saveHandle: () => Promise<boolean>;
93
- /**
94
- * 所有步骤处理函数映射
95
- */
96
- handles: Record<string, HandleFunctionType>;
97
- /**
98
- * 重置所有步骤处理函数
99
- */
100
- resetHandles: () => void;
101
- /**
102
- * 最大步骤数
103
- */
104
- queueSteps?: number;
105
- /**
106
- * 当前已激活步骤,最大值为queueSteps
107
- */
108
- step?: number;
109
- /**
110
- * 设置当前顺序步骤
111
- * @param step 顺序步骤
112
- */
113
- setStep?: (step: number) => void;
114
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface EditIconProps {
3
- onClick: () => void;
4
- }
5
- declare const EditIcon: React.FC<EditIconProps>;
6
- export default EditIcon;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { EditableCellProps } from './propsType';
3
- declare const EditableCell: React.FC<EditableCellProps>;
4
- export default EditableCell;
@@ -1,24 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { FormInstance } from 'antd/es/form/Form';
3
- import type { NamePath } from 'antd/es/form/interface';
4
- import type { EditTableCellConfig } from '../../propsType';
5
- export type EditableCellEditMode = 'per-cell-form' | 'shared-form';
6
- export interface EditableCellProps {
7
- value: any;
8
- record: any;
9
- index: number;
10
- dataIndex: string | string[];
11
- editConfig: EditTableCellConfig;
12
- displayContent: ReactNode;
13
- /**
14
- * 编辑态 Form 模式
15
- * @default 'per-cell-form'
16
- * - 'per-cell-form':每个 cell 独立 Form 实例(默认,与重构前一致)
17
- * - 'shared-form':使用外层 ProTable 顶层共享 Form(性能优化,需配合 ProTable.editMode='shared-form')
18
- */
19
- editMode?: EditableCellEditMode;
20
- /** shared-form 模式下外层共享的 Form 实例 */
21
- sharedForm?: FormInstance;
22
- /** shared-form 模式下字段路径(如 ['__editable__', rowKey, dataIndex]) */
23
- sharedFieldName?: NamePath;
24
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * FormatColumn - 表格列格式化组件
3
- * 重构优化:提取公共逻辑,修复 key prop 警告
4
- */
5
- import React from 'react';
6
- import type { FormInstance } from 'antd/es/form/Form';
7
- import type { ProTableColumnType } from '../../propsType';
8
- export declare const formatColumn: ({ column, originalObj, rowKey, wrapToolTipProps, scroll, isInNewRow, diffConfig, editMode, sharedForm, }: {
9
- column: ProTableColumnType;
10
- originalObj: any;
11
- rowKey: any;
12
- wrapToolTipProps?: any;
13
- scroll?: any;
14
- isInNewRow?: any;
15
- diffConfig: any;
16
- editMode?: 'per-cell-form' | 'shared-form';
17
- sharedForm?: FormInstance;
18
- }) => void;
19
- /**
20
- * 查找最近的父级className
21
- */
22
- export declare const getParentElement: (element: any, name: any, type?: string) => React.ReactNode;