mirror of https://github.com/ElemeFE/element
commit
f9bb3918ad
|
@ -11,7 +11,7 @@
|
||||||
closable
|
closable
|
||||||
:hit="item.hitState"
|
:hit="item.hitState"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click.native="deleteTag($event, item)"
|
@close="deleteTag($event, item)"
|
||||||
close-transition>{{ item.currentLabel }}</el-tag>
|
close-transition>{{ item.currentLabel }}</el-tag>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
<input
|
<input
|
||||||
|
@ -490,13 +490,11 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteTag(event, tag) {
|
deleteTag(event, tag) {
|
||||||
if (event.target.tagName === 'I') {
|
let index = this.selected.indexOf(tag);
|
||||||
let index = this.selected.indexOf(tag);
|
if (index > -1) {
|
||||||
if (index > -1) {
|
this.selected.splice(index, 1);
|
||||||
this.selected.splice(index, 1);
|
|
||||||
}
|
|
||||||
event.stopPropagation();
|
|
||||||
}
|
}
|
||||||
|
event.stopPropagation();
|
||||||
},
|
},
|
||||||
|
|
||||||
onInputChange() {
|
onInputChange() {
|
||||||
|
|
Loading…
Reference in New Issue