@zhenliang/sheet 0.1.53 → 0.1.55

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.
@@ -94,6 +94,9 @@ export var getNumberEditor = function getNumberEditor(extraProps, getExtraProps)
94
94
  if (!isNumber(+value)) {
95
95
  return;
96
96
  }
97
+ if (!value) {
98
+ return handleChange('');
99
+ }
97
100
  if (max && +value > max) {
98
101
  handleChange(max);
99
102
  } else if (min && +value < min) {
package/dist/core/util.js CHANGED
@@ -468,7 +468,7 @@ export var stripRowIndex = function stripRowIndex(data) {
468
468
  if (rowData[0].fixed && !rowData[0].editable) {
469
469
  startIndex = 1;
470
470
  }
471
- if (rowData[rowData.length - 1].fixed && !rowData[0].editable) {
471
+ if (rowData[rowData.length - 1].fixed && !rowData[rowData.length - 1].editable) {
472
472
  endIndex = rowData.length - 2;
473
473
  }
474
474
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhenliang/sheet",
3
- "version": "0.1.53",
3
+ "version": "0.1.55",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",