Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
14f577bf
Commit
14f577bf
authored
1 year ago
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 样式调整
parent
1b14c542
Pipeline
#79224
waiting for manual action with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
BasicLayout.js
src/layouts/BasicLayout.js
+5
-3
BasicLayout.less
src/layouts/BasicLayout.less
+16
-0
No files found.
src/layouts/BasicLayout.js
View file @
14f577bf
...
...
@@ -69,9 +69,10 @@ const arrowSvg = ({ fillColor = '#fff' }) => (
const
ArrowIcon
=
props
=>
<
Icon
component
=
{
arrowSvg
}
{...
props
}
/>
;
const
optionsWith
=
[{
label
:
'按站点'
,
value
:
'site'
},
{
label
:
'按城市'
,
value
:
'city'
}];
const
HOT
=
[
'HOT'
,
'县'
,
'市'
,
'New'
];
const
StationsItem
=
(
item
,
action
,
onChangeVisible
,
actionRef
,
setMenuLoading
)
=>
{
const
StationsItem
=
(
item
,
action
,
onChangeVisible
,
actionRef
,
setMenuLoading
,
cityData
)
=>
{
const
changeGroup
=
(
event
,
data
)
=>
{
action
.
changeGroup
&&
action
.
changeGroup
(
event
,
data
,
onChangeVisible
,
actionRef
);
window
.
share
.
event
.
emit
(
'updateSite'
,
{
...
cityData
,
currentStationName
:
data
.
groupName
});
setMenuLoading
&&
setMenuLoading
(
true
);
};
return
(
...
...
@@ -97,7 +98,7 @@ const OnlyFocusStations = props => {
<
div
className
=
{
layoutStyles
.
focusStations
}
style
=
{{
border
:
'none'
}}
>
<
ul
>
{
Array
.
isArray
(
data
)
?
data
.
map
(
item
=>
StationsItem
(
item
,
props
.
action
,
props
.
setVisible
,
props
.
actionRef
,
props
.
setMenuLoading
))
?
data
.
map
(
item
=>
StationsItem
(
item
,
props
.
action
,
props
.
setVisible
,
props
.
actionRef
,
props
.
setMenuLoading
,
props
.
data
))
:
null
}
<
/ul
>
<
/div
>
...
...
@@ -128,7 +129,7 @@ const AllStations = props => {
<
ul
>
{
Array
.
isArray
(
data
)
?
data
.
map
(
item
=>
StationsItem
(
item
,
props
.
action
,
props
.
setVisible
,
props
.
actionRef
,
props
.
setMenuLoading
),
StationsItem
(
item
,
props
.
action
,
props
.
setVisible
,
props
.
actionRef
,
props
.
setMenuLoading
,
props
.
data
),
)
:
null
}
<
/ul
>
...
...
@@ -352,6 +353,7 @@ const Layout = props => {
setCityLoading
(
true
);
siteAction
.
getCityStationsForUser
(
props
.
global
.
userInfo
?.
Groups
).
then
(
res
=>
{
setCityData
(
res
);
setCityLoading
(
false
);
});
}
},
[
cityData
,
cityLoading
,
props
.
global
,
props
.
global
.
userInfo
,
siteAction
]);
...
...
This diff is collapsed.
Click to expand it.
src/layouts/BasicLayout.less
View file @
14f577bf
...
...
@@ -227,6 +227,22 @@
padding: 0 14px;
// margin-bottom: 0px;
}
:global(.top-nav-menu-userWrapper
li.@{ant-prefix}-menu-item-only-child) {
height: 44px;
line-height: 44px;
margin-top: 0;
margin-bottom: 0;
max-width: 110px;
width: 110px;
padding: 0 14px;
}
:global(.top-nav-menu-userWrapper.wider
li.@{ant-prefix}-menu-item-only-child) {
max-width: 132px;
width: 132px;
}
// :global(.@{ant-prefix}-layout-sider-collapsed .@{ant-prefix}-menu-item.@{ant-prefix}-menu-item-only-child) {
// padding-left: 0px!important;
// }
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment