Giter VIP home page Giter VIP logo

Comments (9)

JackGit avatar JackGit commented on June 5, 2024

提供一下可重现页面

from table2excel.js.

xzs1994 avatar xzs1994 commented on June 5, 2024

@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.

JackGit avatar JackGit commented on June 5, 2024

@xzs1994 单元格会自动合并,没有参数设置。请提供最小可重现问题的 table 结构

from table2excel.js.

xzs1994 avatar xzs1994 commented on June 5, 2024

@JackGit 刚刚测试了下:同一个表格,项目中和本地测试,设置了相同条件进行导出,本地总是可以正确导出但是项目中还是会遇到问题。现在还是不太清楚具体原因。

from table2excel.js.

JackGit avatar JackGit commented on June 5, 2024

@xzs1994 可以检查一下 exceljs 的版本看看

from table2excel.js.

xzs1994 avatar xzs1994 commented on June 5, 2024

@JackGit 我项目中使用require define加载库,现在的情况是使用table2excel,core.js和exceljs,此时会重复加载未知文件ExcelJs,这似乎是本项目中设置的,想问下有什么好的解决方法吗(因为这个原因,我使用的是table2excel.min.js文件)

from table2excel.js.

xzs1994 avatar xzs1994 commented on June 5, 2024

错误提示1:
错误提示1

错误提示2:
错误提示2

from table2excel.js.

JackGit avatar JackGit commented on June 5, 2024

@xzs1994 使用最新 exceljs 试试。我遇到过这样的问题

from table2excel.js.

xzs1994 avatar xzs1994 commented on June 5, 2024

@JackGit 好的,我试试,有结果我再反馈。

from table2excel.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.