@zat-design/sisyphus-react 4.2.0-beta.3 → 4.2.0-beta.5
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/README.md +16 -5
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProAction/index.less +0 -1
- package/es/ProDownload/style/index.less +0 -1
- package/es/ProDrawerForm/style/index.less +2 -1
- package/es/ProEditLabel/style/index.less +0 -1
- package/es/ProEditTable/components/Summary/index.d.ts +1 -1
- package/es/ProEditTable/style/index.less +150 -114
- package/es/ProEditTable/utils/config.d.ts +2 -2
- package/es/ProEditTable/utils/tools.d.ts +1 -1
- package/es/ProEditTable/utils/useEditTableError.d.ts +1 -1
- package/es/ProEnum/hooks/useEnum.js +22 -71
- package/es/ProEnum/hooks/useEnumRequest.js +9 -10
- package/es/ProEnum/hooks/useFrequentEnumRequest.js +2 -1
- package/es/ProEnum/index.d.ts +2 -0
- package/es/ProEnum/index.js +4 -2
- package/es/ProEnum/style/index.less +0 -1
- package/es/ProEnum/utils/frequentEnum.d.ts +1 -2
- package/es/ProEnum/utils/frequentEnum.js +2 -2
- package/es/ProEnum/utils/getEnum.d.ts +47 -0
- package/es/ProEnum/utils/getEnum.js +151 -0
- package/es/ProEnum/utils/index.d.ts +13 -3
- package/es/ProEnum/utils/index.js +44 -10
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +4 -5
- package/es/ProForm/components/base/TimePicker/style/index.less +0 -1
- package/es/ProForm/components/combination/Container/style/index.less +18 -19
- package/es/ProForm/components/combination/FormList/style/index.less +4 -4
- package/es/ProForm/components/combination/Group/style/index.less +43 -50
- package/es/ProForm/components/combination/Group/utils/index.d.ts +20 -20
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +20 -16
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +3 -3
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/style/index.less +39 -44
- package/es/ProLayout/components/Layout/Header/style/index.less +224 -222
- package/es/ProLayout/components/Layout/Icon/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +4 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +9 -7
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +3 -5
- package/es/ProLayout/components/Layout/Menu/style/index.less +9 -5
- package/es/ProLayout/components/Layout/index.less +4 -4
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +45 -45
- package/es/ProLayout/components/ProCollapse/style/index.less +30 -32
- package/es/ProLayout/components/ProFooter/style/index.less +0 -1
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +31 -31
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -7
- package/es/ProLayout/components/ProHeader/style/index.less +8 -9
- package/es/ProLayout/components/TabsManager/style/index.less +9 -11
- package/es/ProLayout/style/index.less +197 -201
- package/es/ProLayout/utils/index.d.ts +1 -1
- package/es/ProSelect/style/index.less +0 -1
- package/es/ProSelect/utils/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.js +1 -1
- package/es/ProStep/components/LazyLoad/index.d.ts +19 -0
- package/es/ProStep/components/LazyLoad/index.js +55 -0
- package/es/ProStep/components/Listener/index.js +1 -1
- package/es/ProStep/index.d.ts +1 -1
- package/es/ProStep/propsType.d.ts +1 -1
- package/es/ProStep/style/index.less +7 -9
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +1 -1
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +24 -22
- package/es/ProTooltip/style/index.less +0 -1
- package/es/ProTree/components/ProTreeSelect/style/index.less +102 -99
- package/es/ProTree/style/index.less +108 -109
- package/es/ProTreeModal/style/index.less +10 -9
- package/es/ProUpload/style/index.less +20 -22
- package/es/global.less +1 -1
- package/es/index.d.ts +2 -2
- package/es/style/core/normalize.less +11 -2
- package/es/style/index.less +2 -2
- package/es/style/less.less +2 -2
- package/es/style/theme/antd.less +19 -23
- package/es/style/theme/base.less +81 -81
- package/es/style/theme/tokens.less +13 -14
- package/es/style/variables.less +1 -1
- package/package.json +37 -20
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.pro-table {
|
|
4
4
|
.pro-tooltip .singleLine {
|
|
5
|
-
|
|
5
|
+
transition: none;
|
|
6
6
|
}
|
|
7
7
|
&.pro-table-draggable-only {
|
|
8
8
|
.ant-table-tbody {
|
|
@@ -24,10 +24,9 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
.@{ant-prefix}-table-content {
|
|
29
28
|
> table {
|
|
30
|
-
.@{ant-prefix}-table-cell-fix-left-last:after{
|
|
29
|
+
.@{ant-prefix}-table-cell-fix-left-last:after {
|
|
31
30
|
width: 8px;
|
|
32
31
|
}
|
|
33
32
|
.@{ant-prefix}-table-summary {
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
display: flex;
|
|
54
53
|
justify-content: center;
|
|
55
54
|
align-items: center;
|
|
56
|
-
>button.@{ant-prefix}-table-row-expand-icon{
|
|
55
|
+
> button.@{ant-prefix}-table-row-expand-icon {
|
|
57
56
|
position: relative;
|
|
58
57
|
left: auto;
|
|
59
58
|
top: auto;
|
|
@@ -103,7 +102,7 @@
|
|
|
103
102
|
display: flex;
|
|
104
103
|
justify-content: flex-end;
|
|
105
104
|
margin-right: 8px;
|
|
106
|
-
.@{ant-prefix}-btn:hover{
|
|
105
|
+
.@{ant-prefix}-btn:hover {
|
|
107
106
|
background: #fff !important;
|
|
108
107
|
}
|
|
109
108
|
.anticon {
|
|
@@ -255,14 +254,14 @@
|
|
|
255
254
|
}
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
.column-config .right-actions .@{ant-prefix}-btn{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
257
|
+
.column-config .right-actions .@{ant-prefix}-btn {
|
|
258
|
+
&:hover,
|
|
259
|
+
&:visited,
|
|
260
|
+
&:focus {
|
|
261
|
+
color: #333 !important;
|
|
262
|
+
background: #fff !important;
|
|
263
|
+
border: 1px solid #d9d9d9 !important;
|
|
264
|
+
}
|
|
266
265
|
}
|
|
267
266
|
|
|
268
267
|
.custom-column-btn {
|
|
@@ -280,13 +279,12 @@
|
|
|
280
279
|
}
|
|
281
280
|
}
|
|
282
281
|
|
|
283
|
-
|
|
284
282
|
.@{ant-prefix}-table table tbody.@{ant-prefix}-table-tbody,
|
|
285
283
|
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table tbody.@{ant-prefix}-table-tbody {
|
|
286
284
|
tr.@{ant-prefix}-table-row.new-cell,
|
|
287
285
|
tr.@{ant-prefix}-table-row.new-cell:hover {
|
|
288
286
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
|
289
|
-
td.@{ant-prefix}-table-cell{
|
|
287
|
+
td.@{ant-prefix}-table-cell {
|
|
290
288
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
|
291
289
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
|
292
290
|
&.@{ant-prefix}-table-cell-fix-right {
|
|
@@ -313,7 +311,7 @@
|
|
|
313
311
|
text-overflow: ellipsis;
|
|
314
312
|
}
|
|
315
313
|
}
|
|
316
|
-
.add-cell{
|
|
314
|
+
.add-cell {
|
|
317
315
|
display: block;
|
|
318
316
|
margin-left: -8px;
|
|
319
317
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
@@ -602,8 +600,8 @@
|
|
|
602
600
|
|
|
603
601
|
.@{ant-prefix}-table-summary {
|
|
604
602
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
605
|
-
td{
|
|
606
|
-
padding:calc(4px + var(--zaui-size)* 8px);
|
|
603
|
+
td {
|
|
604
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
607
605
|
}
|
|
608
606
|
.@{ant-prefix}-table-cell {
|
|
609
607
|
font-weight: 500;
|
|
@@ -617,7 +615,11 @@
|
|
|
617
615
|
> tr.@{ant-prefix}-table-expanded-row {
|
|
618
616
|
> td {
|
|
619
617
|
> .pro-table {
|
|
620
|
-
margin-inline: calc(
|
|
618
|
+
margin-inline: calc(
|
|
619
|
+
var(--ant-control-interactive-size) + 2 * var(--ant-padding) -
|
|
620
|
+
var(--ant-table-cell-padding-inline)
|
|
621
|
+
)
|
|
622
|
+
calc(-1 * var(--ant-table-cell-padding-inline));
|
|
621
623
|
}
|
|
622
624
|
}
|
|
623
625
|
}
|
|
@@ -634,10 +636,10 @@
|
|
|
634
636
|
}
|
|
635
637
|
}
|
|
636
638
|
|
|
637
|
-
.@{ant-prefix}-table{
|
|
638
|
-
.original-value-tooltip{
|
|
639
|
+
.@{ant-prefix}-table {
|
|
640
|
+
.original-value-tooltip {
|
|
639
641
|
position: fixed;
|
|
640
|
-
&.@{ant-prefix}-tooltip > @{ant-prefix}-tooltip-content > @{ant-prefix}-tooltip-inner{
|
|
642
|
+
&.@{ant-prefix}-tooltip > @{ant-prefix}-tooltip-content > @{ant-prefix}-tooltip-inner {
|
|
641
643
|
width: max-content;
|
|
642
644
|
}
|
|
643
645
|
}
|
|
@@ -1,119 +1,122 @@
|
|
|
1
1
|
@import '../../../../style/variables.less';
|
|
2
2
|
|
|
3
|
-
.pro-tree-select{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
3
|
+
.pro-tree-select {
|
|
4
|
+
.@{ant-prefix}-select-selector {
|
|
5
|
+
// 单选树选择结果框里title不用待后缀
|
|
6
|
+
.check-mark-icon {
|
|
7
|
+
display: none;
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
}
|
|
10
|
+
.@{ant-prefix}-select.@{ant-prefix}-select-single.@{ant-prefix}-select-show-arrow:not(
|
|
11
|
+
.@{ant-prefix}-select-show-search
|
|
12
|
+
) {
|
|
13
|
+
&.@{ant-prefix}-select-open {
|
|
14
|
+
.@{ant-prefix}-select-arrow {
|
|
15
|
+
transition: transform 300ms ease-in-out;
|
|
16
|
+
transform: rotate(180deg);
|
|
17
|
+
}
|
|
17
18
|
}
|
|
19
|
+
}
|
|
18
20
|
}
|
|
19
|
-
.pro-tree-select-drop-down-container{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
.pro-tree-select-drop-down-container {
|
|
22
|
+
&.@{ant-prefix}-select-dropdown {
|
|
23
|
+
.highlight-search-text {
|
|
24
|
+
color: @zaui-brand;
|
|
25
|
+
}
|
|
26
|
+
.@{ant-prefix}-select-tree-list-holder-inner {
|
|
27
|
+
position: relative !important;
|
|
28
|
+
}
|
|
29
|
+
&.@{ant-prefix}-tree-select-dropdown {
|
|
30
|
+
width: auto !important;
|
|
31
|
+
padding: 0px;
|
|
32
|
+
}
|
|
33
|
+
&.singal-tree,
|
|
34
|
+
&.checkable-tree {
|
|
35
|
+
.@{ant-prefix}-select-tree {
|
|
36
|
+
.@{ant-prefix}-select-tree-treenode {
|
|
37
|
+
padding-top: var(--zaui-space-size-xs);
|
|
38
|
+
padding-bottom: var(--zaui-space-size-xs);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.highlight {
|
|
42
|
+
color: red;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// 隐藏单选下拉树后面勾号
|
|
46
|
+
.@{ant-prefix}-select-tree-node-content-wrapper {
|
|
47
|
+
.check-mark-icon {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// 单选
|
|
52
|
+
&.signal-tree {
|
|
53
|
+
.@{ant-prefix}-select-tree {
|
|
54
|
+
.@{ant-prefix}-select-tree-treenode {
|
|
55
|
+
position: relative;
|
|
56
|
+
padding-right: 50px;
|
|
57
|
+
padding-left: 7px;
|
|
58
|
+
z-index: 0;
|
|
59
|
+
&:after {
|
|
60
|
+
content: '';
|
|
61
|
+
display: none;
|
|
62
|
+
position: absolute;
|
|
63
|
+
z-index: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
background-color: @zaui-brand;
|
|
68
|
+
opacity: 0.1;
|
|
69
|
+
}
|
|
70
|
+
&.@{ant-prefix}-select-tree-treenode-selected:after {
|
|
71
|
+
display: block;
|
|
72
|
+
}
|
|
23
73
|
}
|
|
24
|
-
.@{ant-prefix}-select-tree-
|
|
25
|
-
|
|
74
|
+
.@{ant-prefix}-select-tree-treenode:hover {
|
|
75
|
+
background-color: var(--zaui-disabled-bg);
|
|
26
76
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
77
|
+
.check-option-text {
|
|
78
|
+
.check-mark-icon {
|
|
79
|
+
position: absolute;
|
|
80
|
+
right: -34px;
|
|
81
|
+
top: 2px;
|
|
82
|
+
display: none;
|
|
83
|
+
color: var(--zaui-list-item-selected-bg);
|
|
84
|
+
}
|
|
30
85
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.highlight{
|
|
39
|
-
color: red;
|
|
40
|
-
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// 复选
|
|
89
|
+
&.checkable-tree {
|
|
90
|
+
.@{ant-prefix}-select-tree {
|
|
91
|
+
.@{ant-prefix}-select-tree-treenode {
|
|
92
|
+
padding-left: 7px;
|
|
41
93
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.check-mark-icon{
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
94
|
+
.@{ant-prefix}-select-tree-treenode:hover {
|
|
95
|
+
background-color: var(--zaui-disabled-bg);
|
|
47
96
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.@{ant-prefix}-select-tree{
|
|
51
|
-
.@{ant-prefix}-select-tree-treenode{
|
|
52
|
-
position: relative;
|
|
53
|
-
padding-right: 50px;
|
|
54
|
-
padding-left: 7px;
|
|
55
|
-
z-index: 0;
|
|
56
|
-
&:after{
|
|
57
|
-
content: '';
|
|
58
|
-
display: none;
|
|
59
|
-
position: absolute;
|
|
60
|
-
z-index: 0;
|
|
61
|
-
left: 0;
|
|
62
|
-
width: 100%;
|
|
63
|
-
height: 100%;
|
|
64
|
-
background-color: @zaui-brand;
|
|
65
|
-
opacity: 0.1;
|
|
66
|
-
}
|
|
67
|
-
&.@{ant-prefix}-select-tree-treenode-selected:after{
|
|
68
|
-
display: block;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
.@{ant-prefix}-select-tree-treenode:hover{
|
|
72
|
-
background-color: var(--zaui-disabled-bg);
|
|
73
|
-
}
|
|
74
|
-
.check-option-text{
|
|
75
|
-
.check-mark-icon{
|
|
76
|
-
position: absolute;
|
|
77
|
-
right: -34px;
|
|
78
|
-
top: 2px;
|
|
79
|
-
display: none;
|
|
80
|
-
color: var(--zaui-list-item-selected-bg);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
97
|
+
.@{ant-prefix}-select-tree-node-content-wrapper {
|
|
98
|
+
padding-right: var(--zaui-space-size-md);
|
|
84
99
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
.@{ant-prefix}-select-tree{
|
|
88
|
-
.@{ant-prefix}-select-tree-treenode{
|
|
89
|
-
padding-left: 7px;
|
|
90
|
-
}
|
|
91
|
-
.@{ant-prefix}-select-tree-treenode:hover{
|
|
92
|
-
background-color: var(--zaui-disabled-bg);;
|
|
93
|
-
}
|
|
94
|
-
.@{ant-prefix}-select-tree-node-content-wrapper{
|
|
95
|
-
padding-right: var(--zaui-space-size-md);
|
|
96
|
-
}
|
|
97
|
-
.@{ant-prefix}-select-tree-node-content-wrapper:hover{
|
|
98
|
-
background-color: transparent;
|
|
99
|
-
}
|
|
100
|
-
.@{ant-prefix}-select-tree-checkbox{
|
|
101
|
-
margin-top: var(--zaui-space-size-xs);
|
|
102
|
-
align-self: stretch;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
100
|
+
.@{ant-prefix}-select-tree-node-content-wrapper:hover {
|
|
101
|
+
background-color: transparent;
|
|
105
102
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
width: var(--zaui-space-size-xs);
|
|
110
|
-
}
|
|
103
|
+
.@{ant-prefix}-select-tree-checkbox {
|
|
104
|
+
margin-top: var(--zaui-space-size-xs);
|
|
105
|
+
align-self: stretch;
|
|
111
106
|
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
// 数据小于10条
|
|
110
|
+
&.ten-count-tree-node {
|
|
111
|
+
.@{ant-prefix}-select-tree-switcher-noop {
|
|
112
|
+
width: var(--zaui-space-size-xs);
|
|
113
|
+
}
|
|
112
114
|
}
|
|
115
|
+
}
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
// ProTreeSelect 更多项数量样式
|
|
116
119
|
.pro-tree-more-count {
|
|
117
120
|
color: var(--zaui-primary, #006aff);
|
|
118
121
|
font-weight: bold;
|
|
119
|
-
}
|
|
122
|
+
}
|