Skip to content

Commit a70b0d0

Browse files
committed
ui: allow QuickSearch to be hidden by default
1 parent 13b45c8 commit a70b0d0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/runtime/components/QuickSearch.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ import { mdiChevronUp, mdiChevronDown } from '@mdi/js'
33
import { ref } from 'vue'
44
import type { PropType } from 'vue'
55
6-
// Props
7-
defineProps({
6+
// PROPS
7+
const props = defineProps({
88
searchGroups: {
99
type: Array as PropType<{
1010
title: string
1111
items: string[]
1212
}[]>,
1313
default: () => [],
1414
},
15+
show: {
16+
type: Boolean,
17+
default: true,
18+
},
1519
})
1620
17-
// Component state
21+
// STATE - LOCAL
1822
const search = defineModel<string>({ default: '' })
19-
const showQuickSearch = ref(true)
23+
const showQuickSearch = ref(props.show)
2024
</script>
2125

2226
<template>

0 commit comments

Comments
 (0)