@zat-design/sisyphus-react 3.11.14-beta.1 → 3.11.14-beta.10

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 (252) hide show
  1. package/.vscode/extensions.json +5 -0
  2. package/coverage/lcov-report/src/.umi/core/history.ts.html +148 -0
  3. package/coverage/lcov-report/src/.umi/core/index.html +146 -0
  4. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
  5. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
  6. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
  7. package/coverage/src/.umi/core/history.ts.html +148 -0
  8. package/coverage/src/.umi/core/index.html +146 -0
  9. package/coverage/src/.umi/core/plugin.ts.html +109 -0
  10. package/coverage/src/.umi/core/pluginRegister.ts.html +160 -0
  11. package/coverage/src/.umi/core/polyfill.ts.html +97 -0
  12. package/dist/index.esm.css +26 -15
  13. package/dist/less.esm.css +26 -15
  14. package/es/ProAction/index.d.ts +2 -2
  15. package/es/ProAction/propsType.d.ts +16 -10
  16. package/es/ProConfigProvider/index.d.ts +6 -6
  17. package/es/ProDownload/index.d.ts +2 -2
  18. package/es/ProDownload/propsType.d.ts +2 -1
  19. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  20. package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  21. package/es/ProDrawerForm/index.d.ts +1 -2
  22. package/es/ProDrawerForm/propsType.d.ts +38 -27
  23. package/es/ProDrawerForm/utils/index.d.ts +2 -2
  24. package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
  25. package/es/ProEditLabel/index.d.ts +2 -2
  26. package/es/ProEditLabel/propsType.d.ts +135 -8
  27. package/es/ProEditLabel/style/index.less +24 -25
  28. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  29. package/es/ProEditTable/index.d.ts +2 -2
  30. package/es/ProEditTable/index.js +6 -8
  31. package/es/ProEditTable/propsType.d.ts +232 -93
  32. package/es/ProEditTable/style/index.less +1 -0
  33. package/es/ProEnum/components/Group.d.ts +2 -2
  34. package/es/ProEnum/components/Tag.d.ts +2 -2
  35. package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  36. package/es/ProEnum/index.d.ts +2 -2
  37. package/es/ProEnum/propsType.d.ts +230 -41
  38. package/es/ProEnum/propsType.js +0 -6
  39. package/es/ProEnum/utils/index.d.ts +1 -1
  40. package/es/ProForm/components/FormFooter/index.d.ts +2 -2
  41. package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
  42. package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
  43. package/es/ProForm/components/base/Input/index.d.ts +2 -2
  44. package/es/ProForm/components/base/Input/propsType.d.ts +8 -4
  45. package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
  46. package/es/ProForm/components/base/Radio/index.d.ts +2 -2
  47. package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
  48. package/es/ProForm/components/base/Select/index.d.ts +2 -2
  49. package/es/ProForm/components/base/Switch/index.d.ts +2 -2
  50. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  51. package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
  52. package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
  53. package/es/ProForm/components/combination/Container/index.d.ts +2 -2
  54. package/es/ProForm/components/combination/Container/propsType.d.ts +9 -5
  55. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  56. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  57. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  58. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  59. package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
  60. package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  61. package/es/ProForm/components/combination/Group/index.d.ts +2 -2
  62. package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
  63. package/es/ProForm/components/combination/Group/utils.d.ts +4 -4
  64. package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -2
  65. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
  66. package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  67. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  68. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  69. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
  70. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  71. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
  72. package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  73. package/es/ProForm/components/render/Render.d.ts +2 -2
  74. package/es/ProForm/components/render/RenderFields.d.ts +4 -4
  75. package/es/ProForm/components/render/propsType.d.ts +54 -43
  76. package/es/ProForm/index.d.ts +2 -2
  77. package/es/ProForm/propsType.d.ts +22 -15
  78. package/es/ProForm/utils/transformValue.d.ts +2 -2
  79. package/es/ProForm/utils/useFieldProps.d.ts +3 -3
  80. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  81. package/es/ProIcon/index.d.ts +2 -2
  82. package/es/ProIcon/propsTypes.d.ts +124 -49
  83. package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
  84. package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  85. package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  86. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  87. package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
  88. package/es/ProLayout/components/ProCollapse/index.js +12 -4
  89. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  90. package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
  91. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
  92. package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
  93. package/es/ProLayout/index.d.ts +5 -5
  94. package/es/ProLayout/index.js +6 -2
  95. package/es/ProLayout/propTypes.d.ts +182 -25
  96. package/es/ProLayout/utils/index.d.ts +2 -2
  97. package/es/ProSelect/index.d.ts +3 -3
  98. package/es/ProSelect/propsType.d.ts +141 -31
  99. package/es/ProStep/components/Item/index.d.ts +2 -2
  100. package/es/ProStep/components/Step/index.d.ts +2 -2
  101. package/es/ProStep/index.d.ts +2 -2
  102. package/es/ProStep/index.js +12 -1
  103. package/es/ProStep/propsType.d.ts +60 -12
  104. package/es/ProStep/utils/index.d.ts +2 -2
  105. package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
  106. package/es/ProTable/components/FormatColumn/index.js +2 -2
  107. package/es/ProTable/hooks/useAntdTable.d.ts +2 -2
  108. package/es/ProTable/index.d.ts +2 -2
  109. package/es/ProTable/propsType.d.ts +590 -39
  110. package/es/ProTable/style/index.less +3 -0
  111. package/es/ProTabs/index.d.ts +2 -2
  112. package/es/ProTabs/index.js +4 -4
  113. package/es/ProTabs/propType.d.ts +66 -9
  114. package/es/ProThemeTools/index.d.ts +2 -2
  115. package/es/ProThemeTools/propsType.d.ts +136 -14
  116. package/es/ProTooltip/index.d.ts +2 -2
  117. package/es/ProTooltip/propsType.d.ts +52 -9
  118. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
  119. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  120. package/es/ProTree/propsType.d.ts +651 -62
  121. package/es/ProTreeModal/propsType.d.ts +2 -2
  122. package/es/ProUpload/components/ButtonRender.d.ts +2 -2
  123. package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  124. package/es/ProUpload/components/Example.d.ts +2 -2
  125. package/es/ProUpload/components/ImageRender.d.ts +2 -2
  126. package/es/ProUpload/index.d.ts +2 -2
  127. package/es/ProUpload/index.js +0 -7
  128. package/es/ProUpload/propsType.d.ts +59 -8
  129. package/es/ProWaterMark/index.d.ts +2 -2
  130. package/es/ProWaterMark/propsType.d.ts +2 -1
  131. package/es/index.d.ts +1 -0
  132. package/es/index.js +1 -0
  133. package/lib/ProAction/index.d.ts +2 -2
  134. package/lib/ProAction/propsType.d.ts +16 -10
  135. package/lib/ProConfigProvider/index.d.ts +6 -6
  136. package/lib/ProDownload/index.d.ts +2 -2
  137. package/lib/ProDownload/propsType.d.ts +2 -1
  138. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  139. package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  140. package/lib/ProDrawerForm/index.d.ts +1 -2
  141. package/lib/ProDrawerForm/propsType.d.ts +38 -27
  142. package/lib/ProDrawerForm/utils/index.d.ts +2 -2
  143. package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
  144. package/lib/ProEditLabel/index.d.ts +2 -2
  145. package/lib/ProEditLabel/propsType.d.ts +135 -8
  146. package/lib/ProEditLabel/style/index.less +24 -25
  147. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  148. package/lib/ProEditTable/index.d.ts +2 -2
  149. package/lib/ProEditTable/index.js +6 -8
  150. package/lib/ProEditTable/propsType.d.ts +232 -93
  151. package/lib/ProEditTable/style/index.less +1 -0
  152. package/lib/ProEnum/components/Group.d.ts +2 -2
  153. package/lib/ProEnum/components/Tag.d.ts +2 -2
  154. package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  155. package/lib/ProEnum/index.d.ts +2 -2
  156. package/lib/ProEnum/propsType.d.ts +230 -41
  157. package/lib/ProEnum/propsType.js +1 -7
  158. package/lib/ProEnum/utils/index.d.ts +1 -1
  159. package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
  160. package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
  161. package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
  162. package/lib/ProForm/components/base/Input/index.d.ts +2 -2
  163. package/lib/ProForm/components/base/Input/propsType.d.ts +8 -4
  164. package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
  165. package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
  166. package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
  167. package/lib/ProForm/components/base/Select/index.d.ts +2 -2
  168. package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
  169. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  170. package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
  171. package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
  172. package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
  173. package/lib/ProForm/components/combination/Container/propsType.d.ts +9 -5
  174. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  175. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  176. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  177. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  178. package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
  179. package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  180. package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
  181. package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
  182. package/lib/ProForm/components/combination/Group/utils.d.ts +4 -4
  183. package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -2
  184. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
  185. package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  186. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  187. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  188. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
  189. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  190. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
  191. package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  192. package/lib/ProForm/components/render/Render.d.ts +2 -2
  193. package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
  194. package/lib/ProForm/components/render/propsType.d.ts +54 -43
  195. package/lib/ProForm/index.d.ts +2 -2
  196. package/lib/ProForm/propsType.d.ts +22 -15
  197. package/lib/ProForm/utils/transformValue.d.ts +2 -2
  198. package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
  199. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  200. package/lib/ProIcon/index.d.ts +2 -2
  201. package/lib/ProIcon/propsTypes.d.ts +124 -49
  202. package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
  203. package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  204. package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  205. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  206. package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
  207. package/lib/ProLayout/components/ProCollapse/index.js +12 -4
  208. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  209. package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
  210. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
  211. package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
  212. package/lib/ProLayout/index.d.ts +5 -5
  213. package/lib/ProLayout/index.js +6 -2
  214. package/lib/ProLayout/propTypes.d.ts +182 -25
  215. package/lib/ProLayout/utils/index.d.ts +2 -2
  216. package/lib/ProSelect/index.d.ts +3 -3
  217. package/lib/ProSelect/propsType.d.ts +141 -31
  218. package/lib/ProStep/components/Item/index.d.ts +2 -2
  219. package/lib/ProStep/components/Step/index.d.ts +2 -2
  220. package/lib/ProStep/index.d.ts +2 -2
  221. package/lib/ProStep/index.js +12 -1
  222. package/lib/ProStep/propsType.d.ts +60 -12
  223. package/lib/ProStep/utils/index.d.ts +2 -2
  224. package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
  225. package/lib/ProTable/components/FormatColumn/index.js +2 -2
  226. package/lib/ProTable/hooks/useAntdTable.d.ts +2 -2
  227. package/lib/ProTable/index.d.ts +2 -2
  228. package/lib/ProTable/propsType.d.ts +590 -39
  229. package/lib/ProTable/style/index.less +3 -0
  230. package/lib/ProTabs/index.d.ts +2 -2
  231. package/lib/ProTabs/index.js +4 -4
  232. package/lib/ProTabs/propType.d.ts +66 -9
  233. package/lib/ProThemeTools/index.d.ts +2 -2
  234. package/lib/ProThemeTools/propsType.d.ts +136 -14
  235. package/lib/ProTooltip/index.d.ts +2 -2
  236. package/lib/ProTooltip/propsType.d.ts +52 -9
  237. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
  238. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  239. package/lib/ProTree/propsType.d.ts +651 -62
  240. package/lib/ProTreeModal/propsType.d.ts +2 -2
  241. package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
  242. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  243. package/lib/ProUpload/components/Example.d.ts +2 -2
  244. package/lib/ProUpload/components/ImageRender.d.ts +2 -2
  245. package/lib/ProUpload/index.d.ts +2 -2
  246. package/lib/ProUpload/index.js +0 -7
  247. package/lib/ProUpload/propsType.d.ts +59 -8
  248. package/lib/ProWaterMark/index.d.ts +2 -2
  249. package/lib/ProWaterMark/propsType.d.ts +2 -1
  250. package/lib/index.d.ts +1 -0
  251. package/lib/index.js +12 -0
  252. package/package.json +1 -1
