Commit f9bb3918 authored by FuryBean's avatar FuryBean Committed by GitHub

Merge pull request #833 from baiyaaaaa/feat-select

select improve
parents 6cc4ea6d 726685fd
......@@ -11,7 +11,7 @@
closable
:hit="item.hitState"
type="primary"
@click.native="deleteTag($event, item)"
@close="deleteTag($event, item)"
close-transition>{{ item.currentLabel }}</el-tag>
</transition-group>
<input
......@@ -490,13 +490,11 @@
},
deleteTag(event, tag) {
if (event.target.tagName === 'I') {
let index = this.selected.indexOf(tag);
if (index > -1) {
this.selected.splice(index, 1);
}
event.stopPropagation();
}
},
onInputChange() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment