VipSelector.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. // 导入全局样式变量
  2. @import '@/styles/variables.less';
  3. // ===== VIP 用户选择器样式 =====
  4. .vip-selector-modal {
  5. .ant-modal-body {
  6. padding: 0;
  7. }
  8. }
  9. .vip-selector-container {
  10. display: flex;
  11. height: 500px;
  12. overflow: hidden;
  13. }
  14. // 左侧:部门树
  15. .vip-selector-left {
  16. width: 240px;
  17. border-right: 1px solid @border-light;
  18. padding: @spacing-4;
  19. display: flex;
  20. flex-direction: column;
  21. background: @bg-tertiary;
  22. .section-title {
  23. font-size: @font-md;
  24. font-weight: @font-weight-semibold;
  25. color: @text-primary;
  26. margin-bottom: @spacing-3;
  27. display: flex;
  28. align-items: center;
  29. gap: @spacing-2;
  30. .iconify {
  31. font-size: @icon-lg;
  32. color: @primary-color;
  33. }
  34. }
  35. .ant-tree {
  36. flex: 1;
  37. overflow-y: auto;
  38. background: transparent;
  39. font-size: @font-sm;
  40. .ant-tree-treenode {
  41. padding: @spacing-1 0;
  42. transition: all 0.2s ease;
  43. &:hover {
  44. background: fade(@primary-color, 5%);
  45. border-radius: @radius-sm;
  46. }
  47. }
  48. .ant-tree-node-selected {
  49. background: fade(@primary-color, 10%) !important;
  50. color: @primary-color;
  51. font-weight: @font-weight-medium;
  52. }
  53. }
  54. .dept-divider {
  55. margin: @spacing-4 0;
  56. }
  57. .selected-count {
  58. font-size: @font-sm;
  59. color: @text-secondary;
  60. text-align: center;
  61. padding: @spacing-2;
  62. background: @bg-secondary;
  63. border-radius: @radius-md;
  64. }
  65. }
  66. // 右侧:用户列表
  67. .vip-selector-right {
  68. flex: 1;
  69. padding: @spacing-4;
  70. display: flex;
  71. flex-direction: column;
  72. overflow: hidden;
  73. .section-title {
  74. font-size: @font-md;
  75. font-weight: @font-weight-semibold;
  76. color: @text-primary;
  77. margin-bottom: @spacing-3;
  78. display: flex;
  79. align-items: center;
  80. gap: @spacing-2;
  81. .iconify {
  82. font-size: @icon-lg;
  83. color: @primary-color;
  84. }
  85. .dept-filter-tag {
  86. margin-left: @spacing-2;
  87. padding: 2px 8px;
  88. background: fade(@primary-color, 10%);
  89. color: @primary-color;
  90. border-radius: @radius-full;
  91. font-size: @font-xs;
  92. font-weight: @font-weight-medium;
  93. }
  94. }
  95. .filter-bar {
  96. margin-bottom: @spacing-3;
  97. padding: @spacing-3;
  98. background: @bg-tertiary;
  99. border-radius: @radius-lg;
  100. }
  101. .ant-table {
  102. flex: 1;
  103. overflow-y: auto;
  104. font-size: @font-sm;
  105. .ant-table-thead > tr > th {
  106. background: @bg-tertiary;
  107. font-weight: @font-weight-semibold;
  108. color: @text-primary;
  109. }
  110. .ant-table-tbody > tr:hover {
  111. background: fade(@primary-color, 5%);
  112. }
  113. .ant-table-selection-column {
  114. width: 50px;
  115. }
  116. }
  117. }
  118. // 响应式适配
  119. @media (max-width: @screen-md) {
  120. .vip-selector-container {
  121. flex-direction: column;
  122. height: 600px;
  123. }
  124. .vip-selector-left {
  125. width: 100%;
  126. border-right: none;
  127. border-bottom: 1px solid @border-light;
  128. max-height: 200px;
  129. }
  130. .vip-selector-right {
  131. max-height: 400px;
  132. }
  133. }