AutoComplete add @on-clear event, close #2426
This commit is contained in:
parent
f37a6d106b
commit
bc0040d5fb
1 changed files with 1 additions and 0 deletions
|
@ -166,6 +166,7 @@
|
||||||
if (!this.clearable) return;
|
if (!this.clearable) return;
|
||||||
this.currentValue = '';
|
this.currentValue = '';
|
||||||
this.$refs.select.reset();
|
this.$refs.select.reset();
|
||||||
|
this.$emit('on-clear');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue