feature[tagsView]: support middle click (#1149)

This commit is contained in:
花裤衩 2018-09-30 13:46:02 +08:00 committed by GitHub
parent d1cceb69b7
commit 616f173aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)"/>
@ -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;