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

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 (261) hide show
  1. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
  2. package/coverage/lcov-report/src/.umi/core/history.ts.html +1 -1
  3. package/coverage/lcov-report/src/.umi/core/index.html +67 -7
  4. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +1 -1
  5. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +1 -1
  6. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +1 -1
  7. package/coverage/lcov-report/src/.umi/core/routes.ts.html +29149 -0
  8. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
  9. package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
  10. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
  11. package/coverage/lcov-report/src/.umi/index.html +116 -0
  12. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
  13. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
  14. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
  15. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
  16. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
  17. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
  18. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
  19. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
  20. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
  21. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
  22. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
  23. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
  24. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
  25. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
  26. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
  27. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
  28. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
  29. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
  30. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
  31. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
  32. package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
  33. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
  34. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
  35. package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
  36. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
  37. package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
  38. package/coverage/src/.umi/core/devScripts.ts.html +241 -0
  39. package/coverage/src/.umi/core/history.ts.html +1 -1
  40. package/coverage/src/.umi/core/index.html +67 -7
  41. package/coverage/src/.umi/core/plugin.ts.html +1 -1
  42. package/coverage/src/.umi/core/pluginRegister.ts.html +1 -1
  43. package/coverage/src/.umi/core/polyfill.ts.html +1 -1
  44. package/coverage/src/.umi/core/routes.ts.html +29149 -0
  45. package/coverage/src/.umi/core/umiExports.ts.html +112 -0
  46. package/coverage/src/.umi/dumi/index.html +116 -0
  47. package/coverage/src/.umi/dumi/layout.tsx.html +109 -0
  48. package/coverage/src/.umi/index.html +116 -0
  49. package/coverage/src/.umi/plugin-antd/index.html +116 -0
  50. package/coverage/src/.umi/plugin-antd/runtime.tsx.html +172 -0
  51. package/coverage/src/.umi/plugin-helmet/exports.ts.html +94 -0
  52. package/coverage/src/.umi/plugin-helmet/index.html +116 -0
  53. package/coverage/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
  54. package/coverage/src/.umi/plugin-initial-state/exports.ts.html +106 -0
  55. package/coverage/src/.umi/plugin-initial-state/index.html +146 -0
  56. package/coverage/src/.umi/plugin-initial-state/models/index.html +116 -0
  57. package/coverage/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
  58. package/coverage/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
  59. package/coverage/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
  60. package/coverage/src/.umi/plugin-locale/index.html +161 -0
  61. package/coverage/src/.umi/plugin-locale/locale.tsx.html +268 -0
  62. package/coverage/src/.umi/plugin-locale/localeExports.ts.html +778 -0
  63. package/coverage/src/.umi/plugin-locale/runtime.tsx.html +115 -0
  64. package/coverage/src/.umi/plugin-model/Provider.tsx.html +202 -0
  65. package/coverage/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
  66. package/coverage/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
  67. package/coverage/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
  68. package/coverage/src/.umi/plugin-model/helpers/index.html +146 -0
  69. package/coverage/src/.umi/plugin-model/index.html +146 -0
  70. package/coverage/src/.umi/plugin-model/runtime.tsx.html +121 -0
  71. package/coverage/src/.umi/plugin-model/useModel.tsx.html +298 -0
  72. package/coverage/src/.umi/plugin-request/index.html +116 -0
  73. package/coverage/src/.umi/plugin-request/request.ts.html +919 -0
  74. package/coverage/src/.umi/umi.ts.html +268 -0
  75. package/es/ProConfigProvider/index.d.ts +4 -4
  76. package/es/ProDrawerForm/propsType.d.ts +1 -1
  77. package/es/ProEditLabel/propsType.d.ts +2 -2
  78. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  79. package/es/ProEditTable/index.js +12 -8
  80. package/es/ProEditTable/propsType.d.ts +40 -42
  81. package/es/ProEditTable/utils/index.d.ts +1 -1
  82. package/es/ProEditTable/utils/index.js +6 -4
  83. package/es/ProEditTable/utils/tools.d.ts +57 -22
  84. package/es/ProEditTable/utils/tools.js +47 -21
  85. package/es/ProEnum/propsType.d.ts +2 -2
  86. package/es/ProForm/components/FormFooter/index.d.ts +1 -1
  87. package/es/ProForm/components/base/Checkbox/index.d.ts +1 -1
  88. package/es/ProForm/components/base/Input/propsType.d.ts +3 -3
  89. package/es/ProForm/components/base/InputNumber/index.d.ts +1 -1
  90. package/es/ProForm/components/base/Radio/index.d.ts +1 -1
  91. package/es/ProForm/components/base/RangePicker/index.d.ts +1 -1
  92. package/es/ProForm/components/base/Select/index.d.ts +1 -1
  93. package/es/ProForm/components/base/Switch/index.d.ts +1 -1
  94. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
  95. package/es/ProForm/components/base/TextArea/index.d.ts +1 -1
  96. package/es/ProForm/components/base/TimePicker/index.d.ts +1 -1
  97. package/es/ProForm/components/combination/Container/propsType.d.ts +3 -3
  98. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
  99. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
  100. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
  101. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
  102. package/es/ProForm/components/combination/FormList/propsType.d.ts +2 -2
  103. package/es/ProForm/components/combination/Group/index.d.ts +1 -1
  104. package/es/ProForm/components/combination/Group/propsType.d.ts +1 -1
  105. package/es/ProForm/components/combination/Group/utils.d.ts +3 -3
  106. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  107. package/es/ProForm/components/combination/ProCombination/index.d.ts +1 -1
  108. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
  109. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  110. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
  111. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  112. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
  113. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  114. package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  115. package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  116. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  117. package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
  118. package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  119. package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  120. package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  121. package/es/ProForm/components/render/ChangedWrapper.d.ts +1 -1
  122. package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  123. package/es/ProForm/components/render/RenderFields.d.ts +3 -3
  124. package/es/ProForm/components/render/propsType.d.ts +37 -41
  125. package/es/ProForm/index.d.ts +1 -1
  126. package/es/ProForm/propsType.d.ts +6 -4
  127. package/es/ProForm/propsType.js +0 -1
  128. package/es/ProForm/utils/transformValue.d.ts +1 -1
  129. package/es/ProForm/utils/useFieldProps.d.ts +1 -1
  130. package/es/ProForm/utils/useForm.d.ts +1 -1
  131. package/es/ProForm/utils/useRules.d.ts +1 -1
  132. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  133. package/es/ProIcon/propsTypes.d.ts +0 -4
  134. package/es/ProSelect/propsType.d.ts +1 -1
  135. package/es/ProStep/components/Anchor/index.d.ts +2 -1
  136. package/es/ProStep/components/Item/index.d.ts +1 -1
  137. package/es/ProStep/components/Item/index.js +6 -2
  138. package/es/ProStep/components/Listener/index.d.ts +4 -3
  139. package/es/ProStep/components/Listener/index.js +18 -4
  140. package/es/ProStep/index.d.ts +7 -7
  141. package/es/ProStep/index.js +7 -3
  142. package/es/ProStep/propsType.d.ts +145 -5
  143. package/es/ProStep/utils/index.d.ts +16 -3
  144. package/es/ProStep/utils/index.js +11 -2
  145. package/es/ProTable/components/FormatColumn/index.js +3 -6
  146. package/es/ProTable/propsType.d.ts +14 -20
  147. package/es/ProTooltip/propsType.d.ts +0 -3
  148. package/es/ProTree/components/List.d.ts +2 -2
  149. package/es/ProTree/components/List.js +2 -2
  150. package/es/ProTree/components/ProTree.d.ts +2 -2
  151. package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  152. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
  153. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  154. package/es/ProTree/components/Tree.d.ts +3 -3
  155. package/es/ProTree/index.d.ts +2 -2
  156. package/es/ProTree/index.js +1 -1
  157. package/es/ProTree/propsType.d.ts +44 -42
  158. package/es/ProTree/utils.d.ts +7 -7
  159. package/es/ProTreeModal/components/Cascader.d.ts +3 -3
  160. package/es/ProTreeModal/components/List.d.ts +3 -3
  161. package/es/ProTreeModal/components/Tree.d.ts +2 -2
  162. package/es/ProTreeModal/index.d.ts +2 -2
  163. package/es/ProTreeModal/index.js +2 -2
  164. package/es/ProTreeModal/propsType.d.ts +257 -48
  165. package/es/ProTreeModal/utils.d.ts +7 -7
  166. package/es/index.d.ts +15 -7
  167. package/es/index.js +1 -8
  168. package/lib/ProConfigProvider/index.d.ts +4 -4
  169. package/lib/ProDrawerForm/propsType.d.ts +1 -1
  170. package/lib/ProEditLabel/propsType.d.ts +2 -2
  171. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  172. package/lib/ProEditTable/index.js +12 -8
  173. package/lib/ProEditTable/propsType.d.ts +40 -42
  174. package/lib/ProEditTable/utils/index.d.ts +1 -1
  175. package/lib/ProEditTable/utils/index.js +6 -4
  176. package/lib/ProEditTable/utils/tools.d.ts +57 -22
  177. package/lib/ProEditTable/utils/tools.js +47 -21
  178. package/lib/ProEnum/propsType.d.ts +2 -2
  179. package/lib/ProForm/components/FormFooter/index.d.ts +1 -1
  180. package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -1
  181. package/lib/ProForm/components/base/Input/propsType.d.ts +3 -3
  182. package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -1
  183. package/lib/ProForm/components/base/Radio/index.d.ts +1 -1
  184. package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -1
  185. package/lib/ProForm/components/base/Select/index.d.ts +1 -1
  186. package/lib/ProForm/components/base/Switch/index.d.ts +1 -1
  187. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
  188. package/lib/ProForm/components/base/TextArea/index.d.ts +1 -1
  189. package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -1
  190. package/lib/ProForm/components/combination/Container/propsType.d.ts +3 -3
  191. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
  192. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
  193. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
  194. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
  195. package/lib/ProForm/components/combination/FormList/propsType.d.ts +2 -2
  196. package/lib/ProForm/components/combination/Group/index.d.ts +1 -1
  197. package/lib/ProForm/components/combination/Group/propsType.d.ts +1 -1
  198. package/lib/ProForm/components/combination/Group/utils.d.ts +3 -3
  199. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  200. package/lib/ProForm/components/combination/ProCombination/index.d.ts +1 -1
  201. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
  202. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  203. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
  204. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  205. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
  206. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  207. package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  208. package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  209. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  210. package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
  211. package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  212. package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  213. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  214. package/lib/ProForm/components/render/ChangedWrapper.d.ts +1 -1
  215. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  216. package/lib/ProForm/components/render/RenderFields.d.ts +3 -3
  217. package/lib/ProForm/components/render/propsType.d.ts +37 -41
  218. package/lib/ProForm/index.d.ts +1 -1
  219. package/lib/ProForm/propsType.d.ts +6 -4
  220. package/lib/ProForm/propsType.js +0 -15
  221. package/lib/ProForm/utils/transformValue.d.ts +1 -1
  222. package/lib/ProForm/utils/useFieldProps.d.ts +1 -1
  223. package/lib/ProForm/utils/useForm.d.ts +1 -1
  224. package/lib/ProForm/utils/useRules.d.ts +1 -1
  225. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  226. package/lib/ProIcon/propsTypes.d.ts +0 -4
  227. package/lib/ProSelect/propsType.d.ts +1 -1
  228. package/lib/ProStep/components/Anchor/index.d.ts +2 -1
  229. package/lib/ProStep/components/Item/index.d.ts +1 -1
  230. package/lib/ProStep/components/Item/index.js +6 -2
  231. package/lib/ProStep/components/Listener/index.d.ts +4 -3
  232. package/lib/ProStep/components/Listener/index.js +18 -4
  233. package/lib/ProStep/index.d.ts +7 -7
  234. package/lib/ProStep/index.js +7 -3
  235. package/lib/ProStep/propsType.d.ts +145 -5
  236. package/lib/ProStep/utils/index.d.ts +16 -3
  237. package/lib/ProStep/utils/index.js +11 -2
  238. package/lib/ProTable/components/FormatColumn/index.js +3 -6
  239. package/lib/ProTable/propsType.d.ts +14 -20
  240. package/lib/ProTooltip/propsType.d.ts +0 -3
  241. package/lib/ProTree/components/List.d.ts +2 -2
  242. package/lib/ProTree/components/List.js +2 -2
  243. package/lib/ProTree/components/ProTree.d.ts +2 -2
  244. package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  245. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
  246. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  247. package/lib/ProTree/components/Tree.d.ts +3 -3
  248. package/lib/ProTree/index.d.ts +2 -2
  249. package/lib/ProTree/index.js +1 -1
  250. package/lib/ProTree/propsType.d.ts +44 -42
  251. package/lib/ProTree/utils.d.ts +7 -7
  252. package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
  253. package/lib/ProTreeModal/components/List.d.ts +3 -3
  254. package/lib/ProTreeModal/components/Tree.d.ts +2 -2
  255. package/lib/ProTreeModal/index.d.ts +2 -2
  256. package/lib/ProTreeModal/index.js +2 -2
  257. package/lib/ProTreeModal/propsType.d.ts +257 -48
  258. package/lib/ProTreeModal/utils.d.ts +7 -7
  259. package/lib/index.d.ts +15 -7
  260. package/lib/index.js +7 -83
  261. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { ColProps, FormListFieldData } from 'antd';
