我们现在需要使用tree组件,并在其中加入单选框,类似这种
但是elementUI只有tree组件的复选框,没有单选框的api。现在无从下手。
用的elementUI的tree
<el-tree
:data="data2"
show-checkbox
default-expand-all
node-key="id"
ref="tree"
highlight-current
:props="defaultProps">
</el-tree>
节点内容是可以自定义的,具体可看:http://element-cn.eleme.io/#/... 往下翻会有一个自定义节点内容的示例