mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
refactor: rearrange AbstractSelectProps so that AutoCompleteProps has access to some needed SelectProps (#6205)
This commit is contained in:
parent
f9017c677c
commit
fa44de3faa
@ -23,7 +23,6 @@ export interface AutoCompleteProps extends AbstractSelectProps {
|
|||||||
defaultValue?: SelectValue;
|
defaultValue?: SelectValue;
|
||||||
dataSource: DataSourceItemType[];
|
dataSource: DataSourceItemType[];
|
||||||
optionLabelProp?: string;
|
optionLabelProp?: string;
|
||||||
filterOption?: boolean | ((inputValue: string, option: Object) => any);
|
|
||||||
onChange?: (value: SelectValue) => void;
|
onChange?: (value: SelectValue) => void;
|
||||||
onSelect?: (value: SelectValue, option: Object) => any;
|
onSelect?: (value: SelectValue, option: Object) => any;
|
||||||
children?: ValidInputElement |
|
children?: ValidInputElement |
|
||||||
|
@ -16,6 +16,11 @@ export interface AbstractSelectProps {
|
|||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
|
dropdownClassName?: string;
|
||||||
|
dropdownStyle?: React.CSSProperties;
|
||||||
|
dropdownMenuStyle?: React.CSSProperties;
|
||||||
|
onSearch?: (value: string) => any;
|
||||||
|
filterOption?: boolean | ((inputValue: string, option: Object) => any);
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LabeledValue {
|
export interface LabeledValue {
|
||||||
@ -33,18 +38,14 @@ export interface SelectProps extends AbstractSelectProps {
|
|||||||
tags?: boolean;
|
tags?: boolean;
|
||||||
combobox?: boolean;
|
combobox?: boolean;
|
||||||
optionLabelProp?: string;
|
optionLabelProp?: string;
|
||||||
filterOption?: boolean | ((inputValue: string, option: Object) => any);
|
|
||||||
onChange?: (value: SelectValue) => void;
|
onChange?: (value: SelectValue) => void;
|
||||||
onSelect?: (value: SelectValue, option: Object) => any;
|
onSelect?: (value: SelectValue, option: Object) => any;
|
||||||
onDeselect?: (value: SelectValue) => any;
|
onDeselect?: (value: SelectValue) => any;
|
||||||
onSearch?: (value: string) => any;
|
|
||||||
dropdownMatchSelectWidth?: boolean;
|
dropdownMatchSelectWidth?: boolean;
|
||||||
optionFilterProp?: string;
|
optionFilterProp?: string;
|
||||||
defaultActiveFirstOption?: boolean;
|
defaultActiveFirstOption?: boolean;
|
||||||
labelInValue?: boolean;
|
labelInValue?: boolean;
|
||||||
getPopupContainer?: (triggerNode: Element) => HTMLElement;
|
getPopupContainer?: (triggerNode: Element) => HTMLElement;
|
||||||
dropdownStyle?: React.CSSProperties;
|
|
||||||
dropdownMenuStyle?: React.CSSProperties;
|
|
||||||
tokenSeparators?: string[];
|
tokenSeparators?: string[];
|
||||||
getInputElement?: () => React.ReactElement<any>;
|
getInputElement?: () => React.ReactElement<any>;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user