iview [Bug Report]input-number input number error

xienkqul  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(45)

Environment

win10/chrome 69/ vue 2.5.2

https://run.iviewui.com/Wq9BBrLn

Steps to reproduce

1.组件添加 precision 属性,设置值为2;
2.键盘输入数字10,1和0间隔超过200毫秒会出现1.000;

What is expected?

输入完成后组件失去焦点再添加精读;

What is actually happening?

组件显示数值和输入数值不符合‘’

iview 2.0 和 3.0 都存在这样的问题;

djmepvbi

djmepvbi1#

Translation of this issue:

Environment
Win10/chrome 69/ Vue 2.5.2
Reproduction link
https://run.iviewui.com/Wq9BBrLn
Steps to reproduce
The 1. component adds the precision property and sets the value to 2.
2. the number of keyboard input numbers 10, 1 and 0 will exceed 1 milliseconds in excess of 200 milliseconds.
What is expected?
After the input is completed, the component loses focus and adds intensive reading.
What is actually happening?
Component display values and input values do not match ''.

IView 2 and 3 have such problems.

wtzytmuj

wtzytmuj2#

使用 :active-change="false" 属性可以解决该问题;

lrpiutwd

lrpiutwd3#

嗯呢,刚也遇到同样问题,还以为是Bug。建议active-change属性默认为true比较好。

相关问题