【发布时间】:2021-07-25 16:41:31
【问题描述】:
我正在使用 react-sortable-Tree 并且我想为每个节点添加单选按钮。 我添加了这段代码
generateNodeProps={(rowInfo: ExtendedNodeData) => ({
buttons: [
<Radio
checked={this.state.checked}
id={rowInfo.node.id}
onChange={(event) => { this.handelNodeChange(event, rowInfo) }}
>
{rowInfo.node.title}
</Radio>
]
})
但我无法选择一个收音机并取消选择其他节点的任何建议
【问题讨论】:
标签: reactjs