bkui-vue 2.0.2-beta.56 → 2.0.2-beta.57

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/lib/index.js CHANGED
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.56";
6
+ export const version = "2.0.2-beta.57";
7
7
  window.__bkui_vue_version__ = version;
@@ -1920,9 +1920,12 @@ 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 (val === '' || val === null || val === undefined || Number.isNaN(val)) {
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
1931
  } else if (eventName === EVENTS.CHANGE && isNumberInput.value && e.target.value !== '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.56",
3
+ "version": "2.0.2-beta.57",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",