bkui-vue 2.0.2-beta.56 → 2.0.2-beta.58
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.cjs.js +2 -2
- package/dist/index.esm.js +3 -3
- package/dist/index.umd.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input/index.js +5 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/input/index.js
CHANGED
@@ -1920,12 +1920,15 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1920
1920
|
function () {
|
1921
1921
|
var precision = Number.isInteger(props.precision) ? props.precision : 0;
|
1922
1922
|
var val = e.target.value;
|
1923
|
-
if (
|
1923
|
+
if (Number.isNaN(val)) {
|
1924
1924
|
return isNum(props.min) ? props.min : 0;
|
1925
1925
|
}
|
1926
|
+
if (val === '' || val === null || val === undefined) {
|
1927
|
+
return '';
|
1928
|
+
}
|
1926
1929
|
return (+val).toFixed(precision);
|
1927
1930
|
}() : e.target.value, e);
|
1928
|
-
} else if (eventName === EVENTS.CHANGE && isNumberInput.value
|
1931
|
+
} else if (eventName === EVENTS.CHANGE && isNumberInput.value) {
|
1929
1932
|
// console.error('CHANGE', handleNumber(e.target.value, 0), e.target.value);
|
1930
1933
|
var _val = handleNumber(e.target.value, 0);
|
1931
1934
|
ctx.emit(EVENTS.UPDATE, _val, e);
|