<el-tree
ref="tree"
:data="orgList"
:props="defaultProps"
:default-expand-all="false"
class="treeMenu"
:filter-node-method="filterNode"
@node-click="handleNodeClick"
>
<span slot-scope="{ node, data }" class="slot-t-node">
<template>
<i
v-if="data.ChildItems&&data.ChildItems.length"
:class="{
'el-icon-folder': !node.expanded, // 节点收缩时的图标
'el-icon-folder-opened': node.expanded, // 节点展开时的图标
}"
style="color: #409eff;"
/>
<i v-else class="el-icon-document" style="color: #EC933A;" />
<span>{{ node.label }}</span>
</template>
</span>
</el-tree>
/deep/ .is-leaf{
background: transparent !important;
width: 5px;
height: 5px;
background-size: 100%;
margin-right: 5px;
}
/deep/ .el-tree-node__expand-icon{
background: url(../../../../assets/shu_ic_wzk.png) no-repeat;
width: 5px;
height: 5px;
background-size: 100%;
margin-right: 5px;
}
/deep/ .expanded{
background: url(../../../../assets/shu_ic_zk.png) no-repeat;
width: 5px;
height: 5px;
background-size: 100%;
margin-right: 5px;
transform: rotate(0deg) !important;
}
/deep/ .el-icon-caret-right:before{
content: '';
}