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]}`)
}}
/>
2条答案
按热度按时间puruo6ea1#
TreeNode should support
onClick
andonDoubleClick
.8xiog9wr2#
@MadCcc there is onDoubleClick, but it's double click itself, it don't give you selected node