From f5652f8e576bf6ce1a0be47dca96248f29ff6a0a Mon Sep 17 00:00:00 2001 From: zombiej Date: Wed, 25 Jul 2018 17:06:44 +0800 Subject: [PATCH] make title & label as optional props in treeSelect --- components/tree-select/interface.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/tree-select/interface.tsx b/components/tree-select/interface.tsx index 34a597c54f..8c7d58c159 100644 --- a/components/tree-select/interface.tsx +++ b/components/tree-select/interface.tsx @@ -4,7 +4,11 @@ import { AbstractSelectProps } from '../select'; export interface TreeData { key: string; value: string; - title: React.ReactNode; + /** + * @deprecated Please use `title` instead. + */ + label?: React.ReactNode; + title?: React.ReactNode; children?: TreeData[]; }