@zat-design/sisyphus-react 3.11.13 → 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 (261) hide show
  1. package/coverage/lcov-report/src/.umi/core/history.ts.html +148 -0
  2. package/coverage/lcov-report/src/.umi/core/index.html +146 -0
  3. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
  4. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
  5. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
  6. package/coverage/src/.umi/core/history.ts.html +148 -0
  7. package/coverage/src/.umi/core/index.html +146 -0
  8. package/coverage/src/.umi/core/plugin.ts.html +109 -0
  9. package/coverage/src/.umi/core/pluginRegister.ts.html +160 -0
  10. package/coverage/src/.umi/core/polyfill.ts.html +97 -0
  11. package/dist/index.esm.css +33 -19
  12. package/dist/less.esm.css +33 -19
  13. package/es/ProAction/index.d.ts +2 -2
  14. package/es/ProAction/propsType.d.ts +16 -10
  15. package/es/ProConfigProvider/index.d.ts +6 -6
  16. package/es/ProDownload/index.d.ts +2 -2
  17. package/es/ProDownload/propsType.d.ts +2 -1
  18. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  19. package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  20. package/es/ProDrawerForm/index.d.ts +1 -2
  21. package/es/ProDrawerForm/propsType.d.ts +38 -27
  22. package/es/ProDrawerForm/utils/index.d.ts +2 -2
  23. package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
  24. package/es/ProEditLabel/index.d.ts +2 -2
  25. package/es/ProEditLabel/propsType.d.ts +135 -8
  26. package/es/ProEditLabel/style/index.less +24 -25
  27. package/es/ProEditTable/components/ActionButton/index.js +2 -2
  28. package/es/ProEditTable/components/RenderField/index.js +4 -4
  29. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  30. package/es/ProEditTable/index.d.ts +2 -2
  31. package/es/ProEditTable/index.js +6 -8
  32. package/es/ProEditTable/propsType.d.ts +232 -93
  33. package/es/ProEditTable/style/index.less +1 -0
  34. package/es/ProEditTable/utils/config.js +10 -10
  35. package/es/ProEditTable/utils/index.js +3 -3
  36. package/es/ProEnum/components/Group.d.ts +2 -2
  37. package/es/ProEnum/components/Tag.d.ts +2 -2
  38. package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  39. package/es/ProEnum/index.d.ts +2 -2
  40. package/es/ProEnum/propsType.d.ts +230 -41
  41. package/es/ProEnum/propsType.js +0 -6
  42. package/es/ProEnum/utils/index.d.ts +1 -1
  43. package/es/ProForm/components/FormFooter/index.d.ts +2 -2
  44. package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
  45. package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
  46. package/es/ProForm/components/base/Input/index.d.ts +2 -2
  47. package/es/ProForm/components/base/Input/propsType.d.ts +8 -4
  48. package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
  49. package/es/ProForm/components/base/Radio/index.d.ts +2 -2
  50. package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
  51. package/es/ProForm/components/base/Select/index.d.ts +2 -2
  52. package/es/ProForm/components/base/Switch/index.d.ts +2 -2
  53. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  54. package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
  55. package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
  56. package/es/ProForm/components/combination/Container/index.d.ts +2 -2
  57. package/es/ProForm/components/combination/Container/propsType.d.ts +9 -5
  58. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  59. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  60. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  61. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  62. package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
  63. package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  64. package/es/ProForm/components/combination/Group/index.d.ts +2 -2
  65. package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
  66. package/es/ProForm/components/combination/Group/utils.d.ts +4 -4
  67. package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -2
  68. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
  69. package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  70. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  71. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  72. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
  73. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  74. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
  75. package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  76. package/es/ProForm/components/render/Render.d.ts +2 -2
  77. package/es/ProForm/components/render/RenderFields.d.ts +4 -4
  78. package/es/ProForm/components/render/propsType.d.ts +54 -43
  79. package/es/ProForm/index.d.ts +2 -2
  80. package/es/ProForm/propsType.d.ts +22 -15
  81. package/es/ProForm/utils/transformValue.d.ts +2 -2
  82. package/es/ProForm/utils/useFieldProps.d.ts +3 -3
  83. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  84. package/es/ProIcon/index.d.ts +2 -2
  85. package/es/ProIcon/propsTypes.d.ts +124 -49
  86. package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
  87. package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  88. package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  89. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  90. package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
  91. package/es/ProLayout/components/ProCollapse/index.js +12 -4
  92. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  93. package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
  94. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
  95. package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
  96. package/es/ProLayout/index.d.ts +5 -5
  97. package/es/ProLayout/index.js +6 -2
  98. package/es/ProLayout/propTypes.d.ts +182 -25
  99. package/es/ProLayout/utils/index.d.ts +2 -2
  100. package/es/ProSelect/index.d.ts +3 -3
  101. package/es/ProSelect/propsType.d.ts +141 -31
  102. package/es/ProStep/components/Item/index.d.ts +2 -2
  103. package/es/ProStep/components/Step/index.d.ts +2 -2
  104. package/es/ProStep/index.d.ts +2 -2
  105. package/es/ProStep/index.js +12 -1
  106. package/es/ProStep/propsType.d.ts +60 -12
  107. package/es/ProStep/utils/index.d.ts +2 -2
  108. package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
  109. package/es/ProTable/components/FormatColumn/index.js +2 -2
  110. package/es/ProTable/hooks/useAntdTable.d.ts +2 -2
  111. package/es/ProTable/index.d.ts +2 -2
  112. package/es/ProTable/propsType.d.ts +590 -39
  113. package/es/ProTable/style/index.less +12 -5
  114. package/es/ProTabs/index.d.ts +2 -2
  115. package/es/ProTabs/index.js +4 -4
  116. package/es/ProTabs/propType.d.ts +66 -9
  117. package/es/ProThemeTools/index.d.ts +2 -2
  118. package/es/ProThemeTools/propsType.d.ts +136 -14
  119. package/es/ProTooltip/index.d.ts +2 -2
  120. package/es/ProTooltip/propsType.d.ts +52 -9
  121. package/es/ProTree/components/ProTreeSelect/index.js +3 -6
  122. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
  123. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  124. package/es/ProTree/propsType.d.ts +651 -62
  125. package/es/ProTreeModal/propsType.d.ts +2 -2
  126. package/es/ProUpload/components/ButtonRender.d.ts +2 -2
  127. package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  128. package/es/ProUpload/components/Example.d.ts +2 -2
  129. package/es/ProUpload/components/ImageRender.d.ts +2 -2
  130. package/es/ProUpload/index.d.ts +2 -2
  131. package/es/ProUpload/index.js +7 -9
  132. package/es/ProUpload/propsType.d.ts +65 -8
  133. package/es/ProWaterMark/index.d.ts +2 -2
  134. package/es/ProWaterMark/propsType.d.ts +2 -1
  135. package/es/index.d.ts +1 -0
  136. package/es/index.js +1 -0
  137. package/lib/ProAction/index.d.ts +2 -2
  138. package/lib/ProAction/propsType.d.ts +16 -10
  139. package/lib/ProConfigProvider/index.d.ts +6 -6
  140. package/lib/ProDownload/index.d.ts +2 -2
  141. package/lib/ProDownload/propsType.d.ts +2 -1
  142. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  143. package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  144. package/lib/ProDrawerForm/index.d.ts +1 -2
  145. package/lib/ProDrawerForm/propsType.d.ts +38 -27
  146. package/lib/ProDrawerForm/utils/index.d.ts +2 -2
  147. package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
  148. package/lib/ProEditLabel/index.d.ts +2 -2
  149. package/lib/ProEditLabel/propsType.d.ts +135 -8
  150. package/lib/ProEditLabel/style/index.less +24 -25
  151. package/lib/ProEditTable/components/ActionButton/index.js +2 -2
  152. package/lib/ProEditTable/components/RenderField/index.js +4 -4
  153. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  154. package/lib/ProEditTable/index.d.ts +2 -2
  155. package/lib/ProEditTable/index.js +6 -8
  156. package/lib/ProEditTable/propsType.d.ts +232 -93
  157. package/lib/ProEditTable/style/index.less +1 -0
  158. package/lib/ProEditTable/utils/config.js +10 -10
  159. package/lib/ProEditTable/utils/index.js +3 -3
  160. package/lib/ProEnum/components/Group.d.ts +2 -2
  161. package/lib/ProEnum/components/Tag.d.ts +2 -2
  162. package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  163. package/lib/ProEnum/index.d.ts +2 -2
  164. package/lib/ProEnum/propsType.d.ts +230 -41
  165. package/lib/ProEnum/propsType.js +1 -7
  166. package/lib/ProEnum/utils/index.d.ts +1 -1
  167. package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
  168. package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
  169. package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
  170. package/lib/ProForm/components/base/Input/index.d.ts +2 -2
  171. package/lib/ProForm/components/base/Input/propsType.d.ts +8 -4
  172. package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
  173. package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
  174. package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
  175. package/lib/ProForm/components/base/Select/index.d.ts +2 -2
  176. package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
  177. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  178. package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
  179. package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
  180. package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
  181. package/lib/ProForm/components/combination/Container/propsType.d.ts +9 -5
  182. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  183. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  184. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  185. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  186. package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
  187. package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  188. package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
  189. package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
  190. package/lib/ProForm/components/combination/Group/utils.d.ts +4 -4
  191. package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -2
  192. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +8 -3
  193. package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  194. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  195. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  196. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +58 -5
  197. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  198. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
  199. package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  200. package/lib/ProForm/components/render/Render.d.ts +2 -2
  201. package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
  202. package/lib/ProForm/components/render/propsType.d.ts +54 -43
  203. package/lib/ProForm/index.d.ts +2 -2
  204. package/lib/ProForm/propsType.d.ts +22 -15
  205. package/lib/ProForm/utils/transformValue.d.ts +2 -2
  206. package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
  207. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  208. package/lib/ProIcon/index.d.ts +2 -2
  209. package/lib/ProIcon/propsTypes.d.ts +124 -49
  210. package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
  211. package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  212. package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  213. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  214. package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
  215. package/lib/ProLayout/components/ProCollapse/index.js +12 -4
  216. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  217. package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
  218. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +121 -14
  219. package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
  220. package/lib/ProLayout/index.d.ts +5 -5
  221. package/lib/ProLayout/index.js +6 -2
  222. package/lib/ProLayout/propTypes.d.ts +182 -25
  223. package/lib/ProLayout/utils/index.d.ts +2 -2
  224. package/lib/ProSelect/index.d.ts +3 -3
  225. package/lib/ProSelect/propsType.d.ts +141 -31
  226. package/lib/ProStep/components/Item/index.d.ts +2 -2
  227. package/lib/ProStep/components/Step/index.d.ts +2 -2
  228. package/lib/ProStep/index.d.ts +2 -2
  229. package/lib/ProStep/index.js +12 -1
  230. package/lib/ProStep/propsType.d.ts +60 -12
  231. package/lib/ProStep/utils/index.d.ts +2 -2
  232. package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
  233. package/lib/ProTable/components/FormatColumn/index.js +2 -2
  234. package/lib/ProTable/hooks/useAntdTable.d.ts +2 -2
  235. package/lib/ProTable/index.d.ts +2 -2
  236. package/lib/ProTable/propsType.d.ts +590 -39
  237. package/lib/ProTable/style/index.less +12 -5
  238. package/lib/ProTabs/index.d.ts +2 -2
  239. package/lib/ProTabs/index.js +4 -4
  240. package/lib/ProTabs/propType.d.ts +66 -9
  241. package/lib/ProThemeTools/index.d.ts +2 -2
  242. package/lib/ProThemeTools/propsType.d.ts +136 -14
  243. package/lib/ProTooltip/index.d.ts +2 -2
  244. package/lib/ProTooltip/propsType.d.ts +52 -9
  245. package/lib/ProTree/components/ProTreeSelect/index.js +3 -6
  246. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
  247. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  248. package/lib/ProTree/propsType.d.ts +651 -62
  249. package/lib/ProTreeModal/propsType.d.ts +2 -2
  250. package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
  251. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  252. package/lib/ProUpload/components/Example.d.ts +2 -2
  253. package/lib/ProUpload/components/ImageRender.d.ts +2 -2
  254. package/lib/ProUpload/index.d.ts +2 -2
  255. package/lib/ProUpload/index.js +7 -9
  256. package/lib/ProUpload/propsType.d.ts +65 -8
  257. package/lib/ProWaterMark/index.d.ts +2 -2
  258. package/lib/ProWaterMark/propsType.d.ts +2 -1
  259. package/lib/index.d.ts +1 -0
  260. package/lib/index.js +12 -0
  261. package/package.json +1 -1
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { FormInstance } from 'antd/es/form/Form';
3
- import { ProDrawerFormPropsType } from './propsType';
4
- declare const ProDrawerForm: React.ForwardRefExoticComponent<ProDrawerFormPropsType & React.RefAttributes<FormInstance<any>>>;
3
+ declare const ProDrawerForm: React.ForwardRefExoticComponent<import("./propsType").ProDrawerFormPropsType & React.RefAttributes<FormInstance<any>>>;
5
4
  export default ProDrawerForm;
