refactor: tidy injections of dropdown
This commit is contained in:
parent
4a3cef9a01
commit
ef417f3ccf
5 changed files with 14 additions and 12 deletions
|
@ -1,4 +1,8 @@
|
|||
import type { InjectionKey, Ref } from 'vue'
|
||||
import type { FontSize } from '~/types'
|
||||
|
||||
export const InjectionKeyFontSize = Symbol('font-size') as InjectionKey<Ref<FontSize>>
|
||||
export const InjectionKeyFontSize: InjectionKey<Ref<FontSize>> = Symbol('font-size')
|
||||
|
||||
export const InjectionKeyDropdownContext: InjectionKey<{
|
||||
hide: () => void
|
||||
}> = Symbol('dropdown-context')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue