Highlighting matched items

This commit is contained in:
benguozakinci@gmail.com 2021-08-23 14:54:46 +03:00
parent 17a4237c09
commit fe4190c680

View File

@ -297,6 +297,8 @@ export default {
return;
}
this.onItemMatchedSearchQuery()
window.axios.get(url + '/common/items?search="' + this.search + '" limit:10')
.then(response => {
this.item_list = [];
@ -324,6 +326,8 @@ export default {
this.$emit('input', this.search);
},
onItemMatchedSearchQuery() {},
onItemSelected(item) {
const indexeditem = { ...item, index: this.currentIndex };
@ -573,7 +577,7 @@ export default {
}
},
deep: true
}
},
},
};
</script>