@zat-design/sisyphus-react 4.3.1-beta.1 → 4.3.2
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 +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProIcon/index.js +4 -10
- package/es/ProIcon/style/index.less +11 -2
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +1 -2
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +3 -2
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +9 -0
- package/es/ProLayout/components/TabsManager/style/index.less +1 -0
- package/es/ProLayout/index.js +6 -2
- package/es/ProLayout/style/index.less +1 -0
- package/package.json +1 -1
package/es/ProIcon/index.js
CHANGED
|
@@ -310,26 +310,20 @@ const ProIcon = props => {
|
|
|
310
310
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
311
311
|
title: iconText,
|
|
312
312
|
children: buttonIcon && !willBeWrappedByButton ? /*#__PURE__*/_jsx(Button, {
|
|
313
|
+
className: "pro-icon-btn-inner",
|
|
313
314
|
style: {
|
|
314
315
|
width: size,
|
|
315
|
-
height: size
|
|
316
|
-
border: 'none',
|
|
317
|
-
borderRadius: 0,
|
|
318
|
-
padding: 0,
|
|
319
|
-
verticalAlign: 'baseline'
|
|
316
|
+
height: size
|
|
320
317
|
},
|
|
321
318
|
type: "text",
|
|
322
319
|
icon: icon,
|
|
323
320
|
...buttonProps
|
|
324
321
|
}) : /*#__PURE__*/_jsx(Space, {
|
|
325
322
|
children: /*#__PURE__*/_jsx("span", {
|
|
323
|
+
className: "pro-icon-wrapper",
|
|
326
324
|
style: {
|
|
327
325
|
width: size,
|
|
328
|
-
height: size
|
|
329
|
-
border: 'none',
|
|
330
|
-
borderRadius: 0,
|
|
331
|
-
padding: 0,
|
|
332
|
-
verticalAlign: 'baseline'
|
|
326
|
+
height: size
|
|
333
327
|
},
|
|
334
328
|
children: icon
|
|
335
329
|
})
|
|
@@ -12,6 +12,17 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
// 内层图标容器(buttonIcon=false 时的 span,buttonIcon=true 时的 Button)
|
|
16
|
+
// 静态样式统一在此,动态 width/height 通过内联 style 传入
|
|
17
|
+
.pro-icon-wrapper,
|
|
18
|
+
.pro-icon-btn-inner {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
border: none;
|
|
21
|
+
border-radius: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
vertical-align: baseline;
|
|
24
|
+
}
|
|
25
|
+
|
|
15
26
|
.pro-icon-btn {
|
|
16
27
|
.anticon {
|
|
17
28
|
display: inline-block;
|
|
@@ -20,8 +31,6 @@
|
|
|
20
31
|
&.@{ant-prefix}-btn-icon-only {
|
|
21
32
|
width: auto;
|
|
22
33
|
height: auto;
|
|
23
|
-
padding: 0;
|
|
24
34
|
vertical-align: 0;
|
|
25
|
-
border: 0;
|
|
26
35
|
}
|
|
27
36
|
}
|
|
@@ -187,8 +187,7 @@ const OpenMenu = props => {
|
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
style: {
|
|
190
|
-
height: dataSource.sideMenu ? 'auto' : `calc(100vh - ${dataSource?.height || 0}px)
|
|
191
|
-
color: 'red'
|
|
190
|
+
height: dataSource.sideMenu ? 'auto' : `calc(100vh - ${dataSource?.height || 0}px)`
|
|
192
191
|
}
|
|
193
192
|
}), /*#__PURE__*/_jsx(Link, {
|
|
194
193
|
to: router,
|
|
@@ -165,8 +165,9 @@
|
|
|
165
165
|
background: transparent !important;
|
|
166
166
|
|
|
167
167
|
.@{ant-prefix}-menu-title-content div {
|
|
168
|
-
.pro-layout-icon
|
|
169
|
-
|
|
168
|
+
.pro-layout-icon,
|
|
169
|
+
.anticon {
|
|
170
|
+
color: var(--zaui-text, #343434) !important;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
h2 {
|
|
@@ -65,6 +65,15 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
// ProIcon 渲染为 .anticon 包裹层,需单独处理间距和颜色锁定
|
|
69
|
+
.@{ant-prefix}-menu-title-content div .anticon {
|
|
70
|
+
flex: 0 0 20px;
|
|
71
|
+
width: 20px;
|
|
72
|
+
height: 20px;
|
|
73
|
+
margin-right: 12px;
|
|
74
|
+
color: var(--zaui-text, #343434) !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
68
77
|
.pro-layout-icon {
|
|
69
78
|
color: var(--zaui-text, #343434) !important;
|
|
70
79
|
fill: currentcolor;
|
package/es/ProLayout/index.js
CHANGED
|
@@ -191,6 +191,10 @@ const ProLayout = props => {
|
|
|
191
191
|
});
|
|
192
192
|
const noticeHeight = notice ? 32 : 0;
|
|
193
193
|
|
|
194
|
+
// pure 模式下 Header 不渲染,有效头部高度为 0
|
|
195
|
+
const isPureHeader = typeof pure === 'boolean' ? pure : !!pure?.topMenu;
|
|
196
|
+
const effectiveHeaderHeight = isPureHeader ? 0 : headerHeight;
|
|
197
|
+
|
|
194
198
|
// 为Header组件创建专门的props对象
|
|
195
199
|
const headerProps = {
|
|
196
200
|
headerHeight,
|
|
@@ -238,7 +242,7 @@ const ProLayout = props => {
|
|
|
238
242
|
}),
|
|
239
243
|
style: {
|
|
240
244
|
'--header-bg-image': `url(${headerBg})`,
|
|
241
|
-
'--pro-layout-header-height': `${
|
|
245
|
+
'--pro-layout-header-height': `${effectiveHeaderHeight}px`
|
|
242
246
|
},
|
|
243
247
|
children: [/*#__PURE__*/_jsx(Header, {
|
|
244
248
|
...headerProps
|
|
@@ -248,7 +252,7 @@ const ProLayout = props => {
|
|
|
248
252
|
ref: setTabsBarEl,
|
|
249
253
|
className: `pro-layout-tabs-bar-wrapper${hasTabs ? ' tabs-visible' : ''}${collapsed ? ' tabs-menu-open' : ''}`,
|
|
250
254
|
style: {
|
|
251
|
-
marginTop:
|
|
255
|
+
marginTop: effectiveHeaderHeight + noticeHeight
|
|
252
256
|
}
|
|
253
257
|
}), /*#__PURE__*/_jsxs("div", {
|
|
254
258
|
className: contentCls,
|