diff --git a/package.json b/package.json index a358649d02..846732f5e2 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "proj4": "2.7.5", "promise-polyfill": "8.2.1", "three": "0.129.0", - "xlsx": "0.18.0", + "xlsx": "0.18.5", "xml-js": "1.6.11" }, "pre-commit": [ diff --git a/src/classic/package.json b/src/classic/package.json index 9945b109f2..a8b5ae4e1d 100644 --- a/src/classic/package.json +++ b/src/classic/package.json @@ -15,7 +15,7 @@ "license": "Apache-2.0", "dependencies": { "mapv": "2.0.62", - "xlsx": "0.18.0", + "xlsx": "0.18.5", "@supermap/iclient-common": "11.0.0" } } diff --git a/src/common/components/util/FileReaderUtil.js b/src/common/components/util/FileReaderUtil.js index 8151e17bd5..01de1f9ac9 100644 --- a/src/common/components/util/FileReaderUtil.js +++ b/src/common/components/util/FileReaderUtil.js @@ -1,7 +1,7 @@ /* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ -import XLSX from 'xlsx' +import * as XLSX from 'xlsx'; import {FileTypes} from '../CommonTypes'; import {Lang} from '../../lang/Lang'; diff --git a/src/leaflet/package.json b/src/leaflet/package.json index 81bab13755..3d190701e2 100644 --- a/src/leaflet/package.json +++ b/src/leaflet/package.json @@ -24,6 +24,6 @@ "jsonsql": "0.2.5", "pbf": "3.2.1", "proj4": "2.7.5", - "xlsx": "0.18.0" + "xlsx": "0.18.5" } } diff --git a/src/mapboxgl/package.json b/src/mapboxgl/package.json index 08221605e4..d76cc484e4 100644 --- a/src/mapboxgl/package.json +++ b/src/mapboxgl/package.json @@ -18,8 +18,8 @@ "echarts": "4.9.0", "mapv": "2.0.62", "mapbox-gl": "1.13.2", - "three": "0.129.0", - "xlsx": "0.18.0", + "three": "0.129.", + "xlsx": "0.18.5", "@supermap/iclient-common": "11.0.0", "canvg": "3.0.7", "xml-js": "1.6.11" diff --git a/src/openlayers/package.json b/src/openlayers/package.json index 2dff095933..dd606f86f3 100644 --- a/src/openlayers/package.json +++ b/src/openlayers/package.json @@ -21,7 +21,7 @@ "ol": "6.9.0", "@supermap/iclient-common": "11.0.0", "proj4": "2.7.5", - "xlsx": "0.18.0", + "xlsx": "0.18.5", "canvg": "3.0.7", "lodash.remove": "^4.7.0" }