@lemon-fe/kits 1.0.0-110 → 1.0.0-111

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.
@@ -25,8 +25,7 @@ export default /*#__PURE__*/forwardRef(function NumberEditor(props, ref) {
25
25
  min = _props$min === void 0 ? -99999999 : _props$min,
26
26
  _props$max = props.max,
27
27
  max = _props$max === void 0 ? 99999999 : _props$max,
28
- _props$emptyValue = props.emptyValue,
29
- emptyValue = _props$emptyValue === void 0 ? 0 : _props$emptyValue,
28
+ emptyValue = props.emptyValue,
30
29
  disabled = props.disabled,
31
30
  precision = props.precision,
32
31
  _isCancelAfterEnd = props.isCancelAfterEnd,
@@ -94,11 +93,11 @@ export default /*#__PURE__*/forwardRef(function NumberEditor(props, ref) {
94
93
 
95
94
  var val = getFormatedValue();
96
95
 
97
- if (val === null) {
96
+ if (emptyValue === null && val === null) {
98
97
  return false;
99
98
  }
100
99
 
101
- if (val < min || val > max) {
100
+ if (val === null || val < min || val > max) {
102
101
  return true;
103
102
  }
104
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/kits",
3
- "version": "1.0.0-110",
3
+ "version": "1.0.0-111",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",