@zat-design/sisyphus-react 4.2.0-beta.3 → 4.2.0-beta.4

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 (76) hide show
  1. package/README.md +16 -5
  2. package/dist/index.esm.css +1 -1
  3. package/dist/less.esm.css +1 -1
  4. package/es/ProAction/index.less +0 -1
  5. package/es/ProDownload/style/index.less +0 -1
  6. package/es/ProDrawerForm/style/index.less +2 -1
  7. package/es/ProEditLabel/style/index.less +0 -1
  8. package/es/ProEditTable/components/Summary/index.d.ts +1 -1
  9. package/es/ProEditTable/style/index.less +150 -114
  10. package/es/ProEditTable/utils/config.d.ts +2 -2
  11. package/es/ProEditTable/utils/tools.d.ts +1 -1
  12. package/es/ProEditTable/utils/useEditTableError.d.ts +1 -1
  13. package/es/ProEnum/hooks/useEnum.js +22 -71
  14. package/es/ProEnum/hooks/useEnumRequest.js +9 -10
  15. package/es/ProEnum/hooks/useFrequentEnumRequest.js +2 -1
  16. package/es/ProEnum/index.d.ts +2 -0
  17. package/es/ProEnum/index.js +4 -2
  18. package/es/ProEnum/style/index.less +0 -1
  19. package/es/ProEnum/utils/frequentEnum.d.ts +1 -2
  20. package/es/ProEnum/utils/frequentEnum.js +2 -2
  21. package/es/ProEnum/utils/getEnum.d.ts +47 -0
  22. package/es/ProEnum/utils/getEnum.js +151 -0
  23. package/es/ProEnum/utils/index.d.ts +13 -3
  24. package/es/ProEnum/utils/index.js +44 -10
  25. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +4 -5
  26. package/es/ProForm/components/base/TimePicker/style/index.less +0 -1
  27. package/es/ProForm/components/combination/Container/style/index.less +18 -19
  28. package/es/ProForm/components/combination/FormList/style/index.less +4 -4
  29. package/es/ProForm/components/combination/Group/style/index.less +43 -50
  30. package/es/ProForm/components/combination/Group/utils/index.d.ts +27 -27
  31. package/es/ProForm/components/combination/ProModalSelect/style/index.less +20 -16
  32. package/es/ProForm/components/combination/ProNumberRange/style/index.less +3 -3
  33. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  34. package/es/ProForm/style/index.less +39 -44
  35. package/es/ProLayout/components/Layout/Header/style/index.less +224 -222
  36. package/es/ProLayout/components/Layout/Icon/style/index.less +1 -1
  37. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +4 -1
  38. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +9 -7
  39. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +3 -5
  40. package/es/ProLayout/components/Layout/Menu/style/index.less +9 -5
  41. package/es/ProLayout/components/Layout/index.less +4 -4
  42. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +45 -45
  43. package/es/ProLayout/components/ProCollapse/style/index.less +30 -32
  44. package/es/ProLayout/components/ProFooter/style/index.less +0 -1
  45. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +31 -31
  46. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -7
  47. package/es/ProLayout/components/ProHeader/style/index.less +8 -9
  48. package/es/ProLayout/components/TabsManager/style/index.less +9 -11
  49. package/es/ProLayout/style/index.less +197 -201
  50. package/es/ProLayout/utils/index.d.ts +1 -1
  51. package/es/ProSelect/style/index.less +0 -1
  52. package/es/ProSelect/utils/index.d.ts +1 -1
  53. package/es/ProStep/components/Item/index.js +1 -1
  54. package/es/ProStep/components/LazyLoad/index.d.ts +19 -0
  55. package/es/ProStep/components/LazyLoad/index.js +55 -0
  56. package/es/ProStep/components/Listener/index.js +1 -1
  57. package/es/ProStep/propsType.d.ts +1 -1
  58. package/es/ProStep/style/index.less +7 -9
  59. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +1 -1
  60. package/es/ProTable/propsType.d.ts +1 -1
  61. package/es/ProTable/style/index.less +24 -22
  62. package/es/ProTooltip/style/index.less +0 -1
  63. package/es/ProTree/components/ProTreeSelect/style/index.less +102 -99
  64. package/es/ProTree/style/index.less +108 -109
  65. package/es/ProTreeModal/style/index.less +10 -9
  66. package/es/ProUpload/style/index.less +20 -22
  67. package/es/global.less +1 -1
  68. package/es/index.d.ts +2 -2
  69. package/es/style/core/normalize.less +11 -2
  70. package/es/style/index.less +2 -2
  71. package/es/style/less.less +2 -2
  72. package/es/style/theme/antd.less +19 -23
  73. package/es/style/theme/base.less +81 -81
  74. package/es/style/theme/tokens.less +13 -14
  75. package/es/style/variables.less +1 -1
  76. package/package.json +23 -20
