wolfidea
Results
3
comments of
wolfidea
没有中文版吗
解决了吗?我也遇到这个问题
和min prop无关。 可以看Reproduction link里面第一个input-number,原因是存在formatter属性,会执行setInputValue方法, setInputValue方法会即时格式化数据,NumberDecimal里面的 toString方法,会即时返回 this.origin,而 this.origin = String(value); 当输入-0的时候,这样就会即时返回String(-0),String(-0)的值是0,这样就会把负号给去除了。 暂时找到一个临时解决方法。 就是在自己的formatter方法里面拿input值,发现是-0,直接返回出来。 const formatter= (value, e) => { const { input } = e; if (input === '-0') {...