Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Smart_School
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
张伯涛
Smart_School
Commits
9a30bec5
Commit
9a30bec5
authored
Mar 03, 2023
by
YangAo
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加首页菜单与路由 并 修改出现问题的样式
parent
345a5257
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
363 additions
and
313 deletions
+363
-313
icon_home.svg
src/assets/icons/svg/icon_home.svg
+1
-0
基础云平台.jpg
.../ProductIntroduction/TheUnderlyingCloudPlatform/基础云平台.jpg
+0
-0
Item.vue
src/layout/Second/Sidebar/Item.vue
+51
-9
index.js
src/router/index.js
+7
-1
Single.vue
src/views/ProductIntroduction/Single.vue
+1
-0
index.vue
src/views/ProductIntroduction/index.vue
+5
-303
menuInfo.js
src/views/ProductIntroduction/menuInfo.js
+298
-0
No files found.
src/assets/icons/svg/icon_home.svg
0 → 100644
View file @
9a30bec5
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"18"
height=
"18"
viewBox=
"0 0 18 18"
><defs><style>
.a{fill:none;}.b{isolation:isolate;clip-path:url(#a);}.c{stroke-width:0.3px;}
</style><clipPath
id=
"a"
><rect
class=
"a"
x=
"1"
y=
"1"
width=
"18"
height=
"18"
/></clipPath></defs><g
class=
"b"
transform=
"translate(-1 -1)"
><path
class=
"c"
d=
"M90.956,93.145v-4.76A1.347,1.347,0,0,1,92.426,87.2H95.54a1.35,1.35,0,0,1,1.47,1.187v4.76h1.214a2.128,2.128,0,0,0,2.246-1.984V84.189L94.9,79.08a1.378,1.378,0,0,0-1.831,0L87.5,84.189v6.972a2.125,2.125,0,0,0,2.246,1.984Zm.865,0h4.325v-4.76c0-.2-.255-.394-.605-.394H92.426c-.353,0-.606.193-.606.394v4.76Zm9.515-8.163v6.179a2.959,2.959,0,0,1-3.111,2.777H89.741a2.957,2.957,0,0,1-3.111-2.777V84.982l-.559.513a.461.461,0,0,1-.612,0,.374.374,0,0,1,0-.561l7-6.415a2.3,2.3,0,0,1,3.054,0l7,6.415a.374.374,0,0,1,0,.561.461.461,0,0,1-.612,0l-.559-.513Z"
transform=
"translate(-84.033 -75.939)"
/></g></svg>
\ No newline at end of file
src/assets/img/ProductIntroduction/TheUnderlyingCloudPlatform/基础云平台.jpg
0 → 100644
View file @
9a30bec5
75.5 KB
src/layout/Second/Sidebar/Item.vue
View file @
9a30bec5
...
...
@@ -46,21 +46,26 @@ export default {
line-height
:
44px
;
margin
:
0
20px
20px
;
user-select
:
none
;
&
:hover
{
background
:
transparent
!
important
;
}
&
>
.svg-icon
{
margin-right
:
20px
;
stroke
:
#CADCFB
;
}
.el-submenu__icon-arrow
{
font-weight
:
bold
;
font-size
:
14px
;
color
:
#CADCFB
;
}
}
::v-deep
.el-menu
{
padding-bottom
:
17px
;
&
-item
:nth-child
(
n
+
2
)
{
margin-top
:
20px
;
}
...
...
@@ -70,6 +75,7 @@ export default {
.is-active
{
::v-deep
.el-submenu__title
{
color
:
white
!
important
;
.el-submenu__icon-arrow
{
color
:
white
;
}
...
...
@@ -84,6 +90,45 @@ export default {
}
}
// 一级菜单item的默认显示icon
.el-menu
{
&
>
&
-item
{
margin
:
0
20px
20px
;
.svg-icon
{
display
:
inline
;
margin-right
:
20px
;
}
span
{
margin-left
:
0
;
}
}
}
// 子菜单item的默认不显示icon
.el-menu--inline
{
&
>
.el-menu-item
{
.svg-icon
{
display
:
none
;
width
:
8px
;
height
:
8px
;
margin
:
{
left
:
5px
;
right
:
25px
;
};
}
span
{
margin-left
:
38px
;
}
&
:hover
{
.svg-icon
{
stroke
:
#387DF7
;
}
}
}
}
.el-menu-item
{
padding
:
0
20px
!
important
;
font-size
:
14px
;
...
...
@@ -91,30 +136,28 @@ export default {
line-height
:
44px
;
margin
:
0
20px
;
border-radius
:
22px
;
&
:hover
{
background
:
transparent
!
important
;
color
:
#387DF7
!
important
;
}
.svg-icon
{
display
:
none
;
width
:
8px
;
height
:
8px
;
stroke
:
#CADCFB
;
margin
:
{
left
:
5px
;
right
:
25px
;
};
}
span
{
margin-left
:
38px
;
user-select
:
none
;
}
&
.is-active
{
background
:
#387DF7
!
important
;
color
:
white
!
important
;
.svg-icon
{
display
:
inline
;
}
span
{
margin-left
:
0
;
}
...
...
@@ -122,5 +165,4 @@ export default {
}
</
style
>
\ No newline at end of file
src/router/index.js
View file @
9a30bec5
import
Vue
from
"vue"
;
import
VueRouter
from
"vue-router"
;
import
{
menuItemList
,
prefixBasePath
}
from
"@/views/ProductIntroduction/menuInfo"
;
Vue
.
use
(
VueRouter
);
...
...
@@ -12,7 +13,12 @@ export default new VueRouter({
routes
:
[
{
path
:
"/product-introduction/:pathInfo(.*)"
,
component
:
_
=>
import
(
"@/views/ProductIntroduction"
),
component
:
_
=>
import
(
"@/views/ProductIntroduction"
)
},
{
path
:
"/second/index"
,
component
:
_
=>
import
(
"@/layout/Second"
),
props
:
{
route
:
true
,
menuItemList
,
basePath
:
prefixBasePath
}
},
{
path
:
"/"
,
// 程序启动默认路由
...
...
src/views/ProductIntroduction/Single.vue
View file @
9a30bec5
...
...
@@ -96,6 +96,7 @@ export default {
&
-text
{
flex
:
7738
;
text-align
:
center
;
}
&
:
:
before
{
...
...
src/views/ProductIntroduction/index.vue
View file @
9a30bec5
This diff is collapsed.
Click to expand it.
src/views/ProductIntroduction/menuInfo.js
0 → 100644
View file @
9a30bec5
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