@@ -3,46 +3,46 @@ import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
3
3
  export type levelType = '1' | '2' | '3';
4
4
  export interface TitleListType {
5
5
  /**
6
- * @description 描述的标题
7
- * @default -
8
- */
6
+ * @description 描述的标题
7
+ * @default -
8
+ */
9
9
  label: string;
10
10
  /**
11
- * @description 描述的值
12
- * @default -
13
- */
11
+ * @description 描述的值
12
+ * @default -
13
+ */
14
14
  value: string | number | undefined | React.ReactNode;
15
15
  }
16
16
  export interface ProCollapseType {
17
17
  /**
18
- * @description 折叠头部标题
19
- * @default -
20
- */
18
+ * @description 折叠头部标题
19
+ * @default -
20
+ */
21
21
  title?: string | React.ReactNode;
22
22
  /**
23
- * @description 展开收起状态
24
- * @default false
25
- */
23
+ * @description 展开收起状态
24
+ * @default false
25
+ */
26
26
  collapsed?: boolean;
27
27
  /**
28
- * @description 自动适应窗口大小
29
- * @default -
30
- */
28
+ * @description 自动适应窗口大小
29
+ * @default -
30
+ */
31
31
  autoHeight?: boolean;
32
32
  /**
33
- * @description 标题前图标
34
- * @default -
35
- */
33
+ * @description 标题前图标
34
+ * @default -
35
+ */
36
36
  icon?: React.ReactNode | boolean;
37
37
  /**
38
- * @description 折叠头部多个标题
39
- * @default []
40
- */
38
+ * @description 折叠头部多个标题
39
+ * @default []
40
+ */
41
41
  titleList?: TitleListType[];
42
42
  /**
43
- * @description id用于锚点定位
44
- * @default -
45
- */
43
+ * @description id用于锚点定位
44
+ * @default -
45
+ */
46
46
  id?: string;
47
47
  /**
48
48
  * @description 内容区域样式
@@ -50,9 +50,9 @@ export interface ProCollapseType {
50
50
  */
51
51
  contentStyle?: CSSProperties;
52
52
  /**
53
- * @description 折叠等级
54
- * @default 1
55
- */
53
+ * @description 折叠等级
54
+ * @default 1
55
+ */
56
56
  level?: levelType;
57
57
  /**
58
58
  * @description 二级折叠是否带收起
@@ -65,34 +65,34 @@ export interface ProCollapseType {
65
65
  */
66
66
  threeCollapse?: boolean;
67
67
  /**
68
- * @description 标题右侧扩展信息
69
- * @default -
70
- */
68
+ * @description 标题右侧扩展信息
69
+ * @default -
70
+ */
71
71
  extra?: React.ReactNode;
72
72
  /**
73
- * @description 当有titleList显示的换行的数量
74
- * @default 3
75
- */
73
+ * @description 当有titleList显示的换行的数量
74
+ * @default 3
75
+ */
76
76
  column?: number;
77
77
  /**
78
- * @description 一级标题是否默认折叠
79
- * @default false
80
- */
78
+ * @description 一级标题是否默认折叠
79
+ * @default false
80
+ */
81
81
  folding?: boolean;
82
82
  /**
83
- * @description 控制折叠面板展开状态
84
- * @default -
85
- */
83
+ * @description 控制折叠面板展开状态
84
+ * @default -
85
+ */
86
86
  open?: boolean;
87
87
  /**
88
- * @description antd Collapse属性
89
- * @default -
90
- */
88
+ * @description antd Collapse属性
89
+ * @default -
90
+ */
91
91
  collapseProps?: CollapseProps;
92
92
  /**
93
- * @description antd CollapsePanel属性
94
- * @default -
95
- */
93
+ * @description antd CollapsePanel属性
94
+ * @default -
95
+ */
96
96
  collapsePanelProps?: CollapsePanelProps;
97
97
  [key: string]: any;
98
98
  }
