|
|
@ -13,10 +13,12 @@ |
|
|
|
<input v-show="!bigSearch" |
|
|
|
class="custom-control flex-grow-1 tw-placeholder-text-[14px] md:tw-placeholder-text-[16px]" |
|
|
|
:placeholder="$t(customPlaceholder)" /> |
|
|
|
<input v-show="bigSearch" ref="search" |
|
|
|
|
|
|
|
<input v-show="bigSearch" ref="search" |
|
|
|
class="custom-control flex-grow-1 tw-placeholder-text-[14px] md:tw-placeholder-text-[16px]" v-model="inputs" |
|
|
|
:placeholder="$t(customPlaceholder)" @input="handleInput" @click="handleClick" |
|
|
|
v-on:keyup.enter="goToSearch()" /> |
|
|
|
@keyup.enter="goToSearch()" /> |
|
|
|
|
|
|
|
<svg width="24" height="24" class="tw-my-auto tw-cursor-pointer" shape-rendering="geometricPrecision" |
|
|
|
@click="goToSearch()"> |
|
|
|
<image xlink:href="@/assets/svg/icon-search-small.svg" src="@/assets/svg/icon-search-small.svg" width="24" |
|
|
@ -369,9 +371,11 @@ export default { |
|
|
|
this.customPlaceholder = 'Search exhibitions or services...'; |
|
|
|
} |
|
|
|
}, |
|
|
|
goToSearch() { |
|
|
|
this.$emit('loaading', true); |
|
|
|
goToSearch(str) { |
|
|
|
str = this.inputs; |
|
|
|
this.$emit('keyword-search', str, true) |
|
|
|
this.$router.push(this.localePath(`/${this.type}?q=${this.inputs}`)); |
|
|
|
this.inputs = ''; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|