储能智慧云平台web端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

element.scss 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /* 设置 notification、message 层级在 loading 之上 */
  2. .el-message,
  3. .el-notification {
  4. z-index: 2070 !important;
  5. }
  6. /* el-alert */
  7. .el-alert {
  8. border: 1px solid;
  9. }
  10. /* 当前页面最大化 css */
  11. .main-maximize {
  12. .aside-split,
  13. .el-aside,
  14. .el-header,
  15. .el-footer,
  16. .tabs-box {
  17. display: none !important;
  18. }
  19. }
  20. /* mask image */
  21. .mask-image {
  22. padding-right: 50px;
  23. mask-image: linear-gradient(90deg, #000000 0%, #000000 calc(100% - 50px), transparent);
  24. }
  25. /* custom card */
  26. .card {
  27. box-sizing: border-box;
  28. padding: 20px;
  29. overflow-x: hidden;
  30. background-color: var(--el-bg-color);
  31. border: 1px solid var(--el-border-color-light);
  32. border-radius: 6px;
  33. box-shadow: 0 0 12px rgb(0 0 0 / 5%);
  34. }
  35. /* ProTable 不需要 card 样式(在组件内使用 ProTable 会使用到) */
  36. .no-card {
  37. .card {
  38. padding: 0;
  39. background-color: transparent;
  40. border: none;
  41. border-radius: 0;
  42. box-shadow: none;
  43. }
  44. .table-search {
  45. padding: 18px 0 0 !important;
  46. margin-bottom: 0 !important;
  47. }
  48. }
  49. /* content-box (常用内容盒子) */
  50. .content-box {
  51. display: flex;
  52. flex-direction: column;
  53. align-items: center;
  54. height: 100%;
  55. .text {
  56. margin: 20px 0 30px;
  57. font-size: 23px;
  58. font-weight: bold;
  59. color: var(--el-text-color-regular);
  60. }
  61. .el-descriptions {
  62. width: 100%;
  63. padding: 40px 0 0;
  64. .el-descriptions__title {
  65. font-size: 18px;
  66. }
  67. .el-descriptions__label {
  68. width: 200px;
  69. }
  70. }
  71. }
  72. /* main-box (树形表格 treeFilter 页面会使用,左右布局 flex) */
  73. .main-box {
  74. display: flex;
  75. width: 100%;
  76. height: 100%;
  77. .table-box {
  78. // 这里减去的 230px 是 treeFilter 组件宽度
  79. width: calc(100% - 230px);
  80. }
  81. }
  82. /* proTable */
  83. .table-box,
  84. .table-main {
  85. display: flex;
  86. flex: 1;
  87. flex-direction: column;
  88. width: 100%;
  89. height: 100%;
  90. // table-search 表格搜索样式
  91. .table-search {
  92. padding: 18px 18px 0;
  93. margin-bottom: 10px;
  94. .el-form {
  95. .el-form-item__content > * {
  96. width: 100%;
  97. }
  98. // 去除时间选择器上下 padding
  99. .el-range-editor.el-input__wrapper {
  100. padding: 0 10px;
  101. }
  102. }
  103. .operation {
  104. display: flex;
  105. align-items: center;
  106. justify-content: flex-end;
  107. margin-bottom: 18px;
  108. }
  109. }
  110. // 表格 header 样式
  111. .table-header {
  112. .header-button-lf {
  113. float: left;
  114. }
  115. .header-button-ri {
  116. float: right;
  117. }
  118. .el-button {
  119. margin-bottom: 15px;
  120. }
  121. }
  122. // el-table 表格样式
  123. .el-table {
  124. flex: 1;
  125. // 修复 safari 浏览器表格错位 https://github.com/HalseySpicy/Geeker-Admin/issues/83
  126. table {
  127. width: 100%;
  128. }
  129. .el-table__header th {
  130. height: 45px;
  131. font-size: 15px;
  132. font-weight: bold;
  133. color: var(--el-text-color-primary);
  134. background: var(--el-fill-color-light);
  135. }
  136. .el-table__row {
  137. height: 45px;
  138. font-size: 14px;
  139. .move {
  140. cursor: move;
  141. .el-icon {
  142. cursor: move;
  143. }
  144. }
  145. }
  146. // 设置 el-table 中 header 文字不换行,并省略
  147. .el-table__header .el-table__cell > .cell {
  148. // white-space: nowrap;
  149. white-space: wrap;
  150. }
  151. // 解决表格数据为空时样式不居中问题(仅在element-plus中)
  152. .el-table__empty-block {
  153. position: absolute;
  154. top: 50%;
  155. left: 50%;
  156. transform: translate(-50%, -50%);
  157. .table-empty {
  158. line-height: 30px;
  159. }
  160. }
  161. // table 中 image 图片样式
  162. .table-image {
  163. width: 50px;
  164. height: 50px;
  165. border-radius: 50%;
  166. }
  167. }
  168. // 表格 pagination 样式
  169. .el-pagination {
  170. display: flex;
  171. justify-content: flex-end;
  172. margin-top: 20px;
  173. }
  174. }
  175. /* el-table 组件大小 */
  176. .el-table--small {
  177. .el-table__header th {
  178. height: 40px !important;
  179. font-size: 14px !important;
  180. }
  181. .el-table__row {
  182. height: 40px !important;
  183. font-size: 13px !important;
  184. }
  185. }
  186. .el-table--large {
  187. .el-table__header th {
  188. height: 50px !important;
  189. font-size: 16px !important;
  190. }
  191. .el-table__row {
  192. height: 50px !important;
  193. font-size: 15px !important;
  194. }
  195. }
  196. /* el-drawer */
  197. .el-drawer {
  198. .el-drawer__header {
  199. padding: 16px 20px;
  200. margin-bottom: 0;
  201. border-bottom: 1px solid var(--el-border-color-lighter);
  202. span {
  203. font-size: 17px;
  204. line-height: 17px;
  205. color: var(--el-text-color-primary) !important;
  206. }
  207. }
  208. .el-drawer__footer {
  209. border-top: 1px solid var(--el-border-color-lighter);
  210. }
  211. // select 样式
  212. .el-select {
  213. width: 100%;
  214. }
  215. // drawer-form 中存在两列 form-item 样式
  216. .drawer-multiColumn-form {
  217. display: flex;
  218. flex-wrap: wrap;
  219. .el-form-item {
  220. width: 47%;
  221. &:nth-child(2n-1) {
  222. margin-right: 5%;
  223. }
  224. }
  225. }
  226. }
  227. /* el-dialog */
  228. .el-dialog {
  229. .el-dialog__header {
  230. padding: 15px 20px;
  231. margin: 0;
  232. border-bottom: 1px solid var(--el-border-color-lighter);
  233. .el-dialog__title {
  234. font-size: 17px;
  235. }
  236. }
  237. }
  238. .el-pagination.is-background .el-pager li.is-active {
  239. background-color: #0052d9;
  240. }
  241. .Space_content {
  242. display: inline-block;
  243. width: auto;
  244. min-width: 160px;
  245. color: #000000;
  246. }