@@ -1,22 +1,22 @@
1
1
  @import '../../../../style/variables.less';
2
2
 
3
3
  .pro-collapse {
4
- .pro-collapse-icon{
4
+ .pro-collapse-icon {
5
5
  max-width: 18px;
6
6
  min-width: 16px;
7
- img{
7
+ img {
8
8
  vertical-align: sub;
9
9
  }
10
10
  }
11
11
 
12
12
  &.pro-collapse-no-title {
13
- &>.pro-collapse-panel{
14
- &>.@{ant-prefix}-collapse-header {
13
+ & > .pro-collapse-panel {
14
+ & > .@{ant-prefix}-collapse-header {
15
15
  display: none !important;
16
16
  }
17
17
  }
18
-
19
- .pro-collapse-level2{
18
+
19
+ .pro-collapse-level2 {
20
20
  .@{ant-prefix}-collapse-header {
21
21
  display: flex !important;
22
22
  }
@@ -67,7 +67,7 @@
67
67
 
68
68
  &.pro-collapse-level2 {
69
69
  background: var(--zaui-base-bg, #ffffff);
70
- .pro-collapse-panel{
70
+ .pro-collapse-panel {
71
71
  margin-bottom: 0;
72
72
  }
73
73
  .@{ant-prefix}-collapse-header {
@@ -106,7 +106,7 @@
106
106
 
107
107
  .pro-collapse-level2-collapse {
108
108
  margin-bottom: var(--zaui-space-size-md, 16px);
109
- &.@{ant-prefix}-collapse-item-active{
109
+ &.@{ant-prefix}-collapse-item-active {
110
110
  margin-bottom: 0;
111
111
  }
112
112
  .@{ant-prefix}-collapse-header {
@@ -114,7 +114,7 @@
114
114
  border-bottom: 1px solid #dee0e3;
115
115
  margin: 0 -8px;
116
116
  border-radius: 0 !important;
117
- .@{ant-prefix}-collapse-arrow{
117
+ .@{ant-prefix}-collapse-arrow {
118
118
  right: 8px;
119
119
  }
120
120
  }
@@ -153,7 +153,7 @@
153
153
  .@{ant-prefix}-collapse-expand-icon {
154
154
  display: none;
155
155
  }
156
- .pro-collapse-content{
156
+ .pro-collapse-content {
157
157
  padding: var(--zaui-space-size-sm, 8px) 0 !important;
158
158
  }
159
159
  }
@@ -166,7 +166,7 @@
166
166
  }
167
167
 
168
168
  &.pro-collapse-list {
169
- .@{ant-prefix}-descriptions-view{
169
+ .@{ant-prefix}-descriptions-view {
170
170
  margin: 0 -8px;
171
171
  }
172
172
  .@{ant-prefix}-descriptions-row > th,
@@ -205,13 +205,12 @@
205
205
  font-size: var(--zaui-font-size, 14px);
206
206
  }
207
207
  }
208
-
209
208
  }
210
209
 
211
210
  &.pro-collapse-level3 {
212
211
  margin-bottom: var(--zaui-space-size-md, 16px);
213
212
 
214
- .pro-collapse-level2{
213
+ .pro-collapse-level2 {
215
214
  margin-top: 8px !important;
216
215
  .pro-collapse-panel {
217
216
  border: none !important;
@@ -219,15 +218,15 @@
219
218
  .@{ant-prefix}-collapse-header {
220
219
  height: auto !important;
221
220
  background: #fff !important;
222
- &:hover{
221
+ &:hover {
223
222
  background: #fff !important;
224
223
  }
225
224
  .@{ant-prefix}-collapse-title {
226
- &:before{
225
+ &:before {
227
226
  display: block;
228
227
  }
229
228
  }
230
-
229
+
231
230
  .@{ant-prefix}-collapse-extra {
232
231
  .extra-info {
233
232
  font-size: var(--zaui-font-size, 14px);
@@ -235,17 +234,16 @@
235
234
  }
236
235
  }
237
236
  }
238
- .@{ant-prefix}-collapse-content{
239
- .@{ant-prefix}-collapse-body{
240
- .pro-collapse-content{
237
+ .@{ant-prefix}-collapse-content {
238
+ .@{ant-prefix}-collapse-body {
239
+ .pro-collapse-content {
241
240
  padding: var(--zaui-space-size-sm, 8px) 0 !important;
242
241
  }
243
242
  }
244
243
  }
245
-
246
244
  }
247
-
248
- .@{ant-prefix}-collapse-item-active{
245
+
246
+ .@{ant-prefix}-collapse-item-active {
249
247
  margin-bottom: 0 !important;
250
248
  }
251
249
  .pro-collapse-panel {
@@ -253,15 +251,15 @@
253
251
  margin-bottom: var(--zaui-space-size-md, 16px);
254
252
  overflow: hidden;
255
253
  border-radius: 8px !important;
256
-
254
+
257
255
  &:last-child {
258
256
  margin-bottom: 0;
259
257
  border-bottom: 1px solid #d9d9d9;
260
258
  }
261
259
  }
262
260
 
263
- .pro-collapse-level3-no-collapse{
264
- .@{ant-prefix}-collapse-header{
261
+ .pro-collapse-level3-no-collapse {
262
+ .@{ant-prefix}-collapse-header {
265
263
  padding: 0 !important;
266
264
  }
267
265
  }
@@ -269,7 +267,7 @@
269
267
  .@{ant-prefix}-collapse-header {
270
268
  height: 48px !important;
271
269
  padding: 0 var(--zaui-space-size-md, 16px) !important;
272
- background: #F8F8F8 !important;
270
+ background: #f8f8f8 !important;
273
271
  border-radius: 8px;
274
272
  align-items: center !important;
275
273
  justify-content: center !important;
@@ -282,7 +280,7 @@
282
280
  font-weight: 500;
283
281
  color: var(--zaui-text, #343434);
284
282
  padding-left: 16px !important;
285
- &:before{
283
+ &:before {
286
284
  display: none;
287
285
  }
288
286
  }
@@ -311,7 +309,7 @@
311
309
  color: #999;
312
310
  margin-right: 8px;
313
311
  }
314
-
312
+
315
313
  .@{ant-prefix}-collapse-header {
316
314
  cursor: pointer;
317
315
  padding: 0 !important;
@@ -326,7 +324,7 @@
326
324
  .@{ant-prefix}-collapse-expand-icon {
327
325
  display: none !important;
328
326
  }
329
-
327
+
330
328
  .@{ant-prefix}-collapse-header {
331
329
  cursor: default;
332
330
  }
@@ -340,14 +338,14 @@
340
338
  > .arrow {
341
339
  color: var(--zaui-text, #343434);
342
340
  cursor: default;
343
- background: #F8F8F8 !important;
341
+ background: #f8f8f8 !important;
344
342
  }
345
343
  }
346
344
  // 当pro-collapse-content直接包含level3且不包含level2时,添加padding
347
- .pro-collapse-level2 .pro-collapse-content:has(.pro-collapse-level3) {
345
+ .pro-collapse-level2 .pro-collapse-content:has(.pro-collapse-level3) {
348
346
  padding: var(--zaui-space-size-md, 16px) !important;
349
347
  padding-right: 0 !important;
350
- }
348
+ }
351
349
  // 修复maxTagCount时"+ N..."区域的hover问题. 解决antd多选Select的input元素遮挡"+ N..."区域导致无法触发hover事件的问题
352
350
  .@{ant-prefix}-select-selection-overflow-item-rest {
353
351
  position: relative;
@@ -1,4 +1,3 @@
1
-
2
1
  .pro-footer {
3
2
  position: fixed;
4
3
  right: 0;
@@ -131,9 +131,9 @@ export interface ProHeaderType {
131
131
  */
132
132
  breadcrumbList?: BreadcrumbColumnType[];
133
133
  /**
134
- * @description 面包屑配置数据
135
- * @default -
136
- */
134
+ * @description 面包屑配置数据
135
+ * @default -
136
+ */
137
137
  breadcrumbColumns?: BreadcrumbColumnType[];
138
138
  /**
139
139
  * @description 是否隐藏溢出
@@ -146,51 +146,51 @@ export interface ProHeaderType {
146
146
  */
147
147
  actionRender?: React.ReactNode | React.ReactNode[];
148
148
  /**
149
- * @description 次级描述数据源配置
150
- * @deprecated 将于下个版本 4.0.0 被弃用
151
- * @default -
152
- */
149
+ * @description 次级描述数据源配置
150
+ * @deprecated 将于下个版本 4.0.0 被弃用
151
+ * @default -
152
+ */
153
153
  describeList?: SubDescribeColumnType[];
154
154
  /**
155
- * @description 主要描述数据源配置
156
- * @default -
157
- */
155
+ * @description 主要描述数据源配置
156
+ * @default -
157
+ */
158
158
  describeColumns?: DescribeColumnType[];
159
159
  /**
160
- * @description 次级描述数据源配置
161
- * @default -
162
- */
160
+ * @description 次级描述数据源配置
161
+ * @default -
162
+ */
163
163
  subDescribeColumns?: SubDescribeColumnType[];
164
164
  /**
165
- * @description 次级描述是否展开
166
- * @default -
167
- */
165
+ * @description 次级描述是否展开
166
+ * @default -
167
+ */
168
168
  collapsed?: boolean;
169
169
  /**
170
- * @description 固定悬浮顶部距离
171
- * @default -
172
- */
170
+ * @description 固定悬浮顶部距离
171
+ * @default -
172
+ */
173
173
  fixedTop?: string | number;
174
174
  /**
175
- * @description 是否显示返回按钮
176
- * @default -
177
- */
175
+ * @description 是否显示返回按钮
176
+ * @default -
177
+ */
178
178
  showBack?: boolean;
179
179
  showShadow?: boolean;
180
180
  /**
181
- * @description 自动返回
182
- * @default 2
183
- */
181
+ * @description 自动返回
182
+ * @default 2
183
+ */
184
184
  autoBack?: number;
185
185
  /**
186
- * @description 是否开启返回提示
187
- * @default false
188
- */
186
+ * @description 是否开启返回提示
187
+ * @default false
188
+ */
189
189
  isConfirmBack?: boolean;
190
190
  /**
191
- * @description 返回时二次确认弹框的属性
192
- * @default -
193
- */
191
+ * @description 返回时二次确认弹框的属性
192
+ * @default -
193
+ */
194
194
  isConfirmBackModalProps?: ModalProps;
195
195
  /**
196
196
  * @description 层级
@@ -2,22 +2,22 @@
2
2
 
3
3
  .back-button-container {
4
4
  &.@{ant-prefix}-btn {
5
- color : var(--zaui-text);
5
+ color: var(--zaui-text);
6
6
  font-weight: 400;
7
- background : var(--zaui-disabled-bg) !important;
8
- border : none !important;
7
+ background: var(--zaui-disabled-bg) !important;
8
+ border: none !important;
9
9
 
10
10
  &:hover {
11
- color : var(--zaui-aide-text) !important;
11
+ color: var(--zaui-aide-text) !important;
12
12
  background: var(--zaui-disabled-bg) !important;
13
- border : none !important;
13
+ border: none !important;
14
14
  }
15
15
 
16
16
  &:active,
17
17
  &:focus {
18
- color : var(--zaui-text) !important;
18
+ color: var(--zaui-text) !important;
19
19
  font-weight: 400;
20
- background : var(--zaui-disabled-bg) !important;
20
+ background: var(--zaui-disabled-bg) !important;
21
21
  }
22
22
  }
23
23
  }
@@ -49,7 +49,7 @@
49
49
  a {
50
50
  color: var(--zaui-link, #006aff);
51
51
  }
52
- .pro-header-describe-items-calc{
52
+ .pro-header-describe-items-calc {
53
53
  position: relative;
54
54
  }
55
55
  &.pro-header-describe-hidden {
@@ -62,16 +62,16 @@
62
62
  .pro-header-describe-label {
63
63
  font-weight: normal;
64
64
  }
65
- .pro-header-describe-value{
65
+ .pro-header-describe-value {
66
66
  font-weight: 600;
67
- .@{ant-prefix}-space-item{
67
+ .@{ant-prefix}-space-item {
68
68
  font-weight: 600;
69
69
  }
70
- .pro-header-describe-items{
71
- span:first-child{
70
+ .pro-header-describe-items {
71
+ span:first-child {
72
72
  margin-right: 2px;
73
73
  }
74
- .pro-header-describe-items-omit{
74
+ .pro-header-describe-items-omit {
75
75
  position: absolute;
76
76
  right: 0;
77
77
  background: #fff;
@@ -378,7 +378,6 @@
378
378
  }
379
379
  }
380
380
 
381
-
382
381
  span {
383
382
  color: #0a0a0a;
384
383
  font-weight: 400;
@@ -400,9 +399,9 @@
400
399
  }
401
400
  }
402
401
 
403
- .pro-header-describe-items-tip{
402
+ .pro-header-describe-items-tip {
404
403
  max-width: 600px;
405
- .pro-header-describe-items-tip-value{
404
+ .pro-header-describe-items-tip-value {
406
405
  margin-bottom: var(--zaui-space-size-sm, 8px);
407
406
  }
408
407
  }
@@ -30,13 +30,13 @@
30
30
  background: transparent;
31
31
  pointer-events: none;
32
32
  z-index: 1;
33
- box-shadow: 1px 2px 4px 1px rgba(0, 55, 93, .2);
33
+ box-shadow: 1px 2px 4px 1px rgba(0, 55, 93, 0.2);
34
34
  }
35
35
 
36
- .pro-layout-tab-icon {
36
+ .pro-layout-tab-icon {
37
37
  display: none !important;
38
38
  }
39
- .@{ant-prefix}-tabs-nav-list{
39
+ .@{ant-prefix}-tabs-nav-list {
40
40
  overflow: initial;
41
41
  }
42
42
 
@@ -70,7 +70,6 @@
70
70
  }
71
71
 
72
72
  &-content {
73
-
74
73
  .tab-pane {
75
74
  &.hidden {
76
75
  display: none;
@@ -134,7 +133,7 @@
134
133
  padding: 0 !important;
135
134
  margin: 0 !important;
136
135
  background: transparent !important;
137
- border: none ;
136
+ border: none;
138
137
  border-radius: 0 !important;
139
138
  cursor: pointer;
140
139
  transition: none; // 由内部 TabItemComponent 处理过渡
@@ -160,7 +159,7 @@
160
159
  .@{ant-prefix}-tabs-tab-active {
161
160
  background: transparent !important;
162
161
  border: none !important;
163
- .pro-layout-tab-item{
162
+ .pro-layout-tab-item {
164
163
  border-color: transparent !important;
165
164
  }
166
165
 
@@ -173,7 +172,6 @@
173
172
  .@{ant-prefix}-tabs-ink-bar {
174
173
  display: none !important;
175
174
  }
176
-
177
175
  }
178
176
  }
179
177
 
@@ -284,14 +282,14 @@
284
282
  }
285
283
  }
286
284
 
287
- .pro-layout-tabs-dropdown-menu{
288
- .@{ant-prefix}-tabs-dropdown-menu-item-remove{
285
+ .pro-layout-tabs-dropdown-menu {
286
+ .@{ant-prefix}-tabs-dropdown-menu-item-remove {
289
287
  display: none !important;
290
288
  }
291
- .pro-layout-tab-icon{
289
+ .pro-layout-tab-icon {
292
290
  display: none !important;
293
291
  }
294
- .pro-layout-tab-content{
292
+ .pro-layout-tab-content {
295
293
  width: 100%;
296
294
  }
297
295
  }