Improve AutoComplete types

close #10619
pull/10856/head
Wei Zhu 7 years ago
parent ae6de361e2
commit 4d6f8e96b9

@ -6,7 +6,11 @@ import Input from '../input';
import InputElement from './InputElement'; import InputElement from './InputElement';
export interface DataSourceItemObject { value: string; text: string; } export interface DataSourceItemObject { value: string; text: string; }
export type DataSourceItemType = string | DataSourceItemObject; export type DataSourceItemType =
string |
DataSourceItemObject |
React.ReactElement<OptionProps> |
React.ReactElement<OptGroupProps>;
export interface AutoCompleteInputProps { export interface AutoCompleteInputProps {
onChange?: React.FormEventHandler<any>; onChange?: React.FormEventHandler<any>;

Loading…
Cancel
Save