diff --git a/components/tree-select/interface.tsx b/components/tree-select/interface.tsx index 15129a97af..45b33cd9dc 100644 --- a/components/tree-select/interface.tsx +++ b/components/tree-select/interface.tsx @@ -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; - defaultValue?: string | Array; + value?: string | number | Array; + defaultValue?: string | number | Array; multiple?: boolean; maxTagCount?: number; onSelect?: (value: any) => void;