UNPKG

element-plus

Version:

A Component Library for Vue3.0

49 lines (48 loc) 1.46 kB
import type { ComponentPublicInstance, InjectionKey } from 'vue'; import type { Emitter } from 'mitt'; interface SelectGroupContext { disabled: boolean; } export interface SelectContext { props: { multiple?: boolean; multipleLimit?: number; valueKey?: string; modelValue?: string | number | unknown[]; popperClass?: string; remote?: boolean; }; selectWrapper: HTMLElement; cachedOptions: any[]; hoverIndex: number; optionsCount: number; filteredOptionsCount: number; options: any[]; selected: any | any[]; selectEmitter: Emitter; setSelected(): void; onOptionCreate(vm: ComponentPublicInstance): void; onOptionDestroy(i: number): void; handleOptionSelect(vm: unknown, byClick: boolean): void; } export declare const selectGroupKey: InjectionKey<SelectGroupContext>; export declare const selectKey: InjectionKey<SelectContext>; export declare const selectEvents: { queryChange: string; groupQueryChange: string; }; export interface SelectOptionProxy { value: string | number | Record<string, string>; label: string | number; created: boolean; disabled: boolean; currentLabel: string; itemSelected: boolean; isDisabled: boolean; select: SelectContext; hoverItem: () => void; visible: boolean; hover: boolean; selectOptionClick: () => void; } export {};