Skip to content

Commit

Permalink
feature[tagsView]: support middle click (PanJiaChen#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen authored Sep 30, 2018
1 parent d1cceb6 commit 616f173
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/layout/components/TagsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
:class="isActive(tag)?'active':''"
:to="tag"
:key="tag.path"
tag="span"
class="tags-view-item"
@click.middle.native="closeSelectedTag(tag)"
@contextmenu.prevent.native="openMenu(tag,$event)">
{{ generateTitle(tag.title) }}
<span class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)"/>
Expand Down Expand Up @@ -149,6 +151,7 @@ export default {
.tags-view-item {
display: inline-block;
position: relative;
cursor: pointer;
height: 26px;
line-height: 26px;
border: 1px solid #d8dce5;
Expand Down

0 comments on commit 616f173

Please sign in to comment.