@zat-design/sisyphus-react 3.11.14-beta.5 → 3.11.14-beta.6
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/ProIcon/symbolIcon.js +80 -39
- 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/ProIcon/symbolIcon.js +85 -39
- 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
@@ -2,65 +2,175 @@ import { ReactNode } from 'react';
|
|
2
2
|
import type { SelectProps } from 'antd';
|
3
3
|
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
4
4
|
import { ProFormOtherProps } from '../ProForm/propsType';
|
5
|
-
|
5
|
+
/**
|
6
|
+
* @description 数据选项类型
|
7
|
+
*/
|
8
|
+
export interface DataOptionType {
|
9
|
+
/**
|
10
|
+
* @description 展示标签
|
11
|
+
* @default -
|
12
|
+
*/
|
6
13
|
label?: string;
|
14
|
+
/**
|
15
|
+
* @description 选项值
|
16
|
+
* @default -
|
17
|
+
*/
|
7
18
|
value?: string | number;
|
19
|
+
/**
|
20
|
+
* @description 允许扩展字段
|
21
|
+
*/
|
8
22
|
[key: string]: any;
|
9
23
|
}
|
10
|
-
|
11
|
-
|
24
|
+
/**
|
25
|
+
* @description 选择框属性类型
|
26
|
+
*/
|
27
|
+
export interface PropSelectType extends Omit<SelectProps, 'onSearch'> {
|
28
|
+
/**
|
29
|
+
* @description 是否查看模式
|
30
|
+
* @default false
|
31
|
+
*/
|
12
32
|
isView?: boolean;
|
13
|
-
/**
|
33
|
+
/**
|
34
|
+
* @description 是否开启组件在可视区域中才发起useRequest请求
|
35
|
+
* @default false
|
36
|
+
*/
|
14
37
|
viewportReady?: boolean;
|
15
|
-
/**
|
38
|
+
/**
|
39
|
+
* @description 默认数组第一项
|
40
|
+
* @default false
|
41
|
+
*/
|
16
42
|
defaultOne?: boolean;
|
17
|
-
/**
|
18
|
-
|
19
|
-
|
43
|
+
/**
|
44
|
+
* @description 数据源
|
45
|
+
* @default -
|
46
|
+
*/
|
47
|
+
dataSource?: DataOptionType[];
|
48
|
+
/**
|
49
|
+
* @description list场景中过滤掉已选择的值
|
50
|
+
* @default false
|
51
|
+
*/
|
20
52
|
filterInList?: boolean;
|
21
|
-
/**
|
53
|
+
/**
|
54
|
+
* @deprecated 兼容 2.0 版本、3.0 使用view 模式
|
55
|
+
* @default -
|
56
|
+
*/
|
22
57
|
defaultDisableValue?: string;
|
23
|
-
/**
|
58
|
+
/**
|
59
|
+
* @description 是否展示 tooltip、当 label 特别长的时候使用
|
60
|
+
* @default false
|
61
|
+
*/
|
24
62
|
tooltip?: boolean;
|
25
|
-
/**
|
63
|
+
/**
|
64
|
+
* @description 是否展示 code-label 形式
|
65
|
+
* @default false
|
66
|
+
*/
|
26
67
|
showCodeName?: boolean;
|
27
|
-
/**
|
68
|
+
/**
|
69
|
+
* @description 集成表单 form 的属性
|
70
|
+
* @default -
|
71
|
+
*/
|
28
72
|
otherProps?: ProFormOtherProps;
|
29
|
-
/**
|
73
|
+
/**
|
74
|
+
* @description 下拉框滚动是否跟随父级
|
75
|
+
* @default false
|
76
|
+
*/
|
30
77
|
scrollFollowParent?: boolean;
|
31
|
-
/**
|
78
|
+
/**
|
79
|
+
* @description 远程请求接口
|
80
|
+
* @default -
|
81
|
+
*/
|
32
82
|
useRequest?: {
|
83
|
+
/**
|
84
|
+
* @description 请求服务函数
|
85
|
+
*/
|
33
86
|
service?: Service<any, any>;
|
87
|
+
/**
|
88
|
+
* @description 请求选项
|
89
|
+
*/
|
34
90
|
options?: Options<any, any>;
|
35
91
|
};
|
36
92
|
/**
|
37
93
|
* @deprecated 兼容 2.0 版本、3.0 使用 transformResponse
|
38
|
-
* @param data
|
39
|
-
* @param setSelectList
|
94
|
+
* @param data 数据
|
95
|
+
* @param setSelectList 设置选择列表的函数
|
40
96
|
* @returns
|
41
97
|
*/
|
42
98
|
updateDataSource?: (data: any, setSelectList: any) => void;
|
43
|
-
/**
|
44
|
-
|
45
|
-
|
99
|
+
/**
|
100
|
+
* @description 格式化数据
|
101
|
+
* @param data 后台返回的数据
|
102
|
+
* @returns 格式化后的数据选项
|
103
|
+
*/
|
104
|
+
transformResponse?: (data: any) => DataOptionType[];
|
105
|
+
/**
|
106
|
+
* @description 点击搜索执行
|
107
|
+
* @param value 搜索值
|
108
|
+
* @param useRequest 请求实例
|
109
|
+
*/
|
46
110
|
onSearch?: (value: string, useRequest: Result<any, any>) => void;
|
47
|
-
/**
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
111
|
+
/**
|
112
|
+
* @description 自定义展示
|
113
|
+
* @param value 数据选项
|
114
|
+
* @returns 自定义渲染内容
|
115
|
+
*/
|
116
|
+
optionRender?: (value: DataOptionType) => string | ReactNode;
|
117
|
+
/**
|
118
|
+
* @description 用来转换修改value值 和 getValueProps配合使用
|
119
|
+
* @param value 数据选项
|
120
|
+
* @returns 转换后的值
|
121
|
+
*/
|
122
|
+
getChangeValue?: (value: DataOptionType) => any;
|
123
|
+
/**
|
124
|
+
* @description 用来转换传入的value值 getChangeValue配合使用
|
125
|
+
* @param value 数据选项
|
126
|
+
* @returns 转换后的值属性
|
127
|
+
*/
|
128
|
+
getValueProps?: (value: DataOptionType) => any;
|
53
129
|
}
|
54
|
-
|
55
|
-
|
130
|
+
/**
|
131
|
+
* @description ProSelect操作接口类型
|
132
|
+
*/
|
133
|
+
export interface ProSelectActionType {
|
134
|
+
/**
|
135
|
+
* @description 实例方法、根据 code | code[] 批量获取数据
|
136
|
+
* @param code 代码或代码数组
|
137
|
+
* @param key 可选键名
|
138
|
+
* @returns 获取的数据
|
139
|
+
*/
|
56
140
|
getValueObject: (code: string | string[], key?: string) => any;
|
57
|
-
/**
|
141
|
+
/**
|
142
|
+
* @description 获取发生请求的 useRequest 的 ref
|
143
|
+
*/
|
58
144
|
useRequestRef: Result<any, any>;
|
59
145
|
}
|
60
|
-
|
146
|
+
/**
|
147
|
+
* @description 响应数据接口类型
|
148
|
+
*/
|
149
|
+
export interface ResponseDataType {
|
150
|
+
/**
|
151
|
+
* @description 状态码
|
152
|
+
*/
|
61
153
|
status: number;
|
154
|
+
/**
|
155
|
+
* @description 消息
|
156
|
+
*/
|
62
157
|
message: string;
|
158
|
+
/**
|
159
|
+
* @description 数据
|
160
|
+
*/
|
63
161
|
data: any;
|
162
|
+
/**
|
163
|
+
* @description 是否成功
|
164
|
+
* @default -
|
165
|
+
*/
|
64
166
|
success?: boolean;
|
167
|
+
/**
|
168
|
+
* @description 代码
|
169
|
+
* @default -
|
170
|
+
*/
|
65
171
|
code?: number;
|
66
172
|
}
|
173
|
+
export type DataOption = DataOptionType;
|
174
|
+
export type PropSelectProps = PropSelectType;
|
175
|
+
export type ProSelectAction = ProSelectActionType;
|
176
|
+
export type ResponseData = ResponseDataType;
|
package/lib/ProTabs/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type {
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<
|
2
|
+
import type { ProTabsType } from './propType';
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<ProTabsType, "ref"> & React.RefAttributes<unknown>>;
|
4
4
|
export default _default;
|
package/lib/ProTabs/index.js
CHANGED
@@ -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
|
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
|
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
|
19
|
-
/**
|
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
|
24
|
-
|
25
|
-
|
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
|
-
/**
|
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 {
|
1
|
+
import type { ProThemeToolsType } from './propsType';
|
2
2
|
declare const ProThemeTools: {
|
3
|
-
({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }:
|
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
|
-
|
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/lib/ProUpload/index.d.ts
CHANGED
package/lib/ProUpload/index.js
CHANGED
@@ -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)) {
|