mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
Add id to Select props (#11189)
* Can set id to props on Select * Update index.tsx
This commit is contained in:
parent
45f1ff5bf7
commit
2e7d08e98f
@ -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…
Reference in New Issue
Block a user