From 8e166915a9f9a05de42b806abf43049d83903f11 Mon Sep 17 00:00:00 2001 From: paranoidjk Date: Thu, 3 May 2018 11:28:30 +0800 Subject: [PATCH] fix(Select): value tsd (#10336) --- components/select/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/select/index.tsx b/components/select/index.tsx index 050a3522b6..b5300a580c 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -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; }