@bos-alpha/data
Version:
数据管理
16 lines (15 loc) • 450 B
TypeScript
/**
* 仿<Select showSearch />实现可输入自定义值的下拉选择框,无下拉预选值时,使用用户输入值
*/
declare type OptionType = {
label: string;
value: string;
};
interface PropsType {
value?: string;
options: OptionType[];
placeholder?: string;
onChange?: (val?: string) => void;
}
export declare const SearchInput: ({ value, options, placeholder, onChange }: PropsType) => JSX.Element;
export {};