@zat-design/sisyphus-react 3.11.14-beta.4 → 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.
Files changed (145) hide show
  1. package/.vscode/extensions.json +5 -0
  2. package/dist/index.esm.css +22 -15
  3. package/dist/less.esm.css +22 -15
  4. package/es/ProAction/index.d.ts +2 -2
  5. package/es/ProAction/propsType.d.ts +16 -10
  6. package/es/ProConfigProvider/index.d.ts +6 -6
  7. package/es/ProDownload/index.d.ts +2 -2
  8. package/es/ProDownload/propsType.d.ts +2 -1
  9. package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
  10. package/es/ProEditLabel/index.d.ts +2 -2
  11. package/es/ProEditLabel/propsType.d.ts +133 -6
  12. package/es/ProEditLabel/style/index.less +24 -25
  13. package/es/ProEnum/components/Group.d.ts +2 -2
  14. package/es/ProEnum/components/Tag.d.ts +2 -2
  15. package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  16. package/es/ProEnum/index.d.ts +2 -2
  17. package/es/ProEnum/propsType.d.ts +228 -39
  18. package/es/ProEnum/propsType.js +0 -6
  19. package/es/ProEnum/utils/index.d.ts +1 -1
  20. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -2
  21. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +2 -1
  22. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +3 -2
  23. package/es/ProIcon/symbolIcon.js +80 -39
  24. package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
  25. package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  26. package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  27. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  28. package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
  29. package/es/ProLayout/components/ProCollapse/index.js +12 -4
  30. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  31. package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
  32. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +119 -12
  33. package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
  34. package/es/ProLayout/index.d.ts +5 -5
  35. package/es/ProLayout/index.js +6 -2
  36. package/es/ProLayout/propTypes.d.ts +182 -25
  37. package/es/ProLayout/utils/index.d.ts +2 -2
  38. package/es/ProSelect/index.d.ts +3 -3
  39. package/es/ProSelect/propsType.d.ts +139 -29
  40. package/es/ProTable/style/index.less +3 -0
  41. package/es/ProTabs/index.d.ts +2 -2
  42. package/es/ProTabs/index.js +4 -4
  43. package/es/ProTabs/propType.d.ts +66 -9
  44. package/es/ProThemeTools/index.d.ts +2 -2
  45. package/es/ProThemeTools/propsType.d.ts +136 -14
  46. package/es/ProUpload/components/ButtonRender.d.ts +2 -2
  47. package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  48. package/es/ProUpload/components/Example.d.ts +2 -2
  49. package/es/ProUpload/components/ImageRender.d.ts +2 -2
  50. package/es/ProUpload/index.d.ts +2 -2
  51. package/es/ProUpload/index.js +0 -7
  52. package/es/ProUpload/propsType.d.ts +59 -8
  53. package/es/ProWaterMark/index.d.ts +2 -2
  54. package/es/ProWaterMark/propsType.d.ts +2 -1
  55. package/lib/ProAction/index.d.ts +2 -2
  56. package/lib/ProAction/propsType.d.ts +16 -10
  57. package/lib/ProConfigProvider/index.d.ts +6 -6
  58. package/lib/ProDownload/index.d.ts +2 -2
  59. package/lib/ProDownload/propsType.d.ts +2 -1
  60. package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
  61. package/lib/ProEditLabel/index.d.ts +2 -2
  62. package/lib/ProEditLabel/propsType.d.ts +133 -6
  63. package/lib/ProEditLabel/style/index.less +24 -25
  64. package/lib/ProEnum/components/Group.d.ts +2 -2
  65. package/lib/ProEnum/components/Tag.d.ts +2 -2
  66. package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
  67. package/lib/ProEnum/index.d.ts +2 -2
  68. package/lib/ProEnum/propsType.d.ts +228 -39
  69. package/lib/ProEnum/propsType.js +1 -7
  70. package/lib/ProEnum/utils/index.d.ts +1 -1
  71. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -2
  72. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +2 -1
  73. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +3 -2
  74. package/lib/ProIcon/symbolIcon.js +85 -39
  75. package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
  76. package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
  77. package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
  78. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +9 -2
  79. package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
  80. package/lib/ProLayout/components/ProCollapse/index.js +12 -4
  81. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +18 -1
  82. package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
  83. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +119 -12
  84. package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
  85. package/lib/ProLayout/index.d.ts +5 -5
  86. package/lib/ProLayout/index.js +6 -2
  87. package/lib/ProLayout/propTypes.d.ts +182 -25
  88. package/lib/ProLayout/utils/index.d.ts +2 -2
  89. package/lib/ProSelect/index.d.ts +3 -3
  90. package/lib/ProSelect/propsType.d.ts +139 -29
  91. package/lib/ProTable/style/index.less +3 -0
  92. package/lib/ProTabs/index.d.ts +2 -2
  93. package/lib/ProTabs/index.js +4 -4
  94. package/lib/ProTabs/propType.d.ts +66 -9
  95. package/lib/ProThemeTools/index.d.ts +2 -2
  96. package/lib/ProThemeTools/propsType.d.ts +136 -14
  97. package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
  98. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
  99. package/lib/ProUpload/components/Example.d.ts +2 -2
  100. package/lib/ProUpload/components/ImageRender.d.ts +2 -2
  101. package/lib/ProUpload/index.d.ts +2 -2
  102. package/lib/ProUpload/index.js +0 -7
  103. package/lib/ProUpload/propsType.d.ts +59 -8
  104. package/lib/ProWaterMark/index.d.ts +2 -2
  105. package/lib/ProWaterMark/propsType.d.ts +2 -1
  106. package/package.json +1 -1
  107. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +0 -241
  108. package/coverage/lcov-report/src/.umi/core/history.ts.html +0 -148
  109. package/coverage/lcov-report/src/.umi/core/index.html +0 -206
  110. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +0 -109
  111. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +0 -160
  112. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +0 -97
  113. package/coverage/lcov-report/src/.umi/core/routes.ts.html +0 -26050
  114. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +0 -112
  115. package/coverage/lcov-report/src/.umi/dumi/demos/index.html +0 -116
  116. package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +0 -6340
  117. package/coverage/lcov-report/src/.umi/dumi/index.html +0 -116
  118. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +0 -109
  119. package/coverage/lcov-report/src/.umi/index.html +0 -116
  120. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +0 -116
  121. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +0 -172
  122. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +0 -94
  123. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +0 -116
  124. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +0 -196
  125. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +0 -106
  126. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +0 -146
  127. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +0 -116
  128. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +0 -88
  129. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +0 -124
  130. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +0 -1246
  131. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +0 -161
  132. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +0 -268
  133. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +0 -778
  134. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +0 -115
  135. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +0 -202
  136. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +0 -97
  137. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +0 -142
  138. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +0 -334
  139. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +0 -146
  140. package/coverage/lcov-report/src/.umi/plugin-model/index.html +0 -146
  141. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +0 -121
  142. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +0 -298
  143. package/coverage/lcov-report/src/.umi/plugin-request/index.html +0 -116
  144. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +0 -919
  145. package/coverage/lcov-report/src/.umi/umi.ts.html +0 -268
