Add id to Select props (#11189)

* Can set id to props on Select

* Update index.tsx
This commit is contained in:
This JJ 2018-07-27 15:47:07 +07:00 committed by Wei Zhu
parent 45f1ff5bf7
commit 2e7d08e98f

View File

@ -27,6 +27,7 @@ export interface AbstractSelectProps {
dropdownMatchSelectWidth?: boolean;
onSearch?: (value: string) => any;
filterOption?: boolean | ((inputValue: string, option: React.ReactElement<OptionProps>) => any);
id?: string;
}
export interface LabeledValue {
@ -85,6 +86,7 @@ const SelectPropTypes = {
optionLabelProp: PropTypes.string,
transitionName: PropTypes.string,
choiceTransitionName: PropTypes.string,
id: PropTypes.string,
};
// => It is needless to export the declaration of below two inner components.