Commit 4a46a659 authored by 徐俊's avatar 徐俊
parents b1821d13 317d1feb
...@@ -68,8 +68,9 @@ export default { ...@@ -68,8 +68,9 @@ export default {
if (!!this.selected && this.selected.length > 0) { if (!!this.selected && this.selected.length > 0) {
var len = this.selected.length - 1 var len = this.selected.length - 1
this.$emit("input", this.selected[len]) this.$emit("input", this.selected[len])
} else
this.$emit("input", '')
this.$emit("change"); this.$emit("change");
}
}, },
displayRender ({ labels }) { displayRender ({ labels }) {
return labels[labels.length - 1]; return labels[labels.length - 1];
......
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