2018-09-13 10:51:20 +03:00
|
|
|
<template>
|
2018-09-22 15:01:12 +03:00
|
|
|
<v-text-field v-model="searchInput"
|
|
|
|
class="toollbar-search"
|
|
|
|
label="Search"
|
|
|
|
@keyup.enter.native="processSearchInput"
|
|
|
|
dark solo></v-text-field>
|
2018-09-13 10:51:20 +03:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import Component from 'vue-class-component';
|
|
|
|
|
|
|
|
@Component
|
2018-09-22 15:01:12 +03:00
|
|
|
export default class SearchField extends Vue {
|
|
|
|
searchInput:string = ''
|
|
|
|
|
|
|
|
processSearchInput() {
|
|
|
|
window.open('`http://aelve.com:4801/haskell/?q=${this.searchInput}`', '_blank')
|
|
|
|
console.log(this.searchInput);
|
|
|
|
|
|
|
|
return this.searchInput
|
|
|
|
}
|
|
|
|
}
|
2018-09-13 10:51:20 +03:00
|
|
|
</script>
|
2018-09-21 16:09:32 +03:00
|
|
|
|
2018-09-22 15:01:12 +03:00
|
|
|
<style scoped>
|
|
|
|
.toollbar-search >>> div {
|
2018-09-21 16:09:32 +03:00
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
|
|
|
</style>
|