UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

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;