Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Bruno Predot
/
tmdb_test
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Bruno Predot
2025-04-23 21:40:28 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
faa527a94c59ff0efa6c8035f5d9728a0fe97e6f
faa527a9
1 parent
4d0bbf42
Changement de la props en option
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
components/SearchBar.vue
components/SearchBar.vue
View file @
faa527a
...
...
@@ -9,14 +9,14 @@ import { ref } from "vue";
//#endregion
//#region --Props--.
const props =
defineProps({
defineProps({
placeholder: {
type: String,
required:
tru
e,
required:
fals
e,
nullable: false,
default: ''
}
})
})
;
//#endregion
//#region --Data/refs--.
...
...
@@ -34,7 +34,7 @@ const searchQuery = ref("");
:placeholder="placeholder"
class="w-full px-4 py-3 bg-gray-800 rounded-full text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-primary"
@input="console.log('debouncedSearch à prévoir')"
/
>
>
<button
v-if="searchQuery"
class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-white"
...
...
Please
register
or
login
to post a comment