tdesign-vue
Version:
12 lines (11 loc) • 733 B
TypeScript
import { SelectOption, SelectValue, TdOptionProps, TdSelectProps } from './type';
export declare const getSingleContent: (value: TdSelectProps['value'], optionsMap: Map<SelectValue<SelectOption>, TdOptionProps>) => string;
export declare const getMultipleContent: (value: SelectValue[], optionsMap: Map<SelectValue<SelectOption>, TdOptionProps>) => string[];
export declare const getNewMultipleValue: (innerValue: SelectValue[], optionValue: SelectValue) => {
value: SelectValue<SelectOption>[];
isCheck: boolean;
};
export declare const getAllSelectableOption: (options: TdOptionProps[]) => TdOptionProps[];
export declare const flattenOptions: (options: (TdOptionProps & {
isCreated?: boolean;
})[]) => SelectOption[];