10金币
最佳答案以下两个事件可以拿到列拖拽前后的宽度。
sheet.bind(GC.Spread.Sheets.Events.ColumnWidthChanged, function (e, info) {
let colList = info.colList;
for (let i = 0; i < colList.length; i++) {
const colIndex = colList;
console.log("after", sheet.getColumnWidth(colIndex));
}
});
sheet.bind(GC.Spread.Sheets.Events.ColumnWidthChanging, function (e, info) {
let ...
| |
| |
| |
| |
| |
| |
| |