Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
fanxing_new
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9ee7eea0
authored
Jan 09, 2020
by
潘建波
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加tag关闭
1 parent
12b1ca04
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
src/assets/css/public.css
src/views/Layout/index.vue
src/assets/css/public.css
View file @
9ee7eea
...
...
@@ -172,10 +172,12 @@ html,body{
cursor
:
pointer
;
color
:
#888888
;
}
.el-tag
.el-icon-close
{
.
nav-tag-box
.
el-tag
.el-icon-close
{
color
:
#888888
;
cursor
:
pointer
;
}
.el-tag
.el-icon-close
:hover
{
.
nav-tag-box
.
el-tag
.el-icon-close
:hover
{
background
:
none
;
cursor
:
pointer
;
color
:
#3BB7FF
;
}
\ No newline at end of file
src/views/Layout/index.vue
View file @
9ee7eea
...
...
@@ -17,10 +17,11 @@
<div
class=
"nav"
>
<div
class=
"nav-tag-box"
>
<el-tag
v-for=
"
tag in topbarArr"
:key=
"tag
"
v-for=
"
(tag,index) in topbarArr"
:key=
"index
"
closable
@
close=
"closetag(tag,index)"
@
click=
"toPath(tag)"
:type=
"tag.type"
>
>
<i
:class=
"tag.icon"
></i>
{{
tag
.
name
}}
</el-tag>
...
...
@@ -65,6 +66,9 @@ export default {
},
toPath
(
data
){
this
.
$refs
.
leftmenu
.
handleSelect
(
data
.
path
)
},
closetag
(
data
,
index
){
this
.
topbarArr
.
splice
(
index
,
1
)
}
},
created
(){
...
...
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