From 4b4530087295f9b53dcff84888b7a08c07640846 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 03 六月 2025 14:57:50 +0800 Subject: [PATCH] 整体样式修改 --- src/components/Table/ETable.vue | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Table/ETable.vue b/src/components/Table/ETable.vue index 7d30361..7a5b922 100644 --- a/src/components/Table/ETable.vue +++ b/src/components/Table/ETable.vue @@ -6,6 +6,7 @@ :border="border" :show-selection="showSelection" :max-height="maxHeight" + :header-cell-style="{ background: '#EBEEF5', color: '#3D3D3D' }" @selection-change="handleSelectionChange" @row-click="handleRowClick" @row-dblclick="handleRowDblClick" @@ -20,7 +21,6 @@ v-bind="col" :show-overflow-tooltip="shouldShowTooltip(col, tableData)" :formatter="(row, column, cellValue) => cellValue == null || cellValue === '' ? '--' : cellValue" - align="center" > <template v-if="col.slot" #default> <slot></slot> @@ -38,13 +38,13 @@ size="small" @click="handleEdit(scope.row)" >缂栬緫</el-button> - <el-button - v-if="operations.includes('delete')" - link - type="danger" - size="small" - @click="handleDelete(scope.row)" - >鍒犻櫎</el-button> +<!-- <el-button--> +<!-- v-if="operations.includes('delete')"--> +<!-- link--> +<!-- type="danger"--> +<!-- size="small"--> +<!-- @click="handleDelete(scope.row)"--> +<!-- >鍒犻櫎</el-button>--> </slot> </template> </el-table-column> @@ -124,7 +124,7 @@ // 鎿嶄綔鍒楀搴� operationsWidth: { type: [String, Number], - default: 160 + default: 100 }, // 鏄剧ず鍝簺鎿嶄綔鎸夐挳 operations: { -- Gitblit v1.9.3