diff --git a/library/src/main/resources/rawfile/vtable_util.js b/library/src/main/resources/rawfile/vtable_util.js index 31af049821d880167572d44790a186d66b767519..1626c0062d1d0bf800c7742df3d545672fbd0816 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() + } } // 冻结指定列数,使左侧指定数量的列固定不动