mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +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 | |
|
||||
| title | `title` of Select after select this Option | string | - |
|
||||
| value | default to filter with this property | string\|number | - |
|
||||
| className | additional class to option | string | - |
|
||||
|
||||
### OptGroup props
|
||||
|
||||
|
@ -74,6 +74,8 @@ export interface OptionProps {
|
||||
value?: string | number;
|
||||
title?: string;
|
||||
children?: React.ReactNode;
|
||||
className?: string;
|
||||
key?: string;
|
||||
}
|
||||
|
||||
export interface OptGroupProps {
|
||||
|
Loading…
Reference in New Issue
Block a user