mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 19:39:51 +08:00
fix https://github.com/ant-design/ant-design/issues/11423. TreeNode can accept custom prop
This commit is contained in:
parent
044982ddb7
commit
500ef62638
@ -37,6 +37,8 @@ export interface AntTreeNodeProps {
|
|||||||
selectable?: boolean;
|
selectable?: boolean;
|
||||||
icon?: ((treeNode: AntdTreeNodeAttribute) => React.ReactNode) | React.ReactNode;
|
icon?: ((treeNode: AntdTreeNodeAttribute) => React.ReactNode) | React.ReactNode;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
|
|
||||||
|
[customProp: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AntTreeNode extends React.Component<AntTreeNodeProps, {}> { }
|
export interface AntTreeNode extends React.Component<AntTreeNodeProps, {}> { }
|
||||||
|
Loading…
Reference in New Issue
Block a user