@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,154 +0,0 @@
1
- /// <reference types="lodash" />
2
- import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
3
- import { FormInstance } from 'antd';
4
- import React from 'react';
5
- import type { GroupColumnType, SpaceType, FlexibleGroupColumnType } from '../propsType';
6
- import type { ProFormColumnType, ReactiveFunction } from '../../../render/propsType';
7
- export type EventArgs = any[];
8
- /**
9
- * 插入间隔符
10
- * @param columns 表单配置数组
11
- * @returns
12
- */
13
- export declare const insertSeparator: (columns: GroupColumnType[], space?: SpaceType) => any[];
14
- /** 带出event的组件默认取值方法 */
15
- export declare function defaultGetValueFromEvent(valuePropName: string, ...args: EventArgs): any;
16
- /** 转换names */
17
- export declare const transformNamesString: (arr: (string | string[])[]) => (string | string[])[];
18
- /**
19
- * Input TextArea 小写自动转大写
20
- * @param type 组件类型
21
- * @param upperCase 是否小写转大写
22
- * @returns {}
23
- */
24
- export declare const isUpperCase: (type: string, upperCase: boolean) => any;
25
- interface Params {
26
- form?: FormInstance;
27
- index?: number;
28
- type?: string;
29
- namePath?: InternalNamePath;
30
- disabled?: boolean | ReactiveFunction<any, boolean>;
31
- show?: boolean | ReactiveFunction<any, boolean>;
32
- component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
33
- fieldProps?: boolean | ReactiveFunction<any, boolean>;
34
- name?: NamePath;
35
- desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
36
- }
37
- /** 计算响应式参数的值 */
38
- export declare const getReactiveProps: (params: Params) => {
39
- disabled: boolean;
40
- show: boolean;
41
- component: React.ReactNode;
42
- fieldProps: boolean;
43
- desensitization: [number, number];
44
- };
45
- type ValueTypeGetterParams = Pick<ProFormColumnType, 'valueType' | 'switchValue' | 'toISOString' | 'toCSTString' | 'disabled' | 'desensitization'> & {
46
- type?: any;
47
- mode?: string;
48
- };
49
- /** 获取当前字段的转换函数 */
50
- export declare const getValueTypeTrans: (params: ValueTypeGetterParams) => any;
51
- /** 执行所有中间件 返回处理后的值 */
52
- export declare const getValueMiddleware: (value: any, callbacks?: any[]) => any;
53
- /** 获取中间件处理后的value */
54
- export declare const valueFromEventWrapper: (column: any, args: any) => any;
55
- interface ContextProps {
56
- form: FormInstance;
57
- namePath?: InternalNamePath;
58
- isView?: boolean;
59
- names?: NamePath[];
60
- index?: number;
61
- }
62
- interface GroupProps {
63
- disabled?: boolean;
64
- formDisabled?: boolean;
65
- }
66
- /**
67
- * 创建FormItem属性(Hook版本)
68
- */
69
- export declare const useFormItemProps: (column: FlexibleGroupColumnType, contextProps: ContextProps, groupProps: GroupProps) => {
70
- rules: any[];
71
- required: boolean;
72
- label: string;
73
- before?: React.ReactNode;
74
- after?: React.ReactNode;
75
- confirm?: boolean | import("antd").ModalFuncProps | import("../../../render/propsType").FunctionArgs<any, boolean | import("antd").ModalFuncProps>;
76
- show?: boolean | ReactiveFunction<any, boolean>;
77
- component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
78
- children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
79
- id?: string;
80
- prefixCls?: string;
81
- className?: string;
82
- style?: React.CSSProperties;
83
- status?: "" | "warning" | "error" | "success" | "validating";
84
- rootClassName?: string;
85
- isView?: boolean;
86
- validateTrigger?: string | false | string[];
87
- getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
88
- desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
89
- hidden?: boolean;
90
- onReset?: () => void;
91
- vertical?: boolean;
92
- valueType?: import("../../../render/propsType").ProFormValueType;
93
- colon?: boolean;
94
- htmlFor?: string;
95
- labelAlign?: import("antd/es/form/interface").FormLabelAlign;
96
- labelCol?: import("antd").ColProps;
97
- getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
98
- normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
99
- shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
100
- trigger?: string;
101
- validateDebounce?: number;
102
- valuePropName?: string;
103
- messageVariables?: Record<string, string>;
104
- initialValue?: any;
105
- onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
106
- preserve?: boolean;
107
- isListField?: boolean;
108
- isList?: boolean;
109
- noStyle?: boolean;
110
- hasFeedback?: boolean | {
111
- icons: import("antd/es/form/FormItem").FeedbackIcons;
112
- };
113
- validateStatus?: "" | "warning" | "error" | "success" | "validating";
114
- layout?: import("antd/es/form/Form").FormItemLayout;
115
- wrapperCol?: import("antd").ColProps;
116
- help?: React.ReactNode;
117
- fieldId?: string;
118
- switchValue?: [any, any];
119
- viewRender?: (value: any, record: any, { form, index, namePath, }: {
120
- [key: string]: any;
121
- form: FormInstance<any>;
122
- index?: number;
123
- }) => string | React.ReactElement<any, any>;
124
- viewType?: import("../../../render/propsType").ViewType;
125
- trim?: boolean;
126
- upperCase?: boolean;
127
- toISOString?: boolean;
128
- toCSTString?: boolean;
129
- clearNotShow?: boolean;
130
- name: any;
131
- dependencies: any[];
132
- tooltip: string | {
133
- title: string;
134
- icon?: React.ReactNode;
135
- };
136
- extra: React.ReactNode;
137
- validateFirst: boolean | "parallel";
138
- disabled: any;
139
- };
140
- /**
141
- * 创建组件属性
142
- */
143
- export declare const createComponentProps: (column: FlexibleGroupColumnType, formItemProps: any) => {
144
- componentProps: import("lodash").Omit<any, "precision" | "format" | "valueType" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow">;
145
- formItemTransform: {
146
- getValueProps: any;
147
- normalize: any;
148
- };
149
- };
150
- /**
151
- * 配置验证组件
152
- */
153
- export declare const validateChildren: (children: FlexibleGroupColumnType[]) => boolean;
154
- export {};
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ProCascaderType } from './propsType';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProCascaderType) => import("react/jsx-runtime").JSX.Element>;
4
- export default _default;
@@ -1,48 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { DefaultOptionType } from '@rc-component/select/es/Select';
3
- import { Service, Options } from 'ahooks/lib/useRequest/src/types';
4
- export interface FieldNamesType {
5
- label: string;
6
- value: string;
7
- children?: string;
8
- [key: string]: string;
9
- }
10
- export interface ProCascaderType {
11
- className?: string;
12
- mode?: 'address' | 'default';
13
- isView?: boolean;
14
- value?: string[];
15
- disabled?: boolean;
16
- hasDetail?: boolean;
17
- tooltip?: boolean | ReactNode;
18
- detailMaxLength?: number;
19
- fieldNames?: FieldNamesType;
20
- dataSource?: DefaultOptionType[];
21
- useRequest?: {
22
- /**
23
- * @description 请求服务函数
24
- */
25
- service?: Service<any, any>;
26
- /**
27
- * @description 请求选项
28
- */
29
- options?: Options<any, any>;
30
- /**
31
- * @deprecated 保留向后兼容性,使用 options.defaultParams 替代
32
- */
33
- defaultParams?: any;
34
- };
35
- onChange?: (value: string[], selectedOptions?: any[]) => void;
36
- transformResponse?: (data: any[]) => any[];
37
- level?: number;
38
- enumCode?: string;
39
- code?: string | string[];
40
- otherProps?: any;
41
- /** 查看分隔符 */
42
- separator?: string;
43
- /** 详情框占位符 */
44
- detailPlaceholder?: string;
45
- /** 浮窗是否跟随父级 */
46
- scrollFollowParent?: boolean;
47
- desensitization?: [number, number];
48
- }
@@ -1,14 +0,0 @@
1
- interface DataNode {
2
- label: string;
3
- value: string;
4
- children?: DataNode[];
5
- [key: string]: any;
6
- }
7
- interface FieldNames {
8
- label: string;
9
- value: string;
10
- children?: string;
11
- [key: string]: string;
12
- }
13
- export declare const transformDataName: (dataSource: any[], fieldNames: FieldNames) => DataNode[];
14
- export {};
@@ -1,33 +0,0 @@
1
- import { useRequest } from 'ahooks';
2
- declare interface PaginationProp {
3
- pageNum: number;
4
- pageSize: number;
5
- }
6
- declare interface IListReq<T = any> extends PaginationProp {
7
- defaultParams?: T;
8
- [key: string]: any;
9
- }
10
- declare interface IRes<T = any> {
11
- data: T;
12
- status: number;
13
- message: string;
14
- }
15
- declare interface IListProp<T> {
16
- pageNum: number;
17
- pageSize: number;
18
- total: number;
19
- list: T[];
20
- }
21
- declare type IResList<T> = IRes<IListProp<T>>;
22
- declare type IListService<Req, Res> = (params?: IListReq<Req>) => Promise<IResList<Res>>;
23
- export interface RequestListOptions<T, R> {
24
- defaultParams?: Partial<T>;
25
- page?: PaginationProp;
26
- customizePage?: PaginationProp;
27
- withPagination?: boolean;
28
- onPageChange?: (page: PaginationProp) => any;
29
- transformParams?: (params: Object) => Object;
30
- transformResponse?: (data: Object[]) => Object[];
31
- }
32
- export declare function useRequestList<I, R extends Record<string, any>, S extends IListService<I, R>>(service: S, options?: RequestListOptions<I, R>, useRequestOptions?: Parameters<typeof useRequest>[1]): any;
33
- export default useRequestList;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { ProModalSelectType } from './propsType';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<ProModalSelectType>, "ref"> & React.RefAttributes<unknown>>;
4
- export default _default;
@@ -1,106 +0,0 @@
1
- import { FormInstance, InputProps, SelectProps, ModalProps } from 'antd';
2
- import { Service, Options } from 'ahooks/lib/useRequest/src/types';
3
- import React from 'react';
4
- import type { ProFormColumnType } from '../../render/propsType';
5
- import type { ProFormOtherType } from '../../../propsType';
6
- /**
7
- * 模态框确认按钮回调函数类型
8
- * @param list 选中的数据列表
9
- * @returns 返回布尔值或Promise<布尔值>,用于控制模态框是否关闭
10
- */
11
- type OnOkFunction = (list?: Record<string, any>[]) => boolean | void | Promise<boolean | void>;
12
- /**
13
- * 配置选项接口
14
- */
15
- interface ConfigOption {
16
- /** ahooks的useRequest参数配置 */
17
- useRequest?: {
18
- /** 请求服务 */
19
- service?: Service<any, any>;
20
- /** useRequest选项配置 */
21
- options?: Options<any, any> & {
22
- page?: any;
23
- defaultParams?: any;
24
- initParams?: any;
25
- };
26
- /** 初始化参数 */
27
- initParams?: any;
28
- };
29
- /** 表单列配置项 */
30
- formColumns?: ProFormColumnType[];
31
- /** 选择模式:单选(radio)或多选(checkbox) */
32
- type?: 'radio' | 'checkbox';
33
- /** 是否开启分页功能 */
34
- withPagination?: boolean;
35
- /** 转换请求参数 */
36
- transformParams?: (params: any) => any;
37
- /** 转换响应数据 */
38
- transformResponse?: (data: any[]) => any[];
39
- /** 模态框属性配置 */
40
- modalProps?: ModalProps & {
41
- onOk?: OnOkFunction;
42
- };
43
- /** 表格属性配置 */
44
- tableProps?: Record<string, any>;
45
- }
46
- /**
47
- * 模态框选择器属性接口
48
- */
49
- interface ProModalPropsType {
50
- /** 配置选项 */
51
- configOption: ConfigOption;
52
- /** 值变更回调 */
53
- onChange?: (value: number | string | undefined, option?: any) => void;
54
- /** 弹框标题 */
55
- title: ModalProps['title'];
56
- /** 组件引用 */
57
- ref?: React.MutableRefObject<any>;
58
- /** 自定义格式化显示值 */
59
- onFormat?: (value: any) => string;
60
- /** 自定义选项渲染函数 */
61
- optionRender?: (value: any) => string;
62
- /** 自定义字段名映射 */
63
- fieldNames?: any;
64
- /** 是否为查看模式 */
65
- isView?: boolean;
66
- /** 自定义组件渲染 */
67
- customRender?: React.ReactNode;
68
- /** 自定义空数据展示组件 */
69
- viewEmpty?: React.ReactNode;
70
- /** ProForm中传递的其他参数 */
71
- otherProps?: ProFormOtherType;
72
- /**
73
- * 是否将选项的label包装到value中
74
- * 会将Select的value类型从string变为{value: string, label: ReactNode}格式
75
- */
76
- labelInValue?: boolean;
77
- /** 是否默认选择列表第一项 */
78
- defaultOne?: boolean;
79
- /** 打开弹框前的校验函数 */
80
- beforeOpen?: any;
81
- /** 打开弹框后的回调函数 */
82
- afterOpen?: any;
83
- /** 废弃 是否启用tooltip提示 */
84
- isTooltip?: boolean;
85
- /** 是否启用tooltip提示 */
86
- tooltip?: boolean;
87
- /** 是否以"值-名称"形式展示 */
88
- showCodeName?: boolean;
89
- /** 查询表单实例,用于获取查询表单数据 */
90
- searchForm?: FormInstance;
91
- /** 模糊查询的字段名 */
92
- searchKey?: string;
93
- /** 展示形式 */
94
- mode?: 'input' | 'select';
95
- }
96
- /** 模态框选择器属性类型(结合Select和Input属性) */
97
- export declare type ProModalSelectPropsType = Omit<SelectProps & InputProps, 'mode'> & ProModalPropsType;
98
- /** 配置选项类型 */
99
- export type ProModalSelectConfigType = ConfigOption;
100
- /** 模态框属性类型 */
101
- export type ProModalType = Omit<ProModalPropsType, 'configOption'> & {
102
- configOption: ProModalSelectConfigType;
103
- };
104
- /** 模态框选择器类型(结合Select和Input属性) */
105
- export type ProModalSelectType = Omit<SelectProps & InputProps, 'mode'> & ProModalType;
106
- export {};
@@ -1 +0,0 @@
1
- export declare const hideTooltipIfOpen: (dom: HTMLElement, open: boolean) => void;
@@ -1,14 +0,0 @@
1
- /**
2
- * 合并跨页/筛选场景下的多选行数据
3
- *
4
- * antd Table 开启 preserveSelectedRowKeys 后,onChange 回传的 rowKeys 是全量(含不在当前页的 key),
5
- * 但 rows 中不在当前 dataSource 的行对象会是 undefined。此函数用历史已选行(prevRows)补全这些缺失的行对象,
6
- * 保证返回的 rows 与 rowKeys 全量对齐,从而避免翻页/精准筛选后丢失已选数据。
7
- *
8
- * @param prevRows 历史已选行(累积缓存)
9
- * @param nextRowKeys antd 回传的全量选中 key
10
- * @param nextRows antd 回传的行对象(不在当前页的为 undefined)
11
- * @param getRowKey 取行 key 的方法
12
- * @returns 与 nextRowKeys 对齐的全量行对象(无法找到行对象的 key 会被过滤)
13
- */
14
- export declare const mergeSelectedRows: (prevRows: Record<string, any>[], nextRowKeys: any[], nextRows: (Record<string, any> | undefined)[], getRowKey: (record: Record<string, any>) => any) => Record<string, any>[];
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ProNumberRangeType } from './propsType';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProNumberRangeType) => any>;
4
- export default _default;
@@ -1,85 +0,0 @@
1
- import React from 'react';
2
- import type { ProFormOtherType } from '../../../propsType';
3
- export interface ProNumberRangeType {
4
- /**
5
- * @description 组件的值,[最小值,最大值]
6
- * @default []
7
- */
8
- value?: number[];
9
- /**
10
- * @description onChange
11
- * @default ()=>{}
12
- */
13
- onChange?: (values: number[]) => void;
14
- /**
15
- * @description 最小值
16
- * @default -
17
- */
18
- min?: number;
19
- /**
20
- * @description 最大值
21
- * @default -
22
- */
23
- max?: number;
24
- /**
25
- * @description 禁用状态
26
- * @default false
27
- */
28
- disabled?: boolean | boolean[];
29
- /**
30
- * @description 精度
31
- * @default '2'
32
- */
33
- precision?: number;
34
- /**
35
- * @description class类名
36
- * @default -
37
- */
38
- className?: string;
39
- /**
40
- * @description 是否查看模式
41
- * @default 'false'
42
- */
43
- isView?: boolean;
44
- /**
45
- * @description 值类型,回显时区分金额与百分比
46
- * @default '-'
47
- */
48
- valueType?: 'percentage' | 'permillage' | 'thousandth';
49
- /**
50
- * @description 空值查看时默认展示内容
51
- * @default '-'
52
- */
53
- viewEmpty?: React.ReactNode;
54
- /**
55
- * @description 保留小数点几位
56
- * @default '2'
57
- */
58
- decimal?: number;
59
- /**
60
- * @description 带标签的 input,设置前置标签
61
- * @default '-'
62
- */
63
- addonBefore?: React.ReactNode | string;
64
- /**
65
- * @description 带标签的 input,设置后置标签
66
- * @default '-'
67
- */
68
- addonAfter?: React.ReactNode | string;
69
- /**
70
- * @description InputNumber属性
71
- * @default '-'
72
- */
73
- /**
74
- * @description 查看分割符
75
- * @default '-'
76
- */
77
- separator?: React.ReactNode | string;
78
- /**
79
- * @deprecated 已弃用,请使用 separator 替代
80
- */
81
- split?: React.ReactNode | string;
82
- childProps?: any[];
83
- otherProps?: ProFormOtherType;
84
- id?: string;
85
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { ProRangeLimitType } from './propsType';
3
- declare const ProRangeLimit: React.FC<ProRangeLimitType>;
4
- export default ProRangeLimit;
@@ -1,23 +0,0 @@
1
- import { RangePickerProps } from 'antd/es/date-picker';
2
- import { Dayjs } from 'dayjs';
3
- type Value = [Dayjs?, Dayjs?] | null;
4
- type ValueStr = [string?, string?] | null;
5
- type HandleChange = (valueStr: ValueStr | null, value: Value | null) => void;
6
- export type ProRangeLimitType = Omit<RangePickerProps, 'value' | 'onChange' | 'format' | 'separator' | 'mode'> & {
7
- disabled?: boolean | [boolean, boolean];
8
- foreverText?: string;
9
- foreverDate?: string;
10
- otherProps?: any;
11
- onChange?: HandleChange;
12
- value?: ValueStr;
13
- format?: string;
14
- separator?: any;
15
- isView?: boolean;
16
- showTime?: any;
17
- valueType?: any;
18
- /**
19
- * 是否限制时间范围
20
- */
21
- limit?: boolean;
22
- };
23
- export {};
@@ -1,9 +0,0 @@
1
- import dayjs from 'dayjs';
2
- import type { Dayjs } from 'dayjs';
3
- interface Props<T = any> {
4
- value?: T;
5
- onChange?: (value: T, ...rest: any[]) => void;
6
- format?: string;
7
- }
8
- declare const useControlled: (props: Props) => [dayjs.Dayjs, (value: Dayjs | undefined) => void];
9
- export default useControlled;
@@ -1,33 +0,0 @@
1
- import { DatePickerProps, TimePickerProps } from 'antd';
2
- import type { Dayjs } from 'dayjs';
3
- import React from 'react';
4
- import type { ProFormOtherType } from '../../../propsType';
5
- import type { ProRangeLimitType } from '../ProRangeLimit/propsType';
6
- import type { DistributiveOmit } from '../../../../ProForm/propsType';
7
- export type DateType = DatePickerProps['value'];
8
- export type ProTimeLimitType = DistributiveOmit<DatePickerProps, 'value' | 'onChange' | 'mode'> & {
9
- value?: string;
10
- onChange?: (value: ProTimeLimitType['value'] | null, valueData: Dayjs) => void;
11
- disabled?: boolean;
12
- foreverDate?: string;
13
- foreverText?: string;
14
- viewEmpty?: React.ReactNode;
15
- format?: string;
16
- valueType?: 'dayjs' | 'format' | 'ISO' | 'dateTime' | 'dateStartEndTime';
17
- otherProps?: ProFormOtherType;
18
- mode?: 'DatePicker';
19
- isView?: boolean;
20
- /**
21
- * 是否限制时间范围
22
- */
23
- limit?: boolean;
24
- } & TimePickerProps & {
25
- showTime?: DatePickerProps['showTime'];
26
- showNow?: boolean;
27
- };
28
- export declare const ProTimeLimit: React.FC<ProTimeLimitType>;
29
- export type ProLimitType = ProTimeLimitType | (ProRangeLimitType & {
30
- mode: 'RangePicker';
31
- });
32
- declare const LimitPick: React.FC<ProLimitType>;
33
- export default LimitPick;
@@ -1,29 +0,0 @@
1
- import * as componentMap from './index';
2
- export { default as Select } from './base/Select';
3
- export { default as DatePicker } from './base/DatePicker';
4
- export { default as RangePicker } from './base/RangePicker';
5
- export { default as TextArea } from './base/TextArea';
6
- export { default as Switch } from './base/Switch';
7
- export { default as Radio } from './base/Radio';
8
- export { default as Checkbox } from './base/Checkbox';
9
- export { default as Input } from './base/Input';
10
- export { default as InputNumber } from './base/InputNumber';
11
- export { default as SwitchCheckbox } from './base/SwitchCheckbox';
12
- export { default as TimePicker } from './base/TimePicker';
13
- export { default as FormList } from './combination/FormList';
14
- export { default as ProEditTable } from '../../ProEditTable';
15
- export { default as ProCascader } from './combination/ProCascader';
16
- export { default as ProNumberRange } from './combination/ProNumberRange';
17
- export { default as ProModalSelect } from './combination/ProModalSelect';
18
- export { default as ProTimeLimit } from './combination/ProTimeLimit';
19
- export { default as ProRangeLimit } from './combination/ProRangeLimit';
20
- export { default as Group } from './combination/Group';
21
- export { default as ProCollapse } from './combination/Container';
22
- export { default as Container } from './combination/Container';
23
- export { default as ProEnum } from '../../ProEnum';
24
- export { default as ProSelect } from '../../ProSelect';
25
- export { default as ProUpload } from '../../ProUpload';
26
- export { default as ProTreeModal } from '../../ProTreeModal';
27
- export { default as ProTree } from '../../ProTree';
28
- export { default as FormFooter } from './FormFooter';
29
- export type ProFormComponentType = keyof typeof componentMap;
@@ -1,17 +0,0 @@
1
- import { FormInstance } from 'antd';
2
- import { NamePath } from 'antd/lib/form/interface';
3
- import React from 'react';
4
- import { DiffOriginalParams } from '../../utils/diffOriginal';
5
- import type { DiffConfigType } from '../../propsType';
6
- interface Props {
7
- name?: NamePath;
8
- names?: NamePath[];
9
- namesStr?: string;
10
- diffConfig?: DiffConfigType;
11
- form: FormInstance;
12
- onDiff?: DiffOriginalParams['onDiff'];
13
- valuePropName?: string;
14
- [name: string]: any;
15
- }
16
- declare const ChangedWrapper: React.FC<Props>;
17
- export default ChangedWrapper;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { ProFormColumnType } from '../../propsType';
3
- interface Props<T = any> {
4
- value?: T;
5
- onChange?: (value: T, ...rest: any[]) => void;
6
- confirm: ProFormColumnType['confirm'];
7
- [K: string]: any;
8
- }
9
- declare const ConfirmWrapper: React.FC<Props>;
10
- export default ConfirmWrapper;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import type { FormItemProps, FormInstance } from 'antd';
3
- import type { NamePath } from 'antd/es/form/interface';
4
- interface CustomComponentViewWrapperProps {
5
- formItemProps: FormItemProps;
6
- internalItemRender?: any;
7
- className?: string;
8
- style?: React.CSSProperties;
9
- filterFormItemKey?: string[];
10
- form: FormInstance;
11
- name?: NamePath;
12
- isView?: boolean;
13
- viewRender?: (value: any, record: any, options: {
14
- form: FormInstance;
15
- index?: any;
16
- namePath?: any;
17
- }) => React.ReactNode | string | null | undefined;
18
- originComponent?: React.ReactNode;
19
- viewEmpty?: React.ReactNode;
20
- otherProps?: any;
21
- component?: any;
22
- AutoComponent?: any;
23
- children: React.ReactNode;
24
- }
25
- /**
26
- * 自定义组件视图模式包装器
27
- * 用于处理自定义组件在 isView 模式下的渲染逻辑
28
- */
29
- declare const CustomComponentViewWrapper: React.FC<CustomComponentViewWrapperProps>;
30
- export default CustomComponentViewWrapper;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { RenderType } from './propsType';
3
- declare const Render: React.FC<RenderType>;
4
- export default Render;