Skip to content

Commit

Permalink
【issues/7101】列配置resizable: true时,表尾合计的列宽没有同步改变
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Sep 4, 2024
1 parent 7e2b4c6 commit 70607db
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion jeecgboot-vue3/src/components/Table/src/BasicTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,22 @@
tableAction,
redoHeight,
handleResizeColumn: (w, col) => {
console.log('col',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);
col.width = w;
},
getFormProps: getFormProps as any,
Expand Down

0 comments on commit 70607db

Please # to comment.