Skip to content

a-tree中TreeNode中的isLeaf当前版本默认为true,官网文档里写的默认为false #7742

@muyeluoluo

Description

@muyeluoluo
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.3

Environment

vue3

Reproduction link

https://next.antdv.com/components/tree-cn#api

Steps to reproduce

使用a-tree的时候,配置了treeData,并且里面有children,但是页面上始终没有渲染子级,看了很久才发现是isLeaf的问题

What is expected?

期望将isLeaf的默认值改回false,或者将官网文档修改一下。因为很容易误导使用者,且这个问题不太好发现。

What is actually happening?

TreeNode 的isLeaf官网写着默认值为false,但实际默认值为true

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