mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 23:40:39 +01:00
chore(CommandPalette): improve component
This commit is contained in:
17
src/runtime/types/command-palette.d.ts
vendored
17
src/runtime/types/command-palette.d.ts
vendored
@@ -1,23 +1,20 @@
|
||||
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
|
||||
import Fuse from 'fuse.js'
|
||||
|
||||
export interface Command {
|
||||
disabled?: boolean
|
||||
prefix?: string
|
||||
suffix?: string
|
||||
label: string
|
||||
icon?: string
|
||||
iconColor?: string
|
||||
iconClass?: string
|
||||
avatar?: string
|
||||
label: string
|
||||
group?: string
|
||||
chip?: string
|
||||
disabled?: boolean
|
||||
shortcuts?: string[]
|
||||
}
|
||||
|
||||
export interface Group {
|
||||
key: string
|
||||
label: string
|
||||
commands: Command[]
|
||||
options: Partial<UseFuseOptions<Command>>
|
||||
}
|
||||
|
||||
export interface ComputedGroup extends Omit<Group, 'options' | 'commands'> {
|
||||
commands: Fuse.FuseResult<Command>[]
|
||||
options?: Partial<UseFuseOptions<Command>>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user