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; + }