Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
Project
Project
Details
Activity
Releases
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
张伯涛
NLT-e-cigarette
Commits
4b0adb42
Commit
4b0adb42
authored
May 20, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
cb57c4e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
15 deletions
+23
-15
Item.vue
src/layout/components/Sidebar/Item.vue
+7
-2
Logo.vue
src/layout/components/Sidebar/Logo.vue
+1
-0
SidebarItem.vue
src/layout/components/Sidebar/SidebarItem.vue
+14
-12
sidebar.scss
src/styles/sidebar.scss
+1
-1
No files found.
src/layout/components/Sidebar/Item.vue
View file @
4b0adb42
...
...
@@ -17,11 +17,16 @@ export default {
const
vnodes
=
[]
if
(
icon
)
{
vnodes
.
push
(
<
svg
-
icon
icon
-
class
=
{
icon
}
/
>
)
vnodes
.
push
(
<
div
><
svg
-
icon
icon
-
class
=
{
icon
}
/></
div
>
)
}
if
(
title
)
{
vnodes
.
push
(
<
span
slot
=
'title'
>
{(
title
)}
<
/span>
)
vnodes
.
push
(
<
div
style
=
'padding-bottom: 5px;'
slot
=
'title'
>
<
div
>
{(
title
.
split
(
';'
)[
0
])}
<
/div
>
<
div
style
=
'padding-left: 5px;font-size: 12px;'
>
{(
title
.
split
(
';'
)[
1
])}
<
/div
>
<
/div
>
)
}
return
vnodes
}
...
...
src/layout/components/Sidebar/Logo.vue
View file @
4b0adb42
...
...
@@ -56,6 +56,7 @@ export default {
width
:
100%
;
&
.sidebar-logo
{
margin-left
:
55px
;
width
:
67px
;
height
:
36px
;
vertical-align
:
middle
;
...
...
src/layout/components/Sidebar/SidebarItem.vue
View file @
4b0adb42
...
...
@@ -3,17 +3,13 @@
<template
v-if=
"item.showFather !== 'true' && hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"
>
<app-link
v-if=
"onlyOneChild.meta"
:to=
"resolvePath(onlyOneChild.path)"
>
<div
class=
"menuTitle"
>
<el-menu-item
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{'submenu-title-noDropdown':!isNest}">
<item
v-if=
"onlyOneChild.meta.title.split(';')[1] === 'Home Page'"
:icon=
"onlyOneChild.meta.icon||(item.meta&&item.meta.icon)"
:title=
"onlyOneChild.meta.title.split(';')[0]+ '\n' + ' '+ onlyOneChild.meta.title.split(';')[1]"
/>
<item
v-else
:icon=
"onlyOneChild.meta.icon||(item.meta&&item.meta.icon)"
:title=
" ' ' + onlyOneChild.meta.title.split(';')[0]+ '\n' + ' ' + onlyOneChild.meta.title.split(';')[1]"
/>
<el-menu-item
style=
""
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{'submenu-title-noDropdown':!isNest}">
<div
:class=
"
{'childMenu':onlyOneChild.meta.title !== '平台首页;Home Page'}" style="display: flex;">
<item
:icon=
"onlyOneChild.meta.icon||(item.meta&&item.meta.icon)"
:title=
"onlyOneChild.meta.title"
/>
</div>
</el-menu-item>
</div>
</app-link>
...
...
@@ -25,7 +21,7 @@
<item
v-if=
"item.meta"
:icon=
"item.meta && item.meta.icon"
:title=
"item.meta.title
.split(';')[0] + '\n' + ' ' + item.meta.title.split(';')[1]
"
:title=
"item.meta.title"
/>
</div>
</
template
>
...
...
@@ -111,13 +107,19 @@ export default {
}
</
script
>
<
style
lang=
"scss"
>
.childMenu
{
padding-left
:
20px
!
important
;
}
.menuTitle
{
.el-menu-item
{
padding-top
:
10px
;
height
:
65px
;
line-height
:
24px
!
important
;
white-space
:
pre-wrap
!
important
;
}
}
.metaTitle
{
display
:
flex
!
important
;
line-height
:
24px
!
important
;
white-space
:
pre-wrap
!
important
;
}
...
...
src/styles/sidebar.scss
View file @
4b0adb42
...
...
@@ -56,7 +56,7 @@
}
.svg-icon
{
margin-right
:
1
7px
;
margin-right
:
7px
;
font-size
:
20px
;
}
...
...
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