Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exlce模板导出如果模板中有多个合并单元格的循环表格,第二个表格读取错误 #4142

Closed
zhangdaiscott opened this issue Oct 27, 2022 · 2 comments

Comments

@zhangdaiscott
Copy link
Member

版本号:1.4.2
前端版本:vue3版?还是 vue2版?

vue2版

问题描述:

在进行excel模板导出是,如果模板中含有多个包含合并单元格的循环表格,第二个表格读取的时候会出现BUG,看了下代码,在第一个表格循环完成之后,合并单元格缓存没有刷新,导致取到第二个表格模板那一行的读取不到对应的合并单元格信息

截图&代码:

excel模板

报错信息

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@zhangdaiscott
Copy link
Member Author

image
问题出在shiftRows方法,这个方法在移动行之后,移动的行合并单元格样式就全部没有了
image

@lsqGitHub716
Copy link

已修改,下版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants