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 ?
2条答案
按热度按时间oknrviil1#
tree-data-and-lazy-mode
hasChildren
is for use withlazy
mode.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