@@ -4,33 +4,33 @@ import React from 'react';
4
4
  import { validate, regExp } from '@zat-design/utils';
5
5
  import { RuleObject } from 'antd/es/form';
6
6
  import * as componentMap from '../index';
7
- import { IProps as InputProps } from '../base/Input/propsType';
7
+ import { Props as InputProps } from '../base/Input/propsType';
8
8
  import { Props as InputNumberProps } from '../base/InputNumber';
9
9
  import { Props as RadioProps } from '../base/Radio';
10
10
  import { Props as CheckboxProps } from '../base/Checkbox';
11
11
  import { Props as DatePickerProps } from '../base/DatePicker';
12
12
  import { Props as RangePickerProps } from '../base/RangePicker';
13
- import { PropsWithRef as FormListProps } from '../combination/FormList/propsType';
13
+ import { TypeWithRef as FormListType } from '../combination/FormList/propsType';
14
14
  import { Props as SelectProps } from '../base/Select';
15
15
  import { Props as TimePickerProps } from '../base/TimePicker';
16
16
  import { Props as SwitchProps } from '../base/Switch';
17
17
  import { Props as SwitchCheckboxProps } from '../base/SwitchCheckbox';
18
18
  import { Props as TextAreaProps } from '../base/TextArea';
19
- import { ProCascaderProps } from '../combination/ProCascader/propsType';
20
- import { ProCombinationProps } from '../combination/ProCombination/propsType';
21
- import { ProModalSelectPropsType as ProModalSelectProps } from '../combination/ProModalSelect/propsType';
19
+ import { ProCascaderType } from '../combination/ProCascader/propsType';
20
+ import { ProCombinationType } from '../combination/ProCombination/propsType';
21
+ import { ProModalSelectType } from '../combination/ProModalSelect/propsType';
22
22
  import { ProNumberRangeProps } from '../combination/ProNumberRange/propsType';
