.scrollBar { margin: 0 20px; width: calc(100% - 40px); } .treeParent { transition: height 1s ease-in-out; } .treeChild { line-height: 54px; } .treeItem { display: flex; align-items: center; line-height: 54px; border-radius: 10px; padding: 0 5px; cursor: pointer; border-radius: 10px; font-size: max(17px, 12Px); margin-bottom: 8px; &:hover { background: #E8F4FF; } .title { padding-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 280px !important; color: rgba(0, 0, 0, .5); display: flex; align-items: center; .dir { flex-shrink: 1; display: inline-block; width: 16px; height: 18px; background: url('./images/icon-d.png') no-repeat center; background-size: contain; margin-right: 6px; } &.titleSelect { color: #198CFE; // font-weight: bold; .dir { background: url('./images/icon-d-active.png') no-repeat center; background-size: contain; } } } .arrow { display: inline-block; width: 14px; height: 15px; background: url('./images/arrow-default.png') no-repeat center; background-size: contain; &.arrowSelect { background: url('./images/arrow-active.png') no-repeat center; background-size: contain; } } .childArrow { width: 12px; } &.childItem { padding-left: 30px; font-size: max(15px, 12Px); .title { color: #131415; } } &.childSelect { background: #E8F4FF; .title { color: #198CFE; // font-weight: bold; } } }