How to implement Radio selection of Tree component tree in elementUI

We now need to use the tree component and add a checkbox to it, like this

clipboard.png
but elementUI only has a check box for the tree component, not an api for the checkbox. There"s no way to start now.

tree of elementUI used

<el-tree
     :data="data2"
     show-checkbox
     default-expand-all
     node-key="id"
     ref="tree"
     highlight-current
     :props="defaultProps">
   </el-tree>

this kind of typesetting, using the elementUI component-it is better to write one by yourself so that the


node content can be customized. For more information, please see: http://element-cn.eleme.io/-sharp/. will have an example of customizing node content

.
Menu