@leankylin-sheet/excel 7.0.31 → 7.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -1902,6 +1902,7 @@ var FortuneSheetBase = /*#__PURE__*/_createClass(function FortuneSheetBase() {
|
|
|
1902
1902
|
this.scrollTop = void 0;
|
|
1903
1903
|
this.zoomRatio = void 0;
|
|
1904
1904
|
this.showGridLines = void 0;
|
|
1905
|
+
this.showHeaders = void 0;
|
|
1905
1906
|
this.defaultColWidth = void 0;
|
|
1906
1907
|
this.defaultRowHeight = void 0;
|
|
1907
1908
|
this.celldata = void 0;
|
|
@@ -2829,12 +2830,14 @@ var FortuneSheet = /*#__PURE__*/function (_FortuneSheetBase) {
|
|
|
2829
2830
|
var clrScheme = _this.styles["clrScheme"];
|
|
2830
2831
|
var sheetView = _this.readXml.getElementsByTagName("sheetViews/sheetView", _this.sheetFile);
|
|
2831
2832
|
var showGridLines = "1",
|
|
2833
|
+
showHeaders = "1",
|
|
2832
2834
|
tabSelected = "0",
|
|
2833
2835
|
zoomScale = "100",
|
|
2834
2836
|
activeCell = "A1";
|
|
2835
2837
|
if (sheetView.length > 0) {
|
|
2836
2838
|
var attrList = sheetView[0].attributeList;
|
|
2837
2839
|
showGridLines = getXmlAttibute(attrList, "showGridLines", "1");
|
|
2840
|
+
showHeaders = getXmlAttibute(attrList, "showRowColHeaders", "1");
|
|
2838
2841
|
tabSelected = getXmlAttibute(attrList, "tabSelected", "0");
|
|
2839
2842
|
zoomScale = getXmlAttibute(attrList, "zoomScale", "100");
|
|
2840
2843
|
var selections = sheetView[0].getInnerElements("selection");
|
|
@@ -2885,6 +2888,7 @@ var FortuneSheet = /*#__PURE__*/function (_FortuneSheetBase) {
|
|
|
2885
2888
|
}
|
|
2886
2889
|
}
|
|
2887
2890
|
_this.showGridLines = showGridLines;
|
|
2891
|
+
_this.showHeaders = showHeaders;
|
|
2888
2892
|
_this.status = tabSelected;
|
|
2889
2893
|
_this.zoomRatio = parseInt(zoomScale) / 100;
|
|
2890
2894
|
var tabColors = _this.readXml.getElementsByTagName("sheetPr/tabColor", _this.sheetFile);
|
|
@@ -4895,6 +4899,9 @@ var FortuneFile = /*#__PURE__*/function () {
|
|
|
4895
4899
|
if (sheet.showGridLines != null) {
|
|
4896
4900
|
sheetout.showGridLines = sheet.showGridLines;
|
|
4897
4901
|
}
|
|
4902
|
+
if (sheet.showHeaders != null) {
|
|
4903
|
+
sheetout.showHeaders = sheet.showHeaders;
|
|
4904
|
+
}
|
|
4898
4905
|
if (sheet.defaultColWidth != null) {
|
|
4899
4906
|
sheetout.defaultColWidth = sheet.defaultColWidth;
|
|
4900
4907
|
}
|
package/dist/index.js
CHANGED
|
@@ -1914,6 +1914,7 @@ var FortuneSheetBase = /*#__PURE__*/_createClass(function FortuneSheetBase() {
|
|
|
1914
1914
|
this.scrollTop = void 0;
|
|
1915
1915
|
this.zoomRatio = void 0;
|
|
1916
1916
|
this.showGridLines = void 0;
|
|
1917
|
+
this.showHeaders = void 0;
|
|
1917
1918
|
this.defaultColWidth = void 0;
|
|
1918
1919
|
this.defaultRowHeight = void 0;
|
|
1919
1920
|
this.celldata = void 0;
|
|
@@ -2841,12 +2842,14 @@ var FortuneSheet = /*#__PURE__*/function (_FortuneSheetBase) {
|
|
|
2841
2842
|
var clrScheme = _this.styles["clrScheme"];
|
|
2842
2843
|
var sheetView = _this.readXml.getElementsByTagName("sheetViews/sheetView", _this.sheetFile);
|
|
2843
2844
|
var showGridLines = "1",
|
|
2845
|
+
showHeaders = "1",
|
|
2844
2846
|
tabSelected = "0",
|
|
2845
2847
|
zoomScale = "100",
|
|
2846
2848
|
activeCell = "A1";
|
|
2847
2849
|
if (sheetView.length > 0) {
|
|
2848
2850
|
var attrList = sheetView[0].attributeList;
|
|
2849
2851
|
showGridLines = getXmlAttibute(attrList, "showGridLines", "1");
|
|
2852
|
+
showHeaders = getXmlAttibute(attrList, "showRowColHeaders", "1");
|
|
2850
2853
|
tabSelected = getXmlAttibute(attrList, "tabSelected", "0");
|
|
2851
2854
|
zoomScale = getXmlAttibute(attrList, "zoomScale", "100");
|
|
2852
2855
|
var selections = sheetView[0].getInnerElements("selection");
|
|
@@ -2897,6 +2900,7 @@ var FortuneSheet = /*#__PURE__*/function (_FortuneSheetBase) {
|
|
|
2897
2900
|
}
|
|
2898
2901
|
}
|
|
2899
2902
|
_this.showGridLines = showGridLines;
|
|
2903
|
+
_this.showHeaders = showHeaders;
|
|
2900
2904
|
_this.status = tabSelected;
|
|
2901
2905
|
_this.zoomRatio = parseInt(zoomScale) / 100;
|
|
2902
2906
|
var tabColors = _this.readXml.getElementsByTagName("sheetPr/tabColor", _this.sheetFile);
|
|
@@ -4907,6 +4911,9 @@ var FortuneFile = /*#__PURE__*/function () {
|
|
|
4907
4911
|
if (sheet.showGridLines != null) {
|
|
4908
4912
|
sheetout.showGridLines = sheet.showGridLines;
|
|
4909
4913
|
}
|
|
4914
|
+
if (sheet.showHeaders != null) {
|
|
4915
|
+
sheetout.showHeaders = sheet.showHeaders;
|
|
4916
|
+
}
|
|
4910
4917
|
if (sheet.defaultColWidth != null) {
|
|
4911
4918
|
sheetout.defaultColWidth = sheet.defaultColWidth;
|
|
4912
4919
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/excel",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.33",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@leankylin-sheet/core": "7.0.
|
|
23
|
+
"@leankylin-sheet/core": "7.0.33",
|
|
24
24
|
"dayjs": "^1.11.10",
|
|
25
25
|
"exceljs": "^4.4.0",
|
|
26
26
|
"file-saver": "^2.0.5",
|