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

xslx 原生接口如何获取? #29

Open
suzaichuan opened this issue Jul 16, 2021 · 3 comments
Open

xslx 原生接口如何获取? #29

suzaichuan opened this issue Jul 16, 2021 · 3 comments

Comments

@suzaichuan
Copy link

hi all
通过 例子及文档,打印跟踪,发现整个对象导入函数的两个参数data,book ;只有data的导出接口,但data不含样式及合并单元格的标识,这样的话如果修改内容再写回去,很麻烦;而book 对象无法操作了,屏蔽了xslx的功能,没有留出原生的接口。
对于只修改内容或啥也不修改的,保留样式的做法,能否直接处理?
非常感谢!

@wangerzi
Copy link
Owner

代码里边也将 XLSX 引入进来了,如果需要原生导出,只能用 XLSX 这个对象进行原始操作了。

@suzaichuan
Copy link
Author

hi
非常感谢回答。
XLSX全局的么?但是打印是没有定义的,excel对象也没有。如果引用?
难道单独使用,与layui-excel 无关?

@wangerzi
Copy link
Owner

如果非 webpack 项目的话,XLSX 是全局变量,可以被直接打印,webpack项目,只能尝试直接引入 src/xlsx.js

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