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

nxowjjhe  于 22天前  发布在  其他
关注(0)|答案(3)|浏览(18)

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

sdnqo3pr

sdnqo3pr1#

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

gzjq41n4

gzjq41n42#

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

af7jpaap

af7jpaap3#

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

相关问题