UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

13 lines (12 loc) 439 B
import type { InjectionKey, Ref } from 'vue'; import type { OptionProps } from './Option'; export interface MentionsContext { activeIndex: Ref<number>; setActiveIndex?: (index: number) => void; selectOption?: (option: OptionProps) => void; onFocus?: EventListener; onBlur?: EventListener; loading?: Ref<boolean>; } declare const MentionsContextKey: InjectionKey<MentionsContext>; export default MentionsContextKey;