header.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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--ellipsis {
  48. & > .vxe-cell {
  49. display: flex;
  50. align-items: center;
  51. .vxe-cell--title {
  52. overflow: hidden;
  53. text-overflow: ellipsis;
  54. white-space: nowrap;
  55. }
  56. & > i,
  57. & > span {
  58. &:not(.vxe-cell--title) {
  59. flex-shrink: 0;
  60. }
  61. }
  62. }
  63. }
  64. .vxe-cell--required-icon {
  65. display: inline-block;
  66. color: $vxe-table-validate-error-color;
  67. width: 0.8em;
  68. height: 1em;
  69. line-height: 1em;
  70. font-family: $vxe-icon-font-family;
  71. font-weight: normal;
  72. position: relative;
  73. &:before {
  74. content: "*";
  75. position: absolute;
  76. left: 0;
  77. top: 0.2em;
  78. }
  79. }
  80. .vxe-cell--required-icon,
  81. .vxe-cell--edit-icon,
  82. .vxe-cell-help-icon,
  83. .vxe-cell--title {
  84. vertical-align: middle;
  85. }
  86. .vxe-cell--required-icon {
  87. margin-right: 0.1em;
  88. }
  89. .vxe-cell--edit-icon,
  90. .vxe-cell-help-icon {
  91. margin-right: 0.2em;
  92. }
  93. .vxe-cell-help-icon {
  94. cursor: help;
  95. }
  96. .vxe-cell--title {
  97. line-height: 1.5;
  98. }
  99. .vxe-resizable {
  100. position: absolute;
  101. right: -7px;
  102. bottom: 0;
  103. width: 14px;
  104. height: 100%;
  105. text-align: center;
  106. z-index: 1;
  107. cursor: col-resize;
  108. &.is--line {
  109. &:before,
  110. &:after {
  111. content: "";
  112. display: inline-block;
  113. vertical-align: middle;
  114. }
  115. &:before {
  116. width: 1px;
  117. height: 50%;
  118. background-color: $vxe-table-resizable-line-color;
  119. }
  120. &:after {
  121. width: 0;
  122. height: 100%;
  123. }
  124. }
  125. }
  126. }
  127. .vxe-table--fixed-right-wrapper {
  128. .vxe-header--column {
  129. .vxe-resizable {
  130. right: auto;
  131. left: -7px;
  132. }
  133. }
  134. }