element-plus [Component] [tree] Tree setCheckedNodes 方法 缺少 leafOnly 参数说明

0ve6wy6x  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(85)

Bug Type: Component

Environment

  • Vue Version: 3.2.45
  • Element Plus Version: 2.2.28
  • Browser / OS: UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
  • Build Tool: Vite

Reproduction

  • el-tree

Element Plus Playground

Steps to reproduce

setCheckedNodes 缺少第二个参数的说明

What is Expected?

(nodes: Node[], leafOnly?: boolean) ,1.要选中的节点构成的数组 2. true 时只返回当前选择的子节点数组

What is actually happening?

要选中的节点构成的数组

Additional comments

(empty)

相关问题