update
This commit is contained in:
parent
2a3262456d
commit
3288b53099
3 changed files with 22 additions and 31 deletions
|
@ -220,7 +220,7 @@
|
|||
}
|
||||
getSelections(this.data);
|
||||
selections = selections.filter(item => {
|
||||
return item.label ? item.label.indexOf(this.query) > -1 : false
|
||||
return item.label ? item.label.indexOf(this.query) > -1 : false;
|
||||
}).map(item => {
|
||||
item.display = item.display.replace(new RegExp(this.query, 'g'), `<span>${this.query}</span>`);
|
||||
return item;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue