refactor of autocomplete
This commit is contained in:
parent
25d099513d
commit
bb0e6dd994
|
@ -125,8 +125,12 @@ export default class Autocomplete extends Input {
|
||||||
this.selection = data;
|
this.selection = data;
|
||||||
else
|
else
|
||||||
this.selection = data[0];
|
this.selection = data[0];
|
||||||
} else
|
} else {
|
||||||
this.selection = null;
|
let selection = {};
|
||||||
|
selection[this.showField] = this._field;
|
||||||
|
selection[this.valueField] = this._field;
|
||||||
|
this.selection = selection;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshDisplayed() {
|
refreshDisplayed() {
|
||||||
|
|
|
@ -5,7 +5,7 @@ vn-autocomplete > div > .mdl-textfield {
|
||||||
|
|
||||||
& > input {
|
& > input {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 26px;
|
height: 30px;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
Loading…
Reference in New Issue