From de8a87af6c09a0067e073c07ca01d3aa365e56d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 29 Jul 2026 15:02:27 +0800 Subject: [PATCH] =?UTF-8?q?style(cargo-type):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A0=8F=E6=A0=87=E7=AD=BE=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E5=8F=8A=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将搜索栏标签宽度从80px调整为50px,优化界面布局 - 覆盖Avue内置搜索栏label最小宽度样式 - 设置表格行高为44px,提升内容显示密度 - 调整表格单元格内边距为6px,增强视觉效果 - 维护偶数行背景色和边框颜色不变 --- src/option/base/cargo-type.js | 2 +- src/views/base/cargo-type.vue | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/option/base/cargo-type.js b/src/option/base/cargo-type.js index d47b951..9d713c9 100644 --- a/src/option/base/cargo-type.js +++ b/src/option/base/cargo-type.js @@ -35,7 +35,7 @@ export const getCargoTypeOption = ctx => ({ updateBtnText: '提交', searchShow: true, searchIcon: false, - searchLabelWidth: 80, + searchLabelWidth: 50, searchMenuSpan: 24, searchIndex: 8, searchMenuPosition: 'right', diff --git a/src/views/base/cargo-type.vue b/src/views/base/cargo-type.vue index 77a4d8f..d521b36 100644 --- a/src/views/base/cargo-type.vue +++ b/src/views/base/cargo-type.vue @@ -611,13 +611,18 @@ export default { // 搜索栏 label 收窄(覆盖 Avue 内置 min-width:160px) :deep(.avue-crud__search) .el-form-item_label { - min-width: 80px !important; - width: 80px !important; + min-width: 50px !important; + width: 50px !important; } :deep(.el-table) { --el-table-border-color: #eff1f7; --el-table-row-hover-bg-color: #f5f7fa; + --el-table-row-height: 44px; + + .el-table__cell { + padding: 6px 0; + } } :deep(.el-table__body tr:nth-child(even) > td.el-table__cell) {