UNPKG

@arco-design/web-vue

Version:

Arco Design Vue 2.0: A Vue.js 3 UI Library

18 lines (17 loc) 657 B
import type { InjectionKey } from 'vue'; import type { FilterOption, SelectOptionInfo } from './interface'; export interface SelectContext { multiple?: boolean; valueKey?: string; inputValue?: string; filterOption?: FilterOption; component?: string; valueKeys: string[]; activeKey: string | undefined; onSelect: (key: string, ev: Event) => void; setActiveKey: (key?: string) => void; getNextSlotOptionIndex: () => number; addSlotOptionInfo: (id: number, optionInfo: SelectOptionInfo) => void; removeSlotOptionInfo: (id: number) => void; } export declare const selectInjectionKey: InjectionKey<SelectContext>;