mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 15:01:46 +01:00
chore(Dropdown): add Item type
This commit is contained in:
15
src/runtime/types/dropdown.d.ts
vendored
Normal file
15
src/runtime/types/dropdown.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { RouteLocationRaw } from 'vue-router'
|
||||
import type { Avatar } from './avatar'
|
||||
|
||||
export interface Item {
|
||||
to?: string | RouteLocationRaw
|
||||
exact?: boolean
|
||||
label: string
|
||||
slot?: string
|
||||
icon?: string
|
||||
iconClass?: string
|
||||
avatar?: Partial<Avatar>
|
||||
shortcuts?: string[]
|
||||
disabled?: boolean
|
||||
click?: Function
|
||||
}
|
||||
1
src/runtime/types/index.d.ts
vendored
1
src/runtime/types/index.d.ts
vendored
@@ -2,6 +2,7 @@ export * from './avatar'
|
||||
export * from './button'
|
||||
export * from './clipboard'
|
||||
export * from './command-palette'
|
||||
export * from './dropdown'
|
||||
export * from './notification'
|
||||
export * from './popper'
|
||||
export * from './vertical-navigation'
|
||||
|
||||
Reference in New Issue
Block a user