Commit 0860551844c8e22545c99e230c7a48eab921f4f4

Authored by Aresn
Committed by GitHub
1 parent 10b42e26

Update input-number.vue

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/input-number/input-number.vue
@@ -249,7 +249,7 @@ @@ -249,7 +249,7 @@
249 setValue (val) { 249 setValue (val) {
250 // 如果 step 是小数,且没有设置 precision,是有问题的 250 // 如果 step 是小数,且没有设置 precision,是有问题的
251 if (val && !isNaN(this.precision)) val = Number(Number(val).toFixed(this.precision)); 251 if (val && !isNaN(this.precision)) val = Number(Number(val).toFixed(this.precision));
252 - 252 +
253 this.$nextTick(() => { 253 this.$nextTick(() => {
254 this.currentValue = val; 254 this.currentValue = val;
255 this.$emit('input', val); 255 this.$emit('input', val);