style.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .hc-tree-box {
  2. position: relative;
  3. background: #ffffff;
  4. color: #606266;
  5. font-size: 28rpx;
  6. padding: 18rpx;
  7. .no-data {
  8. position: relative;
  9. text-align: center;
  10. font-size: 26rpx;
  11. }
  12. .hc-tree-node {
  13. position: relative;
  14. white-space: nowrap;
  15. outline: none;
  16. :deep(.content-bar) {
  17. position: relative;
  18. display: flex;
  19. align-items: center;
  20. height: 30px;
  21. .expand-icon {
  22. color: #a8abb2;
  23. width: 22px;
  24. height: 22px;
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. margin-right: 4px;
  29. text {
  30. width: 22px;
  31. height: 22px;
  32. box-sizing: content-box;
  33. transform: rotate(0);
  34. transition: transform .3s ease-in-out;
  35. }
  36. &.is-expanded text {
  37. transform: rotate(90deg);
  38. }
  39. }
  40. .tree-check, .tree-radio {
  41. width: 22px;
  42. height: 22px;
  43. margin-right: 4px;
  44. text {
  45. width: 22px;
  46. height: 22px;
  47. }
  48. text.c1 {
  49. color: #a8abb2;
  50. }
  51. text.c2, text.c3 {
  52. color: var(--primary-color);
  53. }
  54. }
  55. .label {
  56. margin-left: 6px;
  57. white-space: nowrap;
  58. padding-right: 28rpx;
  59. }
  60. .expand-icon + .label,
  61. .tree-check + .label {
  62. margin-left: 4rpx;
  63. }
  64. &.current-node-key {
  65. background: #f4f4f4;
  66. border-radius: 5rpx;
  67. color: #007aff;
  68. }
  69. }
  70. :deep(.children-bar) {
  71. //overflow: hidden;
  72. }
  73. &.pl {
  74. padding-left: 14px;
  75. }
  76. }
  77. }