Skip to content

递归实现 深层 Tree #1839

@icefee

Description

@icefee

我想通过循环 <TreeNode 节点并结合递归组件,来构造一个树,发现组件内部对默认插槽做了校验。
会报错:Warning: Tree only accept TreeNode as children.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions