@zat-design/sisyphus-react 3.4.2 → 3.4.3
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 +286 -240
- package/dist/less.esm.css +5022 -0
- package/dist/less.esm.js +3 -0
- package/es/ProConfigProvider/index.js +2 -1
- package/es/ProEditLabel/style/index.less +1 -1
- package/es/ProEditTable/components/RenderField/index.js +28 -20
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/propsType.d.ts +1 -1
- package/es/ProEditTable/style/index.less +1 -1
- package/es/ProEditTable/utils/config.js +5 -5
- package/es/ProEditTable/utils/index.js +67 -30
- package/es/ProEditTable/utils/tools.js +3 -1
- package/es/ProEnum/components/Group.d.ts +2 -0
- package/es/ProEnum/components/Group.js +26 -8
- package/es/ProEnum/index.js +4 -3
- package/es/ProEnum/style/index.less +12 -3
- package/es/ProForm/components/base/DatePicker/index.js +2 -2
- package/es/ProForm/components/combination/FormList/index.js +6 -3
- package/es/ProForm/components/combination/FormList/utils.d.ts +2 -1
- package/es/ProForm/components/combination/FormList/utils.js +5 -3
- package/es/ProForm/components/combination/Group/index.js +28 -15
- package/es/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/es/ProForm/components/combination/Group/style/index.less +4 -4
- package/es/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/es/ProForm/components/combination/Group/utils.js +10 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.js +8 -2
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/components/index.d.ts +0 -1
- package/es/ProForm/components/index.js +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/es/ProForm/components/render/Render.js +21 -13
- package/es/ProForm/components/render/RenderFields.d.ts +2 -1
- package/es/ProForm/components/render/RenderFields.js +7 -3
- package/es/ProForm/components/render/propsType.d.ts +1 -4
- package/es/ProForm/index.js +8 -6
- package/es/ProForm/propsType.d.ts +5 -1
- package/es/ProForm/style/index.less +17 -13
- package/es/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/es/ProForm/utils/diffOriginal.js +61 -0
- package/es/ProForm/utils/index.d.ts +1 -1
- package/es/ProForm/utils/index.js +1 -1
- package/es/ProForm/utils/transformNames.d.ts +1 -1
- package/es/ProForm/utils/transformNames.js +11 -4
- package/es/ProForm/utils/transformValue.js +2 -2
- package/es/ProForm/utils/useChanged.js +4 -3
- package/es/ProForm/utils/useListChanged.d.ts +1 -1
- package/es/ProForm/utils/useListChanged.js +5 -3
- package/es/ProForm/utils/valueType.d.ts +10 -5
- package/es/ProForm/utils/valueType.js +20 -10
- package/es/ProIcon/config/index.d.ts +2 -1
- package/es/ProIcon/config/index.js +191 -133
- package/es/ProIcon/index.d.ts +0 -1
- package/es/ProIcon/index.js +21 -36
- package/es/ProIcon/propsTypes.d.ts +2 -1
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/es/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/es/ProLayout/components/ProCollapse/index.js +22 -3
- package/es/ProLayout/components/ProCollapse/style/index.less +29 -11
- package/es/ProLayout/components/ProFooter/index.js +1 -1
- package/es/ProLayout/components/ProFooter/style/index.less +1 -1
- package/es/ProLayout/components/ProHeader/style/index.less +6 -5
- package/es/ProLayout/style/index.less +176 -88
- package/es/ProStep/components/Item/index.js +2 -1
- package/es/ProStep/style/index.less +71 -70
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/es/ProTable/components/RenderColumn/index.js +3 -3
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +2 -2
- package/es/ProTable/utils.js +9 -9
- package/es/ProTabs/style/index.less +3 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +2 -2
- package/es/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/es/ProThemeTools/index.js +21 -28
- package/es/ProThemeTools/propsType.d.ts +1 -1
- package/es/ProThemeTools/style/index.less +25 -8
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +7 -11
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/es/ProTree/index.js +1 -1
- package/es/ProTreeModal/style/index.less +2 -2
- package/es/ProUpload/style/fileItem.less +2 -2
- package/es/ProUpload/style/index.less +2 -2
- package/es/assets/catalog.svg +30 -1
- package/es/assets/fold.svg +27 -0
- package/es/assets/setting.svg +14 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +3 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +3 -0
- package/es/style/components.less +0 -1
- package/es/style/less.less +2 -0
- package/es/style/theme/antd.less +1 -2
- package/es/style/theme/index.less +2 -2
- package/es/style/theme/tokens.less +2 -2
- package/es/tokens.js +2 -2
- package/lib/ProConfigProvider/index.js +2 -1
- package/lib/ProEditLabel/style/index.less +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +27 -19
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/propsType.d.ts +1 -1
- package/lib/ProEditTable/style/index.less +1 -1
- package/lib/ProEditTable/utils/config.js +5 -5
- package/lib/ProEditTable/utils/index.js +67 -30
- package/lib/ProEditTable/utils/tools.js +3 -1
- package/lib/ProEnum/components/Group.d.ts +2 -0
- package/lib/ProEnum/components/Group.js +26 -8
- package/lib/ProEnum/index.js +4 -3
- package/lib/ProEnum/style/index.less +12 -3
- package/lib/ProForm/components/base/DatePicker/index.js +1 -1
- package/lib/ProForm/components/combination/FormList/index.js +6 -3
- package/lib/ProForm/components/combination/FormList/utils.d.ts +2 -1
- package/lib/ProForm/components/combination/FormList/utils.js +5 -3
- package/lib/ProForm/components/combination/Group/index.js +25 -12
- package/lib/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/lib/ProForm/components/combination/Group/style/index.less +4 -4
- package/lib/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/lib/ProForm/components/combination/Group/utils.js +11 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +7 -1
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/lib/ProForm/components/index.d.ts +0 -1
- package/lib/ProForm/components/index.js +0 -7
- package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/lib/ProForm/components/render/Render.js +21 -13
- package/lib/ProForm/components/render/RenderFields.d.ts +2 -1
- package/lib/ProForm/components/render/RenderFields.js +7 -3
- package/lib/ProForm/components/render/propsType.d.ts +1 -4
- package/lib/ProForm/index.js +7 -5
- package/lib/ProForm/propsType.d.ts +5 -1
- package/lib/ProForm/style/index.less +17 -13
- package/lib/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/lib/ProForm/utils/diffOriginal.js +68 -0
- package/lib/ProForm/utils/index.d.ts +1 -1
- package/lib/ProForm/utils/index.js +2 -2
- package/lib/ProForm/utils/transformNames.d.ts +1 -1
- package/lib/ProForm/utils/transformNames.js +10 -3
- package/lib/ProForm/utils/transformValue.js +1 -1
- package/lib/ProForm/utils/useChanged.js +4 -3
- package/lib/ProForm/utils/useListChanged.d.ts +1 -1
- package/lib/ProForm/utils/useListChanged.js +5 -3
- package/lib/ProForm/utils/valueType.d.ts +10 -5
- package/lib/ProForm/utils/valueType.js +20 -10
- package/lib/ProIcon/config/index.d.ts +2 -1
- package/lib/ProIcon/config/index.js +191 -133
- package/lib/ProIcon/index.d.ts +0 -1
- package/lib/ProIcon/index.js +21 -37
- package/lib/ProIcon/propsTypes.d.ts +2 -1
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/lib/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/lib/ProLayout/components/ProCollapse/index.js +20 -3
- package/lib/ProLayout/components/ProCollapse/style/index.less +29 -11
- package/lib/ProLayout/components/ProFooter/index.js +1 -1
- package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
- package/lib/ProLayout/components/ProHeader/style/index.less +6 -5
- package/lib/ProLayout/style/index.less +176 -88
- package/lib/ProStep/components/Item/index.js +2 -1
- package/lib/ProStep/style/index.less +71 -70
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/lib/ProTable/components/RenderColumn/index.js +3 -3
- package/lib/ProTable/propsType.d.ts +1 -1
- package/lib/ProTable/style/index.less +2 -2
- package/lib/ProTable/utils.js +9 -9
- package/lib/ProTabs/style/index.less +3 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
- package/lib/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/lib/ProThemeTools/index.js +19 -27
- package/lib/ProThemeTools/propsType.d.ts +1 -1
- package/lib/ProThemeTools/style/index.less +25 -8
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +7 -11
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTreeModal/style/index.less +2 -2
- package/lib/ProUpload/style/fileItem.less +2 -2
- package/lib/ProUpload/style/index.less +2 -2
- package/lib/assets/catalog.svg +30 -1
- package/lib/assets/fold.svg +27 -0
- package/lib/assets/setting.svg +14 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.js +3 -0
- package/lib/style/components.less +0 -1
- package/lib/style/less.less +2 -0
- package/lib/style/theme/antd.less +1 -2
- package/lib/style/theme/index.less +2 -2
- package/lib/style/theme/tokens.less +2 -2
- package/lib/tokens.js +2 -2
- package/package.json +1 -1
- package/es/ProForm/utils/contrastOriginal.js +0 -24
- package/es/ProIcon/symbolIcon.js +0 -43
- package/lib/ProForm/utils/contrastOriginal.js +0 -30
- package/lib/ProIcon/symbolIcon.js +0 -45
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
|
@@ -7,33 +7,36 @@
|
|
|
7
7
|
.@{ant-prefix}-menu-root {
|
|
8
8
|
overflow-y: auto !important;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
& > .@{ant-prefix}-menu-submenu > .@{ant-prefix}-menu-submenu-title,
|
|
11
|
+
& > .@{ant-prefix}-menu-item.@{ant-prefix}-menu-item-only-child {
|
|
12
12
|
padding-left: 16px !important;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
& > .@{ant-prefix}-menu-submenu {
|
|
16
16
|
.@{ant-prefix}-menu-sub {
|
|
17
|
-
background: #
|
|
17
|
+
background: #1a202d;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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 {
|
|
23
23
|
padding-left: 16px !important;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
& > .@{ant-prefix}-menu-item-only-child {
|
|
28
|
+
height: auto;
|
|
29
|
+
min-height: 48px;
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding-top: 12px;
|
|
32
|
+
padding-bottom: calc(
|
|
33
|
+
var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) *
|
|
34
|
+
var(--zaui-size; 1)
|
|
35
|
+
);
|
|
33
36
|
|
|
34
37
|
h2 {
|
|
38
|
+
height: auto !important;
|
|
35
39
|
line-height: initial !important;
|
|
36
|
-
height : auto !important;
|
|
37
40
|
white-space: pre-wrap;
|
|
38
41
|
}
|
|
39
42
|
}
|
|
@@ -45,7 +48,6 @@
|
|
|
45
48
|
display: none;
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
|
-
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
.@{ant-prefix}-menu-inline {
|
|
@@ -62,14 +64,12 @@
|
|
|
62
64
|
h2 {
|
|
63
65
|
color: #fff;
|
|
64
66
|
}
|
|
65
|
-
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
|
|
70
70
|
.@{ant-prefix}-menu.@{ant-prefix}-menu-dark {
|
|
71
|
-
background: #1A202D;
|
|
72
71
|
overflow-x: hidden;
|
|
72
|
+
background: #1a202d;
|
|
73
73
|
|
|
74
74
|
.@{ant-prefix}-menu-item-only-child {
|
|
75
75
|
&:hover {
|
|
@@ -90,104 +90,107 @@
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline
|
|
93
|
+
.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline > .@{ant-prefix}-menu-item,
|
|
94
94
|
.@{ant-prefix}-menu-submenu-title {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
margin : 0;
|
|
95
|
+
height: auto !important;
|
|
96
|
+
min-height: 48px;
|
|
97
|
+
margin: 0;
|
|
99
98
|
padding: 12px 0;
|
|
100
|
-
|
|
99
|
+
line-height: initial !important;
|
|
100
|
+
white-space: pre-wrap;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.@{ant-prefix}-menu-title-content {
|
|
104
|
-
|
|
105
|
-
|
|
106
104
|
div {
|
|
107
|
-
display
|
|
108
|
-
align-items
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
109
107
|
justify-content: left;
|
|
110
108
|
|
|
111
109
|
.pro-layout-icon {
|
|
112
|
-
flex
|
|
113
|
-
width
|
|
110
|
+
flex: 0 0 20px;
|
|
111
|
+
width: 20px;
|
|
114
112
|
height: 20px;
|
|
115
|
-
color
|
|
113
|
+
color: #cacaca;
|
|
116
114
|
}
|
|
117
115
|
|
|
118
116
|
h2 {
|
|
119
|
-
|
|
117
|
+
display: inline-block;
|
|
118
|
+
flex-grow: 1;
|
|
120
119
|
margin-bottom: 0;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
font-size : var(--zaui-font-size-md, 14px);
|
|
120
|
+
padding-left: 12px;
|
|
121
|
+
color: #cacaca;
|
|
122
|
+
font-weight: 400;
|
|
123
|
+
font-size: var(--zaui-font-size-md, 14px);
|
|
124
|
+
opacity: 1;
|
|
125
|
+
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), margin 0.3s, color 0.3s;
|
|
128
126
|
}
|
|
129
127
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
128
|
}
|
|
133
129
|
|
|
134
130
|
.anticon-caret-down {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
131
|
+
top: auto;
|
|
132
|
+
color: #cacaca;
|
|
133
|
+
transform: rotateZ(0deg);
|
|
138
134
|
transition: all 0.1s ease-in;
|
|
139
135
|
}
|
|
140
136
|
|
|
141
137
|
.@{ant-prefix}-menu-submenu-open {
|
|
142
138
|
.anticon-caret-down {
|
|
139
|
+
color: #fff;
|
|
143
140
|
transform: rotateZ(180deg);
|
|
144
|
-
color : #fff;
|
|
145
141
|
}
|
|
146
142
|
|
|
147
143
|
.@{ant-prefix}-menu-submenu-inline {
|
|
148
144
|
.anticon-caret-down {
|
|
145
|
+
color: #cacaca;
|
|
149
146
|
transform: rotateZ(0deg);
|
|
150
|
-
color : #CACACA;
|
|
151
147
|
}
|
|
152
148
|
|
|
153
149
|
&.@{ant-prefix}-menu-submenu-open {
|
|
154
150
|
.anticon-caret-down {
|
|
151
|
+
color: #fff;
|
|
155
152
|
transform: rotateZ(180deg);
|
|
156
|
-
color : #fff;
|
|
157
153
|
}
|
|
158
154
|
}
|
|
159
155
|
}
|
|
160
156
|
}
|
|
161
157
|
|
|
162
|
-
.@{ant-prefix}-menu-submenu:hover
|
|
158
|
+
.@{ant-prefix}-menu-submenu:hover
|
|
159
|
+
> .@{ant-prefix}-menu-submenu-title
|
|
160
|
+
> .@{ant-prefix}-menu-submenu-expand-icon {
|
|
163
161
|
color: #fff;
|
|
164
162
|
}
|
|
165
163
|
|
|
164
|
+
.@{ant-prefix}-menu-item-selected{
|
|
165
|
+
.@{ant-prefix}-menu-title-content{
|
|
166
|
+
h2{
|
|
167
|
+
font-weight: bold !important;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
166
172
|
.@{ant-prefix}-menu-submenu-selected {
|
|
167
|
-
|
|
173
|
+
& > .@{ant-prefix}-menu-submenu-title {
|
|
168
174
|
.@{ant-prefix}-menu-title-content div {
|
|
169
175
|
.pro-layout-icon {
|
|
170
176
|
color: #fff;
|
|
171
177
|
}
|
|
172
178
|
|
|
173
179
|
h2 {
|
|
174
|
-
|
|
175
|
-
color : #fff;
|
|
180
|
+
color: #fff;
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
|
-
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
.@{ant-prefix}-menu-item-only-child .@{ant-prefix}-menu-title-content div {
|
|
182
186
|
.pro-layout-icon {
|
|
183
|
-
color: #
|
|
187
|
+
color: #cacaca;
|
|
184
188
|
}
|
|
185
189
|
|
|
186
190
|
h2 {
|
|
191
|
+
color: #cacaca;
|
|
187
192
|
font-weight: 400;
|
|
188
|
-
color : #CACACA;
|
|
189
193
|
}
|
|
190
194
|
}
|
|
191
|
-
|
|
192
195
|
}
|
|
193
196
|
}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
4
|
.pro-layout-sider-menu {
|
|
5
|
-
width
|
|
5
|
+
width: 220px;
|
|
6
6
|
background: #fff;
|
|
7
7
|
|
|
8
8
|
h2 {
|
|
9
9
|
margin-bottom: 0;
|
|
10
|
-
padding
|
|
11
|
-
color
|
|
12
|
-
color
|
|
13
|
-
font-weight
|
|
14
|
-
font-size
|
|
15
|
-
line-height
|
|
16
|
-
text-align
|
|
10
|
+
padding: 16px 16px 8px;
|
|
11
|
+
color: var(--zaui-text, #343434);
|
|
12
|
+
color: var(--zaui-text);
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
font-size: var(--zaui-font-size-lg, 16px);
|
|
15
|
+
line-height: inherit;
|
|
16
|
+
text-align: left;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.pro-layout-open-menu {
|
|
@@ -33,15 +33,22 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.@{ant-prefix}-menu {
|
|
36
|
+
.@{ant-prefix}-menu-item-only-child{
|
|
37
|
+
.@{ant-prefix}-menu-title-content .pro-layout-open-menu-lv1 h2{
|
|
38
|
+
padding-right: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
36
41
|
.@{ant-prefix}-menu-title-content {
|
|
37
42
|
div h2 {
|
|
38
|
-
color : var(--zaui-text);
|
|
39
43
|
padding: 0;
|
|
44
|
+
padding-right: 12px;
|
|
45
|
+
color: var(--zaui-text);
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
.pro-layout-open-menu-lv1 {
|
|
43
49
|
h2 {
|
|
44
|
-
|
|
50
|
+
padding-right: 26px;
|
|
51
|
+
color: var(--zaui-text);
|
|
45
52
|
font-weight: 500;
|
|
46
53
|
}
|
|
47
54
|
}
|
|
@@ -53,19 +60,19 @@
|
|
|
53
60
|
&.pro-layout-icon-empty {
|
|
54
61
|
display: none;
|
|
55
62
|
|
|
56
|
-
|
|
63
|
+
& ~ h2 {
|
|
57
64
|
margin-left: var(--zaui-space-size-md, 16px);
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
.pro-layout-icon {
|
|
63
|
-
fill : currentColor;
|
|
64
70
|
color: var(--zaui-text, #343434) !important;
|
|
71
|
+
fill: currentColor;
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
&.@{ant-prefix}-menu-sub {
|
|
68
|
-
overflow
|
|
75
|
+
overflow: hidden;
|
|
69
76
|
background: #fff;
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -74,8 +81,8 @@
|
|
|
74
81
|
|
|
75
82
|
.@{ant-prefix}-menu-submenu-title:hover,
|
|
76
83
|
.@{ant-prefix}-menu-item:hover {
|
|
84
|
+
color: #fff;
|
|
77
85
|
background-color: #f2f2f2;
|
|
78
|
-
color : #fff;
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
.@{ant-prefix}-menu-item {
|
|
@@ -87,15 +94,13 @@
|
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
.@{ant-prefix}-menu-submenu-title,
|
|
90
|
-
&.@{ant-prefix}-menu-root
|
|
91
|
-
&.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline
|
|
92
|
-
|
|
97
|
+
&.@{ant-prefix}-menu-root > .@{ant-prefix}-menu-item-only-child,
|
|
98
|
+
&.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline > .@{ant-prefix}-menu-item {
|
|
99
|
+
min-height: 40px;
|
|
100
|
+
padding-top: 10px;
|
|
93
101
|
padding-bottom: 10px;
|
|
94
|
-
min-height : 40px;
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
106
|
}
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
@root-entry-name: 'default';
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
3
|
+
@import '../FoldMenu/style/index.less';
|
|
4
|
+
@import '../OpenMenu/style/index.less';
|
|
5
|
+
@import '../SideMenu/style/index.less';
|
|
6
6
|
|
|
7
7
|
/** 侧边栏 + 内容区 */
|
|
8
8
|
.pro-layout-row {
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
.pro-layout-menu-open {
|
|
13
|
-
.pro-layout-arrow
|
|
12
|
+
.pro-layout-arrow {
|
|
14
13
|
transform: rotate(225deg);
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
.pro-layout-arrow {
|
|
19
|
-
width
|
|
20
|
-
height
|
|
18
|
+
width: 10px;
|
|
19
|
+
height: 10px;
|
|
20
|
+
margin-left: -5px;
|
|
21
21
|
background-color: transparent;
|
|
22
22
|
/* 模块背景为透明 */
|
|
23
|
-
border-color
|
|
24
|
-
border-style
|
|
25
|
-
border-width
|
|
26
|
-
|
|
27
|
-
transform : rotate(45deg);
|
|
23
|
+
border-color: #fff;
|
|
24
|
+
border-style: solid;
|
|
25
|
+
border-width: 2px 2px 0 0;
|
|
26
|
+
transform: rotate(45deg);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
&.pro-layout-menu-no-collapsed {
|
|
31
30
|
.pro-layout-menu-fold-li {
|
|
32
|
-
display
|
|
33
|
-
align-items
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
34
33
|
justify-content: center;
|
|
35
34
|
|
|
36
35
|
div {
|
|
@@ -42,11 +41,10 @@
|
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
h2 {
|
|
45
|
-
display
|
|
44
|
+
display: inline-block;
|
|
46
45
|
white-space: nowrap;
|
|
47
|
-
opacity
|
|
48
|
-
transition
|
|
49
|
-
color 0.5s;
|
|
46
|
+
opacity: 0;
|
|
47
|
+
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
}
|
|
@@ -81,18 +79,18 @@
|
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
.pro-layout-menu {
|
|
84
|
-
position
|
|
85
|
-
top
|
|
86
|
-
left
|
|
87
|
-
z-index
|
|
88
|
-
width
|
|
89
|
-
height
|
|
90
|
-
min-height
|
|
91
|
-
padding
|
|
92
|
-
overflow-x
|
|
93
|
-
overflow-y
|
|
82
|
+
position: fixed;
|
|
83
|
+
top: 48px;
|
|
84
|
+
left: 0;
|
|
85
|
+
z-index: 99;
|
|
86
|
+
width: 48px;
|
|
87
|
+
height: 100vh;
|
|
88
|
+
min-height: 100%;
|
|
89
|
+
padding: 0;
|
|
90
|
+
overflow-x: hidden;
|
|
91
|
+
overflow-y: auto;
|
|
94
92
|
background-color: #1a202d;
|
|
95
|
-
transition
|
|
93
|
+
transition: background 0.3s, width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;
|
|
96
94
|
|
|
97
95
|
&.pro-layout-menu-open {
|
|
98
96
|
width: 220px;
|
|
@@ -101,52 +99,50 @@
|
|
|
101
99
|
|
|
102
100
|
/** 内容区 */
|
|
103
101
|
.pro-layout-content {
|
|
104
|
-
|
|
102
|
+
z-index: 1;
|
|
103
|
+
flex: auto;
|
|
104
|
+
flex: auto;
|
|
105
|
+
min-height: calc(100vh - 48px);
|
|
106
|
+
margin-top: 48px;
|
|
105
107
|
margin-left: 48px;
|
|
106
|
-
padding
|
|
107
|
-
transition
|
|
108
|
-
z-index : 1;
|
|
109
|
-
flex : auto;
|
|
110
|
-
min-height : calc(100vh - 48px);
|
|
111
|
-
margin-top : 48px;
|
|
108
|
+
padding: 0 var(--zaui-space-size-md, 16px);
|
|
109
|
+
transition: all 0.3s ease-in-out;
|
|
112
110
|
}
|
|
113
111
|
|
|
114
|
-
|
|
115
|
-
|
|
116
112
|
.pro-layout-menu.pro-layout-menu-open .pro-layout-menu-collapsed {
|
|
117
|
-
left
|
|
118
|
-
width: 220px
|
|
113
|
+
left: 0;
|
|
114
|
+
width: 220px;
|
|
119
115
|
}
|
|
120
116
|
|
|
121
117
|
.pro-layout-menu.pro-layout-menu-open .pro-layout-menu-collapsed img {
|
|
122
|
-
transform: rotate(-180deg)
|
|
118
|
+
transform: rotate(-180deg);
|
|
123
119
|
}
|
|
124
120
|
|
|
125
121
|
.pro-layout-menu .pro-layout-menu-collapsed {
|
|
126
|
-
position
|
|
127
|
-
bottom
|
|
128
|
-
left
|
|
129
|
-
z-index
|
|
130
|
-
display
|
|
131
|
-
align-items
|
|
122
|
+
position: fixed;
|
|
123
|
+
bottom: 0;
|
|
124
|
+
left: 0;
|
|
125
|
+
z-index: 2;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
132
128
|
justify-content: center;
|
|
133
|
-
width
|
|
134
|
-
height
|
|
135
|
-
|
|
136
|
-
|
|
129
|
+
width: 48px;
|
|
130
|
+
height: 48px;
|
|
131
|
+
background: #292f3b;
|
|
132
|
+
transition: all 0.3s ease;
|
|
137
133
|
}
|
|
138
134
|
|
|
139
135
|
.pro-layout-menu .pro-layout-menu-collapsed:hover {
|
|
140
|
-
background-color: rgba(185, 185, 189, .1)
|
|
136
|
+
background-color: rgba(185, 185, 189, 0.1);
|
|
141
137
|
}
|
|
142
138
|
|
|
143
139
|
.pro-layout-menu .pro-layout-menu-collapsed img {
|
|
144
140
|
display: inline-block;
|
|
145
|
-
width
|
|
146
|
-
height
|
|
141
|
+
width: 20px;
|
|
142
|
+
height: 20px;
|
|
147
143
|
}
|
|
148
144
|
|
|
149
|
-
.pro-layout-menu-open
|
|
150
|
-
margin-left: 220px !important
|
|
145
|
+
.pro-layout-menu-open ~ .pro-layout-content {
|
|
146
|
+
margin-left: 220px !important;
|
|
151
147
|
}
|
|
152
148
|
}
|
|
@@ -11,6 +11,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
11
11
|
var _antd = require("antd");
|
|
12
12
|
var _icons = require("@ant-design/icons");
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _reactSvg = require("react-svg");
|
|
15
|
+
var _lodash = require("lodash");
|
|
16
|
+
var _fold = _interopRequireDefault(require("../../../assets/fold.svg"));
|
|
14
17
|
var Panel = _antd.Collapse.Panel;
|
|
15
18
|
var ProCollapse = function ProCollapse(props) {
|
|
16
19
|
var title = props.title,
|
|
@@ -31,7 +34,8 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
31
34
|
folding = _props$folding === void 0 ? false : _props$folding,
|
|
32
35
|
collapseProps = props.collapseProps,
|
|
33
36
|
collapsePanelProps = props.collapsePanelProps,
|
|
34
|
-
className = props.className
|
|
37
|
+
className = props.className,
|
|
38
|
+
icon = props.icon;
|
|
35
39
|
var cls = (0, _classnames.default)((0, _defineProperty2.default)({
|
|
36
40
|
'pro-collapse': true,
|
|
37
41
|
'pro-collapse-level2': level === '2',
|
|
@@ -44,6 +48,7 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
44
48
|
children: children
|
|
45
49
|
});
|
|
46
50
|
var renderPanel = function renderPanel() {
|
|
51
|
+
var _title = title;
|
|
47
52
|
if (level === '2') {
|
|
48
53
|
var level2Panel = (0, _classnames.default)({
|
|
49
54
|
'pro-collapse-level2-collapse': towCollapse,
|
|
@@ -55,7 +60,7 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
55
60
|
hasCollapse.collapsible = 'disabled';
|
|
56
61
|
}
|
|
57
62
|
return (0, _jsxRuntime.jsx)(Panel, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
58
|
-
header:
|
|
63
|
+
header: _title,
|
|
59
64
|
className: level2Panel,
|
|
60
65
|
extra: (0, _jsxRuntime.jsx)("div", {
|
|
61
66
|
className: "extra-info",
|
|
@@ -66,8 +71,20 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
66
71
|
children: content
|
|
67
72
|
}), "1");
|
|
68
73
|
}
|
|
74
|
+
if (icon) {
|
|
75
|
+
_title = (0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
76
|
+
size: 8,
|
|
77
|
+
align: "center",
|
|
78
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
79
|
+
className: "pro-collapse-icon",
|
|
80
|
+
children: (0, _lodash.isBoolean)(icon) ? (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
|
|
81
|
+
src: _fold.default
|
|
82
|
+
}) : icon
|
|
83
|
+
}), title]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
69
86
|
return (0, _jsxRuntime.jsx)(Panel, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
70
|
-
header:
|
|
87
|
+
header: _title,
|
|
71
88
|
className: "pro-collapse-panel",
|
|
72
89
|
extra: (0, _jsxRuntime.jsx)("div", {
|
|
73
90
|
className: "extra-info",
|
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
4
|
.pro-collapse {
|
|
5
|
-
|
|
5
|
+
.pro-collapse-icon{
|
|
6
|
+
max-width: 18px;
|
|
7
|
+
min-width: 16px;
|
|
8
|
+
img{
|
|
9
|
+
vertical-align: sub;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
6
12
|
|
|
7
13
|
&.pro-collapse-no-title {
|
|
8
14
|
.@{ant-prefix}-collapse-header {
|
|
9
15
|
display: none !important;
|
|
10
16
|
}
|
|
17
|
+
.pro-collapse-level2{
|
|
18
|
+
.@{ant-prefix}-collapse-header {
|
|
19
|
+
display: block !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
11
22
|
}
|
|
12
23
|
|
|
13
24
|
&.@{ant-prefix}-collapse {
|
|
@@ -29,7 +40,7 @@
|
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
.@{ant-prefix}-collapse-expand-icon {
|
|
32
|
-
color: #
|
|
43
|
+
color: #999;
|
|
33
44
|
}
|
|
34
45
|
|
|
35
46
|
&.@{ant-prefix}-collapse-borderless
|
|
@@ -41,7 +52,6 @@
|
|
|
41
52
|
|
|
42
53
|
.@{ant-prefix}-collapse-content-box {
|
|
43
54
|
padding: 0;
|
|
44
|
-
background: var(--zaui-base-bg, #ffffff);
|
|
45
55
|
|
|
46
56
|
.pro-collapse-content {
|
|
47
57
|
padding: var(--zaui-space-size-md, 16px);
|
|
@@ -52,16 +62,17 @@
|
|
|
52
62
|
}
|
|
53
63
|
|
|
54
64
|
&.pro-collapse-level2 {
|
|
55
|
-
margin-bottom: 0;
|
|
56
65
|
background: var(--zaui-base-bg, #ffffff);
|
|
57
|
-
|
|
66
|
+
.pro-collapse-panel{
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
58
69
|
.@{ant-prefix}-collapse-header {
|
|
59
70
|
padding: 0 !important;
|
|
60
71
|
background: var(--zaui-base-bg, #ffffff);
|
|
61
72
|
|
|
62
73
|
.@{ant-prefix}-collapse-header-text {
|
|
63
74
|
position: relative;
|
|
64
|
-
padding-left:
|
|
75
|
+
padding-left: 15px;
|
|
65
76
|
font-size: var(--zaui-font-size, 14px);
|
|
66
77
|
|
|
67
78
|
&::before {
|
|
@@ -71,7 +82,7 @@
|
|
|
71
82
|
width: 4px;
|
|
72
83
|
height: 14px;
|
|
73
84
|
background: var(--zaui-brand);
|
|
74
|
-
border-radius: var(--zaui-border-radius-card,
|
|
85
|
+
border-radius: var(--zaui-border-radius-card, 4px);
|
|
75
86
|
transform: translateY(-50%);
|
|
76
87
|
content: '';
|
|
77
88
|
}
|
|
@@ -85,13 +96,17 @@
|
|
|
85
96
|
}
|
|
86
97
|
|
|
87
98
|
.pro-collapse-content {
|
|
88
|
-
padding
|
|
99
|
+
padding: var(--zaui-space-size-sm, 8px) 0 !important;
|
|
89
100
|
}
|
|
90
101
|
|
|
91
102
|
.pro-collapse-level2-collapse {
|
|
103
|
+
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
104
|
+
&.@{ant-prefix}-collapse-item-active{
|
|
105
|
+
margin-bottom: 0;
|
|
106
|
+
}
|
|
92
107
|
.@{ant-prefix}-collapse-header {
|
|
93
108
|
padding: 0 8px 6px !important;
|
|
94
|
-
border-bottom:
|
|
109
|
+
border-bottom: 1px solid #dee0e3;
|
|
95
110
|
margin: 0 -8px;
|
|
96
111
|
.@{ant-prefix}-collapse-arrow{
|
|
97
112
|
right: 8px;
|
|
@@ -142,13 +157,16 @@
|
|
|
142
157
|
}
|
|
143
158
|
|
|
144
159
|
&.pro-collapse-list {
|
|
160
|
+
.@{ant-prefix}-descriptions-view{
|
|
161
|
+
margin: 0 -8px;
|
|
162
|
+
}
|
|
145
163
|
.@{ant-prefix}-descriptions-row > th,
|
|
146
164
|
.@{ant-prefix}-descriptions-row > td {
|
|
147
165
|
padding: var(--zaui-space-size-sm, 8px) 0;
|
|
148
166
|
background: #fafafa;
|
|
149
167
|
|
|
150
168
|
&.@{ant-prefix}-descriptions-item {
|
|
151
|
-
padding-left:
|
|
169
|
+
padding-left: 23px;
|
|
152
170
|
}
|
|
153
171
|
}
|
|
154
172
|
|
|
@@ -163,7 +181,7 @@
|
|
|
163
181
|
width: 4px;
|
|
164
182
|
height: 14px;
|
|
165
183
|
background: var(--zaui-brand);
|
|
166
|
-
border-radius: var(--zaui-border-radius-card,
|
|
184
|
+
border-radius: var(--zaui-border-radius-card, 4px);
|
|
167
185
|
transform: translateY(-50%);
|
|
168
186
|
content: '';
|
|
169
187
|
}
|
|
@@ -18,7 +18,7 @@ var ProFooter = function ProFooter(props) {
|
|
|
18
18
|
className = props.className,
|
|
19
19
|
children = props.children,
|
|
20
20
|
_props$zIndex = props.zIndex,
|
|
21
|
-
zIndex = _props$zIndex === void 0 ?
|
|
21
|
+
zIndex = _props$zIndex === void 0 ? 99 : _props$zIndex,
|
|
22
22
|
_props$sideDom = props.sideDom,
|
|
23
23
|
sideDom = _props$sideDom === void 0 ? '.pro-layout-sider-nav' : _props$sideDom,
|
|
24
24
|
_props$contentDom = props.contentDom,
|