From bf926559b04ad01c3935d3ebfa2fdfd75a6d84b6 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Wed, 18 Dec 2024 16:12:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A1=A8=E6=A0=BC):=20=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E5=88=97=E6=8B=96=E6=8B=BD=E5=88=97=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/pure/ms-table/base-table.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index fbc6ab0086..66319e0b40 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -979,8 +979,11 @@ if (dataIndex) { const [index] = dataIndex.split('_').slice(-1); const lastIndex = attrs.selectable ? Number(index) - 1 : Number(index); - currentColumns.value[lastIndex].width = width; - await tableStore.updateColumnWidth(attrs.tableKey as TableKeyEnum, currentColumns.value); + + if (lastIndex > -1) { + currentColumns.value[lastIndex].width = width; + await tableStore.updateColumnWidth(attrs.tableKey as TableKeyEnum, currentColumns.value); + } } }, 200); @@ -1168,6 +1171,11 @@ padding: 0; } } + :deep(.arco-table-col-fixed-left.arco-table-operation) { + span.arco-table-column-handle { + pointer-events: none; + } + } :deep(.ms-table-select-all) { .dropdown-icon { background: none !important;