2
2
  import React from 'react';
3
3
  import { InternalNamePath } from 'antd/es/form/interface';
4
- import { FormListType } from '../propsType';
5
- import { DiffConfigType } from '../../../../propsType';
4
+ import type { FormListType } from '../propsType';
5
+ import type { DiffConfigType } from '../../../../propsType';
6
6
  interface Props extends Omit<FormListType, 'toolbarProps'> {
7
7
  className?: string;
8
8
  index: number;
@@ -1,6 +1,6 @@
1
1
  import { InternalNamePath } from 'antd/es/form/interface';
2
2
  import React from 'react';
3
- import { ToolbarActionType } from '../propsType';
3
+ import type { ToolbarActionType } from '../propsType';
4
4
  import { Props as ActionButtonProps } from './ActionButton';
5
5
  interface Props extends Omit<ActionButtonProps, 'actionProps' | 'field' | 'index' | 'mode' | 'namePath'> {
6
6
  toolbarProps: ToolbarActionType[];
@@ -3,7 +3,7 @@ import type { FormInstance } from 'antd/es/form/Form';
3
3
  import type { ButtonProps, FormListFieldData, FormListOperation, PopconfirmProps } from 'antd';
4
4
  import type { InternalNamePath } from 'antd/es/form/interface';
5
5
  import type { levelType } from '../../../../ProLayout/components/ProCollapse/PropTypes';
6
- import type { ProColumnType, ProFormOtherType } from '../../../propsType';
6
+ import type { ProFormColumnType, ProFormOtherType } from '../../../propsType';
7
7
  export type TitleRender = (record: Record<string, any>, index: number, form: FormInstance) => any;
8
8
  export type TitleType = string | React.ReactNode | TitleRender;
9
9
  type Callback = (record: any, option: Pick<Option, 'namePath' | 'index' | 'operation' | 'form'>) => any | void;
@@ -32,7 +32,7 @@ export interface ToolbarActionType extends Omit<ActionType, 'actionType' | 'onHa
32
32
  }
33
33
  export type FormListMode = 'block' | 'line' | 'less';
34
34
  export interface FormListType {
35
- columns: ProColumnType[];
35
+ columns: ProFormColumnType[];
36
36
  otherProps?: ProFormOtherType;
37
37
  form?: FormInstance;
38
38
  min?: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GroupType } from './propsType';
2
+ import type { GroupType } from './propsType';
3
3
  /**
4
4
  * 1. 外层过滤FormItem相关属性, 但是子元素上的 required [disabled] [show] rules [fieldProps] [component] 需要取到并
5
5
  * 2.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { FormItemProps, ModalFuncProps, SpaceProps } from 'antd';
3
3
  import { FormInstance } from 'antd/es/form/Form';
4
4
  import { NamePath } from 'antd/lib/form/interface';
5
- import { ColumnTypeMap, FunctionArgs, ProFormValueType, ReactiveFunction, ViewType } from '../../../propsType';
5
+ import type { ColumnTypeMap, FunctionArgs, ProFormValueType, ReactiveFunction, ViewType } from '../../render/propsType';
6
6
  export interface SpaceType extends SpaceProps {
7
7
  /**
8
8
  * 是否紧凑合并
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
3
3
  import { FormInstance } from 'antd';
4
- import { GroupColumnType, GroupType, SpaceType } from './propsType';
5
- import { ProFormColumnProps, ReactiveFunction } from '../../render/propsType';
4
+ import type { GroupColumnType, GroupType, SpaceType } from './propsType';
5
+ import type { ProFormColumnType, ReactiveFunction } from '../../render/propsType';
6
6
  export type EventArgs = any[];
7
7
  /**
8
8
  * 插入间隔符
@@ -41,7 +41,7 @@ export declare const getReactiveProps: (params: Params) => {
41
41
  fieldProps: boolean;
42
42
  desensitization: [number, number];
43
43
  };
44
- type ValueTypeGetterParams = Pick<ProFormColumnProps, 'valueType' | 'switchValue' | 'toISOString' | 'toCSTString' | 'disabled' | 'desensitization'> & {
44
+ type ValueTypeGetterParams = Pick<ProFormColumnType, 'valueType' | 'switchValue' | 'toISOString' | 'toCSTString' | 'disabled' | 'desensitization'> & {
45
45
  type?: any;
46
46
  mode?: string;
47
47
  desensitizationKey?: string;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { ProCascaderType } from './propsType';
2
+ import type { ProCascaderType } from './propsType';
3
3
  declare const _default: import("react").MemoExoticComponent<(props: ProCascaderType) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { ProCombinationType, ChildPropsItemType } from './propsType';
2
+ import type { ProCombinationType, ChildPropsItemType } from './propsType';
3
3
  import './style/index.less';
4
4
  export declare const ProCombination: FC<ProCombinationType>;
5
5
  export declare const childPropsItemProps: FC<ChildPropsItemType>;
@@ -2,7 +2,7 @@ import { FieldNames } from 'rc-select/lib/Select';
2
2
  import { FormInstance } from 'antd';
3
3
  import React from 'react';
4
4
  import * as componentMap from '../../index';
5
- import { ProFormOtherType } from '../../../propsType';
5
+ import type { ProFormOtherType } from '../../../propsType';
6
6
  export interface ChildPropsItemType {
7
7
  /**
8
8
  * @description 要显示什么组件,支持Input/Select
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProModalSelectType } from './propsType';
2
+ import type { ProModalSelectType } from './propsType';
3
3
  declare const _default: React.ForwardRefExoticComponent<Omit<ProModalSelectType, "ref"> & React.RefAttributes<unknown>>;
4
4
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { FormInstance, InputProps, SelectProps, ModalProps } from 'antd';
2
2
  import { Service, Options } from 'ahooks/lib/useRequest/src/types';
3
3
  import React from 'react';
4
- import { ProColumnType } from '../../render/propsType';
5
- import { ProFormOtherType } from '../../../propsType';
4
+ import type { ProFormColumnType } from '../../render/propsType';
5
+ import type { ProFormOtherType } from '../../../propsType';
6
6
  /**
7
7
  * 模态框确认按钮回调函数类型
8
8
  * @param list 选中的数据列表
@@ -27,7 +27,7 @@ interface ConfigOption {
27
27
  initParams?: any;
28
28
  };
29
29
  /** 表单列配置项 */
30
- formColumns?: ProColumnType[];
30
+ formColumns?: ProFormColumnType[];
31
31
  /** 选择模式:单选(radio)或多选(checkbox) */
32
32
  type?: 'radio' | 'checkbox';
33
33
  /** 是否开启分页功能 */
@@ -92,10 +92,10 @@ interface ProModalPropsType {
92
92
  /** 模态框选择器属性类型(结合Select和Input属性) */
93
93
  export declare type ProModalSelectPropsType = SelectProps & InputProps & ProModalPropsType;
94
94
  /** 配置选项类型 */
95
- export type ConfigOptionType = ConfigOption;
95
+ export type ProModalSelectConfigType = ConfigOption;
96
96
  /** 模态框属性类型 */
97
97
  export type ProModalType = Omit<ProModalPropsType, 'configOption'> & {
98
- configOption: ConfigOptionType;
98
+ configOption: ProModalSelectConfigType;
99
99
  };
100
100
  /** 模态框选择器类型(结合Select和Input属性) */
101
101
  export type ProModalSelectType = SelectProps & InputProps & ProModalType;
@@ -1,3 +1,3 @@
1
- import { ProNumberRangeProps } from './propsType';
2
- declare const ProNumberRange: (props: ProNumberRangeProps) => any;
1
+ import type { ProNumberRangeType } from './propsType';
2
+ declare const ProNumberRange: (props: ProNumberRangeType) => any;
3
3
  export default ProNumberRange;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ProFormOtherType } from '../../../propsType';
2
+ import type { ProFormOtherType } from '../../../propsType';
3
3
  export interface ProNumberRangeType {
4
4
  /**
5
5
  * @description 组件的值,[最小值,最大值]
@@ -2,9 +2,9 @@ import { DatePickerProps, TimePickerProps } from 'antd';
2
2
  import { PickerPanelDateProps } from 'antd/lib/calendar/generateCalendar';
3
3
  import { Moment } from 'moment';
4
4
  import React from 'react';
5
- import { ProFormOtherType } from '../../../propsType';
5
+ import type { ProFormOtherType } from '../../../propsType';
6
6
  import { Props as ProRangeLimitType } from '../ProRangeLimit';
7
- import { DistributiveOmit } from '../../../../ProForm/propsType';
7
+ import type { DistributiveOmit } from '../../../../ProForm/propsType';
8
8
  export type DateType = DatePickerProps['value'];
9
9
  export type ProTimeLimitType = DistributiveOmit<DatePickerProps, 'value' | 'onChange' | 'mode'> & {
10
10
  value?: string;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { IProps } from './interface';
2
+ import type { IProps } from './interface';
3
3
  declare const EnumSelect: FC<IProps>;
4
4
  export default EnumSelect;
@@ -1,6 +1,6 @@
1
1
  import { InputProps, ModalProps } from 'antd';
2
2
  import React from 'react';
3
- import { ProColumnProps } from '../../render/propsType';
3
+ import type { ProFormColumnType } from '../../render/propsType';
4
4
  type RequestFunction<P = Record<string, any> | void, R = any> = (params: P, ...args: any[]) => Promise<R>;
5
5
  type OnOkFunction = (list: Record<string, any>[]) => boolean;
6
6
  interface IConfigOption {
@@ -8,7 +8,7 @@ interface IConfigOption {
8
8
  fetchOptions: RequestFunction;
9
9
  useRequestOptions: object;
10
10
  conditionKey: string;
11
- conditionColumns: ProColumnProps[];
11
+ conditionColumns: ProFormColumnType[];
12
12
  defaultParams: Record<string, any>;
13
13
  withPagination: boolean;
14
14
  paginationPosition: 'tableBottom' | 'modalBottom';
@@ -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';
@@ -3,20 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- otherKeys: true
8
- };
9
6
  exports.otherKeys = void 0;
10
- var _propsType = require("./components/render/propsType");
11
- Object.keys(_propsType).forEach(function (key) {
12
- if (key === "default" || key === "__esModule") return;
13
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
14
- if (key in exports && exports[key] === _propsType[key]) return;
15
- Object.defineProperty(exports, key, {
16
- enumerable: true,
17
- get: function get() {
18
- return _propsType[key];
19
- }
20
- });
21
- });
22
7
  var otherKeys = exports.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
  };
@@ -172,9 +172,5 @@ export interface ProIconType {
172
172
  */
173
173
  buttonIcon?: boolean;
174
174
  }
175
- export type ModeType = ProIconModeType;
176
175
  export type ProIconProps = ProIconType;
177
- export type iconMap = ProIconMapType;
178
- export type themeMap = ProIconThemeMapType;
179
- export type actionMap = ProIconActionMapType;
180
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;
@@ -14,7 +14,8 @@ var _reactLazyload = _interopRequireWildcard(require("react-lazyload"));
14
14
  var _lodash = require("lodash");
15
15
  var _index = require("../../index");
16
16
  var _ProCollapse = _interopRequireDefault(require("../../../ProLayout/components/ProCollapse"));
17
- var _excluded = ["id", "title", "collapse", "children", "lazyLoad"];
17
+ var _excluded = ["id", "title", "collapse", "children", "lazyLoad", "order"];
18
+ // 默认的懒加载配置
18
19
  var defaultLazyLoadConfig = {
19
20
  height: 200,
20
21
  offset: 100,
@@ -27,6 +28,8 @@ var ProStepItem = function ProStepItem(_ref) {
27
28
  collapseItem = _ref$collapse === void 0 ? true : _ref$collapse,
28
29
  children = _ref.children,
29
30
  stepLazyLoad = _ref.lazyLoad,
31
+ _ref$order = _ref.order,
32
+ order = _ref$order === void 0 ? 0 : _ref$order,
30
33
  restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
31
34
  var _useStep = (0, _index.useStep)(),
32
35
  register = _useStep.register,
@@ -39,13 +42,14 @@ var ProStepItem = function ProStepItem(_ref) {
39
42
  register === null || register === void 0 ? void 0 : register((0, _objectSpread2.default)({
40
43
  id: id,
41
44
  title: title,
45
+ order: order,
42
46
  lazyLoad: lazyLoad
43
47
  }, restProps));
44
48
  }, 0);
45
49
  return function () {
46
50
  clearTimeout(timeoutId);
47
51
  };
48
- }, [id, title, lazyLoad, restProps, register]);
52
+ }, [id, title, order, lazyLoad, restProps, register]);
49
53
  var renderChildren = function renderChildren() {
50
54
  if (lazyLoad) {
51
55
  var lazyLoadProps = (0, _lodash.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;