Skip to content

Tree tree control-automatically expand child nodes after clicking on the node #4919

@zhouzuixin

Description

@zhouzuixin
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

左侧的小箭头可点击区域太小,操作不太方便,希望点击节点名称也能自动展开子节点

What does the proposed API look like?

antdv 2版本里面之前是有这个函数的,不清楚antdv 3版本里面为什么去掉了(还是改成其他方式了?)。
在select事件中(function(selectedKeys, e:{selected: bool, selectedNodes, node, event}))可以通过e.node.onExpand()触发这个动作。

version:3.0.0-alpha.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions