diff --git a/src/option/base/cargo-type.js b/src/option/base/cargo-type.js index 9d713c9..3dd24c8 100644 --- a/src/option/base/cargo-type.js +++ b/src/option/base/cargo-type.js @@ -24,7 +24,7 @@ const validateRemark = (rule, value, callback) => { export const getCargoTypeOption = ctx => ({ height: 'auto', - calcHeight: 32, + calcHeight: 22, dialogWidth: 760, labelPosition: 'right', labelWidth: 'auto', diff --git a/src/styles/element-ui.scss b/src/styles/element-ui.scss index 93b6606..11eabe3 100644 --- a/src/styles/element-ui.scss +++ b/src/styles/element-ui.scss @@ -263,6 +263,7 @@ justify-content: flex-end; width: 100%; box-sizing: border-box; + padding: 10px 0 !important; } .avue-crud__pagination .el-pagination, @@ -277,7 +278,6 @@ justify-content: flex-end; width: 100%; gap: 6px; - padding: 18px 0 0; color: #303133; font-size: 14px; font-weight: 400; diff --git a/src/views/base/cargo-type.vue b/src/views/base/cargo-type.vue index ac65e39..56fec53 100644 --- a/src/views/base/cargo-type.vue +++ b/src/views/base/cargo-type.vue @@ -617,14 +617,14 @@ export default { --el-table-row-height: 40px; // 表头加高 - .el-table__header-wrapper .el-table__cell { - padding: 10px 0; - } + //.el-table__header-wrapper .el-table__cell { + // padding: 10px 0; + //} // 数据行保持紧凑 - .el-table__body .el-table__cell { - padding: 2px 0; - } + //.el-table__body .el-table__cell { + // padding: 2px 0; + //} } // 底部空白区域自适应:表格 body 不再强制撑满计算高度 @@ -634,9 +634,9 @@ export default { } // 同步让外层表格容器也自适应 - :deep(.avue-crud .el-table) { - height: auto !important; - } + //:deep(.avue-crud .el-table) { + // height: auto !important; + //} :deep(.el-table__body tr:nth-child(even) > td.el-table__cell) { background: #fafafa;