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

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 (140) hide show
  1. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  2. package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  3. package/es/ProDrawerForm/index.d.ts +1 -2
  4. package/es/ProDrawerForm/propsType.d.ts +38 -27
  5. package/es/ProDrawerForm/utils/index.d.ts +2 -2
  6. package/es/ProEditLabel/propsType.d.ts +2 -2
  7. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  8. package/es/ProEditTable/index.d.ts +2 -2
  9. package/es/ProEditTable/propsType.d.ts +232 -93
  10. package/es/ProEnum/propsType.d.ts +2 -2
  11. package/es/ProForm/components/FormFooter/index.d.ts +2 -2
  12. package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
  13. package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
  14. package/es/ProForm/components/base/Input/index.d.ts +2 -2
  15. package/es/ProForm/components/base/Input/propsType.d.ts +8 -4
  16. package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
  17. package/es/ProForm/components/base/Radio/index.d.ts +2 -2
  18. package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
  19. package/es/ProForm/components/base/Select/index.d.ts +2 -2
  20. package/es/ProForm/components/base/Switch/index.d.ts +2 -2
  21. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  22. package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
  23. package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
  24. package/es/ProForm/components/combination/Container/index.d.ts +2 -2
  25. package/es/ProForm/components/combination/Container/propsType.d.ts +9 -5
  26. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  27. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  28. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  29. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  30. package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
  31. package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  32. package/es/ProForm/components/combination/Group/index.d.ts +2 -2
  33. package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
  34. package/es/ProForm/components/combination/Group/utils.d.ts +4 -4
  35. package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -1
  36. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +6 -2
  37. package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  38. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  39. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  40. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +60 -8
  41. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  42. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
  43. package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  44. package/es/ProForm/components/render/Render.d.ts +2 -2
  45. package/es/ProForm/components/render/RenderFields.d.ts +4 -4
  46. package/es/ProForm/components/render/propsType.d.ts +54 -43
  47. package/es/ProForm/index.d.ts +2 -2
  48. package/es/ProForm/propsType.d.ts +22 -15
  49. package/es/ProForm/utils/transformValue.d.ts +2 -2
  50. package/es/ProForm/utils/useFieldProps.d.ts +3 -3
  51. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  52. package/es/ProSelect/propsType.d.ts +2 -2
  53. package/es/ProStep/components/Item/index.d.ts +2 -2
  54. package/es/ProStep/components/Step/index.d.ts +2 -2
  55. package/es/ProStep/index.d.ts +2 -2
  56. package/es/ProStep/index.js +12 -1
  57. package/es/ProStep/propsType.d.ts +60 -12
  58. package/es/ProStep/utils/index.d.ts +2 -2
  59. package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
  60. package/es/ProTable/hooks/useAntdTable.d.ts +2 -2
  61. package/es/ProTable/index.d.ts +2 -2
  62. package/es/ProTable/propsType.d.ts +590 -39
  63. package/es/ProTooltip/index.d.ts +2 -2
  64. package/es/ProTooltip/propsType.d.ts +52 -9
  65. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
  66. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  67. package/es/ProTree/propsType.d.ts +3 -3
  68. package/es/ProTreeModal/propsType.d.ts +2 -2
  69. package/es/ProUpload/propsType.d.ts +3 -3
  70. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  71. package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  72. package/lib/ProDrawerForm/index.d.ts +1 -2
  73. package/lib/ProDrawerForm/propsType.d.ts +38 -27
  74. package/lib/ProDrawerForm/utils/index.d.ts +2 -2
  75. package/lib/ProEditLabel/propsType.d.ts +2 -2
  76. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  77. package/lib/ProEditTable/index.d.ts +2 -2
  78. package/lib/ProEditTable/propsType.d.ts +232 -93
  79. package/lib/ProEnum/propsType.d.ts +2 -2
  80. package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
  81. package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
  82. package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
  83. package/lib/ProForm/components/base/Input/index.d.ts +2 -2
  84. package/lib/ProForm/components/base/Input/propsType.d.ts +8 -4
  85. package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
  86. package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
  87. package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
  88. package/lib/ProForm/components/base/Select/index.d.ts +2 -2
  89. package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
  90. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  91. package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
  92. package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
  93. package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
  94. package/lib/ProForm/components/combination/Container/propsType.d.ts +9 -5
  95. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  96. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  97. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  98. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  99. package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
  100. package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  101. package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
  102. package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
  103. package/lib/ProForm/components/combination/Group/utils.d.ts +4 -4
  104. package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -1
  105. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +6 -2
  106. package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  107. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  108. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  109. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +60 -8
  110. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  111. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
  112. package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  113. package/lib/ProForm/components/render/Render.d.ts +2 -2
  114. package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
  115. package/lib/ProForm/components/render/propsType.d.ts +54 -43
  116. package/lib/ProForm/index.d.ts +2 -2
  117. package/lib/ProForm/propsType.d.ts +22 -15
  118. package/lib/ProForm/utils/transformValue.d.ts +2 -2
  119. package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
  120. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  121. package/lib/ProSelect/propsType.d.ts +2 -2
  122. package/lib/ProStep/components/Item/index.d.ts +2 -2
  123. package/lib/ProStep/components/Step/index.d.ts +2 -2
  124. package/lib/ProStep/index.d.ts +2 -2
  125. package/lib/ProStep/index.js +12 -1
  126. package/lib/ProStep/propsType.d.ts +60 -12
  127. package/lib/ProStep/utils/index.d.ts +2 -2
  128. package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
  129. package/lib/ProTable/hooks/useAntdTable.d.ts +2 -2
  130. package/lib/ProTable/index.d.ts +2 -2
  131. package/lib/ProTable/propsType.d.ts +590 -39
  132. package/lib/ProTooltip/index.d.ts +2 -2
  133. package/lib/ProTooltip/propsType.d.ts +52 -9
  134. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
  135. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  136. package/lib/ProTree/propsType.d.ts +3 -3
  137. package/lib/ProTreeModal/propsType.d.ts +2 -2
  138. package/lib/ProUpload/propsType.d.ts +3 -3
  139. package/package.json +1 -1
  140. package/.vscode/extensions.json +0 -5
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- import { ProDrawerFormPropsType } from '../../propsType';
2
+ import { ProDrawerFormType } from '../../propsType';
3
3
  /**
4
4
  * 抽屉组件
5
5
  */
6
- declare const ProDrawer: FC<ProDrawerFormPropsType>;
6
+ declare const ProDrawer: FC<ProDrawerFormType>;
7
7
  export default ProDrawer;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- import { ProDrawerFormPropsType } from '../../propsType';
2
+ import { ProDrawerFormType } from '../../propsType';
3
3
  /**
4
4
  * 弹窗组件
5
5
  */
6
- declare const ProModal: FC<ProDrawerFormPropsType>;
6
+ declare const ProModal: FC<ProDrawerFormType>;
7
7
  export default ProModal;
@@ -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;
@@ -2,7 +2,7 @@ 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';
5
+ import { ProColumnType } from '../index';
6
6
  export interface ContainerType {
7
7
  /**
8
8
  * @description 触发方式
@@ -77,7 +77,7 @@ export interface PopupType {
77
77
  * @description 列配置
78
78
  * @default -
79
79
  */
80
- columns?: ProColumnProps;
80
+ columns?: ProColumnType;
81
81
  /**
82
82
  * @description 允许扩展字段
83
83
  */
@@ -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;