gamebrary/src/components/GlobalSearch.vue

33 lines
527 B
Vue
Raw Normal View History

2021-04-28 23:39:14 +00:00
<template lang="html">
<div class="global-search">
<b-form-input
v-model="searchText"
type="search"
debounce="500"
:placeholder="$t('board.addGame.inputPlaceholder')"
@update="search"
/>
</div>
</template>
<script>
export default {
data() {
return {
searchText: '',
};
},
methods: {
search(text) {
console.log(text);
this.$store.dispatch('CUSTOM_SEARCH', text);
},
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>