Comments (2)
Go to
/node_modules/antd-table-saveas-excel/dist/index.js (173:40)
replace
var isMac = /macintosh|mac os x/i.test(navigator.userAgent.toLowerCase()); // 获取默认的字体
function getDefaultFontName() {
if (isMac) {
return 'PingFang SC';
}
return 'Microsoft YaHei';
}
with
function getDefaultFontName() {
if (typeof global.navigator === 'undefined')
return 'Microsoft YaHei';
var isMac = /macintosh|mac os x/i.test(navigator?.userAgent.toLowerCase());
return isMac ? 'PingFang SC' : 'Microsoft YaHei';
}
from antd-table-saveas-excel.
Go to
/node_modules/antd-table-saveas-excel/dist/index.js (173:40)
replace
var isMac = /macintosh|mac os x/i.test(navigator.userAgent.toLowerCase()); // 获取默认的字体 function getDefaultFontName() { if (isMac) { return 'PingFang SC'; } return 'Microsoft YaHei'; }with
function getDefaultFontName() { if (typeof global.navigator === 'undefined') return 'Microsoft YaHei'; var isMac = /macintosh|mac os x/i.test(navigator?.userAgent.toLowerCase()); return isMac ? 'PingFang SC' : 'Microsoft YaHei'; }
Thank you so much
from antd-table-saveas-excel.
Related Issues (20)
- 加入dataSource字段空值的异常处理 HOT 2
- 导出的时候报错了,但是我无法知道这是如何造成的 HOT 3
- 表格数据render逻辑有问题,导致excelRender和render不起作用 HOT 1
- 表头无法居中 HOT 1
- UglifyJs Unexpected character HOT 1
- 导出之后excel无法打开 HOT 1
- TypeError: props.children.reduce is not a function HOT 3
- 是否有辦法removeColumn HOT 2
- Centering Header Titles HOT 2
- antd 4.7.1报错了 HOT 1
- 表格下载的时候 表头render自定义的函数解析有问题 HOT 2
- text is always undefined when rendering a column HOT 2
- loading on save data HOT 1
- Excel saveAs失效
- How to create rtl excel?
- 支持(考虑支持) 固定表头吗?
- [bug] 宽度配置会设置到右侧的列上
- How to change default font family?
- 是否支持多个sheet? HOT 2
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 antd-table-saveas-excel.