dream-num / univer

Univer is an open-source alternative to Google Sheets, Slides, and Docs

Home Page:https://univer.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Copy the data from the page table to univerjs and display an exception

mansteinr opened this issue · comments

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

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

受影响的包和版本

0.1.14

复现链接

no

预期行为

image
I copied five, but after pasting, it should show five including the header

实际行为

image
Actually, only two were displayed

运行环境

Chrome

系统信息

System:
OS: Windows 10 10.0.19042
CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
Memory: 1.35 GB / 7.74 GB
Binaries:
Node: 18.17.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.2.0 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Chromium (125.0.2535.92)
Internet Explorer: 11.0.19041.1

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] Copy the data from the page table to univerjs and display an exception

Title: [Bug] Copy the data from the page table to univerjs and display an exception


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

0.1.14

Recurrence link

no

Expected behavior

image
I copied five, but after pasting, it should show five including the header

Actual behavior

image
Actually, only two were displayed

Running environment

Chrome

system message

System:
OS: Windows 10 10.0.19042
CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
Memory: 1.35 GB / 7.74 GB
Binaries:
Node: 18.17.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.2.0 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Chromium (125.0.2535.92)
Internet Explorer: 11.0.19041.1

commented

Can you provide a de-identified data source?

Please provide a valid link to reproduce the issue. We will close this issue for now, but feel free to reopen it once you have the link ready.

Please provide a valid link to reproduce the issue. We will close this issue for now, but feel free to reopen it once you have the link ready.

我发现了复制源并且在univer sheet本地开发环境复现并定位根因。可以的话我打算解决该问题。
在此之外我发现使用getComputedStyle()这个DOM api在粘贴大量内容会非常耗时,我希望在PR中一并解决。
a0d555c26a477d10a4d99b071cd5d97

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Please provide a valid link to reproduce the issue. We will close this issue for now, but feel free to reopen it once you have the link ready.

I found Copy source and reproduced it in the universal sheet local development environment and located the root cause. I intend to address this issue if I can.
In addition, I found that using the getComputedStyle() DOM api to paste a large amount of content will be very time-consuming, and I hope to solve it in the PR.
a0d555c26a477d10a4d99b071cd5d97

Please provide a valid link to reproduce the issue. We will close this issue for now, but feel free to reopen it once you have the link ready.

我发现了复制源并且在univer sheet本地开发环境复现并定位根因。可以的话我打算解决该问题。 在此之外我发现使用getComputedStyle()这个DOM api在粘贴大量内容会非常耗时,我希望在PR中一并解决。 a0d555c26a477d10a4d99b071cd5d97

PR welcome!

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Please provide a valid link to reproduce the issue. We will close this issue for now, but feel free to reopen it once you have the link ready.

I found Copy source and reproduced it in the universal sheet local development environment and located the root cause. I intend to address this issue if I can. In addition, I found that using the getComputedStyle() DOM api to paste a large amount of content will be very time-consuming, and I hope to solve it in the PR. ![a0d555c26a477d10a4d99b071cd5d97](https://private-user-images.githubusercontent.com/40552739/339180946-81131b0e-3157-437f-9c3c-0b86cd63a752.png?jwt=eyJhbGci OiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyNDY3NjMsIm5iZiI6 MTcxODI0NjQ2MywicGF0aCI6Ii80MDU1MjczOS8zMzkxODA5NDYtODExMzFiMGUtMzE1Ny00MzdmLTljM2MtMGI4NmNkNjNhNzUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1Ni ZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDAyNDEwM1omWC1BbX otRxhwa 3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Jz0_AltEvBTKbYAvzMV7D4TnEXxG2pJqkXi6ZFDLnTo)

PR welcome!