dream-num / univer

Univer is an open-source productivity tool dev kit helping you integrate spreadsheets, docs and slides into your applications.
https://univer.ai
Apache License 2.0
6.47k stars 550 forks source link

[Bug] univerAPI.getActiveWorkBook().getActiveSheet().getRange(0,0,2,2).generateHTML() structure is incorrect. #2486

Open huazhuwang opened 2 months ago

huazhuwang commented 2 months ago

Before you submit this issue, have you checked the following

Affected packages and versions

0.1.14

Reproduction link

  1. drag the column B, set its width to 200px.
  2. edit B1, input some words.
  3. then excute univerAPI.getActiveWorkBook().getActiveSheet().getRange(0,0,2,2).generateHTML()
  4. the return structure is incorrect

image

Expected behavior

image

Actual behavior

image

System information

No response

huazhuwang commented 2 months ago

I suspect it has something to do with the follows function, code location:\univer-0.1.14\packages\sheets-ui\src\services\clipboard\usm-to-html image