Fix props use before props definition
This commit is contained in:
parent
19a5c4ad8a
commit
e4a62e1197
|
@ -41,6 +41,10 @@ const documentStore = useDocumentStore()
|
|||
const showSearchInput = ref<boolean>(false)
|
||||
const search = ref<HTMLInputElement | null>()
|
||||
const searchButton = ref<HTMLButtonElement | null>()
|
||||
const props = defineProps<{
|
||||
path: Array<string>
|
||||
query: string
|
||||
}>()
|
||||
|
||||
const closeSearch = (ev: Event) => {
|
||||
if (!showSearchInput.value) return // Already closing
|
||||
|
@ -83,11 +87,6 @@ const settingsMenu = (e: Event) => {
|
|||
items,
|
||||
})
|
||||
}
|
||||
const props = defineProps<{
|
||||
path: Array<string>
|
||||
query: string
|
||||
}>()
|
||||
|
||||
defineExpose({
|
||||
toggleSearchInput,
|
||||
closeSearch,
|
||||
|
|
Loading…
Reference in New Issue
Block a user