@@ -1,17 +1,26 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import type { ModalProps, DrawerProps, FormInstance } from 'antd';
3
- import { ProFormProps } from '../ProForm/propsType';
3
+ import { ProFormType } from '../ProForm/propsType';
4
+ /**
5
+ * 抽屉尺寸类型定义
6
+ */
4
7
  export type DrawerSizePropsType = 'small' | 'middle' | 'large';
8
+ export type DrawerSizeType = DrawerSizePropsType;
9
+ /**
10
+ * 显示类型定义
11
+ */
5
12
  export type ShowTypePropsType = 'Modal' | 'Drawer';
6
- export interface ProDrawerFormRef {
7
- form: FormInstance<any>;
8
- }
13
+ export type ShowType = ShowTypePropsType;
14
+ /**
15
+ * 为了保持向后兼容,保留原有接口名称
16
+ * @deprecated ProDrawerFormType
17
+ */
9
18
  export interface ProDrawerFormPropsType {
10
- /** @name 内部form */
19
+ /** @name 内部form实例 */
11
20
  form?: FormInstance<any>;
12
21
  /** @name 自定义className */
13
22
  className?: string;
14
- /** @name 控制显示隐藏 */
23
+ /** @name 控制显示隐藏(兼容旧版API) */
15
24
  visible?: ModalProps['open'] | DrawerProps['open'];
16
25
  /** @name 控制显示隐藏 */
17
26
  open: ModalProps['open'] | DrawerProps['open'];
@@ -25,30 +34,22 @@ export interface ProDrawerFormPropsType {
25
34
  isView?: boolean | undefined;
26
35
  /** @name 宽度 */
27
36
  width?: ModalProps['width'] | DrawerProps['width'];
28
- /**
29
- * @name 取消按钮文字
30
- */
37
+ /** @name 取消按钮文字 */
31
38
  cancelText?: ModalProps['cancelText'];
32
- /**
33
- * @name 确认按钮文字
34
- */
39
+ /** @name 确认按钮文字 */
35
40
  okText?: ModalProps['okText'];
36
- /**
37
- * @name 确认按钮loading
38
- */
41
+ /** @name 确认按钮loading状态 */
39
42
  okLoading?: boolean;
40
- /**
41
- * @name 确认按钮disabled
42
- */
43
+ /** @name 确认按钮禁用状态 */
43
44
  okDisabled?: boolean;
44
45
  /** @name 显示方式 (废弃) */
45
- showType?: ShowTypePropsType;
46
+ showType?: ShowType;
46
47
  /** @name 显示方式 */
47
- mode?: ShowTypePropsType;
48
+ mode?: ShowType;
48
49
  /** @name 尺寸 */
49
- size?: DrawerSizePropsType;
50
+ size?: DrawerSizeType;
50
51
  /**
51
- * @name自动选中第一项
52
+ * @name 自动选中第一项
52
53
  * @description 只对有input的类型有效
53
54
  */
54
55
  autoFocusFirstInput?: boolean;
@@ -64,10 +65,14 @@ export interface ProDrawerFormPropsType {
64
65
  isConfirmCloseModalProps?: ModalProps;
65
66
  /**
66
67
  * @name 底部默认取消按钮事件
68
+ * @returns 返回Promise或布尔值可控制弹窗关闭行为
67
69
  */
68
70
  onCancel?: () => Promise<boolean | void | unknown> | boolean | void | unknown;
69
71
  /**
70
72
  * @name 底部默认确定按钮事件
73
+ * @param values 表单值
74
+ * @param form 表单实例
75
+ * @returns 返回Promise或布尔值可控制弹窗关闭行为
71
76
  */
72
77
  onOk?: (values?: any, form?: FormInstance) => Promise<boolean | void | unknown> | boolean | void | unknown;
73
78
  /**
@@ -79,24 +84,30 @@ export interface ProDrawerFormPropsType {
79
84
  */
80
85
  extraLeft?: ReactNode;
81
86
  /**
82
- * @name proForm的属性 配置后children不展示
87
+ * @name proForm的属性
88
+ * @description 配置后children不展示
83
89
  */
84
- proFormProps?: Omit<ProFormProps, 'form'>;
90
+ proFormProps?: Omit<ProFormType, 'form'>;
85
91
  /**
86
- * 不支持 'visible',请使用全局的 visible
87
92
  * @name 弹框的属性
93
+ * @description 不支持'visible',请使用全局的visible/open
88
94
  */
89
95
  modalProps?: Omit<ModalProps, 'visible'>;
90
96
  /**
91
- * 不支持 'visible',请使用全局的 visible
92
97
  * @name 抽屉的属性
98
+ * @description 不支持'visible',请使用全局的visible/open
93
99
  */
94
100
  drawerProps?: Omit<DrawerProps, 'visible'>;
95
101
  /**
96
- * 不支持 'visible',请使用全局的 visible
97
102
  * @name 关闭时弹框或者抽屉是否清空formValues
98
103
  */
99
104
  onCloseClean?: boolean;
105
+ /** @name 子组件 */
100
106
  children?: React.ReactNode;
107
+ /** @name z轴层级 */
101
108
  zIndex?: number;
102
109
  }
110
+ /**
111
+ * 抽屉表单属性类型定义
112
+ */
113
+ export type ProDrawerFormType = ProDrawerFormPropsType;
@@ -1,6 +1,6 @@
1
- import { DrawerSizePropsType } from '../propsType';
1
+ import { DrawerSizeType } from '../propsType';
2
2
  /**
3
3
  * 将枚举值转成数值px,暴露枚举,隐藏真实数值,暂时不让用户自定义
4
4
  * @param size 设计规范的三个尺寸 460 960 1200 对应 'small' | 'middle' | 'large'
5
5
  */
6
- export declare const transformBySize: (size: DrawerSizePropsType) => number;
6
+ export declare const transformBySize: (size: DrawerSizeType) => number;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import type { PopupProps } from '../propsType';
3
- declare const RenderProForm: FC<PopupProps>;
2
+ import type { PopupType } from '../propsType';
3
+ declare const RenderProForm: FC<PopupType>;
4
4
  export default RenderProForm;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { ContainerProps, LabelProps, PopupConfirmProps } from './propsType';
3
- declare const ProEditLabel: FC<LabelProps & PopupConfirmProps & ContainerProps>;
2
+ import type { ContainerType, LabelType, ProEditLabelType } from './propsType';
3
+ declare const ProEditLabel: FC<LabelType & ProEditLabelType & ContainerType>;
4
4
  export default ProEditLabel;
@@ -2,45 +2,172 @@ import { InputProps } from 'antd/es/input';
2
2
  import { PopconfirmProps } from 'antd/es/popconfirm';
3
3
  import { FormInstance } from 'antd/es/form';
4
4
  import React from 'react';
5
- import { ProColumnProps } from '../index';
6
- export interface ContainerProps {
5
+ import { ProColumnType } from '../index';
6
+ export interface ContainerType {
7
+ /**
8
+ * @description 触发方式
9
+ * @default "click"
10
+ */
7
11
  trigger?: 'click' | 'hover';
12
+ /**
13
+ * @description 尺寸
14
+ * @default "middle"
15
+ */
8
16
  size?: 'small' | 'middle' | 'large';
17
+ /**
18
+ * @description 显示模式
19
+ * @default "popup"
20
+ */
9
21
  mode?: 'popup' | 'current';
22
+ /**
23
+ * @description 类型
24
+ * @default "input"
25
+ */
10
26
  type?: 'input' | 'select';
11
27
  }
12
- export interface StateProps {
28
+ export interface StateType {
29
+ /**
30
+ * @description 弹出值
31
+ * @default ""
32
+ */
13
33
  popValue?: string;
34
+ /**
35
+ * @description 确认值
36
+ * @default ""
37
+ */
14
38
  confirmValue?: string;
15
39
  }
16
- export interface PopupProps {
40
+ export interface PopupType {
41
+ /**
42
+ * @description 类型
43
+ * @default -
44
+ */
17
45
  type?: string;
46
+ /**
47
+ * @description 标签
48
+ * @default -
49
+ */
18
50
  label?: string | React.ReactNode;
51
+ /**
52
+ * @description 标题
53
+ * @default -
54
+ */
19
55
  title?: string | React.ReactNode;
56
+ /**
57
+ * @description 提示
58
+ * @default -
59
+ */
20
60
  tip?: string | React.ReactNode;
61
+ /**
62
+ * @description 是否去除空格
63
+ * @default false
64
+ */
21
65
  trim?: boolean;
66
+ /**
67
+ * @description 标签宽度
68
+ * @default -
69
+ */
22
70
  labelWidth?: string | number;
71
+ /**
72
+ * @description 字段属性
73
+ * @default -
74
+ */
23
75
  fieldProps?: any;
24
- columns?: ProColumnProps;
76
+ /**
77
+ * @description 列配置
78
+ * @default -
79
+ */
80
+ columns?: ProColumnType;
81
+ /**
82
+ * @description 允许扩展字段
83
+ */
25
84
  [key: string]: any;
26
85
  }
27
- export interface LabelProps extends InputProps {
86
+ export interface LabelType extends InputProps {
87
+ /**
88
+ * @description 是否可见
89
+ * @default false
90
+ */
28
91
  visible?: boolean;
92
+ /**
93
+ * @description 是否打开
94
+ * @default false
95
+ */
29
96
  open?: boolean;
97
+ /**
98
+ * @description 可见性变化回调
99
+ * @default -
100
+ */
30
101
  onVisibleChange?: (open: boolean) => void;
102
+ /**
103
+ * @description 值变化回调
104
+ * @default -
105
+ */
31
106
  onChange?: (value: React.ChangeEvent<HTMLInputElement>) => void;
107
+ /**
108
+ * @description 是否可编辑
109
+ * @default false
110
+ */
32
111
  editable?: boolean;
112
+ /**
113
+ * @description 编辑回调
114
+ * @default -
115
+ */
33
116
  onEdit?: () => void;
34
117
  }
35
- export interface PopupConfirmProps extends Partial<PopconfirmProps> {
36
- popupProps?: PopupProps;
118
+ export interface ProEditLabelType extends Partial<PopconfirmProps> {
119
+ /**
120
+ * @description 弹出属性
121
+ * @default -
122
+ */
123
+ popupProps?: PopupType;
124
+ /**
125
+ * @description 空值显示
126
+ * @default "-"
127
+ */
37
128
  viewEmpty?: '-';
129
+ /**
130
+ * @description 确认回调
131
+ * @default -
132
+ */
38
133
  onConfirm?: (e?: any) => void;
134
+ /**
135
+ * @description 完成回调
136
+ * @default -
137
+ */
39
138
  onFinish?: (e?: any) => void;
139
+ /**
140
+ * @description 打开状态变化回调
141
+ * @default -
142
+ */
40
143
  onOpenChange?: (e?: any) => void;
144
+ /**
145
+ * @description 触发方式
146
+ * @default "click"
147
+ */
41
148
  trigger?: 'click' | 'hover';
149
+ /**
150
+ * @description 值
151
+ * @default -
152
+ */
42
153
  value?: any;
154
+ /**
155
+ * @description 表单实例
156
+ * @default -
157
+ */
43
158
  form?: FormInstance;
159
+ /**
160
+ * @description 是否禁用
161
+ * @default false
162
+ */
44
163
  disabled?: boolean;
164
+ /**
165
+ * @description 允许扩展字段
166
+ */
45
167
  [key: string]: any;
46
168
  }
169
+ export type ContainerProps = ContainerType;
170
+ export type StateProps = StateType;
171
+ export type PopupProps = PopupType;
172
+ export type LabelProps = LabelType;
173
+ export type PopupConfirmProps = ProEditLabelType;
@@ -11,8 +11,8 @@
11
11
  }
12
12
 
13
13
  .pro-form-view-container {
14
+ display: inline-block;
14
15
  word-break: break-all;
15
- display : inline-block;
16
16
  }
17
17
 
18
18
  &.trigger-hover {
@@ -25,20 +25,19 @@
25
25
  display: block;
26
26
  }
27
27
  }
28
-
29
28
  }
30
29
 
31
30
  .anticon-edit {
32
- color : #D8D8D8;
33
- cursor : pointer;
34
31
  padding: var(--zaui-space-size-xs, 4px);
32
+ color: #d8d8d8;
33
+ cursor: pointer;
35
34
 
36
35
  &:hover {
37
- color: var(--zaui-brand, #006AFF);
36
+ color: var(--zaui-brand, #006aff);
38
37
  }
39
38
 
40
39
  &:active {
41
- background : #E3E8F0;
40
+ background: #e3e8f0;
42
41
  border-radius: var(--zaui-border-radius-card, 4px);
43
42
  }
44
43
  }
@@ -54,25 +53,27 @@
54
53
  &.pro-edit-label-large {
55
54
  height: 40px;
56
55
  }
57
-
58
56
  }
59
57
 
60
58
  .@{ant-prefix}-popover {
61
59
  .@{ant-prefix}-btn-sm {
62
- font-size : var(--zaui-font-size-sm, 12px);
63
- min-width : 56px;
60
+ min-width: 56px;
61
+ font-size: var(--zaui-font-size-sm, 12px);
64
62
  line-height: 1;
65
63
 
66
64
  span {
67
65
  letter-spacing: -1px;
68
66
  }
69
-
70
67
  }
71
68
  }
72
69
 
73
70
  .pro-edit-label-popconfirm {
74
71
  z-index: 1001 !important;
75
72
 
73
+ .@{ant-prefix}-popover-inner-content {
74
+ width: 100%;
75
+ }
76
+
76
77
  .@{ant-prefix}-popover-message {
77
78
  display: block;
78
79
  }
@@ -82,26 +83,26 @@
82
83
  }
83
84
 
84
85
  .@{ant-prefix}-popover-content {
85
- width : 360px;
86
+ width: 360px;
86
87
  max-width: 400px;
87
88
  }
88
89
 
89
90
  .pro-edit-label-title {
90
- font-size : var(--zaui-font-size-lg, 16px);
91
- font-weight : 500;
92
- color : var(--zaui-text, #343434);
93
91
  margin-bottom: calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size; 1));
92
+ color: var(--zaui-text, #343434);
93
+ font-weight: 500;
94
+ font-size: var(--zaui-font-size-lg, 16px);
94
95
  }
95
96
 
96
97
  .pro-edit-label-tip {
97
98
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
98
- color : #666;
99
+ color: #666;
99
100
 
100
101
  .anticon-info-circle {
101
- font-size : var(--zaui-font-size-lg, 16px);
102
+ margin-top: var(--zaui-space-size-xs, 4px);
102
103
  margin-right: var(--zaui-space-size-sm, 8px);
103
- color : var(--zaui-warning, #EC9131);
104
- margin-top : var(--zaui-space-size-xs, 4px);
104
+ color: var(--zaui-warning, #ec9131);
105
+ font-size: var(--zaui-font-size-lg, 16px);
105
106
  }
106
107
  }
107
108
 
@@ -119,18 +120,16 @@
119
120
  }
120
121
 
121
122
  .@{ant-prefix}-col-10 {
122
- flex : 0 0 var(--zaui-form-label-width, 130px);
123
- white-space : pre-wrap;
124
- line-height : 1;
125
- overflow : initial;
126
- box-sizing : border-box;
123
+ flex: 0 0 var(--zaui-form-label-width, 130px);
124
+ box-sizing: border-box;
127
125
  padding-right: var(--zaui-space-size-md, 16px);
126
+ overflow: initial;
127
+ line-height: 1;
128
+ white-space: pre-wrap;
128
129
  }
129
-
130
130
  }
131
131
 
132
132
  .@{ant-prefix}-select {
133
133
  width: 100%;
134
134
  }
135
-
136
135
  }
@@ -64,7 +64,7 @@ var ActionButton = function ActionButton(_ref) {
64
64
  mulDelete: mulDeletePoConfirmMsg
65
65
  };
66
66
  // 判断当前行是否正在编辑
67
- var isEditing = !virtualKey || btnConfig.isEditable === (editingKeys === null || editingKeys === void 0 ? void 0 : (_editingKeys$includes = editingKeys.includes) === null || _editingKeys$includes === void 0 ? void 0 : _editingKeys$includes.call(editingKeys, record === null || record === void 0 ? void 0 : record.rowKey));
67
+ var _isEditing = !virtualKey || btnConfig.isEditable === (editingKeys === null || editingKeys === void 0 ? void 0 : (_editingKeys$includes = editingKeys.includes) === null || _editingKeys$includes === void 0 ? void 0 : _editingKeys$includes.call(editingKeys, record === null || record === void 0 ? void 0 : record.rowKey));
68
68
  // 单行删除、多行删除按钮Props
69
69
  var delBtnProps = _objectSpread(_objectSpread({}, btnConfig.buttonProps), {}, {
70
70
  disabled: getDisabled((_btnConfig$buttonProp = (_btnConfig$buttonProp2 = btnConfig.buttonProps) === null || _btnConfig$buttonProp2 === void 0 ? void 0 : _btnConfig$buttonProp2.disabled) !== null && _btnConfig$buttonProp !== void 0 ? _btnConfig$buttonProp : !selectedRowKeys.length && btnConfig.type === 'mulDelete')
@@ -98,7 +98,7 @@ var ActionButton = function ActionButton(_ref) {
98
98
  });
99
99
  }
100
100
  var isDisabled = !selectedRowKeys.length && btnConfig.type === 'mulDelete' || editingKeys.length || (delBtnProps === null || delBtnProps === void 0 ? void 0 : delBtnProps.disabled);
101
- return isEditing && getShow(btnConfig.show) ? _jsx(_Fragment, {
101
+ return _isEditing && getShow(btnConfig.show) ? _jsx(_Fragment, {
102
102
  children: ['delete', 'mulDelete'].includes(btnConfig.type) ? _jsx(_Fragment, {
103
103
  children: (btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.needConfirm) ? _jsx(_Popconfirm, {
104
104
  placement: "topRight",
@@ -64,7 +64,7 @@ var RenderField = function RenderField(_ref) {
64
64
  var mode = config.mode,
65
65
  cellName = config.cellName,
66
66
  cellNamePath = config.cellNamePath,
67
- isEditing = config.isEditing,
67
+ _isEditing = config._isEditing,
68
68
  form = config.form,
69
69
  setState = config.setState,
70
70
  name = config.name,
@@ -139,7 +139,7 @@ var RenderField = function RenderField(_ref) {
139
139
  // }, 100);
140
140
  }
141
141
  // 是否只读文本
142
- var isView = !isEditable || (record === null || record === void 0 ? void 0 : record['is-view']) || config.isView || virtualKey && !isEditing || getDisabled({
142
+ var isView = !isEditable || (record === null || record === void 0 ? void 0 : record['is-view']) || config.isView || virtualKey && !_isEditing || getDisabled({
143
143
  globalControl: otherProps === null || otherProps === void 0 ? void 0 : otherProps.globalControl,
144
144
  formDisabled: otherProps === null || otherProps === void 0 ? void 0 : otherProps.formDisabled,
145
145
  column: column,
@@ -157,7 +157,7 @@ var RenderField = function RenderField(_ref) {
157
157
  label: label,
158
158
  labelRequired: labelRequired,
159
159
  required: !isView && _required,
160
- rules: isEditing ? _rules : [],
160
+ rules: _isEditing ? _rules : [],
161
161
  isSelect: isSelect({
162
162
  dataSource: (_fieldProps2 = _fieldProps) === null || _fieldProps2 === void 0 ? void 0 : _fieldProps2.dataSource,
163
163
  type: type
@@ -242,7 +242,7 @@ var RenderField = function RenderField(_ref) {
242
242
  var _componentMap$type;
243
243
  TargetComponent = (_componentMap$type = componentMap[type]) !== null && _componentMap$type !== void 0 ? _componentMap$type : _jsx(_Fragment, {});
244
244
  }
245
- if (isEditable && isEditing) {
245
+ if (isEditable && _isEditing) {
246
246
  if (typeof _editRender === 'function') {
247
247
  TargetComponent = _editRender.apply(void 0, rowParams);
248
248
  }
@@ -1,8 +1,8 @@
1
- import { SummaryColumnProps } from '../../propsType';
1
+ import { SummaryColumnType } from '../../propsType';
2
2
  interface SummaryProps<T = any> {
3
3
  data: T[];
4
4
  summary: {
5
- columns: SummaryColumnProps[];
5
+ columns: SummaryColumnType[];
6
6
  total?: boolean;
7
7
  fixed?: boolean | 'top' | 'bottom';
8
8
  };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProEditTableProps, ProEditTableRefProps } from './propsType';
3
- declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableProps<any>, "ref"> & React.RefAttributes<ProEditTableRefProps>>;
2
+ import { ProEditTableType } from './propsType';
3
+ declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableType<any>, "ref"> & React.RefAttributes<import("./propsType").ProEditTableRefProps>>;
4
4
  export default ForwardProEditTable;
@@ -189,14 +189,12 @@ var ProEditTable = function ProEditTable(_ref, ref) {
189
189
  recursive: true
190
190
  });
191
191
  case 7:
192
- if (current !== page.pageNum) {
193
- setState({
194
- page: {
195
- pageNum: current,
196
- pageSize: pageSize !== null && pageSize !== void 0 ? pageSize : page.pageSize
197
- }
198
- });
199
- }
192
+ setState({
193
+ page: {
194
+ pageNum: current,
195
+ pageSize: pageSize !== null && pageSize !== void 0 ? pageSize : page.pageSize
196
+ }
197
+ });
200
198
  case 8:
201
199
  _context.next = 13;
202
200
  break;