使用 exceljs
在前端导出 excel 示例。
实现的功能:
● 简单表格导出
● 为表格添加样式(更改背景色、更换字体、字号、颜色)
● 设置行高、列宽
● 解析 ant-design 的 Table 直接导出excel,根据 antd 页面中设置的列宽动态计算 excel 中的列宽
● 多级表头(行合并、列合并)
● 一个 sheet 中放多张表,并实现每张表的列宽不同
forked from cachecats/excel-export-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
codeyourwayup/excel-export-demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
An excel export demo use exceljs and Ant-design
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- TypeScript 89.1%
- HTML 5.4%
- JavaScript 4.3%
- CSS 1.1%
- SCSS 0.1%