header.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /**Variable**/
  2. .vxe-table {
  3. .vxe-table--header-wrapper {
  4. .vxe-table--header-border-line {
  5. position: absolute;
  6. left: 0;
  7. bottom: 0;
  8. height: 0;
  9. border-bottom: 1px solid $vxe-table-border-color;
  10. }
  11. }
  12. /*排序*/
  13. .vxe-cell--sort {
  14. width: 1.5em;
  15. height: 1.5em;
  16. vertical-align: middle;
  17. text-align: center;
  18. display: inline-block;
  19. position: relative;
  20. }
  21. .vxe-sort--asc-btn,
  22. .vxe-sort--desc-btn {
  23. position: absolute;
  24. left: 0.35em;
  25. color: $vxe-table-column-icon-border-color;
  26. width: 1em;
  27. text-align: center;
  28. cursor: pointer;
  29. &:hover {
  30. color: $vxe-table-font-color;
  31. }
  32. &.sort--active {
  33. color: $vxe-primary-color;
  34. }
  35. }
  36. .vxe-sort--asc-btn {
  37. top: -0.04em;
  38. }
  39. .vxe-sort--desc-btn {
  40. bottom: -0.04em;
  41. }
  42. }
  43. .vxe-header--column {
  44. position: relative;
  45. font-weight: $vxe-table-header-font-weight;
  46. user-select: none;
  47. &.col--title-checked {
  48. background-color: $vxe-table-column-header-checked-background-color;
  49. }
  50. &.col--ellipsis {
  51. & > .vxe-cell {
  52. display: flex;
  53. align-items: center;
  54. .vxe-cell--title {
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. white-space: nowrap;
  58. }
  59. & > i,
  60. & > span {
  61. &:not(.vxe-cell--title) {
  62. flex-shrink: 0;
  63. }
  64. }
  65. }
  66. }
  67. .vxe-cell--required-icon {
  68. display: inline-block;
  69. color: $vxe-table-validate-error-color;
  70. width: 0.8em;
  71. height: 1em;
  72. line-height: 1em;
  73. font-family: $vxe-icon-font-family;
  74. font-weight: normal;
  75. position: relative;
  76. &:before {
  77. content: "*";
  78. position: absolute;
  79. left: 0;
  80. top: 0.2em;
  81. }
  82. }
  83. .vxe-cell--required-icon,
  84. .vxe-cell--edit-icon,
  85. .vxe-cell-help-icon,
  86. .vxe-cell--title {
  87. vertical-align: middle;
  88. }
  89. .vxe-cell--required-icon {
  90. margin-right: 0.1em;
  91. }
  92. .vxe-cell--edit-icon,
  93. .vxe-cell-help-icon {
  94. margin-right: 0.2em;
  95. }
  96. .vxe-cell-help-icon {
  97. cursor: help;
  98. }
  99. .vxe-cell--title {
  100. line-height: 1.5;
  101. }
  102. .vxe-resizable {
  103. position: absolute;
  104. right: -7px;
  105. bottom: 0;
  106. width: 14px;
  107. height: 100%;
  108. text-align: center;
  109. z-index: 1;
  110. cursor: col-resize;
  111. &.is--line {
  112. &:before,
  113. &:after {
  114. content: "";
  115. display: inline-block;
  116. vertical-align: middle;
  117. }
  118. &:before {
  119. width: 1px;
  120. height: 50%;
  121. background-color: $vxe-table-resizable-line-color;
  122. }
  123. &:after {
  124. width: 0;
  125. height: 100%;
  126. }
  127. }
  128. }
  129. }
  130. .vxe-table--fixed-right-wrapper {
  131. .vxe-header--column {
  132. .vxe-resizable {
  133. right: auto;
  134. left: -7px;
  135. }
  136. }
  137. }