mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
fix(Select): value tsd (#10336)
This commit is contained in:
parent
9c6fef0604
commit
8e166915a9
@ -31,7 +31,7 @@ export interface LabeledValue {
|
||||
label: React.ReactNode;
|
||||
}
|
||||
|
||||
export type SelectValue = string | any[] | LabeledValue | LabeledValue[];
|
||||
export type SelectValue = string | string[] | number | number[] | LabeledValue | LabeledValue[];
|
||||
|
||||
export interface SelectProps extends AbstractSelectProps {
|
||||
value?: SelectValue;
|
||||
@ -58,7 +58,7 @@ export interface SelectProps extends AbstractSelectProps {
|
||||
|
||||
export interface OptionProps {
|
||||
disabled?: boolean;
|
||||
value?: any;
|
||||
value?: string | number;
|
||||
title?: string;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user