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

[Component] [table] hasChildren property in el-table is buggy #12656

Open
dt-brahim-bouaboud opened this issue Apr 28, 2023 · 2 comments
Open
Labels

Comments

@dt-brahim-bouaboud
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.2.34
  • Element Plus Version: 2.2.36
  • Browser / OS: Not important
  • Build Tool: Vue CLI

Reproduction

Related Component

  • el-table

Reproduction Link

Element Plus Playground

Steps to reproduce

When hasChildren is set to true, the tree toggle does not appear

What is Expected?

hasChildren: true should not make the toggle disappear.

What is actually happening?

When set to true toggle do not appear, and when set to false is appear.

Additional comments

Maybe I didn't get the goal of this attribute and I'm using it wrongly ?

@chenxch
Copy link
Member

chenxch commented Apr 29, 2023

tree-data-and-lazy-mode
hasChildren is for use with lazy mode.

@dt-brahim-bouaboud
Copy link
Author

Oh okay, so if lazy is not used and hasChildren is set to true then the tree will be broken.
The document should probably be updated then because it only says

Specify hasChildren attribute in row to determine which row contains children.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants