Add a placeholder to the SearchBox component

This commit is contained in:
Bubka
2024-02-13 09:27:39 +01:00
parent 444b110c05
commit 699a2a1f9e
3 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
type: Boolean,
default: false
},
placeholder: String,
})
const searchInput = ref(null)
@@ -37,6 +38,7 @@
tabindex="1"
:aria-label="$t('commons.search')"
:title="$t('commons.search')"
:placeholder="placeholder"
class="input is-rounded is-search"
:class="{ 'has-no-background': hasNoBackground }"
:value="keyword"