Skip to content

Commit c1b2023

Browse files
committed
子节点的缩进采用em单位,便于后续可自定义缩进字符
1 parent 4feba75 commit c1b2023

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/assets/less/tree.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
@content-padding: 15px; /* 树的内容区域左留空*/
1+
@content-padding: 1em; /* 树内容区域缩进2个英文字符, 此处1em为1个中文字符=2个英文字符 */
22

33
.vjs__tree {
44
font-family: "Monaco", "Menlo", "Consolas", "Bitstream Vera Sans Mono";
5+
font-size: 14px;
56
line-height: 1.3;
67
.vjs__tree__content {
78
padding-left: @content-padding;

0 commit comments

Comments
 (0)