From 70607dbe2bf0356edaaf7e708a5a7024855a1b8c Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Wed, 4 Sep 2024 13:59:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/7101=E3=80=91=E5=88=97=E9=85=8D?= =?UTF-8?q?=E7=BD=AEresizable:=20true=E6=97=B6=EF=BC=8C=E8=A1=A8=E5=B0=BE?= =?UTF-8?q?=E5=90=88=E8=AE=A1=E7=9A=84=E5=88=97=E5=AE=BD=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Table/src/BasicTable.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/jeecgboot-vue3/src/components/Table/src/BasicTable.vue b/jeecgboot-vue3/src/components/Table/src/BasicTable.vue index a49620d63b..7e11d7b8c8 100644 --- a/jeecgboot-vue3/src/components/Table/src/BasicTable.vue +++ b/jeecgboot-vue3/src/components/Table/src/BasicTable.vue @@ -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,