Highlighting matched items
This commit is contained in:
parent
17a4237c09
commit
fe4190c680
@ -297,6 +297,8 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.onItemMatchedSearchQuery()
|
||||||
|
|
||||||
window.axios.get(url + '/common/items?search="' + this.search + '" limit:10')
|
window.axios.get(url + '/common/items?search="' + this.search + '" limit:10')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.item_list = [];
|
this.item_list = [];
|
||||||
@ -324,6 +326,8 @@ export default {
|
|||||||
this.$emit('input', this.search);
|
this.$emit('input', this.search);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onItemMatchedSearchQuery() {},
|
||||||
|
|
||||||
onItemSelected(item) {
|
onItemSelected(item) {
|
||||||
const indexeditem = { ...item, index: this.currentIndex };
|
const indexeditem = { ...item, index: this.currentIndex };
|
||||||
|
|
||||||
@ -573,7 +577,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user