element-plus [Component] [table] hasChildren property in el-table is buggy

kiz8lqtg  于 2个月前  发布在  其他
关注(0)|答案(2)|浏览(22)

Bug Type: Component

Environment

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

Reproduction

  • el-table

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 ?

oknrviil

oknrviil1#

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

zd287kbt

zd287kbt2#

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.

相关问题