🎨 Rewrite findByTags & add Search

This commit is contained in:
Kevin Van Der Werff
2019-10-21 13:46:33 +02:00
parent 240f82f339
commit 0d3a0489ae
5 changed files with 66 additions and 45 deletions

View File

@@ -1,7 +1,27 @@
<template lang="pug">
input.search(placeholder="Search (does not work currently, sorry)")
input.search(v-model="searchInput" type="text" placeholder="Search (does not work currently, sorry)")
</template>
<script>
export default {
data() {
return {
searchInput: '',
}
},
watch: {
searchInput(e) {
console.log(this.$store.getters['data/findByTags']([e]))
},
},
methods: {
updateSearchResults(e) {
console.log(e)
},
},
}
</script>
<style lang="scss">
input {
padding: .5rem 1.5rem .5rem 1.5rem;
@@ -13,5 +33,4 @@ input {
outline:none;
}
}
</style>