Refactoring Document storage #5
|
@ -41,6 +41,10 @@ const documentStore = useDocumentStore()
|
||||||
const showSearchInput = ref<boolean>(false)
|
const showSearchInput = ref<boolean>(false)
|
||||||
const search = ref<HTMLInputElement | null>()
|
const search = ref<HTMLInputElement | null>()
|
||||||
const searchButton = ref<HTMLButtonElement | null>()
|
const searchButton = ref<HTMLButtonElement | null>()
|
||||||
|
const props = defineProps<{
|
||||||
|
path: Array<string>
|
||||||
|
query: string
|
||||||
|
}>()
|
||||||
|
|
||||||
const closeSearch = (ev: Event) => {
|
const closeSearch = (ev: Event) => {
|
||||||
if (!showSearchInput.value) return // Already closing
|
if (!showSearchInput.value) return // Already closing
|
||||||
|
@ -83,11 +87,6 @@ const settingsMenu = (e: Event) => {
|
||||||
items,
|
items,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const props = defineProps<{
|
|
||||||
path: Array<string>
|
|
||||||
query: string
|
|
||||||
}>()
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
toggleSearchInput,
|
toggleSearchInput,
|
||||||
closeSearch,
|
closeSearch,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user