univer icon indicating copy to clipboard operation
univer copied to clipboard

[Bug] range api setValue

Open chenyuan4x7 opened this issue 8 months ago • 9 comments

在您提交此问题之前,您是否检查了以下内容?

  • [X] 这真的是个问题吗?
  • [X] 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

0.1.13

复现链接

univerAPI.value = FUniver.newAPI(univer); /*const range = { startRow: 1, startColumn: 1, endRow: 1, endColumn: 1, }; univerAPI.value.executeCommand('sheet.command.set-range-values', { value: 'Test Univer', range });*/ const activeWorkbook = univerAPI.value.getActiveWorkbook(); const activeSheet = activeWorkbook.getActiveSheet(); const range = activeSheet.getRange(0, 0, 2, 2); range.setValue('Test Univer'); https://sheetsvitedemo-s2r2--5173--12d46890.local-credentialless.webcontainer.io

预期行为

setValue the console has no error message [Cannot destructure property 'skeleton' of 'n.getCurrent(...)' as it is undefined.] setValue 可以正常赋值, 控制台无报错提示 [Cannot destructure property 'skeleton' of 'n.getCurrent(...)' as it is undefined.]

实际行为

setValue the console prompts an error; [Cannot destructure property 'skeleton' of 'n.getCurrent(...)' as it is undefined.] setValue 可以正常赋值, 控制台提示报错; [Cannot destructure property 'skeleton' of 'n.getCurrent(...)' as it is undefined.]`` 5d4a09679c62504573bcf65da35d3b8

运行环境

Chrome

系统信息

No response

chenyuan4x7 avatar Jun 04 '24 05:06 chenyuan4x7