Merge pull request #104 from microsoft/feature
1. Bug Fix: "CSV" Export Fails in SPFx in SharePoint Online
This commit is contained in:
Коммит
9fa8474326
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fluentui-editable-grid",
|
||||
"version": "1.10.1",
|
||||
"version": "1.11.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -2424,6 +2424,18 @@
|
|||
"requires": {
|
||||
"bole": "npm:@zkochan/bole@^3.0.4",
|
||||
"ndjson": "^1.5.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"bole": {
|
||||
"version": "npm:@zkochan/bole@3.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@zkochan/bole/-/bole-3.0.4.tgz",
|
||||
"integrity": "sha512-3iPQz6Z7A2aiKc9cxB+I4X0nKxOagBxWAl91+ukUyJ9El+DgejYgbfd4PtzUyam+JRXXydUCkKGKiWYj8EzrGw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fast-safe-stringify": "~1.1.0",
|
||||
"individual": "~3.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@pnpm/merge-lockfile-changes": {
|
||||
|
@ -5061,16 +5073,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"bole": {
|
||||
"version": "npm:@zkochan/bole@3.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@zkochan/bole/-/bole-3.0.4.tgz",
|
||||
"integrity": "sha512-3iPQz6Z7A2aiKc9cxB+I4X0nKxOagBxWAl91+ukUyJ9El+DgejYgbfd4PtzUyam+JRXXydUCkKGKiWYj8EzrGw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fast-safe-stringify": "~1.1.0",
|
||||
"individual": "~3.0.0"
|
||||
}
|
||||
},
|
||||
"bonjour": {
|
||||
"version": "3.5.0",
|
||||
"resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fluentui-editable-grid",
|
||||
"version": "1.11.0",
|
||||
"version": "1.11.1",
|
||||
"license": "MIT",
|
||||
"description": "Wrapper over the existing DetailsList that makes in-place editability work like a dream(among many other new features)",
|
||||
"main": "dist/index.js",
|
||||
|
|
|
@ -40,7 +40,7 @@ export const ExportToCSVUtil = (exportData : any[], fileName : string) : void =>
|
|||
|
||||
const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
|
||||
if (navigator.msSaveBlob) { // IE 10+
|
||||
navigator.msSaveBlob(blob, fileName);
|
||||
navigator.msSaveBlob(blob, fileName);
|
||||
} else {
|
||||
const link = document.createElement('a');
|
||||
if (link.download !== undefined) {
|
||||
|
@ -49,6 +49,7 @@ export const ExportToCSVUtil = (exportData : any[], fileName : string) : void =>
|
|||
link.setAttribute('href', url);
|
||||
link.setAttribute('download', fileName);
|
||||
link.style.visibility = 'hidden';
|
||||
link.dataset.interception = 'off';
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
|
|
Загрузка…
Ссылка в новой задаче