Update input-number.vue
This commit is contained in:
parent
10b42e26d2
commit
0860551844
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@
|
||||||
setValue (val) {
|
setValue (val) {
|
||||||
// 如果 step 是小数,且没有设置 precision,是有问题的
|
// 如果 step 是小数,且没有设置 precision,是有问题的
|
||||||
if (val && !isNaN(this.precision)) val = Number(Number(val).toFixed(this.precision));
|
if (val && !isNaN(this.precision)) val = Number(Number(val).toFixed(this.precision));
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.currentValue = val;
|
this.currentValue = val;
|
||||||
this.$emit('input', val);
|
this.$emit('input', val);
|
||||||
|
|
Loading…
Add table
Reference in a new issue