index.less 641 B

1234567891011121314151617181920212223242526272829303132
  1. .menu-title {
  2. box-shadow: inset 0 -1px 0 1px #f0f0f0;
  3. }
  4. .department-node {
  5. height: 32px;
  6. max-width: 152px;
  7. display: flex;
  8. justify-content: space-between;
  9. align-items: center;
  10. .title {
  11. word-wrap: break-word; /*强制换行*/
  12. overflow: hidden; /*超出隐藏*/
  13. text-overflow: ellipsis; /*隐藏后添加省略号*/
  14. white-space: nowrap; /*强制不换行*/
  15. }
  16. .extra {
  17. display: none;
  18. margin-right: 0.25rem;
  19. &:hover {
  20. cursor: pointer;
  21. }
  22. }
  23. &:hover {
  24. .extra {
  25. display: flex;
  26. justify-content: space-between;
  27. align-items: center;
  28. flex-wrap: nowrap;
  29. }
  30. }
  31. }