fix(表格): 禁用第一列拖拽列宽

This commit is contained in:
xinxin.wu 2024-12-18 16:12:15 +08:00 committed by Craftsman
parent bff7c3ad78
commit bf926559b0
1 changed files with 10 additions and 2 deletions

View File

@ -979,8 +979,11 @@
if (dataIndex) { if (dataIndex) {
const [index] = dataIndex.split('_').slice(-1); const [index] = dataIndex.split('_').slice(-1);
const lastIndex = attrs.selectable ? Number(index) - 1 : Number(index); 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); }, 200);
@ -1168,6 +1171,11 @@
padding: 0; padding: 0;
} }
} }
:deep(.arco-table-col-fixed-left.arco-table-operation) {
span.arco-table-column-handle {
pointer-events: none;
}
}
:deep(.ms-table-select-all) { :deep(.ms-table-select-all) {
.dropdown-icon { .dropdown-icon {
background: none !important; background: none !important;