@@ -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
- export interface DataOption {
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
- export interface PropSelectProps extends Omit<SelectProps, 'onSearch'> {
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
- /** 是否开启组件在可视区域中才发起useRequest请求 默认 false */
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
- dataSource?: DataOption[];
19
- /** list场景中过滤掉已选择的值 */
43
+ /**
44
+ * @description 数据源
45
+ * @default -
46
+ */
47
+ dataSource?: DataOptionType[];
48
+ /**
49
+ * @description list场景中过滤掉已选择的值
50
+ * @default false
51
+ */
20
52
  filterInList?: boolean;
21
- /** @deprecated 兼容 2.0 版本、3.0 使用view 模式 */
53
+ /**
54
+ * @deprecated 兼容 2.0 版本、3.0 使用view 模式
55
+ * @default -
56
+ */
22
57
  defaultDisableValue?: string;
23
- /** 是否展示 tooltip、当 label 特别长的时候使用 */
58
+ /**
59
+ * @description 是否展示 tooltip、当 label 特别长的时候使用
60
+ * @default false
61
+ */
24
62
  tooltip?: boolean;
25
- /** 是否展示 code-label 形式 */
63
+ /**
64
+ * @description 是否展示 code-label 形式
65
+ * @default false
66
+ */
26
67
  showCodeName?: boolean;
27
- /** 集成表单 form 的属性 */
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
- transformResponse?: (data: any) => DataOption[];
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
- optionRender?: (value: DataOption) => string | ReactNode;
49
- /** 用来转换修改value 和 getValueProps配合使用 */
50
- getChangeValue?: (value: DataOption) => any;
51
- /** 用来转换传入的value值 getChangeValue配合使用 */
52
- getValueProps?: (value: DataOption) => any;
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
- export interface ProSelectAction {
55
- /** 实例方法、根据 code | code[] 批量获取数据 */
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
- /** 获取发生请求的 useRequest 的 ref */
141
+ /**
142
+ * @description 获取发生请求的 useRequest 的 ref
143
+ */
58
144
  useRequestRef: Result<any, any>;
59
145
  }
60
- export interface ResponseData {
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;
@@ -2,6 +2,9 @@
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
3
 
4
4
  .pro-table {
5
+ .pro-tooltip .singleLine {
6
+ transition: none;
7
+ }
5
8
  &.pro-table-draggable-only {
6
9
  .ant-table-tbody {
7
10
  .anticon {
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { ProTabsProps } from './propType';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<ProTabsProps, "ref"> & React.RefAttributes<unknown>>;
2
+ import type { ProTabsType } from './propType';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<ProTabsType, "ref"> & React.RefAttributes<unknown>>;
4
4
  export default _default;
@@ -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)) {