ant-design Tree has no option for double click

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

What problem does this feature solve?

Now, I have to be very creative when I want double click,... for onSelect could be added onDoubleSelect

What does the proposed API look like?

<Tree
                onDoubleSelect={(data) => {
                    anyEventEmmiter.emit(`select-${data[0]}`)
                }}
            />
puruo6ea

puruo6ea1#

TreeNode should support onClick and onDoubleClick .

8xiog9wr

8xiog9wr2#

@MadCcc there is onDoubleClick, but it's double click itself, it don't give you selected node

相关问题