mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
add value number type in TreeSelect
This commit is contained in:
parent
7a4107eab8
commit
515a206be5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user