| | |
| | | <avue-tree :key="refresh" ref="tree" :data="treeData" :option="treeOption" node-key="id" |
| | | @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span> |
| | | <!-- <i :class="data.icon"></i>--> |
| | | <icon-show :name="data.icon"></icon-show> |
| | | <span style="display: flex"> |
| | | <icon-show :name="data.icon" class="iconShowSpan"></icon-show> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | |
| | | id: item.id, |
| | | name: item.name, |
| | | leaf: !item.hasChildren, |
| | | icon: item.source || 'el-icon-s-home' |
| | | icon: item.source || 'iconoir:home' |
| | | } |
| | | })) |
| | | }) |
| | |
| | | margin-bottom: 15px; |
| | | } |
| | | |
| | | .iconShowSpan{ |
| | | display: inline-block; |
| | | width: 14px !important; |
| | | height: 14px !important; |
| | | margin-right: 3px; |
| | | } |
| | | </style> |