table.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. @import "../variables.scss";
  2. @import "../mixins.scss";
  3. // table TableColumnsPopover 样式
  4. .#{$prefix}column-popover {
  5. &.el-popper {
  6. min-width: 250px;
  7. line-height: 1;
  8. padding: 12px 0 0;
  9. }
  10. .el-select-dropdown__item {
  11. display: flex;
  12. align-items: center;
  13. width: 100%;
  14. padding: 0 12px;
  15. margin-right: 0;
  16. .el-checkbox__label {
  17. white-space: nowrap;
  18. overflow: hidden;
  19. text-overflow: ellipsis;
  20. max-width: 300px;
  21. }
  22. }
  23. // 分割线
  24. .divider {
  25. margin: 0 12px;
  26. border-bottom:1px solid $le-border-color_3;
  27. }
  28. .el-scrollbar__wrap {
  29. margin-bottom: 0 !important;
  30. overflow-y: scroll;
  31. overflow-x: hidden;
  32. max-height: 24vh;
  33. }
  34. .el-select-dropdown__list {
  35. padding: 0;
  36. }
  37. .columns-contents {
  38. //min-width: 250px;
  39. .title {
  40. padding: 0 12px;
  41. line-height: 22px;
  42. //color: $le-color_3;
  43. color: var(--el-text-color-primary);
  44. }
  45. .label {
  46. padding: 0 12px;
  47. height: 36px;
  48. line-height: 36px;
  49. color: $le-color_5;
  50. }
  51. //.draggableWrap {
  52. // //display: flex;
  53. // //flex-direction: column;
  54. // ////min-height: max-content;
  55. // //min-height: 20vh;
  56. //}
  57. }
  58. .footer {
  59. display: flex;
  60. justify-content: space-between;
  61. padding: 12px;
  62. .el-button {
  63. padding: 9px 15px;
  64. font-size: 14px;
  65. height: 32px;
  66. }
  67. }
  68. }
  69. // table 样式
  70. .#{$prefix}table-warp {
  71. position: relative;
  72. flex: 1;
  73. display: flex;
  74. flex-direction: column;
  75. height: 100%;
  76. width: 100%;
  77. padding: 12px 12px 0 12px;
  78. min-height: 0;
  79. border-radius: var(--el-border-radius-base);
  80. //background: #fff;
  81. background-color: var(--el-bg-color);
  82. /*.tableLoading {
  83. position: absolute;
  84. left: 0;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. width: 100%;
  89. height: 100%;
  90. z-index: 9999;
  91. background: rgba(0, 0, 0, 0.05);
  92. }*/
  93. /* 放置大屏 */
  94. &-maximize {
  95. position: fixed;
  96. top: 0;
  97. left: 0;
  98. width: 100%;
  99. height: 100%;
  100. max-width: 100%;
  101. //background-color: #fff !important;
  102. background-color: var(--el-fill-color-extra-light) !important;
  103. z-index: 2000;
  104. }
  105. .slot_title-wrap {
  106. //width: 100%;
  107. display: inline-flex;
  108. align-items: center;
  109. text-align: center;
  110. overflow: hidden;
  111. .label {
  112. overflow: hidden;
  113. text-overflow: ellipsis;
  114. white-space: nowrap;
  115. }
  116. .le-iconfont {
  117. margin-left: .2em;
  118. font-size: 14px;
  119. cursor: pointer;
  120. color: $le-color_3;
  121. font-weight: normal;
  122. }
  123. }
  124. .tableBody {
  125. flex: 1;
  126. min-height: 200px;
  127. height: 100%;
  128. display: flex;
  129. flex-direction: column;
  130. .toolBarWrap {
  131. margin-bottom: 12px;
  132. height: auto;
  133. display: flex;
  134. //align-items: center;
  135. align-items: flex-start;
  136. justify-content: space-between;
  137. .toolLeft {
  138. flex: 1;
  139. // 针对 searchGroup tags 设置的样式
  140. .#{$prefix}search-group-tags {
  141. margin-bottom: -4px;
  142. }
  143. }
  144. .toolRight {
  145. //align-self: flex-end;
  146. // 兼容当搜索组件放置在 toolLeft 的时候
  147. //min-height: 32px;
  148. display: flex;
  149. align-items: center;
  150. // 仅带icon 的button 按钮样式
  151. .icon-button {
  152. @extend %icon-button;
  153. margin-left: 12px;
  154. font-size: 16px;
  155. /*cursor: pointer;
  156. &:hover {
  157. color: var(--el-color-primary);
  158. }*/
  159. }
  160. //.button-refresh{}
  161. //.button-screen{}
  162. }
  163. }
  164. .tableParentEl {
  165. flex: 1;
  166. overflow-y: hidden;
  167. }
  168. //.le-table {}
  169. }
  170. .le-table {
  171. font-size: 14px;
  172. transform: translate(0, 0);
  173. //$header-bg: var(--el-table-header-bg-color);
  174. $header-bg: var(--el-fill-color-light);
  175. //$header-bg: var(--el-fill-color-lighter);
  176. // todo
  177. /*&.el-table--border {
  178. td:not(:last-child) {
  179. border-right-color: transparent;
  180. }
  181. }
  182. &.el-table__body-wrapper {
  183. .el-table--border.is-scrolling-left ~ .el-table__fixed:not(:last-child) {
  184. border-right-color: transparent;
  185. }
  186. }*/
  187. .el-table__header-wrapper tr th {
  188. &.el-table-fixed-column--left,
  189. &.el-table-fixed-column--right {
  190. //background-color: var(--el-table-header-bg-color);
  191. background-color: $header-bg;
  192. }
  193. }
  194. th {
  195. height: 41px;
  196. //background-color: var(--el-table-header-bg-color);
  197. background-color: $header-bg;
  198. &.is-right {
  199. .cell {
  200. justify-content: end;
  201. }
  202. }
  203. &.is-center {
  204. .cell {
  205. justify-content: center;
  206. }
  207. }
  208. .cell {
  209. //font-size: 13px;
  210. font-weight: normal;
  211. color: $le-color_1;
  212. line-height: 17px;
  213. padding-left: 12px;
  214. padding-right: 12px;
  215. display: flex;
  216. align-items: center;
  217. /*text-align: center;
  218. justify-content: center;
  219. overflow: hidden;*/
  220. }
  221. }
  222. .el-table-column--selection .cell {
  223. padding-left: 12px;
  224. padding-right: 12px;
  225. }
  226. &.el-table--striped {
  227. .el-table__body {
  228. tr.el-table__row--striped td {
  229. background: $le-hover-color_1;
  230. }
  231. }
  232. }
  233. .el-table__body {
  234. //td {
  235. // color: $le-color_2;
  236. // font-size: 12px;
  237. //}
  238. tr.hover-row.current-row > td,
  239. tr.hover-row.el-table__row--striped.current-row > td,
  240. tr.hover-row.el-table__row--striped > td,
  241. tr.hover-row > td {
  242. //background-color: #e8f2fe;
  243. background-color: var(--el-fill-color-lighter);
  244. //background-color: var(--el-color-danger);
  245. }
  246. }
  247. &.el-table--enable-row-hover {
  248. .el-table__body tr:hover > td {
  249. //background-color: #e8f2fe;
  250. background-color: var(--el-fill-color-lighter);
  251. //background-color: var(--el-color-danger);
  252. }
  253. }
  254. .el-table__body tr.hover-row > td {
  255. background: $le-hover-color_1;
  256. }
  257. // 排序类型样式调整
  258. .caret-wrapper {
  259. height: 17px;
  260. vertical-align: unset;
  261. min-width: 14px;
  262. //transform: translateY(3px);
  263. }
  264. .sort-caret {
  265. &.ascending {
  266. top: -3px;
  267. }
  268. &.descending {
  269. bottom: -3px;
  270. }
  271. }
  272. }
  273. .el-pagination {
  274. display: flex;
  275. //padding: 16px 12px;
  276. padding: 12px 0;
  277. justify-content: flex-end;
  278. }
  279. }
  280. @media (max-width: 750px) {
  281. .#{$prefix}table-warp {
  282. /*.tableBody {
  283. .toolBarWrap {
  284. .toolLeft {
  285. !*.el-button {
  286. & + .el-button {
  287. margin-left: 0;
  288. }
  289. }*!
  290. }
  291. }
  292. }*/
  293. .el-pagination {
  294. --el-pagination-item-gap: 4px;
  295. --el-pagination-font-size: 12px;
  296. --el-pagination-button-width: 26px;
  297. --el-pagination-button-height: 26px;
  298. --el-font-size-base: 12px;
  299. /*.el-pagination__total {
  300. display: none;
  301. }
  302. .el-pagination__sizes {
  303. display: none;
  304. }*/
  305. /*&__jump {
  306. display: none;
  307. }*/
  308. .el-pager {
  309. display: none;
  310. }
  311. .el-input {
  312. &__inner {
  313. --el-input-inner-height: 26px;
  314. }
  315. &__wrapper {
  316. padding: 0 2px;
  317. }
  318. }
  319. .el-select .el-input {
  320. width: 76px;
  321. /*&__inner {
  322. --el-input-inner-height: 26px;
  323. }
  324. &__wrapper {
  325. padding: 0 2px;
  326. }*/
  327. }
  328. }
  329. }
  330. }