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

关于图片没有显示 #3

Open
kx00012kx opened this issue Aug 3, 2022 · 2 comments
Open

关于图片没有显示 #3

kx00012kx opened this issue Aug 3, 2022 · 2 comments

Comments

@kx00012kx
Copy link

按照例子跑通了代码, 但导出的文件没有显示, 只有文本内容, 控制台打印ws对象中也有!image属性, 没有报错. xlsx版本是0.17.0

@yaomingdan
Copy link
Owner

请贴一些代码,以复现下问题

@kx00012kx
Copy link
Author

我在vue项目中使用, 只安装了xlsx, 还需要安装其他的依赖吗?
helpers.js没有改动过, 导出正常应该显示helpers.js里的那张图片, 下面是调用代码
exportReportFun() { let ws = {}; ws["!rows"] = [ { hidden: false } ]; ws["!cols"] = []; ws.Custprops = {}; excel.writeFile( [ { name: "视图数据", data: [['test'],[123]] } ], "test数据导出" + ".xlsx", ws ); },

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