mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Tree: add iconClass attribute (#13337)
This commit is contained in:
@@ -26,9 +26,13 @@
|
||||
<div class="el-tree-node__content"
|
||||
:style="{ 'padding-left': (node.level - 1) * tree.indent + 'px' }">
|
||||
<span
|
||||
class="el-tree-node__expand-icon el-icon-caret-right"
|
||||
@click.stop="handleExpandIconClick"
|
||||
:class="{ 'is-leaf': node.isLeaf, expanded: !node.isLeaf && expanded }">
|
||||
:class="[
|
||||
{ 'is-leaf': node.isLeaf, expanded: !node.isLeaf && expanded },
|
||||
'el-tree-node__expand-icon',
|
||||
tree.iconClass ? tree.iconClass : 'el-icon-caret-right'
|
||||
]"
|
||||
>
|
||||
</span>
|
||||
<el-checkbox
|
||||
v-if="showCheckbox"
|
||||
|
||||
Reference in New Issue
Block a user