@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.
- package/dist/index.esm.css +22 -15
- package/dist/less.esm.css +22 -15
- package/es/ProAction/index.d.ts +2 -2
- package/es/ProAction/propsType.d.ts +16 -10
- package/es/ProConfigProvider/index.d.ts +6 -6
- package/es/ProDownload/index.d.ts +2 -2
- package/es/ProDownload/propsType.d.ts +2 -1
- package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/es/ProEditLabel/index.d.ts +2 -2
- package/es/ProEditLabel/propsType.d.ts +133 -6
- package/es/ProEditLabel/style/index.less +24 -25
- package/es/ProEnum/components/Group.d.ts +2 -2
- package/es/ProEnum/components/Tag.d.ts +2 -2
- package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/propsType.d.ts +228 -39
- package/es/ProEnum/propsType.js +0 -6
- package/es/ProEnum/utils/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -2
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +2 -1
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +3 -2
- package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +4 -2
- package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +2 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +13 -9
- package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/es/ProLayout/index.d.ts +5 -5
- package/es/ProLayout/index.js +6 -2
- package/es/ProLayout/propTypes.d.ts +62 -21
- package/es/ProLayout/utils/index.d.ts +2 -2
- package/es/ProSelect/index.d.ts +3 -3
- package/es/ProSelect/propsType.d.ts +139 -29
- package/es/ProTable/style/index.less +3 -0
- package/es/ProTabs/index.d.ts +2 -2
- package/es/ProTabs/index.js +4 -4
- package/es/ProTabs/propType.d.ts +66 -9
- package/es/ProThemeTools/index.d.ts +2 -2
- package/es/ProThemeTools/propsType.d.ts +136 -14
- package/es/ProUpload/components/ButtonRender.d.ts +2 -2
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/es/ProUpload/components/Example.d.ts +2 -2
- package/es/ProUpload/components/ImageRender.d.ts +2 -2
- package/es/ProUpload/index.d.ts +2 -2
- package/es/ProUpload/index.js +0 -7
- package/es/ProUpload/propsType.d.ts +59 -8
- package/es/ProWaterMark/index.d.ts +2 -2
- package/es/ProWaterMark/propsType.d.ts +2 -1
- package/lib/ProAction/index.d.ts +2 -2
- package/lib/ProAction/propsType.d.ts +16 -10
- package/lib/ProConfigProvider/index.d.ts +6 -6
- package/lib/ProDownload/index.d.ts +2 -2
- package/lib/ProDownload/propsType.d.ts +2 -1
- package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/lib/ProEditLabel/index.d.ts +2 -2
- package/lib/ProEditLabel/propsType.d.ts +133 -6
- package/lib/ProEditLabel/style/index.less +24 -25
- package/lib/ProEnum/components/Group.d.ts +2 -2
- package/lib/ProEnum/components/Tag.d.ts +2 -2
- package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/propsType.d.ts +228 -39
- package/lib/ProEnum/propsType.js +1 -7
- package/lib/ProEnum/utils/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -2
- package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +2 -1
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +3 -2
- package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +4 -2
- package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +2 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +13 -9
- package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/lib/ProLayout/index.d.ts +5 -5
- package/lib/ProLayout/index.js +6 -2
- package/lib/ProLayout/propTypes.d.ts +62 -21
- package/lib/ProLayout/utils/index.d.ts +2 -2
- package/lib/ProSelect/index.d.ts +3 -3
- package/lib/ProSelect/propsType.d.ts +139 -29
- package/lib/ProTable/style/index.less +3 -0
- package/lib/ProTabs/index.d.ts +2 -2
- package/lib/ProTabs/index.js +4 -4
- package/lib/ProTabs/propType.d.ts +66 -9
- package/lib/ProThemeTools/index.d.ts +2 -2
- package/lib/ProThemeTools/propsType.d.ts +136 -14
- package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/lib/ProUpload/components/Example.d.ts +2 -2
- package/lib/ProUpload/components/ImageRender.d.ts +2 -2
- package/lib/ProUpload/index.d.ts +2 -2
- package/lib/ProUpload/index.js +0 -7
- package/lib/ProUpload/propsType.d.ts +59 -8
- package/lib/ProWaterMark/index.d.ts +2 -2
- package/lib/ProWaterMark/propsType.d.ts +2 -1
- package/package.json +1 -1
@@ -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
|
-
|
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
|
-
/**
|
42
|
+
/**
|
43
|
+
* @description 统一样式前缀
|
44
|
+
* @default "ant"
|
45
|
+
*/
|
13
46
|
prefixCls?: string;
|
14
47
|
}
|
15
|
-
export interface
|
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
|
-
/**
|
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
|
-
/**
|
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
|
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 {
|
4
|
-
interface DragRenderProps extends Pick<
|
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 {
|
2
|
-
export declare const DraggableUploadListItem: ({ file, children }:
|
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 {
|
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?:
|
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 {
|
4
|
-
interface DragRenderProps extends Pick<
|
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;
|
package/es/ProUpload/index.d.ts
CHANGED
package/es/ProUpload/index.js
CHANGED
@@ -208,13 +208,6 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
208
208
|
}
|
209
209
|
return headerRender;
|
210
210
|
};
|
211
|
-
// 自定义顶部
|
212
|
-
// const _centerRender = () => {
|
213
|
-
// if (isFunction(centerRender)) {
|
214
|
-
// return centerRender();
|
215
|
-
// }
|
216
|
-
// return centerRender;
|
217
|
-
// };
|
218
211
|
// 自定义底部
|
219
212
|
var _footerRender = function _footerRender() {
|
220
213
|
if (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
|
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
|
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
|
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
|
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?:
|
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) =>
|
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?:
|
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
|
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 {
|
3
|
-
declare const ProWaterMark: React.FC<
|
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
|
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/lib/ProAction/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
2
|
-
import {
|
2
|
+
import type { ProActionType } from './propsType';
|
3
3
|
import './index.less';
|
4
4
|
declare const ProAction: React.FC<PropsWithChildren<{
|
5
|
-
config?:
|
5
|
+
config?: ProActionType[];
|
6
6
|
}>>;
|
7
7
|
export default ProAction;
|
@@ -1,27 +1,31 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { Service, Options } from 'ahooks/lib/useRequest/src/types';
|
3
|
-
export interface
|
3
|
+
export interface ProActionType {
|
4
4
|
/**
|
5
|
-
* check
|
6
|
-
*
|
5
|
+
* @description 模式类型:check执行校验并解析错误信息展示,confirm确认提示
|
6
|
+
* @default -
|
7
7
|
*/
|
8
8
|
mode?: 'check' | 'confirm';
|
9
9
|
/**
|
10
|
-
* 标题
|
10
|
+
* @description 标题
|
11
|
+
* @default -
|
11
12
|
*/
|
12
13
|
title?: string | ReactNode;
|
13
14
|
/**
|
14
|
-
*
|
15
|
+
* @description 操作回调函数
|
15
16
|
* @param previouData 接上一个 useRequest 返回的值
|
16
17
|
* @param args 接所有链式 useRequest 返回的值
|
17
|
-
* @
|
18
|
+
* @param index 当前操作的索引
|
19
|
+
* @returns void或Promise<void>
|
20
|
+
* @default -
|
18
21
|
*/
|
19
22
|
onAction?: (previouData?: any, args?: any[], index?: number) => void | Promise<void>;
|
20
23
|
/**
|
21
|
-
* 自定义请求
|
24
|
+
* @description 自定义请求
|
22
25
|
* @param previouData 接上一个 useRequest 返回的值
|
23
26
|
* @param args 接所有链式 useRequest 返回的值
|
24
|
-
* @returns
|
27
|
+
* @returns 包含service、options和transformResponse的对象
|
28
|
+
* @default -
|
25
29
|
*/
|
26
30
|
useRequest?: (previouData: any, args: any) => {
|
27
31
|
service?: Service<any, any>;
|
@@ -29,10 +33,12 @@ export interface ActionProps {
|
|
29
33
|
transformResponse?: (data: any) => any;
|
30
34
|
};
|
31
35
|
/**
|
32
|
-
* 是否中断链式操作
|
36
|
+
* @description 是否中断链式操作
|
33
37
|
* @param previouData 上一个操作的返回数据
|
34
38
|
* @param args 所有链式的数据合集
|
35
|
-
* @returns
|
39
|
+
* @returns 布尔值,返回true继续执行,返回false中断操作
|
40
|
+
* @default -
|
36
41
|
*/
|
37
42
|
continue?: (previouData: any, args: any[]) => boolean;
|
38
43
|
}
|
44
|
+
export type ProActionProps = ProActionType;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import React, { FC } from 'react';
|
2
2
|
import { FormInstance } from 'antd';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
3
|
+
import { PropSelectType } from '../ProSelect/propsType';
|
4
|
+
import { ProModalSelectType } from '../ProForm/components/combination/ProModalSelect/propsType';
|
5
|
+
import { ProCascaderType } from '../ProForm/components/combination/ProCascader/propsType';
|
6
6
|
import { ProEnumConfig } from '../ProEnum/propsType';
|
7
7
|
export interface ProConfigState {
|
8
8
|
locale?: string;
|
9
9
|
ProEnum?: Partial<ProEnumConfig>;
|
10
|
-
ProSelect?: Partial<
|
11
|
-
ProModalSelect?: Partial<
|
12
|
-
ProAddressBar?: Partial<
|
10
|
+
ProSelect?: Partial<PropSelectType> & Record<string, any>;
|
11
|
+
ProModalSelect?: Partial<ProModalSelectType> & Record<string, any>;
|
12
|
+
ProAddressBar?: Partial<ProCascaderType> & Record<string, any>;
|
13
13
|
forms: Record<string, FormInstance | undefined>;
|
14
14
|
[key: string]: any;
|
15
15
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProDownloadType } from './propsType';
|
2
2
|
declare const ProDownload: {
|
3
|
-
(props:
|
3
|
+
(props: ProDownloadType): import("react/jsx-runtime").JSX.Element;
|
4
4
|
downLoadRequest: import("./utils").DownloadRequestProps;
|
5
5
|
};
|
6
6
|
export default ProDownload;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import type { ButtonProps } from 'antd';
|
3
3
|
import type { DownloadRequestProps, PropsWithMakeFilePropsType } from './utils';
|
4
|
-
export interface
|
4
|
+
export interface ProDownloadType extends ButtonProps {
|
5
5
|
/**
|
6
6
|
* @description 下载资源获取来源:api:通过接口获取,url:通过静态资源链接获取
|
7
7
|
* @default api
|
@@ -69,3 +69,4 @@ export interface IProDownloadProps extends ButtonProps {
|
|
69
69
|
children?: string | ReactNode;
|
70
70
|
[key: string]: any;
|
71
71
|
}
|
72
|
+
export type IProDownloadProps = ProDownloadType;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { FC } from 'react';
|
2
|
-
import {
|
3
|
-
declare const ProEditLabel: FC<
|
2
|
+
import type { ContainerType, LabelType, ProEditLabelType } from './propsType';
|
3
|
+
declare const ProEditLabel: FC<LabelType & ProEditLabelType & ContainerType>;
|
4
4
|
export default ProEditLabel;
|