Luckysheet icon indicating copy to clipboard operation
Luckysheet copied to clipboard

[BUG]使用luckyexcel库上传文件,calcChain配置导致sheet数据不展示

Open yinbiao opened this issue 2 years ago • 3 comments

Describe the bug 通过luckyexcel解析文件,保存到后端后,在第二个sheet中,有如下配置: calcChain: [ {r:0, c:3, index:2}, {r:0, c:3, index:2} ]

这个配置会导致我加载第二个sheet时,不显示任何数据。 然后,我手工删除了calcChain数组内的项,再刷新页面,第二个sheet的数据就正常显示了。

To Reproduce

  1. The first step:
  2. The second step:
  3. The third step:
  4. See error:

What is expected?

Screenshots or demo

Environment

  • OS:
  • Browser Version:
  • Luckysheet Version:

Additional context

yinbiao avatar May 20 '22 09:05 yinbiao

补充描述:存在公式的情况下,第二个sheet加载后,不显示任何数据,我将sheet的calcChain值删除掉,会显示内容,但是公式不生效

yinbiao avatar May 20 '22 10:05 yinbiao

我如果不用loadSheetUrl,而是一次性拿出所有数据是正常的

yinbiao avatar May 20 '22 13:05 yinbiao

在sheetmanage.js文件中,有一行注释“如果已经存在二维数据data,那么直接返回data;如果只有celldata,那么就转化成二维数组data,再返回”,这个函数就是导致数据不能渲染的原因

yinbiao avatar May 20 '22 14:05 yinbiao