refactor: rearrange AbstractSelectProps so that AutoCompleteProps has access to some needed SelectProps (#6205)

This commit is contained in:
Mitchell Demler 2017-05-19 15:29:16 +12:00 committed by Benjy Cui
parent f9017c677c
commit fa44de3faa
2 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,6 @@ export interface AutoCompleteProps extends AbstractSelectProps {
defaultValue?: SelectValue;
dataSource: DataSourceItemType[];
optionLabelProp?: string;
filterOption?: boolean | ((inputValue: string, option: Object) => any);
onChange?: (value: SelectValue) => void;
onSelect?: (value: SelectValue, option: Object) => any;
children?: ValidInputElement |

View File

@ -16,6 +16,11 @@ export interface AbstractSelectProps {
disabled?: boolean;
style?: React.CSSProperties;
placeholder?: string;
dropdownClassName?: string;
dropdownStyle?: React.CSSProperties;
dropdownMenuStyle?: React.CSSProperties;
onSearch?: (value: string) => any;
filterOption?: boolean | ((inputValue: string, option: Object) => any);
}
export interface LabeledValue {
@ -33,18 +38,14 @@ export interface SelectProps extends AbstractSelectProps {
tags?: boolean;
combobox?: boolean;
optionLabelProp?: string;
filterOption?: boolean | ((inputValue: string, option: Object) => any);
onChange?: (value: SelectValue) => void;
onSelect?: (value: SelectValue, option: Object) => any;
onDeselect?: (value: SelectValue) => any;
onSearch?: (value: string) => any;
dropdownMatchSelectWidth?: boolean;
optionFilterProp?: string;
defaultActiveFirstOption?: boolean;
labelInValue?: boolean;
getPopupContainer?: (triggerNode: Element) => HTMLElement;
dropdownStyle?: React.CSSProperties;
dropdownMenuStyle?: React.CSSProperties;
tokenSeparators?: string[];
getInputElement?: () => React.ReactElement<any>;
}