iview Can [Bug Report]inputNumber increase the native blur event?

afdcj2ne  于 2022-10-21  发布在  其他
关注(0)|答案(1)|浏览(176)

Environment

mac

https://jsfiddle.net/yyrzhm46/1195/

Steps to reproduce

输入框数据为23时,当删除input数据后,input dom上不显示数据 为空,但v-model仍显示value1 仍然显示2

What is expected?

希望增加原生事件 blur,这样我能够对dom节点上进行赋值操作

What is actually happening?

当input 数据为空时,input上显示 min数值。

解决办法
1:增加原声blur方法,我独立对$event进行操作
2:官方来增加一个参数,当true时,如果input数据为空自动复制min数值

xlpyo6sf

xlpyo6sf1#

Translation of this issue:

Environment
Mac
Reproduction link
https://jsfiddle.net/yyrzhm46/1195/
Steps to reproduce
When the input box data is 23, when input data is deleted, input DOM does not display data empty, but V-model still shows that value1 still displays 2.
What is expected?
I want to increase the native event blur so that I can assign assignments to DOM nodes.
What is actually happening?
When the input data is empty, the min value is displayed on the input.

Terms of settlement
1: adds the original blur method, and I operate $event independently.
2: official adds a parameter. When true, if input data is empty, the min value is automatically copied.

相关问题