@zat-design/sisyphus-react 3.2.2 → 3.3.0
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 +7 -0
- package/dist/index.esm.css +82 -37
- package/es/ProAction/index.less +3 -0
- package/es/ProDownload/index.js +9 -6
- package/es/ProDownload/style/index.less +5 -2
- package/es/ProDrawerForm/index.js +1 -15
- package/es/ProDrawerForm/style/index.less +76 -73
- package/es/ProEditLabel/style/index.less +12 -9
- package/es/ProEditTable/index.js +8 -4
- package/es/ProEditTable/style/index.less +57 -47
- package/es/ProEditTable/utils/config.d.ts +1 -1
- package/es/ProEditTable/utils/config.js +3 -3
- package/es/ProEnum/style/index.less +3 -0
- package/es/ProForm/components/base/DatePicker/index.js +0 -3
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
- package/es/ProForm/components/base/TextArea/index.less +4 -3
- package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
- package/es/ProForm/components/combination/Container/style/index.less +6 -3
- package/es/ProForm/components/combination/FormList/style/index.less +20 -24
- package/es/ProForm/components/combination/Group/style/index.less +18 -15
- package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
- package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
- package/es/ProForm/components/render/RenderFields.js +4 -5
- package/es/ProForm/style/index.less +46 -44
- package/es/ProIcon/style/index.less +4 -1
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
- package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
- package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
- package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
- package/es/ProLayout/components/ProFooter/style/index.less +11 -7
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
- package/es/ProLayout/components/ProHeader/style/index.less +12 -11
- package/es/ProLayout/style/index.less +10 -7
- package/es/ProSelect/index.less +3 -0
- package/es/ProStep/style/index.less +3 -0
- package/es/ProTable/index.js +15 -7
- package/es/ProTable/style/index.less +76 -54
- package/es/ProTable/utils.d.ts +1 -1
- package/es/ProTable/utils.js +38 -19
- package/es/ProTabs/style/index.less +25 -23
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +7 -6
- package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.js +7 -2
- package/es/ProThemeTools/propsType.d.ts +4 -0
- package/es/ProThemeTools/style/index.less +6 -3
- package/es/ProThemeTools/utils/index.d.ts +1 -1
- package/es/ProThemeTools/utils/index.js +2 -1
- package/es/ProTooltip/style/index.less +3 -0
- package/es/ProTree/components/CloseIcon.js +2 -4
- package/es/ProTree/components/ProTree.js +27 -11
- package/es/ProTree/components/Tree.js +1 -1
- package/es/ProTree/propsType.d.ts +2 -2
- package/es/ProTree/style/index.less +29 -26
- package/es/ProTree/utils.d.ts +6 -0
- package/es/ProTree/utils.js +11 -0
- package/es/ProTreeModal/components/CloseIcon.js +2 -4
- package/es/ProTreeModal/components/Trigger.d.ts +3 -0
- package/es/ProTreeModal/components/Trigger.js +79 -19
- package/es/ProTreeModal/index.js +38 -6
- package/es/ProTreeModal/propsType.d.ts +5 -2
- package/es/ProTreeModal/style/index.less +11 -8
- package/es/ProTreeSelect/index.js +6 -4
- package/es/ProTreeSelect/propsType.d.ts +2 -0
- package/es/ProTreeSelect/style/index.less +25 -22
- package/es/ProUpload/components/DragRender.js +7 -4
- package/es/ProUpload/components/ImageRender.js +5 -1
- package/es/ProUpload/index.js +11 -7
- package/es/ProUpload/style/index.less +13 -4
- package/es/ProViewer/index.js +3 -1
- package/es/ProViewer/style/index.less +6 -3
- package/es/locale/en_US.d.ts +4 -0
- package/es/locale/en_US.js +5 -1
- package/es/locale/zh_CN.d.ts +4 -0
- package/es/locale/zh_CN.js +6 -2
- package/es/style/core/compatible.less +6 -6
- package/es/style/theme/antd.less +272 -253
- package/lib/ProAction/index.less +3 -0
- package/lib/ProDownload/index.js +9 -6
- package/lib/ProDownload/style/index.less +5 -2
- package/lib/ProDrawerForm/index.js +0 -14
- package/lib/ProDrawerForm/style/index.less +76 -73
- package/lib/ProEditLabel/style/index.less +12 -9
- package/lib/ProEditTable/index.js +6 -2
- package/lib/ProEditTable/style/index.less +57 -47
- package/lib/ProEditTable/utils/config.d.ts +1 -1
- package/lib/ProEditTable/utils/config.js +3 -3
- package/lib/ProEnum/style/index.less +3 -0
- package/lib/ProForm/components/base/DatePicker/index.js +0 -3
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
- package/lib/ProForm/components/base/TextArea/index.less +4 -3
- package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
- package/lib/ProForm/components/combination/Container/style/index.less +6 -3
- package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
- package/lib/ProForm/components/combination/Group/style/index.less +18 -15
- package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
- package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
- package/lib/ProForm/components/render/RenderFields.js +4 -5
- package/lib/ProForm/style/index.less +46 -44
- package/lib/ProIcon/style/index.less +4 -1
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
- package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
- package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
- package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
- package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
- package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
- package/lib/ProLayout/style/index.less +10 -7
- package/lib/ProSelect/index.less +3 -0
- package/lib/ProStep/style/index.less +3 -0
- package/lib/ProTable/index.js +14 -6
- package/lib/ProTable/style/index.less +76 -54
- package/lib/ProTable/utils.d.ts +1 -1
- package/lib/ProTable/utils.js +38 -19
- package/lib/ProTabs/style/index.less +25 -23
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
- package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.js +7 -2
- package/lib/ProThemeTools/propsType.d.ts +4 -0
- package/lib/ProThemeTools/style/index.less +6 -3
- package/lib/ProThemeTools/utils/index.d.ts +1 -1
- package/lib/ProThemeTools/utils/index.js +2 -1
- package/lib/ProTooltip/style/index.less +3 -0
- package/lib/ProTree/components/CloseIcon.js +2 -4
- package/lib/ProTree/components/ProTree.js +26 -10
- package/lib/ProTree/components/Tree.js +1 -1
- package/lib/ProTree/propsType.d.ts +2 -2
- package/lib/ProTree/style/index.less +29 -26
- package/lib/ProTree/utils.d.ts +6 -0
- package/lib/ProTree/utils.js +12 -0
- package/lib/ProTreeModal/components/CloseIcon.js +2 -4
- package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
- package/lib/ProTreeModal/components/Trigger.js +74 -18
- package/lib/ProTreeModal/index.js +38 -6
- package/lib/ProTreeModal/propsType.d.ts +5 -2
- package/lib/ProTreeModal/style/index.less +11 -8
- package/lib/ProTreeSelect/index.js +6 -4
- package/lib/ProTreeSelect/propsType.d.ts +2 -0
- package/lib/ProTreeSelect/style/index.less +25 -22
- package/lib/ProUpload/components/DragRender.js +7 -4
- package/lib/ProUpload/components/ImageRender.js +5 -1
- package/lib/ProUpload/index.js +11 -7
- package/lib/ProUpload/style/index.less +13 -4
- package/lib/ProViewer/index.js +4 -3
- package/lib/ProViewer/style/index.less +6 -3
- package/lib/locale/en_US.d.ts +4 -0
- package/lib/locale/en_US.js +5 -1
- package/lib/locale/zh_CN.d.ts +4 -0
- package/lib/locale/zh_CN.js +6 -2
- package/lib/style/core/compatible.less +6 -6
- package/lib/style/theme/antd.less +272 -253
- package/package.json +1 -1
- package/typings.d.ts +0 -6
|
@@ -1,27 +1,30 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
1
4
|
.pro-layout-open-menu {
|
|
2
5
|
color: #fff;
|
|
3
6
|
|
|
4
|
-
|
|
7
|
+
.@{ant-prefix}-menu-root {
|
|
5
8
|
overflow-y: auto !important;
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
&>.@{ant-prefix}-menu-submenu>.@{ant-prefix}-menu-submenu-title,
|
|
11
|
+
&>.@{ant-prefix}-menu-item.@{ant-prefix}-menu-item-only-child {
|
|
9
12
|
padding-left: 16px !important;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
&>.@{ant-prefix}-menu-submenu {
|
|
16
|
+
.@{ant-prefix}-menu-sub {
|
|
14
17
|
background: #1A202D;
|
|
15
18
|
}
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
&>.@{ant-prefix}-menu-sub>.@{ant-prefix}-menu-submenu>.@{ant-prefix}-menu-submenu-title,
|
|
21
|
+
&>.@{ant-prefix}-menu-item-only-child,
|
|
22
|
+
&>.@{ant-prefix}-menu-sub>.@{ant-prefix}-menu-item-only-child {
|
|
20
23
|
padding-left: 16px !important;
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
&>.@{ant-prefix}-menu-item-only-child {
|
|
25
28
|
min-height : 48px;
|
|
26
29
|
padding-top : 12px;
|
|
27
30
|
padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) * var(--zaui-size; 1));
|
|
@@ -35,7 +38,7 @@
|
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
|
|
38
|
-
|
|
41
|
+
.@{ant-prefix}-menu-item {
|
|
39
42
|
padding-left: 30px !important;
|
|
40
43
|
|
|
41
44
|
&::after {
|
|
@@ -45,14 +48,14 @@
|
|
|
45
48
|
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
.@{ant-prefix}-menu-inline {
|
|
52
|
+
.@{ant-prefix}-menu-submenu-title {
|
|
50
53
|
margin: 0;
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
.@{ant-prefix}-menu-item,
|
|
58
|
+
.@{ant-prefix}-menu-submenu-title {
|
|
56
59
|
&:hover {
|
|
57
60
|
background: var(--ant-primary-8, #003eb3);
|
|
58
61
|
|
|
@@ -64,11 +67,11 @@
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
|
|
67
|
-
|
|
70
|
+
.@{ant-prefix}-menu.@{ant-prefix}-menu-dark {
|
|
68
71
|
background: #1A202D;
|
|
69
72
|
overflow-x: hidden;
|
|
70
73
|
|
|
71
|
-
|
|
74
|
+
.@{ant-prefix}-menu-item-only-child {
|
|
72
75
|
&:hover {
|
|
73
76
|
background: var(--ant-primary-8, #003eb3);
|
|
74
77
|
|
|
@@ -79,7 +82,7 @@
|
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
|
|
82
|
-
|
|
85
|
+
.@{ant-prefix}-menu-item-selected {
|
|
83
86
|
background: var(--zaui-brand, #006aff) !important;
|
|
84
87
|
|
|
85
88
|
h2 {
|
|
@@ -87,8 +90,8 @@
|
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline>.@{ant-prefix}-menu-item,
|
|
94
|
+
.@{ant-prefix}-menu-submenu-title {
|
|
92
95
|
white-space: pre-wrap;
|
|
93
96
|
line-height: initial !important;
|
|
94
97
|
height : auto !important;
|
|
@@ -97,7 +100,7 @@
|
|
|
97
100
|
min-height : 48px;
|
|
98
101
|
}
|
|
99
102
|
|
|
100
|
-
|
|
103
|
+
.@{ant-prefix}-menu-title-content {
|
|
101
104
|
|
|
102
105
|
|
|
103
106
|
div {
|
|
@@ -135,19 +138,19 @@
|
|
|
135
138
|
transition: all 0.1s ease-in;
|
|
136
139
|
}
|
|
137
140
|
|
|
138
|
-
|
|
141
|
+
.@{ant-prefix}-menu-submenu-open {
|
|
139
142
|
.anticon-caret-down {
|
|
140
143
|
transform: rotateZ(180deg);
|
|
141
144
|
color : #fff;
|
|
142
145
|
}
|
|
143
146
|
|
|
144
|
-
|
|
147
|
+
.@{ant-prefix}-menu-submenu-inline {
|
|
145
148
|
.anticon-caret-down {
|
|
146
149
|
transform: rotateZ(0deg);
|
|
147
150
|
color : #CACACA;
|
|
148
151
|
}
|
|
149
152
|
|
|
150
|
-
|
|
153
|
+
&.@{ant-prefix}-menu-submenu-open {
|
|
151
154
|
.anticon-caret-down {
|
|
152
155
|
transform: rotateZ(180deg);
|
|
153
156
|
color : #fff;
|
|
@@ -156,13 +159,13 @@
|
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
|
|
162
|
+
.@{ant-prefix}-menu-submenu:hover>.@{ant-prefix}-menu-submenu-title>.@{ant-prefix}-menu-submenu-expand-icon {
|
|
160
163
|
color: #fff;
|
|
161
164
|
}
|
|
162
165
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
.@{ant-prefix}-menu-submenu-selected {
|
|
167
|
+
&>.@{ant-prefix}-menu-submenu-title {
|
|
168
|
+
.@{ant-prefix}-menu-title-content div {
|
|
166
169
|
.pro-layout-icon {
|
|
167
170
|
color: #fff;
|
|
168
171
|
}
|
|
@@ -175,7 +178,7 @@
|
|
|
175
178
|
|
|
176
179
|
}
|
|
177
180
|
|
|
178
|
-
|
|
181
|
+
.@{ant-prefix}-menu-item-only-child .@{ant-prefix}-menu-title-content div {
|
|
179
182
|
.pro-layout-icon {
|
|
180
183
|
color: #CACACA;
|
|
181
184
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
1
4
|
.pro-layout-sider-menu {
|
|
2
5
|
width : 220px;
|
|
3
6
|
background: #fff;
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
&.pro-layout-sider-menu-list {
|
|
18
21
|
overflow-y: auto;
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
.@{ant-prefix}-menu-item-selected {
|
|
21
24
|
background-color: var(--ant-primary-1, #e6f4ff) !important;
|
|
22
25
|
|
|
23
26
|
h2 {
|
|
@@ -29,8 +32,8 @@
|
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
.@{ant-prefix}-menu {
|
|
36
|
+
.@{ant-prefix}-menu-title-content {
|
|
34
37
|
div h2 {
|
|
35
38
|
color : var(--zaui-text);
|
|
36
39
|
padding: 0;
|
|
@@ -44,7 +47,7 @@
|
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
|
|
47
|
-
|
|
50
|
+
.@{ant-prefix}-menu-title-content div .pro-layout-icon {
|
|
48
51
|
margin-right: 12px;
|
|
49
52
|
|
|
50
53
|
&.pro-layout-icon-empty {
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
color: var(--zaui-text, #343434) !important;
|
|
62
65
|
}
|
|
63
66
|
|
|
64
|
-
|
|
67
|
+
&.@{ant-prefix}-menu-sub {
|
|
65
68
|
overflow : hidden;
|
|
66
69
|
background: #fff;
|
|
67
70
|
}
|
|
@@ -69,13 +72,13 @@
|
|
|
69
72
|
overflow-x: hidden;
|
|
70
73
|
overflow-y: auto;
|
|
71
74
|
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
.@{ant-prefix}-menu-submenu-title:hover,
|
|
76
|
+
.@{ant-prefix}-menu-item:hover {
|
|
74
77
|
background-color: #f2f2f2;
|
|
75
78
|
color : #fff;
|
|
76
79
|
}
|
|
77
80
|
|
|
78
|
-
|
|
81
|
+
.@{ant-prefix}-menu-item {
|
|
79
82
|
margin: 0;
|
|
80
83
|
}
|
|
81
84
|
|
|
@@ -83,9 +86,9 @@
|
|
|
83
86
|
color: #909090;
|
|
84
87
|
}
|
|
85
88
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
.@{ant-prefix}-menu-submenu-title,
|
|
90
|
+
&.@{ant-prefix}-menu-root>.@{ant-prefix}-menu-item-only-child,
|
|
91
|
+
&.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline>.@{ant-prefix}-menu-item {
|
|
89
92
|
padding-top : 10px;
|
|
90
93
|
padding-bottom: 10px;
|
|
91
94
|
min-height : 40px;
|
|
@@ -1,39 +1,42 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
1
4
|
.pro-collapse {
|
|
2
5
|
background: #f6f8fc;
|
|
3
6
|
|
|
4
7
|
&.pro-collapse-no-title {
|
|
5
|
-
|
|
8
|
+
.@{ant-prefix}-collapse-header {
|
|
6
9
|
display: none !important;
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
&.@{ant-prefix}-collapse {
|
|
11
14
|
.pro-collapse-panel {
|
|
12
15
|
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
.@{ant-prefix}-collapse-header {
|
|
17
20
|
align-items: center !important;
|
|
18
21
|
padding : 12px var(--zaui-space-size-md, 16px) !important;
|
|
19
22
|
background : var(--zaui-area, #fafafa);
|
|
20
23
|
}
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
.@{ant-prefix}-collapse-header-text {
|
|
23
26
|
color : var(--zaui-text, #343434);
|
|
24
27
|
font-weight: 500;
|
|
25
28
|
font-size : var(--zaui-font-size-lg, 16px);
|
|
26
29
|
}
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
.@{ant-prefix}-collapse-expand-icon {
|
|
29
32
|
color: #c5c7cd;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
|
|
35
|
+
&.@{ant-prefix}-collapse-borderless .@{ant-prefix}-collapse-item>.@{ant-prefix}-collapse-content>.@{ant-prefix}-collapse-content-box {
|
|
33
36
|
padding: 0;
|
|
34
37
|
}
|
|
35
38
|
|
|
36
|
-
|
|
39
|
+
.@{ant-prefix}-collapse-content-box {
|
|
37
40
|
padding : 0;
|
|
38
41
|
background: var(--zaui-base-bg, #ffffff);
|
|
39
42
|
|
|
@@ -48,12 +51,12 @@
|
|
|
48
51
|
margin-bottom: 0;
|
|
49
52
|
background : var(--zaui-base-bg, #ffffff);
|
|
50
53
|
|
|
51
|
-
|
|
54
|
+
.@{ant-prefix}-collapse-header {
|
|
52
55
|
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
53
56
|
padding : 0 !important;
|
|
54
57
|
background : var(--zaui-base-bg, #ffffff);
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
.@{ant-prefix}-collapse-header-text {
|
|
57
60
|
position : relative;
|
|
58
61
|
padding-left: var(--zaui-space-size-sm, 8px);
|
|
59
62
|
font-size : var(--zaui-font-size, 14px);
|
|
@@ -71,7 +74,7 @@
|
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
|
|
74
|
-
|
|
77
|
+
.@{ant-prefix}-collapse-extra {
|
|
75
78
|
.extra-info {
|
|
76
79
|
margin-right: var(--zaui-space-size-sm, 8px);
|
|
77
80
|
}
|
|
@@ -79,7 +82,7 @@
|
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
.pro-collapse-level2-collapse {
|
|
82
|
-
|
|
85
|
+
.@{ant-prefix}-collapse-extra {
|
|
83
86
|
.extra-info {
|
|
84
87
|
margin-right: var(--zaui-space-size-lg, 32px);
|
|
85
88
|
}
|
|
@@ -90,24 +93,24 @@
|
|
|
90
93
|
padding: 0;
|
|
91
94
|
}
|
|
92
95
|
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
&.@{ant-prefix}-collapse .@{ant-prefix}-collapse-item-disabled>.@{ant-prefix}-collapse-header,
|
|
97
|
+
.@{ant-prefix}-collapse .@{ant-prefix}-collapse-item-disabled>.@{ant-prefix}-collapse-header>.arrow {
|
|
95
98
|
color : var(--zaui-text, #343434);
|
|
96
99
|
cursor: default;
|
|
97
100
|
}
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
.@{ant-prefix}-collapse-expand-icon {
|
|
100
103
|
display: none;
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
.pro-collapse-level2-collapse {
|
|
104
|
-
|
|
107
|
+
.@{ant-prefix}-collapse-expand-icon {
|
|
105
108
|
display: block;
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
|
|
110
|
-
|
|
113
|
+
.@{ant-prefix}-collapse-extra {
|
|
111
114
|
.extra-info {
|
|
112
115
|
margin-right: 24px;
|
|
113
116
|
}
|
|
@@ -115,17 +118,17 @@
|
|
|
115
118
|
|
|
116
119
|
&.pro-collapse-list {
|
|
117
120
|
|
|
118
|
-
|
|
119
|
-
|
|
121
|
+
.@{ant-prefix}-descriptions-row>th,
|
|
122
|
+
.@{ant-prefix}-descriptions-row>td {
|
|
120
123
|
padding : var(--zaui-space-size-md, 16px) 0;
|
|
121
124
|
background: #fafafa;
|
|
122
125
|
|
|
123
|
-
|
|
126
|
+
&.@{ant-prefix}-descriptions-item {
|
|
124
127
|
padding-left: var(--zaui-space-size-md, 16px);
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
130
|
|
|
128
|
-
|
|
131
|
+
.@{ant-prefix}-descriptions-row {
|
|
129
132
|
td:first-child {
|
|
130
133
|
position: relative;
|
|
131
134
|
|
|
@@ -143,17 +146,17 @@
|
|
|
143
146
|
}
|
|
144
147
|
}
|
|
145
148
|
|
|
146
|
-
|
|
149
|
+
.@{ant-prefix}-descriptions-item-container {
|
|
147
150
|
|
|
148
|
-
|
|
149
|
-
|
|
151
|
+
.@{ant-prefix}-descriptions-item-label,
|
|
152
|
+
.@{ant-prefix}-descriptions-item-content {
|
|
150
153
|
color : #0a0a0a !important;
|
|
151
154
|
font-weight: 500 !important;
|
|
152
155
|
font-size : var(--zaui-font-size, 14px);
|
|
153
156
|
}
|
|
154
157
|
}
|
|
155
158
|
|
|
156
|
-
|
|
159
|
+
.@{ant-prefix}-descriptions {
|
|
157
160
|
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
158
161
|
}
|
|
159
162
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
1
4
|
.pro-footer {
|
|
2
|
-
position
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
position: fixed;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
z-index: 101;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1))
|
|
11
|
+
var(--zaui-space-size-lg, 32px);
|
|
7
12
|
background: var(--zaui-base-bg, #ffffff);
|
|
8
|
-
box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, .32);
|
|
9
|
-
z-index : 101;
|
|
13
|
+
box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, 0.32);
|
|
10
14
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
1
3
|
@import '../components/ProBackBtn/style/index';
|
|
2
4
|
|
|
3
5
|
.pro-header {
|
|
4
6
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
5
|
-
padding :
|
|
7
|
+
padding : 16px 0 0 0 !important;
|
|
6
8
|
|
|
7
9
|
&.pro-header-no-back.pro-header-has-describe {
|
|
8
10
|
.pro-header-top {
|
|
@@ -52,7 +54,7 @@
|
|
|
52
54
|
display : flex;
|
|
53
55
|
align-items : center;
|
|
54
56
|
|
|
55
|
-
|
|
57
|
+
.@{ant-prefix}-typography-copy-success {
|
|
56
58
|
svg {
|
|
57
59
|
width : 14px;
|
|
58
60
|
height : 14px;
|
|
@@ -104,18 +106,18 @@
|
|
|
104
106
|
box-shadow: 0px 1px 2px 0px rgba(0, 55, 93, 0.1);
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
.@{ant-prefix}-breadcrumb {
|
|
108
110
|
li {
|
|
109
111
|
font-weight: 500;
|
|
110
112
|
color : #1D2129;
|
|
111
113
|
}
|
|
112
114
|
|
|
113
|
-
|
|
115
|
+
.@{ant-prefix}-breadcrumb-link {
|
|
114
116
|
font-size: var(--zaui-font-size-xl, 18px);
|
|
115
117
|
display : inline-flex;
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
|
|
120
|
+
.@{ant-prefix}-breadcrumb-separator {
|
|
119
121
|
font-weight: 500;
|
|
120
122
|
color : #1D2129;
|
|
121
123
|
font-size : var(--zaui-font-size-xl, 18px);
|
|
@@ -167,7 +169,7 @@
|
|
|
167
169
|
font-size: var(--zaui-font-size-lg, 16px);
|
|
168
170
|
}
|
|
169
171
|
|
|
170
|
-
|
|
172
|
+
.@{ant-prefix}-typography {
|
|
171
173
|
display : flex;
|
|
172
174
|
margin-bottom: 0;
|
|
173
175
|
}
|
|
@@ -192,19 +194,19 @@
|
|
|
192
194
|
}
|
|
193
195
|
|
|
194
196
|
.pro-header-right {
|
|
195
|
-
|
|
197
|
+
.@{ant-prefix}-btn-link {
|
|
196
198
|
color: #616161;
|
|
197
199
|
}
|
|
198
200
|
|
|
199
|
-
|
|
201
|
+
.@{ant-prefix}-btn-primary {
|
|
200
202
|
color: #ffffff;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
|
-
|
|
205
|
+
.@{ant-prefix}-btn-link {
|
|
204
206
|
padding: var(--zaui-space-size-xs, 4px), var(--zaui-space-size-sm, 8px);
|
|
205
207
|
}
|
|
206
208
|
|
|
207
|
-
|
|
209
|
+
.@{ant-prefix}-divider-vertical {
|
|
208
210
|
margin: 0;
|
|
209
211
|
}
|
|
210
212
|
}
|
|
@@ -232,7 +234,6 @@
|
|
|
232
234
|
|
|
233
235
|
ul {
|
|
234
236
|
height : 0;
|
|
235
|
-
// padding : 0;
|
|
236
237
|
overflow : hidden;
|
|
237
238
|
}
|
|
238
239
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
1
4
|
@import "../components/Layout/index.less";
|
|
2
5
|
@import "../components/ProCollapse/style/index.less";
|
|
3
6
|
@import "../components/ProFooter/style/index.less";
|
|
@@ -26,7 +29,7 @@
|
|
|
26
29
|
box-shadow: 2px 0px 5px 0px rgba(0, 55, 93, 0.1);
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
.pro-layout-open-menu
|
|
32
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-title-content div .pro-layout-icon {
|
|
30
33
|
color : var(--zaui-text, #343434);
|
|
31
34
|
position: relative;
|
|
32
35
|
z-index : 1;
|
|
@@ -114,7 +117,7 @@
|
|
|
114
117
|
background: var(--zaui-base-bg, #fff);
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
|
|
120
|
+
.@{ant-prefix}-menu-root {
|
|
118
121
|
overflow-x: hidden !important;
|
|
119
122
|
}
|
|
120
123
|
|
|
@@ -126,16 +129,16 @@
|
|
|
126
129
|
background: var(--zaui-base-bg, #ffffff);
|
|
127
130
|
}
|
|
128
131
|
|
|
129
|
-
.pro-layout-open-menu
|
|
132
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-root>.@{ant-prefix}-menu-submenu .@{ant-prefix}-menu-sub {
|
|
130
133
|
background: var(--zaui-base-bg, #ffffff);
|
|
131
134
|
}
|
|
132
135
|
|
|
133
|
-
.pro-layout-open-menu
|
|
136
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-title-content div h2 {
|
|
134
137
|
color: var(--zaui-text, #343434);
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
.pro-layout-open-menu
|
|
138
|
-
.pro-layout-open-menu
|
|
140
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
|
|
141
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover {
|
|
139
142
|
background: transparent;
|
|
140
143
|
position : relative;
|
|
141
144
|
|
|
@@ -151,7 +154,7 @@
|
|
|
151
154
|
}
|
|
152
155
|
}
|
|
153
156
|
|
|
154
|
-
.pro-layout-open-menu
|
|
157
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-item-selected {
|
|
155
158
|
&::after {
|
|
156
159
|
display: none;
|
|
157
160
|
}
|
package/es/ProSelect/index.less
CHANGED
package/es/ProTable/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var _excluded = ["tableId", "headerRender", "footerRender", "quickConfig", "stri
|
|
|
12
12
|
_excluded2 = ["resizeColumn", "columnConfig", "cacheTime", "storage"];
|
|
13
13
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useEffect, useMemo, useState, createContext } from 'react';
|
|
15
|
-
import { cloneDeep, get } from 'lodash';
|
|
15
|
+
import { cloneDeep, get, keyBy } from 'lodash';
|
|
16
16
|
import { useDebounceEffect, useDeepCompareEffect } from 'ahooks';
|
|
17
17
|
import { ReactSVG } from 'react-svg';
|
|
18
18
|
import classnames from 'classnames';
|
|
@@ -72,7 +72,10 @@ function ProTable(props) {
|
|
|
72
72
|
tableProps = _objectWithoutProperties(quickTableConfig, _excluded2);
|
|
73
73
|
var _ref3 = tableProps || {},
|
|
74
74
|
pagination = _ref3.pagination,
|
|
75
|
-
dataSource = _ref3.dataSource
|
|
75
|
+
dataSource = _ref3.dataSource,
|
|
76
|
+
rowKey = _ref3.rowKey;
|
|
77
|
+
var originalObj = originalDataSource ? keyBy(originalDataSource, rowKey) : undefined;
|
|
78
|
+
var dataSourceObj = dataSource ? keyBy(dataSource, rowKey) : {};
|
|
76
79
|
var propsColumnObj = useMemo(function () {
|
|
77
80
|
return propsColumns.reduce(function (acc, cur) {
|
|
78
81
|
// @ts-ignore
|
|
@@ -163,7 +166,7 @@ function ProTable(props) {
|
|
|
163
166
|
return !(item === null || item === void 0 ? void 0 : item.delete);
|
|
164
167
|
});
|
|
165
168
|
newColumns === null || newColumns === void 0 ? void 0 : newColumns.forEach(function (item) {
|
|
166
|
-
formatColumn(item,
|
|
169
|
+
formatColumn(item, originalObj, dataSourceObj, rowKey);
|
|
167
170
|
});
|
|
168
171
|
return newColumns;
|
|
169
172
|
}, [curColumns, handleResize]);
|
|
@@ -311,22 +314,27 @@ function ProTable(props) {
|
|
|
311
314
|
columns: columns,
|
|
312
315
|
locale: {
|
|
313
316
|
emptyText: _jsxs("div", {
|
|
314
|
-
className: "
|
|
317
|
+
className: "pro-table-empty",
|
|
315
318
|
children: [_jsx("div", {
|
|
316
|
-
className: "
|
|
319
|
+
className: "empty-image",
|
|
317
320
|
children: _jsx("img", {
|
|
318
321
|
src: empty,
|
|
319
322
|
alt: locale === null || locale === void 0 ? void 0 : (_locale$ProTable5 = locale.ProTable) === null || _locale$ProTable5 === void 0 ? void 0 : _locale$ProTable5.noData
|
|
320
323
|
})
|
|
321
324
|
}), _jsx("div", {
|
|
322
|
-
className: "
|
|
325
|
+
className: "empty-description",
|
|
323
326
|
children: typeof emptyText === 'function' ? emptyText() : emptyText
|
|
324
327
|
})]
|
|
325
328
|
})
|
|
326
329
|
},
|
|
327
330
|
summary: _typeof(summary) === 'object' ? function () {
|
|
328
331
|
return renderSummary();
|
|
329
|
-
} : summary
|
|
332
|
+
} : summary,
|
|
333
|
+
rowClassName: function rowClassName(record, index) {
|
|
334
|
+
if (originalDataSource && !originalObj.hasOwnProperty(get(record, rowKey))) {
|
|
335
|
+
return 'new-cell';
|
|
336
|
+
}
|
|
337
|
+
}
|
|
330
338
|
}, tableProps)), _jsx(ResizableLine, {})]
|
|
331
339
|
}), footerRender ? _jsx("div", {
|
|
332
340
|
className: "pro-table-footer ".concat(pagination && !!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) ? 'has-page' : 'no-page'),
|