Commit 814518b7 authored by 曾婧's avatar 曾婧

fix: 定额平台svg

parent 638085c9
...@@ -72,7 +72,7 @@ const Index = props => { ...@@ -72,7 +72,7 @@ const Index = props => {
) : ( ) : (
<img src={route.extData.icon} style={{ width: '18px', height: '18px' }} /> <img src={route.extData.icon} style={{ width: '18px', height: '18px' }} />
)} )}
<span style={{ marginLeft: '8px' }}>{route.name} </span> <span style={{ marginLeft: '8px' }}>{route.name}</span>
<DownOutlined style={{ position: 'relative', right: '-10px' }} /> <DownOutlined style={{ position: 'relative', right: '-10px' }} />
</div> </div>
</Dropdown> </Dropdown>
...@@ -110,9 +110,17 @@ const Index = props => { ...@@ -110,9 +110,17 @@ const Index = props => {
) : item.extData && item.extData.icon === '1' ? ( ) : item.extData && item.extData.icon === '1' ? (
<span /> <span />
) : /.svg/.test(item.extData.icon) ? ( ) : /.svg/.test(item.extData.icon) ? (
<ReactSVG src={item.extData.icon} style={{ width: '18px', height: '18px' }} /> <ReactSVG
src={item.extData.icon}
style={{ width: '18px', height: '18px', position: 'relative' }}
/>
) : ( ) : (
item.extData && <img src={item.extData.icon} style={{ width: '18px', height: '18px' }} /> item.extData && (
<img
src={item.extData.icon}
style={{ width: '18px', height: '18px', position: 'relative' }}
/>
)
)} )}
<span className={`menu-item-name`}>{item.name}</span> <span className={`menu-item-name`}>{item.name}</span>
{childrenRoutes.length === 1 ? null : <Divider type="vertical" />} {childrenRoutes.length === 1 ? null : <Divider type="vertical" />}
......
...@@ -169,12 +169,17 @@ ...@@ -169,12 +169,17 @@
rect, rect,
circle, circle,
.cls-1 { .cls-1 {
fill: hsla(0, 0%, 100%, 0.65) !important; // fill: hsla(0, 0%, 100%, 0.65) !important;
} }
} }
} }
.@{ant-prefix}-menu-item-children :global(.@{ant-prefix}-tabs-tab-btn > div > div) { .@{ant-prefix}-menu-item-children :global(.@{ant-prefix}-tabs-tab-btn > div > div) {
display: flex; display: flex;
position: absolute;
width: 26px;
height: 26px;
top: -4px;
left: -3px;
} }
.@{ant-prefix}-menu-item-children :global(.@{ant-prefix}-tabs-nav::before) { .@{ant-prefix}-menu-item-children :global(.@{ant-prefix}-tabs-nav::before) {
border-bottom: none !important; border-bottom: none !important;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment