From d59e7543c75537e2f97fd47fc7f3a81862e1e00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E7=81=BF?= <2669958319@qq.com> Date: Mon, 5 Jan 2026 18:52:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/src/main/resources/rawfile/vtable_util.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/library/src/main/resources/rawfile/vtable_util.js b/library/src/main/resources/rawfile/vtable_util.js index 31af049..e6d418b 100644 --- a/library/src/main/resources/rawfile/vtable_util.js +++ b/library/src/main/resources/rawfile/vtable_util.js @@ -162,6 +162,17 @@ var eventCallback = (type, data) => { dataSize: JSON.stringify(filteredData).length, dataPreview: JSON.stringify(filteredData).substring(0, 100) + '...' }); + + if (type === 'CHANGE_CELL_VALUE'){ + let aa = window.tableInstance.getSelectedCellInfos() + console.log("=====> getSelectedCellInfos", JSON.stringify(aa[0][0].col)) + console.log("=====> getSelectedCellInfos", JSON.stringify(aa[0][0].row)) + console.log("=====> getSelectedCellInfos", JSON.stringify(aa[1][1].col)) + console.log("=====> getSelectedCellInfos", JSON.stringify(aa[1][1].row)) + window.tableInstance.unmergeCells(aa[0][0].col, aa[0][0].row, aa[aa.length-1][aa[0].length-1].col, aa[aa.length-1][aa[0].length-1].row) + window.tableInstance.mergeCells(aa[0][0].col, aa[0][0].row, aa[aa.length-1][aa[0].length-1].col, aa[aa.length-1][aa[0].length-1].row) + renderWithRecreateCells() + } } // 冻结指定列数,使左侧指定数量的列固定不动 -- Gitee From 92f1a3542917a170a3811cde9e1010931a6712dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E7=81=BF?= <2669958319@qq.com> Date: Mon, 5 Jan 2026 18:58:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/src/main/resources/rawfile/vtable_util.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/src/main/resources/rawfile/vtable_util.js b/library/src/main/resources/rawfile/vtable_util.js index e6d418b..1626c00 100644 --- a/library/src/main/resources/rawfile/vtable_util.js +++ b/library/src/main/resources/rawfile/vtable_util.js @@ -165,13 +165,13 @@ var eventCallback = (type, data) => { if (type === 'CHANGE_CELL_VALUE'){ let aa = window.tableInstance.getSelectedCellInfos() - console.log("=====> getSelectedCellInfos", JSON.stringify(aa[0][0].col)) - console.log("=====> getSelectedCellInfos", JSON.stringify(aa[0][0].row)) - console.log("=====> getSelectedCellInfos", JSON.stringify(aa[1][1].col)) - console.log("=====> getSelectedCellInfos", JSON.stringify(aa[1][1].row)) + // console.log("=====> getSelectedCellInfos", JSON.stringify(aa[0][0].col)) + // console.log("=====> getSelectedCellInfos", JSON.stringify(aa[0][0].row)) + // console.log("=====> getSelectedCellInfos", JSON.stringify(aa[1][1].col)) + // console.log("=====> getSelectedCellInfos", JSON.stringify(aa[1][1].row)) window.tableInstance.unmergeCells(aa[0][0].col, aa[0][0].row, aa[aa.length-1][aa[0].length-1].col, aa[aa.length-1][aa[0].length-1].row) window.tableInstance.mergeCells(aa[0][0].col, aa[0][0].row, aa[aa.length-1][aa[0].length-1].col, aa[aa.length-1][aa[0].length-1].row) - renderWithRecreateCells() + // renderWithRecreateCells() } } -- Gitee