23
23
  import { ProLimitProps } from '../combination/ProTimeLimit';
24
24
  import { Props as ProRangeLimitProps } from '../combination/ProRangeLimit';
25
25
  import { CheckboxPropsMap, ProEnum, PropProSelectsMap, PropRadioPropsMap } from '../../../ProEnum/propsType';
26
26
  import { PropSelectProps as ProSelectProps } from '../../../ProSelect/propsType';
27
- import { ProEditTableProps } from '../../../ProEditTable/propsType';
27
+ import { ProEditTableType } from '../../../ProEditTable/propsType';
28
28
  import { ProTreeModalProps } from '../../../ProTreeModal/propsType';
29
- import { ProUploadProps } from '../../../ProUpload/propsType';
29
+ import { ProUploadType } from '../../../ProUpload/propsType';
30
30
  import { ProTreeProps } from '../../../ProTree/propsType';
31
- import { GroupProps as GroupCopyProps } from '../combination/Group/propsType';
31
+ import { GroupType as GroupCopyProps } from '../combination/Group/propsType';
32
32
  import { ProCollapseProps } from '../../../ProLayout/components/ProCollapse/PropTypes';
33
- import { DistributiveOmit, DiffConfigProps } from '../../propsType';
33
+ import { DistributiveOmit, DiffConfigType } from '../../propsType';
34
34
  import { DiffOriginalParams } from '../../utils/diffOriginal';
35
35
  export type ComponentMap = keyof typeof componentMap;
36
36
  type ValidateKey = keyof typeof validate;
@@ -66,9 +66,9 @@ type TransformToFormField<T extends ControlProps, Values> = DistributiveOmit<T,
66
66
  /** ProForm disable时,是否完全受控 */
67
67
  disabledStrictly?: boolean;
68
68
  };
