chore(CommandPalette): improve customization options (#71)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Sylvain Marroufin
2022-07-21 15:46:05 +02:00
committed by GitHub
parent 1ff9fd4f69
commit ce28b04187
4 changed files with 57 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
import type { Ref, ComputedRef } from 'vue'
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
export interface Command {
@@ -15,6 +16,9 @@ export interface Command {
export interface Group {
key: string
label: string
active?: string
inactive?: string
commands: Command[]
customQuery?: (query: Ref<string>) => ComputedRef<string>
options?: Partial<UseFuseOptions<Command>>
}