@zat-design/sisyphus-react 3.11.14-beta.9 → 3.12.0

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 (221) hide show
  1. package/dist/index.esm.css +4 -0
  2. package/dist/less.esm.css +4 -0
  3. package/es/ProConfigProvider/index.d.ts +4 -4
  4. package/es/ProDrawerForm/propsType.d.ts +1 -1
  5. package/es/ProEditLabel/propsType.d.ts +2 -2
  6. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  7. package/es/ProEditTable/index.js +12 -8
  8. package/es/ProEditTable/propsType.d.ts +40 -42
  9. package/es/ProEditTable/style/index.less +1 -0
  10. package/es/ProEditTable/utils/index.d.ts +1 -1
  11. package/es/ProEditTable/utils/index.js +6 -4
  12. package/es/ProEditTable/utils/tools.d.ts +57 -22
  13. package/es/ProEditTable/utils/tools.js +47 -21
  14. package/es/ProEnum/hooks/useEnum.d.ts +2 -2
  15. package/es/ProEnum/hooks/useEnum.js +46 -17
  16. package/es/ProEnum/propsType.d.ts +2 -2
  17. package/es/ProEnum/utils/index.d.ts +8 -1
  18. package/es/ProEnum/utils/index.js +9 -2
  19. package/es/ProForm/components/FormFooter/index.d.ts +1 -1
  20. package/es/ProForm/components/base/Checkbox/index.d.ts +1 -1
  21. package/es/ProForm/components/base/Input/propsType.d.ts +3 -3
  22. package/es/ProForm/components/base/InputNumber/index.d.ts +1 -1
  23. package/es/ProForm/components/base/Radio/index.d.ts +1 -1
  24. package/es/ProForm/components/base/RangePicker/index.d.ts +1 -1
  25. package/es/ProForm/components/base/Select/index.d.ts +1 -1
  26. package/es/ProForm/components/base/Switch/index.d.ts +1 -1
  27. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
  28. package/es/ProForm/components/base/TextArea/index.d.ts +1 -1
  29. package/es/ProForm/components/base/TimePicker/index.d.ts +1 -1
  30. package/es/ProForm/components/combination/Container/propsType.d.ts +3 -3
  31. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
  32. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
  33. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
  34. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
  35. package/es/ProForm/components/combination/FormList/propsType.d.ts +2 -2
  36. package/es/ProForm/components/combination/Group/index.d.ts +1 -1
  37. package/es/ProForm/components/combination/Group/propsType.d.ts +1 -1
  38. package/es/ProForm/components/combination/Group/utils.d.ts +3 -3
  39. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  40. package/es/ProForm/components/combination/ProCombination/index.d.ts +1 -1
  41. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
  42. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  43. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
  44. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  45. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
  46. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  47. package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  48. package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  49. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  50. package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
  51. package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  52. package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  53. package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  54. package/es/ProForm/components/render/ChangedWrapper.d.ts +1 -1
  55. package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  56. package/es/ProForm/components/render/RenderFields.d.ts +3 -3
  57. package/es/ProForm/components/render/propsType.d.ts +37 -41
  58. package/es/ProForm/index.d.ts +1 -1
  59. package/es/ProForm/propsType.d.ts +6 -4
  60. package/es/ProForm/propsType.js +0 -1
  61. package/es/ProForm/utils/transformValue.d.ts +1 -1
  62. package/es/ProForm/utils/useFieldProps.d.ts +1 -1
  63. package/es/ProForm/utils/useForm.d.ts +1 -1
  64. package/es/ProForm/utils/useRules.d.ts +1 -1
  65. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  66. package/es/ProIcon/index.d.ts +2 -2
  67. package/es/ProIcon/propsTypes.d.ts +120 -49
  68. package/es/ProSelect/propsType.d.ts +1 -1
  69. package/es/ProStep/components/Anchor/index.d.ts +2 -1
  70. package/es/ProStep/components/Item/index.d.ts +1 -1
  71. package/es/ProStep/components/Item/index.js +6 -2
  72. package/es/ProStep/components/Listener/index.d.ts +4 -3
  73. package/es/ProStep/components/Listener/index.js +18 -4
  74. package/es/ProStep/index.d.ts +7 -7
  75. package/es/ProStep/index.js +7 -3
  76. package/es/ProStep/propsType.d.ts +145 -5
  77. package/es/ProStep/utils/index.d.ts +16 -3
  78. package/es/ProStep/utils/index.js +11 -2
  79. package/es/ProTable/components/FormatColumn/index.d.ts +1 -1
  80. package/es/ProTable/components/FormatColumn/index.js +3 -6
  81. package/es/ProTable/components/RenderTabs/index.d.ts +4 -0
  82. package/es/ProTable/components/RenderTabs/index.js +78 -0
  83. package/es/ProTable/components/index.d.ts +25 -0
  84. package/es/ProTable/components/index.js +26 -1
  85. package/es/ProTable/hooks/useAntdTable.d.ts +2 -93
  86. package/es/ProTable/hooks/useAntdTable.js +6 -2
  87. package/es/ProTable/index.d.ts +1 -1
  88. package/es/ProTable/index.js +6 -3
  89. package/es/ProTable/propsType.d.ts +68 -28
  90. package/es/ProTooltip/propsType.d.ts +0 -3
  91. package/es/ProTree/components/List.d.ts +2 -2
  92. package/es/ProTree/components/List.js +2 -2
  93. package/es/ProTree/components/ProTree.d.ts +2 -2
  94. package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  95. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
  96. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  97. package/es/ProTree/components/Tree.d.ts +3 -3
  98. package/es/ProTree/index.d.ts +2 -2
  99. package/es/ProTree/index.js +1 -1
  100. package/es/ProTree/propsType.d.ts +692 -101
  101. package/es/ProTree/utils.d.ts +7 -7
  102. package/es/ProTreeModal/components/Cascader.d.ts +3 -3
  103. package/es/ProTreeModal/components/List.d.ts +3 -3
  104. package/es/ProTreeModal/components/Tree.d.ts +2 -2
  105. package/es/ProTreeModal/index.d.ts +2 -2
  106. package/es/ProTreeModal/index.js +2 -2
  107. package/es/ProTreeModal/propsType.d.ts +257 -48
  108. package/es/ProTreeModal/utils.d.ts +7 -7
  109. package/es/index.d.ts +15 -7
  110. package/es/index.js +1 -8
  111. package/lib/ProConfigProvider/index.d.ts +4 -4
  112. package/lib/ProDrawerForm/propsType.d.ts +1 -1
  113. package/lib/ProEditLabel/propsType.d.ts +2 -2
  114. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  115. package/lib/ProEditTable/index.js +12 -8
  116. package/lib/ProEditTable/propsType.d.ts +40 -42
  117. package/lib/ProEditTable/style/index.less +1 -0
  118. package/lib/ProEditTable/utils/index.d.ts +1 -1
  119. package/lib/ProEditTable/utils/index.js +6 -4
  120. package/lib/ProEditTable/utils/tools.d.ts +57 -22
  121. package/lib/ProEditTable/utils/tools.js +47 -21
  122. package/lib/ProEnum/hooks/useEnum.d.ts +2 -2
  123. package/lib/ProEnum/hooks/useEnum.js +48 -17
  124. package/lib/ProEnum/propsType.d.ts +2 -2
  125. package/lib/ProEnum/utils/index.d.ts +8 -1
  126. package/lib/ProEnum/utils/index.js +9 -2
  127. package/lib/ProForm/components/FormFooter/index.d.ts +1 -1
  128. package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -1
  129. package/lib/ProForm/components/base/Input/propsType.d.ts +3 -3
  130. package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -1
  131. package/lib/ProForm/components/base/Radio/index.d.ts +1 -1
  132. package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -1
  133. package/lib/ProForm/components/base/Select/index.d.ts +1 -1
  134. package/lib/ProForm/components/base/Switch/index.d.ts +1 -1
  135. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
  136. package/lib/ProForm/components/base/TextArea/index.d.ts +1 -1
  137. package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -1
  138. package/lib/ProForm/components/combination/Container/propsType.d.ts +3 -3
  139. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
  140. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
  141. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
  142. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
  143. package/lib/ProForm/components/combination/FormList/propsType.d.ts +2 -2
  144. package/lib/ProForm/components/combination/Group/index.d.ts +1 -1
  145. package/lib/ProForm/components/combination/Group/propsType.d.ts +1 -1
  146. package/lib/ProForm/components/combination/Group/utils.d.ts +3 -3
  147. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  148. package/lib/ProForm/components/combination/ProCombination/index.d.ts +1 -1
  149. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
  150. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  151. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
  152. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  153. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
  154. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  155. package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  156. package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  157. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  158. package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
  159. package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  160. package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  161. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  162. package/lib/ProForm/components/render/ChangedWrapper.d.ts +1 -1
  163. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  164. package/lib/ProForm/components/render/RenderFields.d.ts +3 -3
  165. package/lib/ProForm/components/render/propsType.d.ts +37 -41
  166. package/lib/ProForm/index.d.ts +1 -1
  167. package/lib/ProForm/propsType.d.ts +6 -4
  168. package/lib/ProForm/propsType.js +0 -15
  169. package/lib/ProForm/utils/transformValue.d.ts +1 -1
  170. package/lib/ProForm/utils/useFieldProps.d.ts +1 -1
  171. package/lib/ProForm/utils/useForm.d.ts +1 -1
  172. package/lib/ProForm/utils/useRules.d.ts +1 -1
  173. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  174. package/lib/ProIcon/index.d.ts +2 -2
  175. package/lib/ProIcon/propsTypes.d.ts +120 -49
  176. package/lib/ProSelect/propsType.d.ts +1 -1
  177. package/lib/ProStep/components/Anchor/index.d.ts +2 -1
  178. package/lib/ProStep/components/Item/index.d.ts +1 -1
  179. package/lib/ProStep/components/Item/index.js +6 -2
  180. package/lib/ProStep/components/Listener/index.d.ts +4 -3
  181. package/lib/ProStep/components/Listener/index.js +18 -4
  182. package/lib/ProStep/index.d.ts +7 -7
  183. package/lib/ProStep/index.js +7 -3
  184. package/lib/ProStep/propsType.d.ts +145 -5
  185. package/lib/ProStep/utils/index.d.ts +16 -3
  186. package/lib/ProStep/utils/index.js +11 -2
  187. package/lib/ProTable/components/FormatColumn/index.d.ts +1 -1
  188. package/lib/ProTable/components/FormatColumn/index.js +3 -6
  189. package/lib/ProTable/components/RenderTabs/index.d.ts +4 -0
  190. package/lib/ProTable/components/RenderTabs/index.js +82 -0
  191. package/lib/ProTable/components/index.d.ts +25 -0
  192. package/lib/ProTable/components/index.js +8 -1
  193. package/lib/ProTable/hooks/useAntdTable.d.ts +2 -93
  194. package/lib/ProTable/hooks/useAntdTable.js +5 -1
  195. package/lib/ProTable/index.d.ts +1 -1
  196. package/lib/ProTable/index.js +5 -2
  197. package/lib/ProTable/propsType.d.ts +68 -28
  198. package/lib/ProTooltip/propsType.d.ts +0 -3
  199. package/lib/ProTree/components/List.d.ts +2 -2
  200. package/lib/ProTree/components/List.js +2 -2
  201. package/lib/ProTree/components/ProTree.d.ts +2 -2
  202. package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  203. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
  204. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  205. package/lib/ProTree/components/Tree.d.ts +3 -3
  206. package/lib/ProTree/index.d.ts +2 -2
  207. package/lib/ProTree/index.js +1 -1
  208. package/lib/ProTree/propsType.d.ts +692 -101
  209. package/lib/ProTree/utils.d.ts +7 -7
  210. package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
  211. package/lib/ProTreeModal/components/List.d.ts +3 -3
  212. package/lib/ProTreeModal/components/Tree.d.ts +2 -2
  213. package/lib/ProTreeModal/index.d.ts +2 -2
  214. package/lib/ProTreeModal/index.js +2 -2
  215. package/lib/ProTreeModal/propsType.d.ts +257 -48
  216. package/lib/ProTreeModal/utils.d.ts +7 -7
  217. package/lib/index.d.ts +15 -7
  218. package/lib/index.js +7 -83
  219. package/package.json +1 -1
  220. package/test/__mocks__/fileMock.js +0 -0
  221. package/test/__mocks__/styleMock.js +0 -0
