@zat-design/sisyphus-react 3.11.14-beta.5 → 3.11.14-beta.7

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 (101) hide show
  1. package/dist/index.esm.css +22 -15
  2. package/dist/less.esm.css +22 -15
  3. package/es/ProAction/index.d.ts +2 -2
  4. package/es/ProAction/propsType.d.ts +16 -10
  5. package/es/ProConfigProvider/index.d.ts +6 -6
  6. package/es/ProDownload/index.d.ts +2 -2
  7. package/es/ProDownload/propsType.d.ts +2 -1
  8. package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
  9. package/es/ProEditLabel/index.d.ts +2 -2
  10. package/es/ProEditLabel/propsType.d.ts +133 -6
  11. package/es/ProEditLabel/style/index.less +24 -25
  12. package/es/ProEnum/components/Group.d.ts +2 -2
  13. package/es/ProEnum/components/Tag.d.ts +2 -2
  14. package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  15. package/es/ProEnum/index.d.ts +2 -2
  16. package/es/ProEnum/propsType.d.ts +228 -39
  17. package/es/ProEnum/propsType.js +0 -6
  18. package/es/ProEnum/utils/index.d.ts +1 -1
  19. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -2
  20. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +2 -1
  21. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +3 -2
  22. package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
  23. package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  24. package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  25. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +4 -2
  26. package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
  27. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +2 -1
  28. package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
  29. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +13 -9
  30. package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
  31. package/es/ProLayout/index.d.ts +5 -5
  32. package/es/ProLayout/index.js +6 -2
  33. package/es/ProLayout/propTypes.d.ts +62 -21
  34. package/es/ProLayout/utils/index.d.ts +2 -2
  35. package/es/ProSelect/index.d.ts +3 -3
  36. package/es/ProSelect/propsType.d.ts +139 -29
  37. package/es/ProTable/style/index.less +3 -0
  38. package/es/ProTabs/index.d.ts +2 -2
  39. package/es/ProTabs/index.js +4 -4
  40. package/es/ProTabs/propType.d.ts +66 -9
  41. package/es/ProThemeTools/index.d.ts +2 -2
  42. package/es/ProThemeTools/propsType.d.ts +136 -14
  43. package/es/ProUpload/components/ButtonRender.d.ts +2 -2
  44. package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  45. package/es/ProUpload/components/Example.d.ts +2 -2
  46. package/es/ProUpload/components/ImageRender.d.ts +2 -2
  47. package/es/ProUpload/index.d.ts +2 -2
  48. package/es/ProUpload/index.js +0 -7
  49. package/es/ProUpload/propsType.d.ts +59 -8
  50. package/es/ProWaterMark/index.d.ts +2 -2
  51. package/es/ProWaterMark/propsType.d.ts +2 -1
  52. package/lib/ProAction/index.d.ts +2 -2
  53. package/lib/ProAction/propsType.d.ts +16 -10
  54. package/lib/ProConfigProvider/index.d.ts +6 -6
  55. package/lib/ProDownload/index.d.ts +2 -2
  56. package/lib/ProDownload/propsType.d.ts +2 -1
  57. package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
  58. package/lib/ProEditLabel/index.d.ts +2 -2
  59. package/lib/ProEditLabel/propsType.d.ts +133 -6
  60. package/lib/ProEditLabel/style/index.less +24 -25
  61. package/lib/ProEnum/components/Group.d.ts +2 -2
  62. package/lib/ProEnum/components/Tag.d.ts +2 -2
  63. package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  64. package/lib/ProEnum/index.d.ts +2 -2
  65. package/lib/ProEnum/propsType.d.ts +228 -39
  66. package/lib/ProEnum/propsType.js +1 -7
  67. package/lib/ProEnum/utils/index.d.ts +1 -1
  68. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -2
  69. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +2 -1
  70. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +3 -2
  71. package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
  72. package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  73. package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  74. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +4 -2
  75. package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
  76. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +2 -1
  77. package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
  78. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +13 -9
  79. package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
  80. package/lib/ProLayout/index.d.ts +5 -5
  81. package/lib/ProLayout/index.js +6 -2
  82. package/lib/ProLayout/propTypes.d.ts +62 -21
  83. package/lib/ProLayout/utils/index.d.ts +2 -2
  84. package/lib/ProSelect/index.d.ts +3 -3
  85. package/lib/ProSelect/propsType.d.ts +139 -29
  86. package/lib/ProTable/style/index.less +3 -0
  87. package/lib/ProTabs/index.d.ts +2 -2
  88. package/lib/ProTabs/index.js +4 -4
  89. package/lib/ProTabs/propType.d.ts +66 -9
  90. package/lib/ProThemeTools/index.d.ts +2 -2
  91. package/lib/ProThemeTools/propsType.d.ts +136 -14
  92. package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
  93. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  94. package/lib/ProUpload/components/Example.d.ts +2 -2
  95. package/lib/ProUpload/components/ImageRender.d.ts +2 -2
  96. package/lib/ProUpload/index.d.ts +2 -2
  97. package/lib/ProUpload/index.js +0 -7
  98. package/lib/ProUpload/propsType.d.ts +59 -8
  99. package/lib/ProWaterMark/index.d.ts +2 -2
  100. package/lib/ProWaterMark/propsType.d.ts +2 -1
  101. package/package.json +1 -1
