mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
Makes TreeNode component more type safe
Makes TreeNode component more type safe
This commit is contained in:
parent
74755fef99
commit
0ca1a990be
@ -106,7 +106,7 @@ export interface TreeProps {
|
||||
}
|
||||
|
||||
export default class Tree extends React.Component<TreeProps, any> {
|
||||
static TreeNode = TreeNode;
|
||||
static TreeNode: React.ComponentType<AntTreeNodeProps> = TreeNode;
|
||||
|
||||
static defaultProps = {
|
||||
prefixCls: 'ant-tree',
|
||||
|
Loading…
Reference in New Issue
Block a user