Luckysheet icon indicating copy to clipboard operation
Luckysheet copied to clipboard

[BUG]Find a bug 解析报错

Open jndxfjz opened this issue 2 years ago • 3 comments

有条记录在查询的时候报了一个错误,不知道数据存储的时候哪里不规范造成的? Uncaught TypeError: Cannot read properties of undefined (reading 'rs') at Xu (draw.js:814:55) at md (refresh.js:1238:13) at jc (resize.js:259:9) at handler.js:274:64 at dispatch (plugin.js:1:39154) at d.handle (plugin.js:1:37245) image

以下是数据格式,数据太大无法直接复制,请将地址复制到浏览器地址栏: https://gitee.com/jndxfjz/luckysheet/blob/master/luckysheet

通过调试发现我的数据里有一段合并单元格的情况 image 文档说明里还有以下图片的两个属性,但是我保存数据的时候却没有,不知道哪里出了问题 image

我把合并单元格的那属性直接删除,数据已经正常展示。

jndxfjz avatar Aug 19 '22 02:08 jndxfjz

我遇到了不少类似的问题. 建议在源代码中读取mc属性之前 做一次判空. 为空的话不处理. 改完后编译打包.重新引用到项目中..~

HengCC avatar Sep 14 '22 09:09 HengCC

Is there any news?

NAAsylov avatar Jan 11 '24 12:01 NAAsylov

The problem occurs if:

  1. Copy and paste the merged cells together with the regular ones
  2. merge new cells with an already merged cell

The problem is that after such an insertion, you can select a separate cell from the combined cell

NAAsylov avatar Jan 11 '24 12:01 NAAsylov