From 43c8a84aba2e03f2a7d54d4e1e260b231e52ef9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=86=89=E5=86=89?= Date: Tue, 13 Jan 2026 18:52:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=88=97=E9=97=B4=E8=B7=9D=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E3=80=81PPPo=E7=9A=84=E9=85=8D=E7=BD=AE=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=B1=95=E7=A4=BA=E6=95=88=E6=9E=9C=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/index.vue | 27 +++-- .../resource/serverRegister/PPPoEConfig.vue | 14 ++- src/views/resource/serverRegister/index.vue | 109 +++++++++--------- 3 files changed, 87 insertions(+), 63 deletions(-) diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 66f368a..e2041e6 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -33,14 +33,14 @@
{{ column.label }} - +
@@ -74,14 +74,14 @@
{{ column.label }} - +
@@ -255,7 +255,7 @@ // 加上按钮间距(假设每个按钮左右有5px间距) if (visibleButtonCount > 0) { - currentLineWidth += (visibleButtonCount - 1) * 10; + currentLineWidth += (visibleButtonCount - 1) * 5; } // 更新最大宽度 if (currentLineWidth > maxTotalWidth) { @@ -266,7 +266,7 @@ maxTotalWidth = 20; } // 加上单元格内边距 - return Math.max(maxTotalWidth + 40); // 最小宽度120px + return Math.max(maxTotalWidth + 30); // 最小宽度120px }, // 计算单个按钮宽度(根据字符数) @@ -542,9 +542,20 @@ background-color: #ffb98c!important; } ::v-deep .el-table-column--selection .cell { + padding-left: 2px!important; + padding-right: 2px!important; + } + ::v-deep .el-table th.el-table__cell > .cell { + padding-left: 2px!important; + padding-right: 2px!important; + } + ::v-deep .el-table .cell { padding-left: 0px!important; padding-right: 0px!important; } + ::v-deep .el-button + .el-button { + margin-left: 5px!important; + }