mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
chore: improve types and imports
This commit is contained in:
10
src/runtime/types/avatar.d.ts
vendored
Normal file
10
src/runtime/types/avatar.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface Avatar {
|
||||
src: string
|
||||
alt: string
|
||||
text: string
|
||||
size: string
|
||||
rounded: boolean
|
||||
chip: boolean
|
||||
chipVariant: string
|
||||
chipPosition: string
|
||||
}
|
||||
3
src/runtime/types/command-palette.d.ts
vendored
3
src/runtime/types/command-palette.d.ts
vendored
@@ -1,5 +1,6 @@
|
||||
import type { Ref, ComputedRef } from 'vue'
|
||||
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
|
||||
import type { Avatar } from './avatar'
|
||||
|
||||
export interface Command {
|
||||
prefix?: string
|
||||
@@ -7,7 +8,7 @@ export interface Command {
|
||||
label: string
|
||||
icon?: string
|
||||
iconClass?: string
|
||||
avatar?: string
|
||||
avatar?: Partial<Avatar>
|
||||
chip?: string
|
||||
disabled?: boolean
|
||||
shortcuts?: string[]
|
||||
|
||||
Reference in New Issue
Block a user