style.scss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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: 2px;
  63. }
  64. }
  65. :deep(.children-bar) {
  66. //overflow: hidden;
  67. }
  68. &.pl {
  69. padding-left: 14px;
  70. }
  71. }
  72. }