@@ -1,3 +1,3 @@
1
- import { comPropsType } from './propsTypes';
1
+ import type { comPropsType } from './propsTypes';
2
2
  declare const InputWithSuffix: (props: comPropsType) => import("react/jsx-runtime").JSX.Element;
3
3
  export default InputWithSuffix;
@@ -1,4 +1,4 @@
1
- import { ProAddressPropsType } from './propsTypes';
1
+ import type { ProAddressPropsType } from './propsTypes';
2
2
  export declare const transferAddressInfoToRegion: () => {
3
3
  normalize: (value: any) => {
4
4
  province: any;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IProps } from './propsType';
2
+ import type { IProps } from './propsType';
3
3
  /**
4
4
  * 证件号码 + 证件类型
5
5
  * @date 2022-01-06
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ProCertValidityPropsType } from './propsType';
2
+ import type { ProCertValidityPropsType } from './propsType';
3
3
  /**
4
4
  * 继承了antd原本DatePicker 与 RangePicker接口,
5
5
  * 可以在这里使用所有原有antd DatePicker的属性和事件,
@@ -1,2 +1,2 @@
1
- import { ProRangeBoxPropsType } from './propsType';
1
+ import type { ProRangeBoxPropsType } from './propsType';
2
2
  export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { FormInstance } from 'antd';
2
2
  import { NamePath } from 'antd/lib/form/interface';
3
3
  import React from 'react';
4
4
  import { DiffOriginalParams } from '../../utils/diffOriginal';
5
- import { DiffConfigType } from '../../propsType';
5
+ import type { DiffConfigType } from '../../propsType';
6
6
  interface Props {
7
7
  name?: NamePath;
8
8
  names?: NamePath[];
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { ProFormColumnProps } from '../../propsType';
2
+ import type { ProFormColumnType } from '../../propsType';
3
3
  interface Props<T = any> {
4
4
  value?: T;
5
5
  onChange?: (value: T, ...rest: any[]) => void;
6
- confirm: ProFormColumnProps['confirm'];
6
+ confirm: ProFormColumnType['confirm'];
7
7
  [K: string]: any;
8
8
  }
9
9
  declare const ConfirmWrapper: React.FC<Props>;
@@ -1,11 +1,11 @@
1
1
  import { ColProps } from 'antd';
2
2
  import { FormInstance } from 'antd/es/form/Form';
3
3
  import React from 'react';
4
- import { ProColumnType } from './propsType';
5
- import { DiffConfigType } from '../../propsType';
4
+ import type { ProFormColumnType } from './propsType';
5
+ import type { DiffConfigType } from '../../propsType';
6
6
  interface Props<T = any> {
7
7
  isView?: boolean;
8
- columns: ProColumnType[];
8
+ columns: ProFormColumnType[];
9
9
  disabled?: boolean;
10
10
  form: FormInstance<T>;
11
11
  expand?: boolean | number;
@@ -1,45 +1,42 @@
1
- import { ColProps, FormInstance, FormItemProps, ModalFuncProps } from 'antd';
2
- import { NamePath } from 'antd/es/form/interface';
1
+ import type { ColProps, FormInstance, FormItemProps, ModalFuncProps } from 'antd';
2
+ import type { NamePath } from 'antd/es/form/interface';
3
3
  import React from 'react';
4
4
  import { validate, regExp } from '@zat-design/utils';
5
- import { RuleObject } from 'antd/es/form';
6
- import * as componentMap from '../index';
7
- import { Props as InputProps } from '../base/Input/propsType';
8
- import { Props as InputNumberProps } from '../base/InputNumber';
9
- import { Props as RadioProps } from '../base/Radio';
10
- import { Props as CheckboxProps } from '../base/Checkbox';
11
- import { Props as DatePickerProps } from '../base/DatePicker';
12
- import { Props as RangePickerProps } from '../base/RangePicker';
13
- import { TypeWithRef as FormListType } from '../combination/FormList/propsType';
14
- import { Props as SelectProps } from '../base/Select';
15
- import { Props as TimePickerProps } from '../base/TimePicker';
16
- import { Props as SwitchProps } from '../base/Switch';
17
- import { Props as SwitchCheckboxProps } from '../base/SwitchCheckbox';
18
- import { Props as TextAreaProps } from '../base/TextArea';
19
- import { ProCascaderType } from '../combination/ProCascader/propsType';
20
- import { ProCombinationType } from '../combination/ProCombination/propsType';
21
- import { ProModalSelectType } from '../combination/ProModalSelect/propsType';
22
- import { ProNumberRangeProps } from '../combination/ProNumberRange/propsType';
23
- import { ProLimitProps } from '../combination/ProTimeLimit';
24
- import { Props as ProRangeLimitProps } from '../combination/ProRangeLimit';
25
- import { CheckboxPropsMap, ProEnum, PropProSelectsMap, PropRadioPropsMap } from '../../../ProEnum/propsType';
26
- import { PropSelectProps as ProSelectProps } from '../../../ProSelect/propsType';
27
- import { ProEditTableType } from '../../../ProEditTable/propsType';
28
- import { ProTreeModalProps } from '../../../ProTreeModal/propsType';
29
- import { ProUploadType } from '../../../ProUpload/propsType';
30
- import { ProTreeProps } from '../../../ProTree/propsType';
31
- import { GroupType as GroupCopyProps } from '../combination/Group/propsType';
32
- import { ProCollapseProps } from '../../../ProLayout/components/ProCollapse/PropTypes';
33
- import { DistributiveOmit, DiffConfigType } from '../../propsType';
34
- import { DiffOriginalParams } from '../../utils/diffOriginal';
35
- export type ComponentMap = keyof typeof componentMap;
5
+ import type { RuleObject } from 'antd/es/form';
6
+ import type { Props as InputProps } from '../base/Input/propsType';
7
+ import type { Props as InputNumberProps } from '../base/InputNumber';
8
+ import type { Props as RadioProps } from '../base/Radio';
9
+ import type { Props as CheckboxProps } from '../base/Checkbox';
10
+ import type { Props as DatePickerProps } from '../base/DatePicker';
11
+ import type { Props as RangePickerProps } from '../base/RangePicker';
12
+ import type { TypeWithRef as FormListType } from '../combination/FormList/propsType';
13
+ import type { Props as SelectProps } from '../base/Select';
14
+ import type { Props as TimePickerProps } from '../base/TimePicker';
15
+ import type { Props as SwitchProps } from '../base/Switch';
16
+ import type { Props as SwitchCheckboxProps } from '../base/SwitchCheckbox';
17
+ import type { Props as TextAreaProps } from '../base/TextArea';
18
+ import type { ProCascaderType } from '../combination/ProCascader/propsType';
19
+ import type { ProCombinationType } from '../combination/ProCombination/propsType';
20
+ import type { ProModalSelectType } from '../combination/ProModalSelect/propsType';
21
+ import type { ProNumberRangeType } from '../combination/ProNumberRange/propsType';
22
+ import type { ProLimitProps } from '../combination/ProTimeLimit';
23
+ import type { Props as ProRangeLimitProps } from '../combination/ProRangeLimit';
24
+ import type { CheckboxPropsMap, ProEnum, PropProSelectsMap, PropRadioPropsMap } from '../../../ProEnum/propsType';
25
+ import type { PropSelectProps as ProSelectProps } from '../../../ProSelect/propsType';
26
+ import type { ProEditTableType } from '../../../ProEditTable/propsType';
27
+ import type { ProTreeModalType } from '../../../ProTreeModal/propsType';
28
+ import type { ProUploadType } from '../../../ProUpload/propsType';
29
+ import type { ProTreeProps } from '../../../ProTree/propsType';
30
+ import type { GroupType as GroupCopyProps } from '../combination/Group/propsType';
31
+ import type { ProCollapseProps } from '../../../ProLayout/components/ProCollapse/PropTypes';
32
+ import type { DistributiveOmit, DiffConfigType } from '../../propsType';
33
+ import type { DiffOriginalParams } from '../../utils/diffOriginal';
36
34
  type ValidateKey = keyof typeof validate;
37
35
  type RegExpKey = keyof typeof regExp;
38
- interface ExtendType extends Omit<RuleObject, 'type'> {
36
+ export interface ProRule extends Omit<RuleObject, 'type'> {
39
37
  type?: ValidateKey | RegExpKey;
40
38
  message?: string;
41
39
  }
42
- export type ProRule = ExtendType;
43
40
  /**
44
41
  * percent 百分比 permillage 千分比 amount 金额
45
42
  */
@@ -133,7 +130,7 @@ export type ColumnTypeMap<Values = any, T = 'ProForm'> = {
133
130
  fieldProps?: FieldType<ProModalSelectType, Values, T>;
134
131
  } | {
135
132
  type?: 'ProNumberRange';
136
- fieldProps?: FieldType<ProNumberRangeProps, Values, T>;
133
+ fieldProps?: FieldType<ProNumberRangeType, Values, T>;
137
134
  } | {
138
135
  type?: 'ProRangeLimit';
139
136
  fieldProps?: FieldType<ProRangeLimitProps, Values, T>;
@@ -151,7 +148,7 @@ export type ColumnTypeMap<Values = any, T = 'ProForm'> = {
151
148
  fieldProps?: FieldType<ProEditTableType, Values, T>;
152
149
  } | {
153
150
  type?: 'ProTreeModal';
154
- fieldProps?: FieldType<ProTreeModalProps, Values, T>;
151
+ fieldProps?: FieldType<ProTreeModalType, Values, T>;
155
152
  } | {
156
153
  type?: 'ProUpload';
157
154
  fieldProps?: FieldType<ProUploadType, Values, T>;
@@ -168,7 +165,7 @@ export type ColumnTypeMap<Values = any, T = 'ProForm'> = {
168
165
  type?: 'Container';
169
166
  fieldProps?: any;
170
167
  };
171
- export interface ProFormColumnType<Values = any> extends Omit<FormItemProps<Values>, 'rules' | 'required'> {
168
+ export interface ProFormColumn<Values = any> extends Omit<FormItemProps<Values>, 'rules' | 'required'> {
172
169
  component?: React.ReactNode | ReactiveFunction<Values, React.ReactNode>;
173
170
  names?: NamePath[];
174
171
  show?: boolean | ReactiveFunction<Values, boolean>;
@@ -233,7 +230,7 @@ export interface ProFormColumnType<Values = any> extends Omit<FormItemProps<Valu
233
230
  /** 脱敏数据位置下标 */
234
231
  desensitization?: [number, number] | ReactiveFunction<Values, [number, number]>;
235
232
  }
236
- export type ProColumnType<T = any> = ProFormColumnType<T> & ColumnTypeMap<T, 'ProForm'>;
233
+ export type ProFormColumnType<T = any> = ProFormColumn<T> & ColumnTypeMap<T, 'ProForm'>;
237
234
  /**
238
235
  * 表单渲染类型
239
236
  */
@@ -292,7 +289,6 @@ export type ProEnumTableProps<Values> = ProEnumTableType<Values>;
292
289
  export type ProEnumFieldProps<Values, TT> = ProEnumFieldType<Values, TT>;
293
290
  export type FieldProps<T extends ControlProps, Values, TT> = FieldType<T, Values, TT>;
294
291
  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>;
292
+ export type ProColumnProps<Values = any> = ProFormColumnType<Values>;
297
293
  export type RenderProps<Values = any> = RenderType<Values>;
298
294
  export {};
@@ -1,7 +1,7 @@
1
1
  import { FormInstance } from 'antd';
2
2
  import React, { ForwardRefRenderFunction } from 'react';
3
3
  import { FormProviderProps } from 'antd/es/form/context';
4
- import { ProFormType } from './propsType';
4
+ import type { ProFormType } from './propsType';
5
5
  import { useForm } from './utils/useForm';
6
6
  import useWatch from './utils/useWatch';
7
7
  interface IProForm<T = any> extends ForwardRefRenderFunction<FormInstance<T>, ProFormType<T>> {
@@ -4,8 +4,8 @@ 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, ProColumnType, ViewType } from './components/render/propsType';
8
- export * from './components/render/propsType';
7
+ import type { ProFormColumnType, ViewType } from './components/render/propsType';
8
+ import type { ProFormComponentType } from './components/index.d';
9
9
  export interface ButtonType extends ButtonProps {
10
10
  children?: any;
11
11
  }
@@ -33,7 +33,7 @@ export interface ProFormOtherType {
33
33
  name?: NamePath;
34
34
  names?: NamePath[];
35
35
  form?: FormInstance;
36
- type?: ComponentMap;
36
+ type?: ProFormComponentType;
37
37
  hiddenNames?: string[] | any[];
38
38
  colProps: ColProps;
39
39
  disabled: boolean;
@@ -69,7 +69,7 @@ export interface ProFormType<Values = any> extends FormProps<Values> {
69
69
  /** 是否查看 */
70
70
  isView?: boolean;
71
71
  span?: number;
72
- columns?: ProColumnType<Values>[];
72
+ columns?: ProFormColumnType<Values>[];
73
73
  rowProps?: RowProps;
74
74
  footer?: FooterType;
75
75
  expand?: boolean | number;
@@ -111,3 +111,5 @@ export type FooterButtonProps = FooterButtonType;
111
111
  export type ProFormOtherProps = ProFormOtherType;
112
112
  export type DiffConfigProps = DiffConfigType;
113
113
  export type Transform = TransformType;
114
+ export type { ProFormColumnType } from './components/render/propsType';
115
+ export type { ProColumnProps } from './components/render/propsType';
@@ -1,2 +1 @@
1
- export * from './components/render/propsType';
2
1
  export var otherKeys = ['isView', 'viewEmpty', 'label', 'valueType', 'viewType', 'name', 'names', 'form', 'type', 'hiddenNames'];
@@ -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 { TransformType } from '../propsType';
4
+ import type { TransformType } from '../propsType';
5
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 { ProFormOtherType } from '../propsType';
2
+ import type { ProFormOtherType } from '../propsType';
3
3
  export declare const FieldProvider: React.Provider<ProFormOtherType>;
4
4
  export declare const useFieldProps: () => ProFormOtherType;
@@ -13,4 +13,4 @@ export interface FormInstanceOption {
13
13
  optimize?: boolean;
14
14
  formKey?: string;
15
15
  }
16
- export declare const useForm: <T>(originForm?: FormInstanceOption | ModifiedFormInstance<T>, options?: FormInstanceOption) => [ModifiedFormInstance<T>];
16
+ export declare const useForm: <T>(originForm?: ModifiedFormInstance<T> | FormInstanceOption, options?: FormInstanceOption) => [ModifiedFormInstance<T>];
@@ -1,5 +1,5 @@
1
1
  import type { InternalNamePath } from 'antd/lib/form/interface';
2
- import type { ProRule } from '../propsType';
2
+ import type { ProRule } from '../components/render/propsType';
3
3
  interface Props {
4
4
  rules?: ProRule[];
5
5
  required?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FormInstance, FormItemProps } from 'antd';
2
- import { ProColumnType, ProRule } from '../components/render/propsType';
2
+ import type { ProFormColumnType, 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?: ProColumnType['show'];
13
- formItemProps?: ProColumnType['formItemProps'] & {
12
+ show?: ProFormColumnType['show'];
13
+ formItemProps?: ProFormColumnType['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,176 @@
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 ProIconProps = ProIconType;
105
176
  export {};
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import type { SelectProps } from 'antd';
3
3
  import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
4
- import { ProFormOtherType } from '../ProForm/propsType';
4
+ import type { ProFormOtherType } from '../ProForm/propsType';
5
5
  /**
6
6
  * @description 数据选项类型
7
7
  */
@@ -1,2 +1,3 @@
1
- export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
1
+ import { MenuItemProps } from '../../propsType';
2
+ export declare const MenuItem: (props: MenuItemProps) => JSX.Element;
2
3
  export default MenuItem;
@@ -1,3 +1,3 @@
1
1
  import { ProStepItemType } from '../../propsType';
2
- declare const ProStepItem: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, ...restProps }: ProStepItemType) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ProStepItem: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: ProStepItemType) => JSX.Element;
3
3
  export default ProStepItem;
@@ -1,12 +1,13 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["id", "title", "collapse", "children", "lazyLoad"];
3
+ var _excluded = ["id", "title", "collapse", "children", "lazyLoad", "order"];
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  import { useEffect } from 'react';
6
6
  import LazyLoad, { forceCheck } from 'react-lazyload';
7
7
  import { isBoolean } from 'lodash';
8
8
  import { useStep } from '../../index';
9
9
  import ProCollapse from '../../../ProLayout/components/ProCollapse';
10
+ // 默认的懒加载配置
10
11
  var defaultLazyLoadConfig = {
11
12
  height: 200,
12
13
  offset: 100,
@@ -19,6 +20,8 @@ var ProStepItem = function ProStepItem(_ref) {
19
20
  collapseItem = _ref$collapse === void 0 ? true : _ref$collapse,
20
21
  children = _ref.children,
21
22
  stepLazyLoad = _ref.lazyLoad,
23
+ _ref$order = _ref.order,
24
+ order = _ref$order === void 0 ? 0 : _ref$order,
22
25
  restProps = _objectWithoutProperties(_ref, _excluded);
23
26
  var _useStep = useStep(),
24
27
  register = _useStep.register,
@@ -31,13 +34,14 @@ var ProStepItem = function ProStepItem(_ref) {
31
34
  register === null || register === void 0 ? void 0 : register(_objectSpread({
32
35
  id: id,
33
36
  title: title,
37
+ order: order,
34
38
  lazyLoad: lazyLoad
35
39
  }, restProps));
36
40
  }, 0);
37
41
  return function () {
38
42
  clearTimeout(timeoutId);
39
43
  };
40
- }, [id, title, lazyLoad, restProps, register]);
44
+ }, [id, title, order, lazyLoad, restProps, register]);
41
45
  var renderChildren = function renderChildren() {
42
46
  if (lazyLoad) {
43
47
  var lazyLoadProps = isBoolean(lazyLoad) ? defaultLazyLoadConfig : lazyLoad;
@@ -1,3 +1,4 @@
1
- import React from 'react';
2
- declare const _default: ({ children, delayTime, excludes, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>;
3
- export default _default;
1
+ import { ReactElement } from 'react';
2
+ import type { ListenerProps } from '../../propsType';
3
+ declare const Listener: ({ children, delayTime, excludes, ...props }: ListenerProps) => ReactElement;
4
+ export default Listener;