【issues/7101】列配置resizable: true时,表尾合计的列宽没有同步改变

pull/7199/head
JEECG 2024-09-04 13:59:22 +08:00
parent 7e2b4c68ec
commit 70607dbe2b
1 changed files with 16 additions and 1 deletions

View File

@ -424,7 +424,22 @@
tableAction,
redoHeight,
handleResizeColumn: (w, col) => {
console.log('col',col);
// update-begin--author:liaozhiyang---date:20240903---forissues/7101resizable: true
const columns = getColumns();
const findItem = columns.find((item) => {
if (item['dataIndex'] != null) {
return item['dataIndex'] === col['dataIndex'];
} else if (item['flag'] != null) {
return item['flag'] === col['flag'];
}
return false;
});
if (findItem) {
findItem.width = w;
setColumns(columns);
}
// update-end--author:liaozhiyang---date:20240903---forissues/7101resizable: true
console.log('col',col);
col.width = w;
},
getFormProps: getFormProps as any,