add value number type in TreeSelect

This commit is contained in:
zombiej 2018-09-11 16:59:56 +08:00
parent 7a4107eab8
commit 515a206be5

View File

@ -4,7 +4,7 @@ import { AbstractSelectProps } from '../select';
export type TreeNode = TreeNodeNormal | TreeNodeSimpleMode;
export interface TreeNodeNormal {
value: string;
value: string | number;
/**
* @deprecated Please use `title` instead.
*/
@ -30,8 +30,8 @@ export interface TreeDataSimpleMode {
}
export interface TreeSelectProps extends AbstractSelectProps {
value?: string | Array<any>;
defaultValue?: string | Array<any>;
value?: string | number | Array<any>;
defaultValue?: string | number | Array<any>;
multiple?: boolean;
maxTagCount?: number;
onSelect?: (value: any) => void;