mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 22:41:42 +01:00
chore(CommandPalette): improve customization options (#71)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1ff9fd4f69
commit
ce28b04187
4
src/runtime/types/command-palette.d.ts
vendored
4
src/runtime/types/command-palette.d.ts
vendored
@@ -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>>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user