We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13b45c8 commit a70b0d0Copy full SHA for a70b0d0
src/runtime/components/QuickSearch.vue
@@ -3,20 +3,24 @@ import { mdiChevronUp, mdiChevronDown } from '@mdi/js'
3
import { ref } from 'vue'
4
import type { PropType } from 'vue'
5
6
-// Props
7
-defineProps({
+// PROPS
+const props = defineProps({
8
searchGroups: {
9
type: Array as PropType<{
10
title: string
11
items: string[]
12
}[]>,
13
default: () => [],
14
},
15
+ show: {
16
+ type: Boolean,
17
+ default: true,
18
+ },
19
})
20
-// Component state
21
+// STATE - LOCAL
22
const search = defineModel<string>({ default: '' })
-const showQuickSearch = ref(true)
23
+const showQuickSearch = ref(props.show)
24
</script>
25
26
<template>
0 commit comments