tree.scss 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .m-tree{
  2. position: relative;
  3. background: #fff;
  4. color: #606266;
  5. cursor: default;
  6. .m-tree-node{
  7. width: 100%;
  8. white-space: nowrap;
  9. outline: none;
  10. box-sizing: border-box;
  11. .m-tree-node__content{
  12. display: flex;
  13. align-items: center;
  14. height: 26px;
  15. cursor: pointer;
  16. &:hover{
  17. background:#f5f5f5;
  18. }
  19. .m-tree-node__expand-icon{
  20. cursor: pointer;
  21. color: #c0c4cc;
  22. width: 14px;
  23. height: 14px;
  24. padding: 6px;
  25. display: inline-block;
  26. line-height: 14px;
  27. transition: all .2s ease;
  28. i{
  29. width: 100%;
  30. height: 100%;
  31. font-size: 12px;
  32. display: inline-block;
  33. color: #969696;
  34. }
  35. }
  36. .expanded{
  37. transform: rotate(90deg);
  38. }
  39. .m-tree-node-checkbox{
  40. margin-right: 0;
  41. }
  42. }
  43. .m-tree-ul-box{
  44. padding-left: 5px;
  45. }
  46. }
  47. }