Browse Source

Add id to Select props (#11189)

* Can set id to props on Select

* Update index.tsx
pull/11493/head
This JJ 6 years ago
committed by Wei Zhu
parent
commit
2e7d08e98f
  1. 2
      components/select/index.tsx

2
components/select/index.tsx

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

Loading…
Cancel
Save