Tree: add indent, update docs

This commit is contained in:
Leopoldthecoder
2017-02-08 11:49:54 +08:00
committed by 杨奕
parent 8e34408d6e
commit 7391c488a0
7 changed files with 904 additions and 17 deletions

View File

@@ -8,7 +8,7 @@
'is-hidden': !node.visible
}">
<div class="el-tree-node__content"
:style="{ 'padding-left': (node.level - 1) * 16 + 'px' }">
:style="{ 'padding-left': (node.level - 1) * tree.indent + 'px' }">
<span
class="el-tree-node__expand-icon"
@click.stop="handleExpandIconClick"