Match-id-c6f3be2ae5ec4f9fe7002b321e94288f8698854f

This commit is contained in:
* 2022-03-29 12:02:43 +08:00 committed by *
parent a5f78bf5fb
commit 2321277489
2 changed files with 7 additions and 6 deletions

View File

@ -10,6 +10,13 @@
.treeItem {
width: 100%;
position: absolute;
.treeIcon {
color: @arrow-color;
display: inline-block;
width: 12px;
padding-left: 0.2rem;
}
.componentName {
color: @component-name-color;
}
@ -21,8 +28,3 @@
}
}
.treeIcon {
color: @arrow-color;
display: inline-block;
width: 12px
}

View File

@ -22,7 +22,6 @@ const divHeight = 21;
const indentationLength = 20;
function Item({ name, style, userKey, hasChild, onCollapse, isCollapsed, id, indentation }: IItem) {
const key = userKey === '' ? '' : ` key = '${userKey}'`;
const isShowKey = userKey !== '';
const showIcon = hasChild ? <Arrow director={isCollapsed ? 'right' : 'down'} /> : '';
const onClickCollapse = () => {