69
- type ProEnumFormProps<Values> = TransformToFormField<ProEnum, Values> | TransformToFormField<ProEnum & PropProSelectsMap, Values> | TransformToFormField<ProEnum & PropRadioPropsMap, Values> | TransformToFormField<ProEnum & CheckboxPropsMap, Values>;
70
- type ProEnumTableProps<Values> = TransformToTableField<ProEnum, Values> | TransformToTableField<ProEnum & PropProSelectsMap, Values> | TransformToTableField<ProEnum & PropRadioPropsMap, Values> | TransformToTableField<ProEnum & CheckboxPropsMap, Values>;
71
- type ProEnumFieldProps<Values, TT> = TT extends 'ProForm' ? ProEnumFormProps<Values> | ReactiveFunction<Values, ProEnumFormProps<Values>> : ProEnumTableProps<Values> | ((text: any, values: Values, index: number) => ProEnumTableProps<Values>);
69
+ type ProEnumFormType<Values> = TransformToFormField<ProEnum, Values> | TransformToFormField<ProEnum & PropProSelectsMap, Values> | TransformToFormField<ProEnum & PropRadioPropsMap, Values> | TransformToFormField<ProEnum & CheckboxPropsMap, Values>;
70
+ type ProEnumTableType<Values> = TransformToTableField<ProEnum, Values> | TransformToTableField<ProEnum & PropProSelectsMap, Values> | TransformToTableField<ProEnum & PropRadioPropsMap, Values> | TransformToTableField<ProEnum & CheckboxPropsMap, Values>;
71
+ type ProEnumFieldType<Values, TT> = TT extends 'ProForm' ? ProEnumFormType<Values> | ReactiveFunction<Values, ProEnumFormType<Values>> : ProEnumTableType<Values> | ((text: any, values: Values, index: number) => ProEnumTableType<Values>);
72
72
  type TransformToTableField<T extends ControlProps, Values> = Omit<T, 'onChange' | 'value' | 'onBlur'> & {
73
73
  value?: T['value'];
74
74
  onChange?: (value: Parameters<T['onChange']>[0], options: Parameters<T['onChange']>[1], record: any, index: number, form: FormInstance<Values>) => void;
@@ -81,83 +81,83 @@ export type ReactiveFunction<Values, R> = (values: Values, { form, index, namePa
81
81
  namePath?: NamePath;
82
82
  [key: string]: any;
83
83
  }) => R;
84
- type FieldProps<T extends ControlProps, Values, TT> = TT extends 'ProForm' ? TransformToFormField<T, Values> | ReactiveFunction<Values, TransformToFormField<T, Values>> : TransformToTableField<T, Values> | ((text: any, values: Values, index: number) => TransformToTableField<T, Values>);
84
+ type FieldType<T extends ControlProps, Values, TT> = TT extends 'ProForm' ? TransformToFormField<T, Values> | ReactiveFunction<Values, TransformToFormField<T, Values>> : TransformToTableField<T, Values> | ((text: any, values: Values, index: number) => TransformToTableField<T, Values>);
85
85
  /**
86
86
  * 值转换
87
87
  */
88
88
  export type ProFormValueType = 'percentage' | 'permillage' | 'thousandth' | 'datePicker' | 'enumName' | 'enumCodeName' | 'address' | 'thousandthCNY' | 'date' | 'dateTime' | 'dateStartTime' | 'dateEndTime' | 'dateStartEndTime' | 'switch' | 'desensitization';
89
- export type ColumnPropsMap<Values = any, T = 'ProForm'> = {
89
+ export type ColumnTypeMap<Values = any, T = 'ProForm'> = {
90
90
  type?: 'Input';
91
- fieldProps?: FieldProps<InputProps, Values, T>;
91
+ fieldProps?: FieldType<InputProps, Values, T>;
92
92
  } | {
93
93
  type?: 'InputNumber';
94
- fieldProps?: FieldProps<InputNumberProps, Values, T>;
94
+ fieldProps?: FieldType<InputNumberProps, Values, T>;
95
95
  } | {
96
96
  type?: 'Radio';
97
- fieldProps?: FieldProps<RadioProps, Values, T>;
97
+ fieldProps?: FieldType<RadioProps, Values, T>;
98
98
  } | {
99
99
  type?: 'Checkbox';
100
- fieldProps?: FieldProps<CheckboxProps, Values, T>;
100
+ fieldProps?: FieldType<CheckboxProps, Values, T>;
101
101
  } | {
102
102
  type?: 'DatePicker';
103
- fieldProps?: FieldProps<DatePickerProps, Values, T>;
103
+ fieldProps?: FieldType<DatePickerProps, Values, T>;
104
104
  } | {
105
105
  type?: 'RangePicker';
106
- fieldProps?: FieldProps<RangePickerProps, Values, T>;
106
+ fieldProps?: FieldType<RangePickerProps, Values, T>;
107
107
  } | {
108
108
  type?: 'FormList';
109
- fieldProps?: FieldProps<Omit<FormListProps, 'fields' | 'operation' | 'meta'>, Values, T>;
109
+ fieldProps?: FieldType<Omit<FormListType, 'fields' | 'operation' | 'meta'>, Values, T>;
110
110
  } | {
111
111
  type?: 'Select';
112
- fieldProps?: FieldProps<SelectProps, Values, T>;
112
+ fieldProps?: FieldType<SelectProps, Values, T>;
113
113
  } | {
114
114
  type?: 'TimePicker';
115
- fieldProps?: FieldProps<TimePickerProps, Values, T>;
115
+ fieldProps?: FieldType<TimePickerProps, Values, T>;
116
116
  } | {
117
117
  type?: 'Switch';
118
- fieldProps?: FieldProps<SwitchProps, Values, T>;
118
+ fieldProps?: FieldType<SwitchProps, Values, T>;
119
119
  } | {
120
120
  type?: 'SwitchCheckbox';
121
- fieldProps?: FieldProps<SwitchCheckboxProps, Values, T>;
121
+ fieldProps?: FieldType<SwitchCheckboxProps, Values, T>;
122
122
  } | {
123
123
  type?: 'TextArea';
124
- fieldProps?: FieldProps<TextAreaProps, Values, T>;
124
+ fieldProps?: FieldType<TextAreaProps, Values, T>;
125
125
  } | {
126
126
  type?: 'ProCascader';
127
- fieldProps?: FieldProps<ProCascaderProps, Values, T>;
127
+ fieldProps?: FieldType<ProCascaderType, Values, T>;
128
128
  } | {
129
129
  type?: 'ProCombination';
130
- fieldProps?: FieldProps<ProCombinationProps, Values, T>;
130
+ fieldProps?: FieldType<ProCombinationType, Values, T>;
131
131
  } | {
132
132
  type?: 'ProModalSelect';
133
- fieldProps?: FieldProps<ProModalSelectProps, Values, T>;
133
+ fieldProps?: FieldType<ProModalSelectType, Values, T>;
134
134
  } | {
135
135
  type?: 'ProNumberRange';
136
- fieldProps?: FieldProps<ProNumberRangeProps, Values, T>;
136
+ fieldProps?: FieldType<ProNumberRangeProps, Values, T>;
137
137
  } | {
138
138
  type?: 'ProRangeLimit';
139
- fieldProps?: FieldProps<ProRangeLimitProps, Values, T>;
139
+ fieldProps?: FieldType<ProRangeLimitProps, Values, T>;
140
140
  } | {
141
141
  type?: 'ProTimeLimit';
142
- fieldProps?: FieldProps<ProLimitProps, Values, T>;
142
+ fieldProps?: FieldType<ProLimitProps, Values, T>;
143
143
  } | {
144
144
  type?: 'ProEnum';
145
- fieldProps?: ProEnumFieldProps<Values, T>;
145
+ fieldProps?: ProEnumFieldType<Values, T>;
146
146
  } | {
147
147
  type?: 'ProSelect';
148
- fieldProps?: FieldProps<ProSelectProps, Values, T>;
148
+ fieldProps?: FieldType<ProSelectProps, Values, T>;
149
149
  } | {
150
150
  type?: 'ProEditTable';
151
- fieldProps?: FieldProps<ProEditTableProps, Values, T>;
151
+ fieldProps?: FieldType<ProEditTableType, Values, T>;
152
152
  } | {
153
153
  type?: 'ProTreeModal';
154
- fieldProps?: FieldProps<ProTreeModalProps, Values, T>;
154
+ fieldProps?: FieldType<ProTreeModalProps, Values, T>;
155
155
  } | {
156
156
  type?: 'ProUpload';
157
- fieldProps?: FieldProps<ProUploadProps, Values, T>;
157
+ fieldProps?: FieldType<ProUploadType, Values, T>;
158
158
  } | {
159
159
  type?: 'ProTree';
160
- fieldProps?: FieldProps<ProTreeProps, Values, T>;
160
+ fieldProps?: FieldType<ProTreeProps, Values, T>;
161
161
  } | {
162
162
  type?: 'Group';
163
163
  fieldProps?: GroupCopyProps | ReactiveFunction<Values, GroupCopyProps>;
@@ -168,7 +168,7 @@ export type ColumnPropsMap<Values = any, T = 'ProForm'> = {
168
168
  type?: 'Container';
169
169
  fieldProps?: any;
170
170
  };
171
- export interface ProFormColumnProps<Values = any> extends Omit<FormItemProps<Values>, 'rules' | 'required'> {
171
+ export interface ProFormColumnType<Values = any> extends Omit<FormItemProps<Values>, 'rules' | 'required'> {
172
172
  component?: React.ReactNode | ReactiveFunction<Values, React.ReactNode>;
173
173
  names?: NamePath[];
174
174
  show?: boolean | ReactiveFunction<Values, boolean>;
@@ -233,11 +233,11 @@ export interface ProFormColumnProps<Values = any> extends Omit<FormItemProps<Val
233
233
  /** 脱敏数据位置下标 */
234
234
  desensitization?: [number, number] | ReactiveFunction<Values, [number, number]>;
235
235
  }
236
- export type ProColumnProps<T = any> = ProFormColumnProps<T> & ColumnPropsMap<T, 'ProForm'>;
236
+ export type ProColumnType<T = any> = ProFormColumnType<T> & ColumnTypeMap<T, 'ProForm'>;
237
237
  /**
238
238
  * 表单渲染类型
239
239
  */
240
- export interface RenderProps<Values = any> {
240
+ export interface RenderType<Values = any> {
241
241
  formDisabled?: boolean;
242
242
  component: any;
243
243
  formItemProps: FormItemProps<Values> & {
@@ -278,10 +278,21 @@ export interface RenderProps<Values = any> {
278
278
  form: FormInstance<Values>;
279
279
  fieldProps?: ReactiveFunction<Values, React.ReactNode>;
280
280
  isSelect: boolean;
281
- diffConfig: DiffConfigProps;
281
+ diffConfig: DiffConfigType;
282
282
  requiredOnView?: boolean;
283
- confirm?: ProFormColumnProps['confirm'];
283
+ confirm?: ProFormColumnType['confirm'];
284
284
  globalControl?: boolean;
285
285
  [name: string]: any;
286
286
  }
287
+ /**
288
+ * 兼容旧命名导出
289
+ */
290
+ export type ProEnumFormProps<Values> = ProEnumFormType<Values>;
291
+ export type ProEnumTableProps<Values> = ProEnumTableType<Values>;
292
+ export type ProEnumFieldProps<Values, TT> = ProEnumFieldType<Values, TT>;
293
+ export type FieldProps<T extends ControlProps, Values, TT> = FieldType<T, Values, TT>;
294
+ export type ColumnPropsMap<Values = any, T = 'ProForm'> = ColumnTypeMap<Values, T>;
295
+ export type ProFormColumnProps<Values = any> = ProFormColumnType<Values>;
296
+ export type ProColumnProps<T = any> = ProColumnType<T>;
297
+ export type RenderProps<Values = any> = RenderType<Values>;
287
298
  export {};
@@ -1,10 +1,10 @@
1
1
  import { FormInstance } from 'antd';
2
2
  import React, { ForwardRefRenderFunction } from 'react';
3
3
  import { FormProviderProps } from 'antd/es/form/context';
4
- import { ProFormProps } from './propsType';
4
+ import { ProFormType } from './propsType';
5
5
  import { useForm } from './utils/useForm';
6
6
  import useWatch from './utils/useWatch';
7
- interface IProForm<T = any> extends ForwardRefRenderFunction<FormInstance<T>, ProFormProps<T>> {
7
+ interface IProForm<T = any> extends ForwardRefRenderFunction<FormInstance<T>, ProFormType<T>> {
8
8
  useForm: typeof useForm;
9
9
  useWatch: typeof useWatch;
10
10
  [key: string]: any;
@@ -4,27 +4,27 @@ import { NamePath } from 'antd/es/form/interface';
4
4
  import { StoreValue, Store } from 'rc-field-form/es/interface.d';
5
5
  import { ShouldUpdate } from 'rc-field-form/es/Field.d';
6
6
  import React, { ReactNode } from 'react';
7
- import { ComponentMap, ProColumnProps, ViewType } from './components/render/propsType';
7
+ import { ComponentMap, ProColumnType, ViewType } from './components/render/propsType';
8
8
  export * from './components/render/propsType';
9
- export interface ButtonItem extends ButtonProps {
9
+ export interface ButtonType extends ButtonProps {
10
10
  children?: any;
11
11
  }
12
- export interface FooterButtonProps {
13
- okButtonProps?: ButtonItem;
14
- cancelButtonProps?: ButtonItem;
12
+ export interface FooterButtonType {
13
+ okButtonProps?: ButtonType;
14
+ cancelButtonProps?: ButtonType;
15
15
  }
16
- export interface ProFormItemChildProps {
16
+ export interface ProFormItemChildType {
17
17
  value?: any;
18
18
  onChange?: () => void;
19
19
  [key: string]: any;
20
20
  }
21
21
  export type ModeEnum = 'search' | 'drawer';
22
22
  type FooterType = ReactNode | {
23
- okButtonProps: ButtonItem;
24
- cancelButtonProps: ButtonItem;
23
+ okButtonProps: ButtonType;
24
+ cancelButtonProps: ButtonType;
25
25
  } | boolean;
26
26
  export declare const otherKeys: string[];
27
- export interface ProFormOtherProps {
27
+ export interface ProFormOtherType {
28
28
  isView?: boolean;
29
29
  viewEmpty?: React.ReactNode;
30
30
  label?: React.ReactNode;
@@ -45,10 +45,10 @@ export interface ProFormOtherProps {
45
45
  globalControl?: boolean;
46
46
  formDisabled?: boolean;
47
47
  isDiffChange?: boolean;
48
- diffConfig?: DiffConfigProps;
48
+ diffConfig?: DiffConfigType;
49
49
  desensitizationKey?: string;
50
50
  }
51
- export interface DiffConfigProps<Values = any> {
51
+ export interface DiffConfigType<Values = any> {
52
52
  /** 比对原始数据源 */
53
53
  originalValues: Values;
54
54
  /** 是否显示对比值气泡 */
@@ -60,7 +60,7 @@ export interface DiffConfigProps<Values = any> {
60
60
  /** 是否跟随父组件滚动 */
61
61
  scrollFollowParent?: string;
62
62
  }
63
- export interface ProFormProps<Values = any> extends FormProps<Values> {
63
+ export interface ProFormType<Values = any> extends FormProps<Values> {
64
64
  disabled?: boolean;
65
65
  /** 全局控制优先 */
66
66
  globalControl?: boolean;
@@ -69,7 +69,7 @@ export interface ProFormProps<Values = any> extends FormProps<Values> {
69
69
  /** 是否查看 */
70
70
  isView?: boolean;
71
71
  span?: number;
72
- columns?: ProColumnProps<Values>[];
72
+ columns?: ProColumnType<Values>[];
73
73
  rowProps?: RowProps;
74
74
  footer?: FooterType;
75
75
  expand?: boolean | number;
@@ -89,7 +89,7 @@ export interface ProFormProps<Values = any> extends FormProps<Values> {
89
89
  formId?: string;
90
90
  required?: boolean | boolean[];
91
91
  /** 表单比对配置 */
92
- diffConfig?: DiffConfigProps;
92
+ diffConfig?: DiffConfigType;
93
93
  scrollToError?: boolean;
94
94
  /** 性能模式,谨慎使用,默认不开启
95
95
  * 1. 开启不过滤names的中间态值
@@ -98,9 +98,16 @@ export interface ProFormProps<Values = any> extends FormProps<Values> {
98
98
  /** 全局脱敏开关的key、默认 zat-design-pro-component-desensitization */
99
99
  desensitizationKey?: string;
100
100
  }
101
- export interface Transform<T = any> {
101
+ export interface TransformType<T = any> {
102
102
  normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue;
103
103
  getValueProps?: (value: StoreValue) => Record<string, unknown>;
104
104
  shouldUpdate?: ShouldUpdate<T>;
105
105
  }
106
106
  export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
107
+ /**
108
+ * 兼容旧命名导出
109
+ */
110
+ export type FooterButtonProps = FooterButtonType;
111
+ export type ProFormOtherProps = ProFormOtherType;
112
+ export type DiffConfigProps = DiffConfigType;
113
+ export type Transform = TransformType;
@@ -1,6 +1,6 @@
1
1
  import { FormInstance, FormItemProps } from 'antd';
2
2
  import { NamePath } from 'antd/es/form/interface';
3
3
  import { StoreValue, Store } from 'rc-field-form/es/interface.d';
4
- import { Transform } from '../propsType';
5
- export declare const transformValue: (names: NamePath[], form: FormInstance, fieldName: NamePath, normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue, getValueProps?: FormItemProps['getValueProps']) => Transform;
4
+ import { 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
6
  export default transformValue;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProFormOtherProps } from '../propsType';
3
- export declare const FieldProvider: React.Provider<ProFormOtherProps>;
4
- export declare const useFieldProps: () => ProFormOtherProps;
2
+ import { ProFormOtherType } from '../propsType';
3
+ export declare const FieldProvider: React.Provider<ProFormOtherType>;
4
+ export declare const useFieldProps: () => ProFormOtherType;
@@ -1,5 +1,5 @@
1
1
  import { FormInstance, FormItemProps } from 'antd';
2
- import { ProColumnProps, ProRule } from '../components/render/propsType';
2
+ import { ProColumnType, ProRule } from '../components/render/propsType';
3
3
  interface Result<Values> {
4
4
  shouldUpdate?: FormItemProps<Values>['shouldUpdate'];
5
5
  show?: boolean;
@@ -9,8 +9,8 @@ interface Result<Values> {
9
9
  [key: string]: any;
10
10
  }
11
11
  interface UseShouldUpdateProps<Values> {
12
- show?: ProColumnProps['show'];
13
- formItemProps?: ProColumnProps['formItemProps'] & {
12
+ show?: ProColumnType['show'];
13
+ formItemProps?: ProColumnType['formItemProps'] & {
14
14
  clearNotShow?: boolean;
15
15
  names?: any[];
16
16
  };
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { ProIconProps } from './propsTypes';
2
+ import type { ProIconType } from './propsTypes';
3
3
  import './symbolIcon.js';
4
- declare const ProIcon: FC<ProIconProps>;
4
+ declare const ProIcon: FC<ProIconType>;
5
5
  export default ProIcon;
@@ -1,105 +1,180 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties, ReactNode, MouseEventHandler } from 'react';
2
2
  import { ButtonProps } from 'antd/lib/button';
3
- export type ModeType = 'icon' | 'button';
4
- interface iconMap {
3
+ /**
4
+ * 图标模式
5
+ * @description 定义图标的显示模式:纯图标或按钮形式
6
+ */
7
+ export type ProIconModeType = 'icon' | 'button';
8
+ /**
9
+ * 图标映射对象
10
+ */
11
+ interface ProIconMapType {
12
+ /**
13
+ * 图标类型
14
+ * @description 唯一标识图标的类型名称
15
+ * @default undefined
16
+ */
5
17
  type: string;
18
+ /**
19
+ * 中文显示文本
20
+ * @description 图标对应的中文描述
21
+ * @default undefined
22
+ */
6
23
  'text-cn'?: string;
24
+ /**
25
+ * 英文显示文本
26
+ * @description 图标对应的英文描述
27
+ * @default undefined
28
+ */
7
29
  'text-en'?: string;
8
30
  }
9
- interface themeMap {
31
+ /**
32
+ * 主题映射对象
33
+ */
34
+ interface ProIconThemeMapType {
35
+ /**
36
+ * 主题颜色映射
37
+ * @description 不同主题下的颜色值数组
38
+ * @default undefined
39
+ */
10
40
  [key: string]: string[];
11
41
  }
12
- interface actionMap {
13
- themeMap?: themeMap;
14
- themeFillMap?: themeMap;
42
+ /**
43
+ * 操作映射对象
44
+ */
45
+ 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
+ */
15
63
  gradation?: string[];
64
+ /**
65
+ * 填充色值
66
+ * @description 填充色值数组
67
+ * @default undefined
68
+ */
16
69
  fill?: string[];
17
70
  }
18
- export interface ProIconProps {
71
+ export interface ProIconType {
19
72
  /**
20
- * @description 本地import引入
21
- * @default ""
73
+ * 图标路径
74
+ * @description 本地import引入的图标路径
75
+ * @default ""
22
76
  */
23
77
  src?: string;
24
78
  /**
25
- * @description 图标的名称
26
- * @default -
79
+ * 图标名称
80
+ * @description 图标的类型名称,用于识别特定图标
81
+ * @default undefined
27
82
  */
28
83
  type?: string;
29
84
  /**
30
- * @description 图标的大小,同时设置图标的width以及height
31
- * @default 14
85
+ * 图标大小
86
+ * @description 图标的大小,同时设置图标的width以及height
87
+ * @default 14
32
88
  */
33
89
  size?: number;
34
90
  /**
35
- * @description 图标旋转角度(IE9 无效)
36
- *
37
- * @default -
91
+ * 旋转角度
92
+ * @description 图标旋转角度(IE9 无效)
93
+ * @default undefined
38
94
  */
39
95
  rotate?: number;
40
96
  /**
41
- * @description 图标是否旋转loading
42
- *
43
- * @default false
97
+ * 是否旋转
98
+ * @description 图标是否旋转loading效果
99
+ * @default false
44
100
  */
45
101
  spin?: boolean;
46
102
  /**
47
- * @description 图标的颜色,svg的fill属性
48
- *
49
- * @default -
103
+ * 图标颜色
104
+ * @description 图标的颜色,设置svg的fill属性
105
+ * @default undefined
50
106
  */
51
107
  color?: string;
52
108
  /**
53
- * @description 禁用
54
- * @default false
109
+ * 是否禁用
110
+ * @description 设置图标为禁用状态
111
+ * @default false
55
112
  */
56
113
  disabled?: boolean;
57
114
  /**
58
- * @description 提示
59
- * @default -
115
+ * 提示信息
116
+ * @description 鼠标悬停时显示的提示信息
117
+ * @default undefined
60
118
  */
61
- tooltip?: string | React.ReactNode;
119
+ tooltip?: string | ReactNode;
62
120
  /**
63
- * @description 是否跟随主题色
64
- * @default false
121
+ * 是否跟随主题
122
+ * @description 是否跟随系统主题色变化
123
+ * @default false
65
124
  */
66
125
  theme?: boolean;
67
126
  /**
68
- * @description 图标的点击事件
69
- * @default ()=>{}
127
+ * 点击事件
128
+ * @description 图标的点击事件处理函数
129
+ * @default () => {}
70
130
  */
71
- onClick?: React.MouseEventHandler<SVGSVGElement>;
131
+ onClick?: MouseEventHandler<SVGSVGElement>;
72
132
  /**
73
- * @description 图标的className
74
- * @default -
133
+ * 自定义类名
134
+ * @description 自定义图标的CSS类名
135
+ * @default undefined
75
136
  */
76
137
  className?: string;
77
138
  /**
78
- * @description 计算后的 svg 元素样式,style的优先级高过size/color/rotate属性
79
- * @default -
139
+ * 自定义样式
140
+ * @description 计算后的svg元素样式,优先级高于size/color/rotate属性
141
+ * @default undefined
80
142
  */
81
143
  style?: CSSProperties;
82
144
  /**
83
- * @description 模式
84
- * @default 'icon'
145
+ * 显示模式
146
+ * @description 图标的显示模式:图标或按钮
147
+ * @default 'icon'
85
148
  */
86
- mode?: ModeType;
149
+ mode?: ProIconModeType;
87
150
  /**
88
- * @description mode button时 props 与antd Button接收props一致
89
- * @default 'link'
151
+ * 按钮属性
152
+ * @description mode为button时的按钮属性,与antd Button接收props一致
153
+ * @default { type: 'link' }
90
154
  */
91
155
  buttonProps?: ButtonProps;
92
156
  /**
93
- * @description icon与中文映射表
94
- * @default 项目内认默映射
157
+ * 图标映射表
158
+ * @description 图标与中英文文本的映射表
159
+ * @default 项目内默认映射
160
+ */
161
+ mapList?: ProIconMapType[];
162
+ /**
163
+ * SVG操作表
164
+ * @description SVG变更操作表,用于主题配置
165
+ * @default undefined
95
166
  */
96
- mapList?: iconMap[];
167
+ actionMap?: ProIconActionMapType;
97
168
  /**
98
- * @description svg变更操作表 请到 ProThemeTools 主题配置查看示例
99
- * @default
169
+ * 按钮图标标记
170
+ * @description 内部使用,标记图标作为按钮使用
171
+ * @default undefined
100
172
  */
101
- actionMap?: actionMap;
102
- /** 内部使用 */
103
173
  buttonIcon?: boolean;
104
174
  }
175
+ export type ModeType = ProIconModeType;
176
+ export type ProIconProps = ProIconType;
177
+ export type iconMap = ProIconMapType;
178
+ export type themeMap = ProIconThemeMapType;
179
+ export type actionMap = ProIconActionMapType;
105
180
  export {};
@@ -1,4 +1,4 @@
1
1
  import type { FC } from 'react';
2
- import type { ProLayoutProps } from '../../../propTypes';
3
- declare const Header: FC<ProLayoutProps>;
2
+ import type { ProLayoutType } from '../../../propTypes';
3
+ declare const Header: FC<ProLayoutType>;
4
4
  export default Header;
@@ -1,4 +1,4 @@
1
1
  import type { FC } from 'react';
2
- import type { ProLayoutProps } from '../../../propTypes';
3
- declare const Menu: FC<ProLayoutProps>;
2
+ import type { ProLayoutType } from '../../../propTypes';
3
+ declare const Menu: FC<ProLayoutType>;
4
4
  export default Menu;
@@ -1,4 +1,4 @@
1
1
  import type { FC } from 'react';
2
- import type { ProLayoutProps } from '../../../propTypes';
3
- declare const Notice: FC<ProLayoutProps>;
2
+ import type { ProLayoutType } from '../../../propTypes';
3
+ declare const Notice: FC<ProLayoutType>;
4
4
  export default Notice;
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
3
3
  export type levelType = '1' | '2';
4
- export interface TitleListProps {
4
+ export interface TitleListType {
5
5
  /**
6
6
  * @description 描述的标题
7
7
  * @default -
@@ -13,7 +13,7 @@ export interface TitleListProps {
13
13
  */
14
14
  value: string | number | undefined | React.ReactNode;
15
15
  }
16
- export interface ProCollapseProps {
16
+ export interface ProCollapseType {
17
17
  /**
18
18
  * @description 折叠头部标题
19
19
  * @default -
@@ -75,6 +75,11 @@ export interface ProCollapseProps {
75
75
  */
76
76
  folding?: boolean;
77
77
  /**
78
+ * @description 控制折叠面板展开状态
79
+ * @default -
80
+ */
81
+ open?: boolean;
82
+ /**
78
83
  * @description antd Collapse属性
79
84
  * @default -
80
85
  */
@@ -86,3 +91,5 @@ export interface ProCollapseProps {
86
91
  collapsePanelProps?: CollapsePanelProps;
87
92
  [key: string]: any;
88
93
  }
94
+ export type ProCollapseProps = ProCollapseType;
95
+ export type TitleListProps = TitleListType;