px-jspreadsheet-ce 0.0.16 → 0.0.18

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "version": "0.0.16",
8
+ "version": "0.0.18",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./src/index.js",
@@ -1621,7 +1621,7 @@ export const setEvents = function (root) {
1621
1621
  root.addEventListener('touchend', touchEndControls);
1622
1622
  root.addEventListener('touchcancel', touchEndControls);
1623
1623
  root.addEventListener('touchmove', touchEndControls);
1624
- document.addEventListener('keydown', keyDownControls);
1624
+ // document.addEventListener('keydown', keyDownControls);
1625
1625
  };
1626
1626
 
1627
1627
  export const destroyEvents = function (root) {
@@ -1635,5 +1635,5 @@ export const destroyEvents = function (root) {
1635
1635
  root.removeEventListener('touchstart', touchStartControls);
1636
1636
  root.removeEventListener('touchend', touchEndControls);
1637
1637
  root.removeEventListener('touchcancel', touchEndControls);
1638
- document.removeEventListener('keydown', keyDownControls);
1638
+ // document.removeEventListener('keydown', keyDownControls);
1639
1639
  };
@@ -80,7 +80,7 @@ export const getFreezeColumnLeft = function (colNumber, options) {
80
80
  while (colNumber > 0) {
81
81
  const obj = columns[colNumber - 1]; // 左侧单元格
82
82
  if (obj.type !== 'hidden') {
83
- left += parseInt(obj.width || defaultWidth);
83
+ left += parseInt(obj.width || defaultWidth || 100);
84
84
  }
85
85
  colNumber -= 1;
86
86
  }
@@ -92,7 +92,7 @@ export const getFreezeRowTop = function (rowNumber, options) {
92
92
  let top = hiddenColumnLabel ? 0 : 30; // 距离顶部的位置
93
93
  while (rowNumber > 0) {
94
94
  const obj = rows[rowNumber - 1]; // 左侧单元格
95
- top += parseInt(obj.height || defaultHeight);
95
+ top += parseInt(obj.height || defaultHeight || 36);
96
96
  rowNumber -= 1;
97
97
  }
98
98
  return top + 'px';