From 500ef62638868ef332b090b6d6ae701bb91c79be Mon Sep 17 00:00:00 2001 From: zombiej Date: Thu, 23 Aug 2018 20:38:56 +0800 Subject: [PATCH] fix https://github.com/ant-design/ant-design/issues/11423. TreeNode can accept custom prop --- components/tree/Tree.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/tree/Tree.tsx b/components/tree/Tree.tsx index aa3da79642..c334bfb822 100644 --- a/components/tree/Tree.tsx +++ b/components/tree/Tree.tsx @@ -37,6 +37,8 @@ export interface AntTreeNodeProps { selectable?: boolean; icon?: ((treeNode: AntdTreeNodeAttribute) => React.ReactNode) | React.ReactNode; children?: React.ReactNode; + + [customProp: string]: any; } export interface AntTreeNode extends React.Component { }