generated from Seekra/repository-template
refactor(search)!: rename Searchbar to SearchBar
Vue.js components should have multi-word names.
This commit is contained in:
@@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Searchbar from '@/features/search/components/Searchbar.vue';
|
import SearchBar from '@/features/search/components/SearchBar.vue';
|
||||||
import { watch } from 'vue';
|
import { watch } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ watch(() => route.query.q, q => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Searchbar
|
<SearchBar
|
||||||
v-if="route.name === 'searchResults'"
|
v-if="route.name === 'searchResults'"
|
||||||
v-model="searchQueryModel"
|
v-model="searchQueryModel"
|
||||||
auto-submit
|
auto-submit
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Searchbar from '../features/search/components/Searchbar.vue';
|
import SearchBar from '../features/search/components/SearchBar.vue';
|
||||||
import logo from '@/assets/images/logo.svg';
|
import logo from '@/assets/images/logo.svg';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
@@ -35,7 +35,7 @@ const searchQuery = ref('');
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="search-container">
|
<div class="search-container">
|
||||||
<Searchbar v-model="searchQuery" ref="searchbar" class="search-bar" auto-submit />
|
<SearchBar v-model="searchQuery" ref="searchbar" class="search-bar" auto-submit />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user