Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
muyeluoluo opened this issue Jul 22, 2024 · 1 comment · May be fixed by #7744
Open
1 task

Comments

@muyeluoluo
Copy link

  • 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

@selicens selicens added the docs label Jul 23, 2024
@selicens selicens linked a pull request Jul 23, 2024 that will close this issue
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants