执行以下代码,在剪切板获取后console打个断点即可复现
const designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("gc-designer-container"));
const spread = designer.getWorkbook();
const sheet = spread.getActiveSheet();
spread.options.scrollByPixel = true;
spread.options.scrollbarShowMax = true;
spread.options.scrollbarMaxAlign = true;
document.addEventListener('paste', (e)=> {
e.clipboardData.items[0].getAsString((text)=> {
console.log(text)
})
})
|