样式效果如上
<el-tree
:data="treedata"
:props="defaultProps"
:expand-on-click-node="false"
:current-node-key="currentNodekey"
:default-expanded-keys="expandedkeys"
accordion
highlight-current
node-key="id"
ref="tree"
@node-click="handleNodeClick"
></el-tree>
treedata: [], //树结构数据
defaultProps: {
children: "children",
label: "label"
},
currentNodekey: "