From faff261862c00b8e63e6f3dc8636e7f207a4b806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E5=91=88?= Date: Wed, 27 Jul 2022 16:28:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=A4=8D?= =?UTF-8?q?=E5=90=88=E8=A1=A8=E5=A4=B4=E5=AD=90=E5=88=97=5F=5Fid=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/table.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 2afbb43fe..e6af01741 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -1378,7 +1378,9 @@ makeColumnsId (columns) { const cloneColumns = deepCopy(columns); return cloneColumns.map(item => { - if ('children' in item) this.makeColumnsId(item.children); + if ('children' in item) { + item.children = this.makeColumnsId(item.children); + } item.__id = getRandomStr(6); return item; }); From a090e64be4686675b539341875e6cb078cd54ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E5=91=88?= Date: Wed, 27 Jul 2022 17:36:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=A4=8D?= =?UTF-8?q?=E5=90=88=E8=A1=A8=E5=A4=B4=E6=8B=96=E6=8B=BD=E6=97=A0=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/table-head.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/table/table-head.vue b/src/components/table/table-head.vue index 9a39d949f..5a31ad5b3 100644 --- a/src/components/table/table-head.vue +++ b/src/components/table/table-head.vue @@ -309,7 +309,7 @@ const finalLeft = parseInt(resizeProxy.style.left, 10); const columnWidth = finalLeft - startColumnLeft; - const _column = table.allColumns.find(item => item.__id === column.__id); + const _column = table.cloneColumns.find(item => item.__id === column.__id); if (_column) { _column.width = columnWidth; column.width = columnWidth;