Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
cae6b8f4
Commit
cae6b8f4
authored
Apr 03, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product
parents
d7a88dab
d8beab97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
product.vue
layouts/basic-layout/product.vue
+19
-8
No files found.
layouts/basic-layout/product.vue
View file @
cae6b8f4
<
template
>
<Layout
class=
"product-layout"
>
<Header>
...
...
@@ -14,7 +15,7 @@
<td>
<ul
class=
"table_row_ul"
>
<li
v-for=
"(li,j) in item.children"
>
<a
@
click=
"goPage(li
)
"
>
{{
li
.
title
}}
</a>
<a
@
click=
"goPage(li
,j)"
:class=
"
{'active': li.id === isActive}
">
{{
li
.
title
}}
</a>
</li>
</ul>
</td>
...
...
@@ -92,6 +93,7 @@ export default {
},
data
()
{
return
{
isActive
:
0
,
showDrawer
:
false
,
ticking
:
false
,
headerVisible
:
true
,
...
...
@@ -273,6 +275,7 @@ export default {
},
goPage
(
u
)
{
this
.
$router
.
push
(
u
.
path
)
this
.
isActive
=
u
.
id
},
},
mounted
()
{
...
...
@@ -286,6 +289,7 @@ export default {
}
};
</
script
>
<
style
lang=
"less"
>
.product-layout {
.ivu-layout-header {
...
...
@@ -342,10 +346,9 @@ export default {
}
}
tr{
height: 40px;
line-height: 40px;
// line-height: 35px;
td{
padding:
5px 1
0px;
padding:
9px 10px
0px;
.table_row_ul{
list-style: none;
border-bottom: 1px solid #E0E0E0;
...
...
@@ -356,12 +359,21 @@ export default {
a {
float: left;
padding: 0px 10px;
margin: 0 6px;
line-height: 30px;
margin: 0px 6px;
border-radius: 4px;
}
a:hover {
a:hover{
background: #2680eb;
color: white;
}
a:visited{
background: #2680eb;
color: white;
}
a.active{
background: #2680eb;
color: white;
border-radius: 4px;
}
}
}
...
...
@@ -372,7 +384,6 @@ export default {
background: #515a6e;
.title{
padding: 5px 10px;
font-size: 16px;
}
}
}
...
...
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