Commit 7391c488 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Tree: add indent, update docs

parent 8e34408d
......@@ -608,6 +608,7 @@ Search data from server-side.
|autosize | whether textarea has an adaptive height, only works when `type` is 'textarea'. Can accept an object, e.g. { minRows: 2, maxRows: 6 } | boolean/object | — | false |
|auto-complete | same as `auto-complete` in native input | string | on/off | off |
|name | same as `name` in native input | string | — | — |
| readonly | same as `readonly` in native input | boolean | — | false |
|max | same as `max` in native input | * | — | — |
|min | same as `min` in native input | * | — | — |
|resize| control the resizability | string | none, both, horizontal, vertical | — |
......
This diff is collapsed.
......@@ -765,6 +765,7 @@ export default {
| autosize | 自适应内容高度,只对 `type="textarea"` 有效,可传入对象,如,{ minRows: 2, maxRows: 6 } | boolean/object | — | false |
| auto-complete | 原生属性,自动补全 | string | on, off | off |
| name | 原生属性 | string | — | — |
| readonly | 原生属性,是否只读 | boolean | — | false |
| max | 原生属性,设置最大值 | * | — | — |
| min | 原生属性,设置最小值 | * | — | — |
| resize | 控制是否能被用户缩放 | string | none, both, horizontal, vertical | — |
......
This diff is collapsed.
......@@ -14,7 +14,6 @@
width: var(--msgbox-width);
border-radius: var(--msgbox-border-radius);
font-size: var(--msgbox-font-size);
-webkit-user-select: none;
overflow: hidden;
backface-visibility: hidden;
@e wrapper {
......
......@@ -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"
......
......@@ -81,7 +81,11 @@
currentNodeKey: [String, Number],
load: Function,
filterNodeMethod: Function,
accordion: Boolean
accordion: Boolean,
indent: {
type: Number,
default: 16
}
},
computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment