fix(Select): value tsd (#10336)

This commit is contained in:
paranoidjk 2018-05-03 11:28:30 +08:00 committed by Wei Zhu
parent 9c6fef0604
commit 8e166915a9

View File

@ -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;
}