Skip to content

An excel export demo use exceljs and Ant-design

Notifications You must be signed in to change notification settings

codeyourwayup/excel-export-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Excel export demo

使用 exceljs 在前端导出 excel 示例。
实现的功能:
● 简单表格导出
● 为表格添加样式(更改背景色、更换字体、字号、颜色)
● 设置行高、列宽
● 解析 ant-design 的 Table 直接导出excel,根据 antd 页面中设置的列宽动态计算 excel 中的列宽
● 多级表头(行合并、列合并)
● 一个 sheet 中放多张表,并实现每张表的列宽不同

详细的文章地址:
https://juejin.cn/post/7071882317953761316/

About

An excel export demo use exceljs and Ant-design

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.1%
  • HTML 5.4%
  • JavaScript 4.3%
  • CSS 1.1%
  • SCSS 0.1%