@@ -65,12 +65,12 @@ var ProTabs = function ProTabs(props, ref) {
65
65
  total: itemProps.total,
66
66
  label: itemProps.label,
67
67
  icon: itemProps.icon,
68
- mode: mode
68
+ mode: mode,
69
+ title: itemProps.title || itemProps.label,
70
+ loading: fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading
69
71
  };
70
72
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(itemProps, ['total', 'label', 'icon'])), {}, {
71
- label: (0, _jsxRuntime.jsx)(_components.Card, (0, _objectSpread2.default)({
72
- loading: fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading
73
- }, cardItemProps))
73
+ label: (0, _jsxRuntime.jsx)(_components.Card, (0, _objectSpread2.default)({}, cardItemProps))
74
74
  });
75
75
  });
76
76
  }, [selectList, fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading]);
@@ -1,36 +1,93 @@
1
1
  import React from 'react';
2
2
  import type { TabsProps } from 'antd';
3
3
  import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
4
- export interface CardProps {
4
+ export interface CardType {
5
+ /**
6
+ * @description 卡片标题
7
+ * @default -
8
+ */
9
+ title: string | React.ReactNode;
10
+ /**
11
+ * @description 卡片数量
12
+ * @default -
13
+ */
5
14
  total: number;
15
+ /**
16
+ * @description 卡片标签
17
+ * @default -
18
+ */
6
19
  label: string | React.ReactNode;
20
+ /**
21
+ * @description 卡片图标
22
+ * @default -
23
+ */
7
24
  icon: React.ReactNode;
25
+ /**
26
+ * @description 卡片模式
27
+ * @default card
28
+ */
8
29
  mode?: TabModeEnum;
30
+ /**
31
+ * @description 卡片是否加载中
32
+ * @default false
33
+ */
9
34
  loading?: boolean;
10
35
  [key: string]: any;
11
36
  }
12
- export interface ProTabsItemsProps extends CardProps {
37
+ export interface ProTabsItemType extends CardType {
38
+ /**
39
+ * @description 卡片唯一key
40
+ * @default -
41
+ */
13
42
  key: string;
43
+ /**
44
+ * @description 卡片内容
45
+ * @default -
46
+ */
14
47
  children?: React.ReactNode;
48
+ /**
49
+ * @description 卡片是否禁用
50
+ * @default false
51
+ */
15
52
  disabled?: boolean;
16
53
  [key: string]: any;
17
54
  }
18
- export interface ProTabsAction {
19
- /** 获取发生请求的 useRequest 的 ref */
55
+ export interface ProTabsActionType {
56
+ /**
57
+ * @description 获取发生请求的 useRequest 的 ref
58
+ * @default -
59
+ */
20
60
  useRequestRef: Result<any, any>;
21
61
  }
22
62
  export type TabModeEnum = 'card' | 'line';
23
- export interface ProTabsProps extends Omit<TabsProps, 'items' | 'onChange'> {
24
- dataSource: ProTabsItemsProps[];
25
- /** 是否开启tab切换查询 */
63
+ export interface ProTabsType extends Omit<TabsProps, 'items' | 'onChange'> {
64
+ /**
65
+ * @description 卡片数据源
66
+ * @default -
67
+ */
68
+ dataSource: ProTabsItemType[];
69
+ /**
70
+ * @description 是否开启tab切换查询
71
+ * @default false
72
+ */
26
73
  tabSearch?: boolean;
27
74
  onChange?: (activeKey: string, useRequest: Result<any, any>) => void;
28
- /** card:卡片模式 tab tab模式 */
75
+ /**
76
+ * @description card:卡片模式 tab tab模式
77
+ * @default card
78
+ */
29
79
  mode?: TabModeEnum;
30
- /** 远程请求接口 */
80
+ /**
81
+ * @description 远程请求接口
82
+ * @default -
83
+ */
31
84
  useRequest?: {
32
85
  service: Service<any, any>;
33
86
  options?: Options<any, any>;
34
87
  };
35
88
  [key: string]: any;
36
89
  }
90
+ export type ProTabsProps = ProTabsType;
91
+ export type ProTabsItemsProps = ProTabsItemType;
92
+ export type ProTabsAction = ProTabsActionType;
93
+ export type CardProps = CardType;
@@ -1,6 +1,6 @@
1
- import type { ProThemeToolsProps } from './propsType';
1
+ import type { ProThemeToolsType } from './propsType';
2
2
  declare const ProThemeTools: {
3
- ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsType): import("react/jsx-runtime").JSX.Element;
4
4
  defaultProps: {
5
5
  size: number;
6
6
  mode: string;
@@ -1,50 +1,172 @@
1
1
  export interface DevToolsPropsType {
2
+ /**
3
+ * @description 重置配置回调函数
4
+ * @default -
5
+ */
2
6
  onReset: () => void;
7
+ /**
8
+ * @description 关闭工具回调函数
9
+ * @default -
10
+ */
3
11
  onClose: () => void;
12
+ /**
13
+ * @description 复制配置回调函数
14
+ * @default -
15
+ */
4
16
  onCopy?: () => void;
17
+ /**
18
+ * @description 设置状态函数
19
+ * @default -
20
+ */
5
21
  setState: any;
22
+ /**
23
+ * @description 是否打开工具
24
+ * @default false
25
+ */
6
26
  open: boolean;
7
- state: LocalThemeConfigPropsType;
8
- /** 是否有表格边框 */
27
+ /**
28
+ * @description 当前主题配置状态
29
+ * @default -
30
+ */
31
+ state: LocalThemeConfigType;
32
+ /**
33
+ * @description 是否有表格边框
34
+ * @default false
35
+ */
9
36
  tableBorder?: boolean;
10
- /** 是否有斑马纹 */
37
+ /**
38
+ * @description 是否有斑马纹
39
+ * @default false
40
+ */
11
41
  tableStripe?: boolean;
12
- /** 统一样式前缀, 默认ant */
42
+ /**
43
+ * @description 统一样式前缀
44
+ * @default "ant"
45
+ */
13
46
  prefixCls?: string;
14
47
  }
15
- export interface ProThemeToolsProps {
48
+ export interface ProThemeToolsType {
49
+ /**
50
+ * @description 主题工具大小
51
+ * @default -
52
+ */
16
53
  size?: number;
54
+ /**
55
+ * @description 主题颜色
56
+ * @default -
57
+ */
17
58
  color?: string;
59
+ /**
60
+ * @description 工具模式:开发模式或生产模式
61
+ * @default "prd"
62
+ */
18
63
  mode?: 'dev' | 'prd';
64
+ /**
65
+ * @description 缓存时间,可设置为数字或布尔值
66
+ * @default -
67
+ */
19
68
  cacheTime?: number | boolean;
20
- /** 主题配置信息 */
69
+ /**
70
+ * @description 主题配置信息
71
+ * @default -
72
+ */
21
73
  theme?: any;
22
- /** icon是否跟随主题色 */
74
+ /**
75
+ * @description icon是否跟随主题色
76
+ * @default false
77
+ */
23
78
  iconFollowTheme?: boolean;
24
- /** 是否有表格边框 */
79
+ /**
80
+ * @description 是否有表格边框
81
+ * @default false
82
+ */
25
83
  tableBorder?: boolean;
26
- /** 是否有斑马纹 */
84
+ /**
85
+ * @description 是否有斑马纹
86
+ * @default false
87
+ */
27
88
  tableStripe?: boolean;
28
- /** 统一样式前缀, 默认ant */
89
+ /**
90
+ * @description 统一样式前缀
91
+ * @default "ant"
92
+ */
29
93
  prefixCls?: string;
94
+ /**
95
+ * @description 主题变更回调函数
96
+ * @default -
97
+ */
30
98
  onChange?: (record: any) => void;
99
+ /**
100
+ * @description 允许扩展字段
101
+ */
31
102
  [key: string]: any;
32
103
  }
33
- export interface LocalThemeConfigPropsType {
104
+ export interface LocalThemeConfigType {
105
+ /**
106
+ * @description 品牌色
107
+ * @default -
108
+ */
34
109
  zauiBrand?: string;
110
+ /**
111
+ * @description 文本色
112
+ * @default -
113
+ */
35
114
  zauiText?: string;
115
+ /**
116
+ * @description 字体大小
117
+ * @default -
118
+ */
36
119
  zauiFontSize?: string;
120
+ /**
121
+ * @description 表单对齐方式
122
+ * @default -
123
+ */
37
124
  zauiFormAlign?: string;
125
+ /**
126
+ * @description 表单必填项后缀
127
+ * @default -
128
+ */
38
129
  zauiFormRequiredAfter?: string;
130
+ /**
131
+ * @description 表单必填项前缀
132
+ * @default -
133
+ */
39
134
  zauiFormRequiredBefore?: string;
135
+ /**
136
+ * @description 尺寸大小
137
+ * @default -
138
+ */
40
139
  zauiSize?: number;
140
+ /**
141
+ * @description 大间距
142
+ * @default -
143
+ */
41
144
  zauiSpaceSizeLg?: string;
145
+ /**
146
+ * @description 中间距
147
+ * @default -
148
+ */
42
149
  zauiSpaceSizeMd?: string;
43
- /** 大字号模式 */
150
+ /**
151
+ * @description 大字号模式
152
+ * @default false
153
+ */
44
154
  zauiBigText?: boolean;
45
- /** 是否有表格边框 */
155
+ /**
156
+ * @description 是否有表格边框
157
+ * @default false
158
+ */
46
159
  zauiTableBorder?: boolean;
47
- /** 是否有斑马纹 */
160
+ /**
161
+ * @description 是否有斑马纹
162
+ * @default false
163
+ */
48
164
  zauiStripe?: boolean;
165
+ /**
166
+ * @description 基础字体大小
167
+ * @default -
168
+ */
49
169
  zauiBaseFontSize?: string;
50
170
  }
171
+ export type ProThemeToolsProps = ProThemeToolsType;
172
+ export type LocalThemeConfigPropsType = LocalThemeConfigType;
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { UploadFile } from 'antd';
3
- import { ProUploadProps } from '../propsType';
4
- interface DragRenderProps extends Pick<ProUploadProps, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'buttonText'> {
3
+ import type { ProUploadType } from '../propsType';
4
+ interface DragRenderProps extends Pick<ProUploadType, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'buttonText'> {
5
5
  isView?: boolean;
6
6
  headerRender: () => ReactNode;
7
7
  footerRender: () => ReactNode;
@@ -1,2 +1,2 @@
1
- import { DraggableUploadListItemProps } from '../propsType';
2
- export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => import("react/jsx-runtime").JSX.Element;
1
+ import type { DraggableUploadListItemType } from '../propsType';
2
+ export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemType) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { ExampleModalProps } from '../propsType';
2
+ import type { ExampleModalType } from '../propsType';
3
3
  interface ExampleProps {
4
4
  exampleContent?: React.ReactNode;
5
5
  className?: string;
6
6
  exampleTitle?: string | React.ReactNode;
7
- exampleModalProps?: ExampleModalProps;
7
+ exampleModalProps?: ExampleModalType;
8
8
  }
9
9
  export declare const Example: React.FC<ExampleProps>;
10
10
  export {};
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { UploadFile } from 'antd/es/upload/interface';
3
- import { ProUploadProps } from '../propsType';
4
- interface DragRenderProps extends Pick<ProUploadProps, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'showExampleContent' | 'exampleTitle' | 'exampleContent' | 'exampleModalProps'> {
3
+ import type { ProUploadType } from '../propsType';
4
+ interface DragRenderProps extends Pick<ProUploadType, 'buttonProps' | 'disabled' | 'maxCount' | 'extraTipText' | 'showExampleContent' | 'exampleTitle' | 'exampleContent' | 'exampleModalProps'> {
5
5
  isView?: boolean;
6
6
  headerRender: () => ReactNode;
7
7
  footerRender: () => ReactNode;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProUploadProps } from './propsType';
3
- declare const ProUpload: React.FC<ProUploadProps>;
2
+ import type { ProUploadType } from './propsType';
3
+ declare const ProUpload: React.FC<ProUploadType>;
4
4
  export default ProUpload;
@@ -215,13 +215,6 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
215
215
  }
216
216
  return headerRender;
217
217
  };
218
- // 自定义顶部
219
- // const _centerRender = () => {
220
- // if (isFunction(centerRender)) {
221
- // return centerRender();
222
- // }
223
- // return centerRender;
224
- // };
225
218
  // 自定义底部
226
219
  var _footerRender = function _footerRender() {
227
220
  if ((0, _lodash.isFunction)(footerRender)) {
@@ -2,22 +2,56 @@ import React from 'react';
2
2
  import { UploadFile } from 'antd/es/upload/interface';
3
3
  import { UploadRequestOption } from 'rc-upload/lib/interface';
4
4
  export type UploadType = 'drag' | 'button' | 'image';
5
- export interface UploadFileRes {
5
+ export interface UploadFileResType {
6
+ /**
7
+ * @description 上传文件返回的URL
8
+ * @default -
9
+ */
6
10
  url: string;
11
+ /**
12
+ * @description 允许扩展字段
13
+ */
7
14
  [key: string]: any;
8
15
  }
9
- export interface ExampleModalProps {
16
+ export interface ExampleModalType {
17
+ /**
18
+ * @description 弹窗宽度
19
+ * @default -
20
+ */
10
21
  width?: string | number;
22
+ /**
23
+ * @description 弹窗外层容器类名
24
+ * @default -
25
+ */
11
26
  wrapClassName?: string;
27
+ /**
28
+ * @description 允许扩展字段
29
+ */
12
30
  [key: string]: any;
13
31
  }
14
- export interface fieldNamesProps {
32
+ export interface fieldNamesType {
33
+ /**
34
+ * @description 文件唯一标识字段
35
+ * @default -
36
+ */
15
37
  uid?: number;
38
+ /**
39
+ * @description 文件名称字段
40
+ * @default -
41
+ */
16
42
  name?: string;
43
+ /**
44
+ * @description 文件URL字段
45
+ * @default -
46
+ */
17
47
  url?: string;
48
+ /**
49
+ * @description 文件状态字段
50
+ * @default -
51
+ */
18
52
  status?: 'done' | 'uploading' | 'error';
19
53
  }
20
- export interface ProUploadProps {
54
+ export interface ProUploadType {
21
55
  /**
22
56
  * @description 顶部的内容(button类型的上传不适用)
23
57
  * @default -
@@ -52,7 +86,7 @@ export interface ProUploadProps {
52
86
  * @description 示例弹窗的属性配置继承与antd 的Modal对话框
53
87
  * @default -
54
88
  */
55
- exampleModalProps?: ExampleModalProps;
89
+ exampleModalProps?: ExampleModalType;
56
90
  /**
57
91
  * @description 接受上传的文件类型, '.png,.jpeg,.jpg,.xlsx,.xls,.json,.doc,.docx' 详见 input accept Attribute
58
92
  * @default -
@@ -169,7 +203,7 @@ export interface ProUploadProps {
169
203
  * @description 上传接口处理方法 返回一个数组 UploadFile【】
170
204
  * @default -
171
205
  */
172
- transformResponse?: (res: any) => UploadFileRes;
206
+ transformResponse?: (res: any) => UploadFileResType;
173
207
  /**
174
208
  * @description 可以调用组件的内部方法,例如:uploadStart方式
175
209
  * @default -
@@ -189,12 +223,16 @@ export interface ProUploadProps {
189
223
  * @description 文件对象的字段映射
190
224
  * @default true
191
225
  */
192
- fieldNames?: fieldNamesProps;
226
+ fieldNames?: fieldNamesType;
193
227
  /**
194
228
  * @description 删除已经上传的文件时是否二次提示
195
229
  * @default false
196
230
  */
197
231
  isConfirmDelete?: boolean;
232
+ /**
233
+ * @description 组件ID
234
+ * @default -
235
+ */
198
236
  id?: string;
199
237
  /**
200
238
  * @description 查看模式
@@ -207,7 +245,20 @@ export interface ProUploadProps {
207
245
  */
208
246
  customRequest?: (option: UploadRequestOption) => void;
209
247
  }
210
- export interface DraggableUploadListItemProps {
248
+ export interface DraggableUploadListItemType {
249
+ /**
250
+ * @description 文件对象
251
+ * @default -
252
+ */
211
253
  file: UploadFile<any>;
254
+ /**
255
+ * @description 子元素
256
+ * @default -
257
+ */
212
258
  children: React.ReactNode;
213
259
  }
260
+ export type UploadFileRes = UploadFileResType;
261
+ export type ExampleModalProps = ExampleModalType;
262
+ export type fieldNamesProps = fieldNamesType;
263
+ export type ProUploadProps = ProUploadType;
264
+ export type DraggableUploadListItemProps = DraggableUploadListItemType;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProWaterMarkProps } from './propsType';
3
- declare const ProWaterMark: React.FC<ProWaterMarkProps>;
2
+ import type { ProWaterMarkType } from './propsType';
3
+ declare const ProWaterMark: React.FC<ProWaterMarkType>;
4
4
  export default ProWaterMark;
@@ -1,4 +1,4 @@
1
- export interface ProWaterMarkProps {
1
+ export interface ProWaterMarkType {
2
2
  /**
3
3
  * @description 水印是否显示
4
4
  * @default true
@@ -80,3 +80,4 @@ export interface ProWaterMarkProps {
80
80
  */
81
81
  mode?: 'repeat' | 'interval';
82
82
  }
83
+ export type ProWaterMarkProps = ProWaterMarkType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.11.14-beta.5",
3
+ "version": "3.11.14-beta.7",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",