mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
【issues/7101】列配置resizable: true时,表尾合计的列宽没有同步改变
This commit is contained in:
@ -424,6 +424,21 @@
|
|||||||
tableAction,
|
tableAction,
|
||||||
redoHeight,
|
redoHeight,
|
||||||
handleResizeColumn: (w, col) => {
|
handleResizeColumn: (w, col) => {
|
||||||
|
// update-begin--author:liaozhiyang---date:20240903---for:【issues/7101】列配置resizable: 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---for:【issues/7101】列配置resizable: true时,表尾合计的列宽没有同步改变
|
||||||
console.log('col',col);
|
console.log('col',col);
|
||||||
col.width = w;
|
col.width = w;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user