@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,109 +0,0 @@
1
- import { ColProps, FormProps, FormInstance } from 'antd';
2
- import { InternalNamePath, NamePath } from 'antd/es/form/interface';
3
- interface transProps {
4
- formProps: FormProps;
5
- colProps: ColProps;
6
- [name: string]: any;
7
- }
8
- interface AnyObject {
9
- [key: string]: any;
10
- }
11
- export declare const getLayout: (params: any) => transProps;
12
- export declare const isSelect: (props: any) => any;
13
- /**
14
- * Input TextArea 移除前后空格
15
- * @param type 组件类型
16
- * @param trim 是否移除前后空格
17
- * @returns {}
18
- */
19
- export declare const isTrim: (type: string, trim: boolean, configData: any) => any;
20
- /**
21
- * Input TextArea 小写自动转大写
22
- * @param type 组件类型
23
- * @param upperCase 是否小写转大写
24
- * @returns {}
25
- */
26
- export declare const isUpperCase: (type: string, upperCase: boolean) => any;
27
- export declare const diffField: (prevValues: any, curValues: any, names: NamePath[]) => boolean;
28
- export declare const splitNameStr: (name: string) => string[][];
29
- export declare const filterInternalFields: (values: any, optimize?: boolean) => any;
30
- export declare const getAllNamePath: (object: Record<string, any>, currentPath?: InternalNamePath) => InternalNamePath[];
31
- export declare const isNullValue: (value: any) => boolean;
32
- /**
33
- * 判断数组中是否包含空值 一个为空则为true
34
- * @param arr 值
35
- * @returns boole
36
- */
37
- export declare const isNotFullArray: (arr: any, length: any, required: any) => boolean;
38
- /**
39
- * 判断数组中值是否都为空 全部为空则为true
40
- * @param arr 值
41
- * @returns boole
42
- */
43
- export declare const isNullArray: (arr: any) => boolean;
44
- /**
45
- * 判断数组中值是否全部为空 如果值不是数组返回false
46
- * @param arr 值
47
- * @returns boole
48
- */
49
- export declare const isEmptyArray: (arr: any) => boolean;
50
- export declare function toArray<T>(value?: T | T[] | null): T[];
51
- /**
52
- * 初始化值names值合并
53
- * @param obj AnyObject
54
- * @returns AnyObject
55
- */
56
- export declare function initialValuesToNames(values: AnyObject, columns: AnyObject): AnyObject;
57
- /**
58
- * 获取数组含数字的新数组
59
- * @returns ['group-7x19no', 0, 'abc'] =>['group-7x19no', 0]
60
- */
61
- export declare function getArrayBeforeNumber(arr: (string | number)[]): (string | number)[];
62
- /**
63
- * 查询数据中是否包含rowKey
64
- */
65
- export declare const hasRowKey: (obj: any) => boolean;
66
- /**
67
- * 获取小数点后的位数
68
- * @param num 数字
69
- * @returns 位数
70
- */
71
- export declare const getDecimalDigits: (num: number) => number;
72
- /**
73
- * 获取树状结构option
74
- * @param treeData 树数据源
75
- * @param value 选中值
76
- * @returns {}
77
- */
78
- export declare const findOptionByValue: (treeData: any[], value: string | number, fieldNames: {
79
- [key: string]: any;
80
- label?: string;
81
- value?: string;
82
- children?: string;
83
- }) => any;
84
- /** 解析namePath */
85
- export declare const parseNamePath: (input: string) => any;
86
- /**
87
- * 获取表单所有字段路径的简化函数
88
- * @param form 表单实例
89
- * @returns 所有字段路径数组
90
- */
91
- export declare const getFormFieldPaths: (form: FormInstance) => any[];
92
- export declare function findNamesKeyInArray(arr: string[], key: string): string | null;
93
- type DataItem = (string | number)[];
94
- /**
95
- * 根据特定规则合并两个数据源 (TypeScript 版本)
96
- * @param data1 第一个数据源
97
- * @param data2 第二个数据源
98
- * @returns 合并后的结果数组
99
- */
100
- export declare const mergeNames: (data1: DataItem[], data2: DataItem[]) => DataItem[];
101
- /**
102
- * 是否 formlist或者pro-edit-table 场景
103
- * 使用正则表达式判断一个由逗号分隔的字符串中,是否包含一个纯数字的片段。
104
- * @param {string} str - 输入的字符串。
105
- * @returns {boolean} - 如果匹配成功,返回 true;否则返回 false。
106
- */
107
- export declare const isListForm: (str: string) => boolean;
108
- export * from './buildFormItemProps';
109
- export * from './reactiveValues';
@@ -1,29 +0,0 @@
1
- import type { NamePath } from 'antd/es/form/interface';
2
- /**
3
- * 定义支持多字段依赖的类型
4
- */
5
- export interface NamePathsDependencyType {
6
- type: 'namesPaths';
7
- paths: NamePath[][];
8
- }
9
- /**
10
- * dependencies支持的类型
11
- */
12
- export type Dependencies = NamePath[] | NamePathsDependencyType;
13
- /**
14
- * 处理表单依赖项
15
- *
16
- * 将常规的依赖项数组与namesPaths类型的依赖项进行处理
17
- * 对于namesPaths类型,将其转换为特定格式的字符串:
18
- * - 同一路径内的多级通过下划线(_)连接
19
- * - 不同路径之间通过连字符(-)连接
20
- *
21
- * 例如:
22
- * { type: 'namesPaths', paths: [['a', 'b'], ['c', 'd']] }
23
- * 会被转换成: ['a_b-c_d']
24
- *
25
- * @param dependencies 依赖项配置
26
- * @returns 处理后的依赖项数组
27
- */
28
- export declare function processDependencies(dependencies?: any): any;
29
- export default processDependencies;
@@ -1,34 +0,0 @@
1
- /// <reference types="react" />
2
- /** 列级响应式配置(可能为静态值或 ReactiveFunction) */
3
- export interface ReactiveProps {
4
- show?: any;
5
- disabled?: any;
6
- required?: any;
7
- rules?: any;
8
- fieldProps?: any;
9
- desensitization?: any;
10
- }
11
- /** 解析后的列级响应式值 */
12
- export interface ReactiveValues {
13
- show: any;
14
- disabled: any;
15
- required: any;
16
- rules: any;
17
- fieldProps: any;
18
- desensitization: any;
19
- }
20
- /** 持有解析值的 ref 集合 */
21
- export interface ReactiveRefs {
22
- showRef: React.MutableRefObject<any>;
23
- disabledRef: React.MutableRefObject<any>;
24
- requiredRef: React.MutableRefObject<any>;
25
- rulesRef: React.MutableRefObject<any>;
26
- fieldPropsRef: React.MutableRefObject<any>;
27
- desensitizationRef: React.MutableRefObject<any>;
28
- }
29
- /** 按当前表单值解析 show/disabled/required/rules/fieldProps/desensitization(纯函数,无副作用) */
30
- export declare const resolveReactiveValues: (reactiveProps: ReactiveProps, currentValues: any, ctx: any) => ReactiveValues;
31
- /** 比较解析值与上一次 ref 值是否有变化(纯函数,无副作用) */
32
- export declare const hasReactiveDiff: (refs: ReactiveRefs, next: ReactiveValues) => boolean;
33
- /** 将解析值写回 ref 集合 */
34
- export declare const commitReactiveValues: (refs: ReactiveRefs, next: ReactiveValues) => void;
@@ -1,7 +0,0 @@
1
- export declare const rulesCreator: ({ rules, label, isSelect, names, required }: {
2
- rules?: any[];
3
- label: any;
4
- isSelect: any;
5
- names: any;
6
- required: any;
7
- }) => any[];
@@ -1,10 +0,0 @@
1
- import { FormInstance, FormItemProps } from 'antd';
2
- import { NamePath } from 'antd/es/form/interface';
3
- interface TransformProps extends FormItemProps {
4
- names: NamePath[];
5
- form: FormInstance;
6
- namePath: any[];
7
- }
8
- type TransformFun = 'normalize' | 'getValueProps' | 'shouldUpdate' | 'name';
9
- declare const transformNames: (formItem: TransformProps, form: FormInstance, names: NamePath[], fieldName: string, type?: string) => Pick<TransformProps, TransformFun>;
10
- export default transformNames;
@@ -1,6 +0,0 @@
1
- import { FormInstance, FormItemProps } from 'antd';
2
- import { NamePath } from 'antd/es/form/interface';
3
- import type { StoreValue, Store } from '@rc-component/form/es/interface';
4
- import type { TransformType } from '../propsType';
5
- export declare const transformValue: (names: NamePath[], form: FormInstance, fieldName: NamePath, normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue, getValueProps?: FormItemProps['getValueProps']) => TransformType;
6
- export default transformValue;
@@ -1,70 +0,0 @@
1
- /** 脱敏处理函数 */
2
- export declare const maskStringRangeWithRegex: (input: string, range: [number, number]) => string;
3
- declare const _default: {
4
- /** 年月日 */
5
- date: ({ type, toISOString, toCSTString, mode }: {
6
- type: any;
7
- toISOString: any;
8
- toCSTString: any;
9
- mode: any;
10
- }) => {};
11
- /** 年月日 时分秒 */
12
- dateTime: ({ type, toISOString, toCSTString, mode }: {
13
- type: any;
14
- toISOString: any;
15
- toCSTString: any;
16
- mode: any;
17
- }) => {};
18
- /** 年月日 00:00:00 */
19
- dateStartTime: ({ type, toISOString, toCSTString, mode }: {
20
- type: any;
21
- toISOString: any;
22
- toCSTString: any;
23
- mode: any;
24
- }) => {};
25
- /** 年月日 23:59:59 */
26
- dateEndTime: ({ type, toISOString, toCSTString, mode }: {
27
- type: any;
28
- toISOString: any;
29
- toCSTString: any;
30
- mode: any;
31
- }) => {};
32
- /** 年月日 00:00:00 ~ 年月日 23:59:59 */
33
- dateStartEndTime: ({ type, toISOString, toCSTString, mode }: {
34
- type: any;
35
- toISOString: any;
36
- toCSTString: any;
37
- mode: any;
38
- }) => {};
39
- /** 百分比 */
40
- percentage: ({ type, valueType }: {
41
- type: any;
42
- valueType: any;
43
- }) => {
44
- normalize: (value: any) => any;
45
- getValueProps: (value: any) => {
46
- value: any;
47
- };
48
- };
49
- /** 千分比 */
50
- permillage: ({ type, valueType }: {
51
- type: any;
52
- valueType: any;
53
- }) => {
54
- normalize: (value: any) => any;
55
- getValueProps: (value: any) => {
56
- value: any;
57
- };
58
- };
59
- /** 开关 YN转换 */
60
- switch: ({ switchValue }: {
61
- switchValue: any;
62
- }) => Error | {
63
- normalize: (value: boolean) => any;
64
- getValueProps: (value: any) => {
65
- checked: boolean;
66
- value: any;
67
- };
68
- };
69
- };
70
- export default _default;
@@ -1,19 +0,0 @@
1
- export declare const iconMap: {
2
- type: string;
3
- 'text-cn': string;
4
- 'text-en': string;
5
- }[];
6
- export declare const themeMap: {
7
- '#006AFF': string[];
8
- '#00BC70': string[];
9
- '#FF8C16': string[];
10
- '#A00F20': string[];
11
- '#31AF96': string[];
12
- };
13
- export declare const themeFillMap: {
14
- '#006AFF': string[];
15
- '#00BC70': string[];
16
- '#FF8C16': string[];
17
- '#A00F20': string[];
18
- '#31AF96': string[];
19
- };
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import type { ProIconType } from './propsTypes';
3
- declare const ProIcon: FC<ProIconType>;
4
- export default ProIcon;
@@ -1,175 +0,0 @@
1
- import { CSSProperties, ReactNode, MouseEventHandler, ComponentType, ReactElement } from 'react';
2
- import { ButtonProps } from 'antd/lib/button';
3
- /**
4
- * 图标模式
5
- * @description 定义图标的显示模式:纯图标或按钮形式
6
- */
7
- export type ProIconModeType = 'icon' | 'button';
8
- /**
9
- * 图标映射对象
10
- */
11
- export interface ProIconMapType {
12
- /**
13
- * 图标类型
14
- * @description 唯一标识图标的类型名称
15
- * @default undefined
16
- */
17
- type: string;
18
- /**
19
- * 中文显示文本
20
- * @description 图标对应的中文描述
21
- * @default undefined
22
- */
23
- 'text-cn'?: string;
24
- /**
25
- * 英文显示文本
26
- * @description 图标对应的英文描述
27
- * @default undefined
28
- */
29
- 'text-en'?: string;
30
- }
31
- /**
32
- * 主题映射对象
33
- */
34
- interface ProIconThemeMapType {
35
- /**
36
- * 主题颜色映射
37
- * @description 不同主题下的颜色值数组
38
- * @default undefined
39
- */
40
- [key: string]: string[];
41
- }
42
- /**
43
- * 操作映射对象
44
- */
45
- export interface ProIconActionMapType {
46
- /**
47
- * 主题颜色映射
48
- * @description 不同主题下的颜色映射
49
- * @default undefined
50
- */
51
- themeMap?: ProIconThemeMapType;
52
- /**
53
- * 主题填充颜色映射
54
- * @description 不同主题下的填充颜色映射
55
- * @default undefined
56
- */
57
- themeFillMap?: ProIconThemeMapType;
58
- /**
59
- * 渐变色值
60
- * @description 渐变色值数组
61
- * @default undefined
62
- */
63
- gradation?: string[];
64
- /**
65
- * 填充色值
66
- * @description 填充色值数组
67
- * @default undefined
68
- */
69
- fill?: string[];
70
- }
71
- export interface ProIconType {
72
- /**
73
- * 自定义 SVG 组件
74
- * @description 自定义 SVG React 组件或 SVG 文件路径,支持传入组件类型、组件实例或字符串路径,优先级高于 src 和 type
75
- * @default undefined
76
- */
77
- component?: ComponentType<any> | ReactElement | string;
78
- /**
79
- * 图标路径
80
- * @description 本地import引入的图标路径
81
- * @default undefined
82
- */
83
- src?: string;
84
- /**
85
- * 图标名称
86
- * @description 图标的类型名称,用于识别特定图标
87
- * @default null
88
- */
89
- type?: string | null;
90
- /**
91
- * 图标大小
92
- * @description 图标的大小,同时设置图标的width以及height
93
- * @default '1em'
94
- */
95
- size?: number | string;
96
- /**
97
- * 旋转角度
98
- * @description 图标旋转角度(IE9 无效)
99
- * @default undefined
100
- */
101
- rotate?: number;
102
- /**
103
- * 是否旋转
104
- * @description 图标是否旋转loading效果
105
- * @default false
106
- */
107
- spin?: boolean;
108
- /**
109
- * 图标颜色
110
- * @description 图标的颜色,设置svg的fill属性
111
- * @default undefined
112
- */
113
- color?: string;
114
- /**
115
- * 是否禁用
116
- * @description 设置图标为禁用状态
117
- * @default false
118
- */
119
- disabled?: boolean;
120
- /**
121
- * 提示信息
122
- * @description 鼠标悬停时显示的提示信息
123
- * @default undefined
124
- */
125
- tooltip?: string | ReactNode;
126
- /**
127
- * 是否跟随主题
128
- * @description 是否跟随系统主题色变化
129
- * @default false
130
- */
131
- theme?: boolean;
132
- /**
133
- * 点击事件
134
- * @description 图标的点击事件处理函数
135
- * @default undefined
136
- */
137
- onClick?: MouseEventHandler<SVGSVGElement>;
138
- /**
139
- * 自定义类名
140
- * @description 自定义图标的CSS类名
141
- * @default undefined
142
- */
143
- className?: string;
144
- /**
145
- * 自定义样式
146
- * @description 计算后的svg元素样式,优先级高于size/color/rotate属性
147
- * @default {}
148
- */
149
- style?: CSSProperties;
150
- /**
151
- * 显示模式
152
- * @description 图标的显示模式:图标或按钮
153
- * @default 'icon'
154
- */
155
- mode?: ProIconModeType;
156
- /**
157
- * 按钮属性
158
- * @description mode为button时的按钮属性,与antd Button接收props一致
159
- * @default {}
160
- */
161
- buttonProps?: ButtonProps;
162
- /**
163
- * 图标映射表
164
- * @description 图标与中英文文本的映射表
165
- * @default []
166
- */
167
- mapList?: ProIconMapType[];
168
- /**
169
- * SVG操作表
170
- * @description SVG变更操作表,用于主题配置
171
- * @default undefined
172
- */
173
- actionMap?: ProIconActionMapType;
174
- }
175
- export {};
@@ -1,6 +0,0 @@
1
- export declare const recurseGetNodes: (type: any, node: any, queue: any) => void;
2
- export declare const onBeforeInjection: ({ svg, actionMap, primaryColor }: {
3
- svg: any;
4
- actionMap: any;
5
- primaryColor: any;
6
- }) => void;
@@ -1,4 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ProLayoutType } from '../../../propTypes';
3
- declare const Header: FC<ProLayoutType>;
4
- export default Header;
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- declare const FoldMenu: FC<any>;
3
- export default FoldMenu;
@@ -1,3 +0,0 @@
1
- import type { OpenMenuPropsType } from './propsType';
2
- declare const OpenMenu: (props: OpenMenuPropsType) => import("react/jsx-runtime").JSX.Element;
3
- export default OpenMenu;
@@ -1,15 +0,0 @@
1
- export interface OpenMenuPropsType {
2
- dataSource: {
3
- menus: any;
4
- iconfontUrl: string;
5
- height?: number;
6
- /** 是否是折叠模式的菜单 */
7
- sideMenu?: boolean;
8
- };
9
- [key: string]: any;
10
- }
11
- export interface StatePropsType {
12
- selectedKeys: string[];
13
- openKeys: string[];
14
- router: string;
15
- }
@@ -1,3 +0,0 @@
1
- import type { FC } from 'react';
2
- declare const SideMenu: FC<any>;
3
- export default SideMenu;
@@ -1,4 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ProLayoutType } from '../../../propTypes';
3
- declare const Menu: FC<ProLayoutType>;
4
- export default Menu;
@@ -1,4 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ProLayoutType } from '../../../propTypes';
3
- declare const Notice: FC<ProLayoutType>;
4
- export default Notice;
@@ -1,3 +0,0 @@
1
- export { default as Header } from './Header';
2
- export { default as Notice } from './Notice';
3
- export { default as Menu } from './Menu';
@@ -1,98 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
3
- export type levelType = '1' | '2' | '3';
4
- export interface TitleListType {
5
- /**
6
- * @description 描述的标题
7
- * @default -
8
- */
9
- label: string;
10
- /**
11
- * @description 描述的值
12
- * @default -
13
- */
14
- value: string | number | undefined | React.ReactNode;
15
- }
16
- export interface ProCollapseType {
17
- /**
18
- * @description 折叠头部标题
19
- * @default -
20
- */
21
- title?: string | React.ReactNode;
22
- /**
23
- * @description 展开收起状态
24
- * @default false
25
- */
26
- collapsed?: boolean;
27
- /**
28
- * @description 自动适应窗口大小
29
- * @default -
30
- */
31
- autoHeight?: boolean;
32
- /**
33
- * @description 标题前图标
34
- * @default -
35
- */
36
- icon?: React.ReactNode | boolean;
37
- /**
38
- * @description 折叠头部多个标题
39
- * @default []
40
- */
41
- titleList?: TitleListType[];
42
- /**
43
- * @description id用于锚点定位
44
- * @default -
45
- */
46
- id?: string;
47
- /**
48
- * @description 内容区域样式
49
- * @default -
50
- */
51
- contentStyle?: CSSProperties;
52
- /**
53
- * @description 折叠等级
54
- * @default 1
55
- */
56
- level?: levelType;
57
- /**
58
- * @description 二级折叠是否带收起
59
- * @default false
60
- */
61
- towCollapse?: boolean;
62
- /**
63
- * @description 三级折叠是否带收起
64
- * @default false
65
- */
66
- threeCollapse?: boolean;
67
- /**
68
- * @description 标题右侧扩展信息
69
- * @default -
70
- */
71
- extra?: React.ReactNode;
72
- /**
73
- * @description 当有titleList显示的换行的数量
74
- * @default 3
75
- */
76
- column?: number;
77
- /**
78
- * @description 一级标题是否默认折叠
79
- * @default false
80
- */
81
- folding?: boolean;
82
- /**
83
- * @description 控制折叠面板展开状态
84
- * @default -
85
- */
86
- open?: boolean;
87
- /**
88
- * @description antd Collapse属性
89
- * @default -
90
- */
91
- collapseProps?: CollapseProps;
92
- /**
93
- * @description antd CollapsePanel属性
94
- * @default -
95
- */
96
- collapsePanelProps?: CollapsePanelProps;
97
- [key: string]: any;
98
- }
@@ -1,3 +0,0 @@
1
- import type { ProCollapseType } from './PropTypes';
2
- declare const ProCollapse: (props: ProCollapseType) => import("react/jsx-runtime").JSX.Element;
3
- export default ProCollapse;
@@ -1,27 +0,0 @@
1
- export interface stateProps {
2
- width?: number;
3
- [key: string]: any;
4
- }
5
- export interface ProFooterType {
6
- /**
7
- * @description 是否显示
8
- * @default true
9
- */
10
- visible?: boolean;
11
- /**
12
- * @description 层级
13
- * @default 99
14
- */
15
- zIndex?: number;
16
- /**
17
- * @description 侧边栏选择器
18
- * @default '.pro-layout-sider-nav'
19
- */
20
- sideDom?: string;
21
- /**
22
- * @description 内容选择器
23
- * @default '.pro-layout-content'
24
- */
25
- contentDom?: string;
26
- [key: string]: any;
27
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ProFooterType } from './PropTypes';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProFooterType) => import("react/jsx-runtime").JSX.Element>;
4
- export default _default;