Explorar o código

优化组件大小为默认和大型时,表格四周边距,使其更协调

夜鹰 hai 8 meses
pai
achega
6f136eddf4
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Web/src/theme/element.scss

+ 4 - 0
Web/src/theme/element.scss

@@ -371,6 +371,10 @@
 .el-card__body {
 	padding: 8px;
 }
+   // 由于card没有size属性,所以通过其子元素来判断,当组件大小选择为默认时
+.el-card__body:has(.el-table--default) {
+    padding: 20px;
+}
 
 /* Table 表格 element plus 2.2.0 版本
 ------------------------------- */