How does antd treeSelect set the parent node not to be selected?

how does antd treeSelect set the parent node not to be selected? Hope that the parent node is only to expand and fold child nodes, can not be selected as the value of the input box, read the document without this configuration, how to do?

Mar.09,2021

did not meet your needs, but you can communicate with
my idea:
1 operate on treeData directly

1treeDatatreeDatadisabledtrue;
2treeCheckStrictly true;

2 can be accessed via onChange or onSelect

 : select;

is there a specific plan and code? Please let me know

Menu