Comments (9)
提供一下可重现页面
from table2excel.js.
@JackGit 我也遇到了这个问题。
1、table需要在thead中设置合并单元格,看了下你给的demo代码中的table只有tbody,想问下,是应为在thead中设置才造成这个问题吗?
js代码:
var exportExcel = new table2Excel('#analysis-table');
exportExcel.export(filename, 'xlsx');
2、是需要在table2Excel的第二个参数options设置才能合并单元格吗,那么这个参数需要如何设置呢?
from table2excel.js.
@xzs1994 单元格会自动合并,没有参数设置。请提供最小可重现问题的 table 结构
from table2excel.js.
@JackGit 刚刚测试了下:同一个表格,项目中和本地测试,设置了相同条件进行导出,本地总是可以正确导出但是项目中还是会遇到问题。现在还是不太清楚具体原因。
from table2excel.js.
@xzs1994 可以检查一下 exceljs 的版本看看
from table2excel.js.
@JackGit 我项目中使用require define加载库,现在的情况是使用table2excel,core.js和exceljs,此时会重复加载未知文件ExcelJs,这似乎是本项目中设置的,想问下有什么好的解决方法吗(因为这个原因,我使用的是table2excel.min.js文件)
from table2excel.js.
from table2excel.js.
@xzs1994 使用最新 exceljs 试试。我遇到过这样的问题
from table2excel.js.
@JackGit 好的,我试试,有结果我再反馈。
from table2excel.js.
Related Issues (20)
- 导出的文件无法打开 HOT 2
- Sources HOT 10
- 隐藏在div中的table 无法下载 HOT 3
- Cannot read property 'el' of undefined HOT 1
- 导出的Excel太大时间过长会导致浏览器假死 HOT 6
- 你好,字体加粗变大,表格加边框这些要怎么写?没看到说明 HOT 1
- Cannot read property 'el' of undefined HOT 3
- 组件在IE11
- 插件在IE11下无法运行
- 隐藏内容不导出 HOT 3
- Error with Angular 8 HOT 1
- 在vue中使用无法自定义样式 HOT 1
- 下载的xlsx excel打开报错 HOT 3
- 关于使用plugins的边框导致原有的样式丢失,并且边框也不太对 HOT 2
- table中td不满的话,会报错 HOT 2
- Will it work with PhantomJS or other headless browser? HOT 1
- 导入base64图片无法显示
- how to work in intenet explorer
- 导出的excel提示xlsx中的部分内容有问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table2excel.js.