make title & label as optional props in treeSelect

This commit is contained in:
zombiej 2018-07-25 17:06:44 +08:00
parent 9f76f1c276
commit f5652f8e57

View File

@ -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[];
}