index.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @import "~assets/less/variable";
  2. .treeTableContainer {
  3. display: flex;
  4. }
  5. .treeContainer {
  6. padding: 0 0 10px;
  7. border: 1px solid rgb(232, 232, 232);
  8. margin-bottom: 20px;
  9. width: 240px;
  10. margin-right: 10px;
  11. border-radius: 4px 4px 0 0;
  12. .treeTitle {
  13. display: flex;
  14. justify-content: space-between;
  15. align-items: center;
  16. line-height: 36px;
  17. padding: 10px 10px;
  18. background-color: rgb(250, 250, 250);;
  19. border-bottom: 1px solid #e8e8e8;
  20. h6, > div {
  21. line-height: 21px;
  22. }
  23. .treePlusNode {
  24. //padding: 0 4px;
  25. cursor: pointer
  26. }
  27. }
  28. .treeContent {
  29. width: 100%;
  30. padding: 10px 0 0;
  31. .treeNode {
  32. padding: 8px 10px;
  33. margin: 2px 0;
  34. display: flex;
  35. justify-content: space-between;
  36. cursor: pointer;
  37. transition: all .2s;
  38. border-radius: 4px;
  39. &.treeNodeChild {
  40. //margin-left: 20px
  41. }
  42. &.treeNodeSelected {
  43. background-color: #d7d7d7 !important;
  44. //color: #fff;
  45. }
  46. &:hover {
  47. background-color: #fafafa;
  48. }
  49. .treeNodeLeft {
  50. flex: 1;
  51. > i {
  52. padding-right: 6px;
  53. }
  54. }
  55. }
  56. }
  57. }