Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c3c47810
authored
May 26, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix menu
1 parent
1968b23a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
11 deletions
src/assets/images/company-logo-sub.png
src/components/DesktopLeftSider/Sub/Logo.vue
src/components/DesktopLeftSider/Sub/Menu.vue
src/components/DesktopLeftSider/Sub/NavInfoCard.vue
src/components/DesktopRightSider/DesktopRightSider.vue
src/assets/images/company-logo-sub.png
0 → 100644
View file @
c3c4781
5.41 KB
src/components/DesktopLeftSider/Sub/Logo.vue
View file @
c3c4781
<
template
>
<
template
>
<div
class=
"home-logo-wrapper"
>
<div
class=
"home-logo-wrapper"
>
<img
class=
"home-logo-img"
src=
"@/assets/images/
home-logo
.png"
alt=
"home-logo"
>
<img
class=
"home-logo-img"
src=
"@/assets/images/
company-logo-sub
.png"
alt=
"home-logo"
>
<!--
<img
v-show=
"collapsed"
class=
"home-logo-img home-thumbnail-logo"
src=
"@/assets/images/logo-thumbnail.png"
alt=
"home-logo"
>
-->
<!--
<img
v-show=
"collapsed"
class=
"home-logo-img home-thumbnail-logo"
src=
"@/assets/images/logo-thumbnail.png"
alt=
"home-logo"
>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
height
:
60px
;
height
:
60px
;
padding
:
5px
0
;
padding
:
5px
0
;
.home-logo-img
{
.home-logo-img
{
width
:
1
2
0px
;
width
:
1
7
0px
;
}
}
.home-thumbnail-logo
{
.home-thumbnail-logo
{
width
:
80%
;
width
:
80%
;
...
...
src/components/DesktopLeftSider/Sub/Menu.vue
View file @
c3c4781
...
@@ -6,12 +6,13 @@
...
@@ -6,12 +6,13 @@
class=
"section"
class=
"section"
v-for=
"(item, index) in menuList"
v-for=
"(item, index) in menuList"
:key=
"item.origin.menuNo"
>
:key=
"item.origin.menuNo"
>
<input
type=
"radio"
name=
"accordion-radio"
:id=
"'section-'+index"
:checked=
"item.showSubList"
/>
<input
type=
"radio"
name=
"accordion-radio"
:id=
"'section-'+index"
:checked=
"item.showSubList"
@
click=
"titleClick(item)"
/>
<label
:for=
"'section-'+index"
>
<label
:for=
"'section-'+index"
>
<span>
{{
item
.
origin
.
menuName
}}
</span>
<span>
{{
item
.
origin
.
menuName
}}
</span>
<!-- :class="
{'rotate-deg': item.showSubList}" -->
<!-- :class="
{'rotate-deg': item.showSubList}" -->
<i
<i
class=
"el-icon-arrow-down"
class=
"el-icon-arrow-down"
:class=
"
{'rotate-deg': item.showSubList}"
v-if="item.children
&&
item.children.length > 0">
</i>
v-if="item.children
&&
item.children.length > 0">
</i>
</label>
</label>
<div
class=
"accordion-content"
v-if=
"item.children && item.children.length > 0"
>
<div
class=
"accordion-content"
v-if=
"item.children && item.children.length > 0"
>
...
@@ -100,7 +101,10 @@ export default {
...
@@ -100,7 +101,10 @@ export default {
// 点击主菜单标题
// 点击主菜单标题
const
titleClick
=
(
item
)
=>
{
const
titleClick
=
(
item
)
=>
{
item
.
showSubList
=
!
item
.
showSubList
;
state
.
menuList
.
forEach
(
i
=>
{
i
.
showSubList
=
false
;
})
item
.
showSubList
=
true
;
};
};
// 高亮被选中的子集标题
// 高亮被选中的子集标题
...
@@ -408,6 +412,10 @@ export default {
...
@@ -408,6 +412,10 @@ export default {
opacity
:
0
;
opacity
:
0
;
position
:
relative
;
position
:
relative
;
overflow-y
:
hidden
;
overflow-y
:
hidden
;
&::-webkit-scrollbar
{
display
:
none
;
}
}
}
input
[
type
=
'radio'
]
{
input
[
type
=
'radio'
]
{
display
:
none
;
display
:
none
;
...
@@ -434,6 +442,7 @@ export default {
...
@@ -434,6 +442,7 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
padding
:
15px
15px
15px
20px
;
padding
:
15px
15px
15px
20px
;
display
:
table
;
display
:
table
;
box-sizing
:
border-box
;
width
:
100%
;
width
:
100%
;
-webkit-transition
:
background
0.3s
ease-in-out
;
-webkit-transition
:
background
0.3s
ease-in-out
;
-moz-transition
:
background
0.3s
ease-in-out
;
-moz-transition
:
background
0.3s
ease-in-out
;
...
...
src/components/DesktopLeftSider/Sub/NavInfoCard.vue
View file @
c3c4781
...
@@ -135,7 +135,7 @@ export default {
...
@@ -135,7 +135,7 @@ export default {
.info-card
{
.info-card
{
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
width
:
2
2
0px
;
width
:
2
0
0px
;
height
:
0
;
height
:
0
;
background
:
url('../../../assets/images/info-card-cover.png')
no-repeat
;
background
:
url('../../../assets/images/info-card-cover.png')
no-repeat
;
opacity
:
0
;
opacity
:
0
;
...
...
src/components/DesktopRightSider/DesktopRightSider.vue
View file @
c3c4781
...
@@ -133,12 +133,8 @@ export default {
...
@@ -133,12 +133,8 @@ export default {
.glsx-right-side
{
.glsx-right-side
{
position
:
relative
;
position
:
relative
;
}
}
.ant-layout-content
{
.el-breadcrumb
{
min-width
:
1190px
;
margin-bottom
:
20px
;
min-height
:
unset
!important
;
}
.ant-empty
{
margin-top
:
200px
;
}
}
.empty-text
{
.empty-text
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment