mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-12 12:23:08 +08:00
✏️ updating select option types
This commit is contained in:
parent
09b11b6cde
commit
bd2a58f745
@ -78,6 +78,7 @@ Select component to select value from options.
|
|||||||
| key | Same usage as `value`. If React request you to set this property, you can set it to value of option, and then omit value property. | string | |
|
| key | Same usage as `value`. If React request you to set this property, you can set it to value of option, and then omit value property. | string | |
|
||||||
| title | `title` of Select after select this Option | string | - |
|
| title | `title` of Select after select this Option | string | - |
|
||||||
| value | default to filter with this property | string\|number | - |
|
| value | default to filter with this property | string\|number | - |
|
||||||
|
| className | additional class to option | string | - |
|
||||||
|
|
||||||
### OptGroup props
|
### OptGroup props
|
||||||
|
|
||||||
|
@ -74,6 +74,8 @@ export interface OptionProps {
|
|||||||
value?: string | number;
|
value?: string | number;
|
||||||
title?: string;
|
title?: string;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
|
className?: string;
|
||||||
|
key?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OptGroupProps {
|
export interface OptGroupProps {
|
||||||
|
Loading…
Reference in New Issue
Block a user