@beisen-phoenix/select
Version:
## 概述
32 lines (29 loc) • 724 B
text/typescript
import { ITranslation } from "../interface";
export interface Item {
value: string | number;
label: string;
disabled?: boolean;
}
export interface SelectValue {
value?: string | Array<Item>;
}
export interface SelectProps extends SelectValue {
onChange?: Function;
onDelete?: Function;
onSearch?: Function;
onClick?: (e) => void;
placeHolder?: string;
size?: "small" | "normal" | "large";
isMultiSelect?: boolean;
disabled?: boolean;
isSearch?: boolean;
readOnly?: boolean;
isActive?: boolean;
showDelete?: boolean;
error?: boolean;
translation?: ITranslation;
inputRef?: (element: HTMLInputElement) => void;
extraCls?: string;
suffix?: React.ReactNode;
exitSearch?: boolean;
}