UNPKG

xdesign-vue-next

Version:

XDesign Component for vue-next

27 lines (26 loc) 1.4 kB
import { InjectionKey, ComputedRef } from 'vue'; import { TdSelectProps, TdOptionProps, SelectValue, SelectOption } from './type'; export declare const selectInjectKey: InjectionKey<ComputedRef<{ hoverIndex: number; selectValue: TdSelectProps['value']; size: TdSelectProps['size']; max: TdSelectProps['max']; reserveKeyword: TdSelectProps['reserveKeyword']; multiple: TdSelectProps['multiple']; handleValueChange: TdSelectProps['onChange']; handleCreate: TdSelectProps['onCreate']; handlerInputChange: TdSelectProps['onInputChange']; handlePopupVisibleChange: TdSelectProps['onPopupVisibleChange']; popupContentRef: ComputedRef<HTMLElement>; indeterminate: boolean; isCheckAll: boolean; onCheckAllChange: (checked: boolean) => void; getSelectedOptions: (selectValue?: SelectValue[] | SelectValue) => TdOptionProps[]; displayOptions: TdSelectProps['options']; }>>; export declare const getSingleContent: (value: TdSelectProps['value'], optionsMap: ComputedRef<Map<SelectValue<SelectOption>, TdOptionProps>>) => string; export declare const getMultipleContent: (value: SelectValue[], optionsMap: ComputedRef<Map<SelectValue<SelectOption>, TdOptionProps>>) => string[]; export declare const getNewMultipleValue: (innerValue: SelectValue[], optionValue: SelectValue) => { value: SelectValue<SelectOption>[]; isCheck: boolean; };