Commit 751d5c942a4a217b34786de97c23509044e0b4b1

Authored by 王亚星
1 parent be772972

fix: #4048

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/input/input.vue
@@ -246,7 +246,7 @@ @@ -246,7 +246,7 @@
246 }, 246 },
247 handleInput (event) { 247 handleInput (event) {
248 let value = event.target.value; 248 let value = event.target.value;
249 - if (this.number) value = Number.isNaN(Number(value)) ? value : Number(value); 249 + if (this.number && value !== '') value = Number.isNaN(Number(value)) ? value : Number(value);
250 this.$emit('input', value); 250 this.$emit('input', value);
251 this.setCurrentValue(value); 251 this.setCurrentValue(value);
252 this.$emit('on-change', event); 252 this.$emit('on-change', event);