chore(Dropdown): add Item type

This commit is contained in:
Benjamin Canac
2023-07-12 18:44:09 +02:00
parent 7e08e5b024
commit 05b8a22eec
3 changed files with 18 additions and 14 deletions

15
src/runtime/types/dropdown.d.ts vendored Normal file
View 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
}

View File

@@ -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'